/* Custom Styles */
:root {
    --primary-color: #FFB6C1;
    --text-primary: #111111;
    --text-secondary: #666666;
    --background: #FFFFFF;
    --background-alt: #F5F5F7;
    --spacing-unit: 8px;
}

/* Fixed Contact Button */
#fixed-contact-btn {
    animation: buttonEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               buttonPulse 2s infinite 1s;
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.8);
    }
    60% {
        transform: translateY(-10px) scale(1.1);
    }
    80% {
        transform: translateY(5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
        transform: scale(1);
    }
}

/* Estilização minimalista da barra de rolagem */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: #ffffff;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
    font-feature-settings: "salt" on, "ss01" on, "ss02" on;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: #ffffff transparent;
}

::selection {
    background: var(--primary-color);
    color: white;
}

/* Noise Texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMDAwMDAwPduPR+AAAASUlEQVQ4y2NgQAX8DKhgHhbheSiK5yErnodNOIQPrHgdmuJ16IrXYShWwDAcYRiOsA3DcX0wHGEbhuP6YDjCNgzH9cFwhG14HgDXJSS1NIKwFAAAAABJRU5ErkJggg==');
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
}

/* Cursor personalizado */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.2s ease;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: scale(2);
    background: var(--primary-color);
    mix-blend-mode: screen;
}

.custom-cursor.hover {
    transform: scale(1.5);
    background-color: rgba(185, 159, 101, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('placeholder.jpg');
    filter: contrast(1.2) saturate(1.2);
    animation: heroAnimation 30s ease-in-out infinite;
}

.hero-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('placeholder.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0;
    mix-blend-mode: hard-light;
    animation: glitch var(--glitch-timing) infinite;
}

.hero-glitch:nth-child(2) {
    animation-delay: calc(var(--glitch-timing) * 0.33);
    filter: hue-rotate(90deg);
}

.hero-glitch:nth-child(3) {
    animation-delay: calc(var(--glitch-timing) * 0.66);
    filter: hue-rotate(180deg);
}

@keyframes heroAnimation {
    0% {
        transform: scale(1) translate(0, 0);
    }
    33% {
        transform: scale(1.1) translate(-1%, -1%);
    }
    66% {
        transform: scale(1.15) translate(1%, 1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

@keyframes glitch {
    0%, 100% { 
        opacity: 0;
        transform: translate(0);
    }
    10%, 15% {
        opacity: 0.3;
        transform: translate(-5px, 2px);
    }
    20%, 25% {
        opacity: 0.2;
        transform: translate(5px, -2px);
    }
}

/* Kinetic Typography */
.kinetic-text {
    position: relative;
    display: inline-block;
}

.kinetic-text span {
    display: inline-block;
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--char-index) * 0.1s);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Parallax Effect */
.parallax {
    transform: translateY(var(--parallax-offset));
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Glass Morphism Enhanced */
.bg-glass {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.bg-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        var(--gradient-angle),
        transparent 20%,
        rgba(255, 51, 102, 0.1),
        rgba(0, 240, 255, 0.1),
        transparent 80%
    );
    border-radius: inherit;
    animation: rotation 10s linear infinite;
}

@keyframes rotation {
    0% { --gradient-angle: 0deg; }
    100% { --gradient-angle: 360deg; }
}

/* Gallery Effects */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-10px);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 51, 102, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    50%, 100% {
        transform: rotate(45deg) translateY(100%);
    }
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.video-item {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 4px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    transition: transform 0.5s ease;
}

.video-item:hover iframe {
    transform: translateZ(20px);
}

/* Distortion Effect */
.distortion-text {
    position: relative;
    display: inline-block;
    animation: glitch-text 3s infinite;
}

@keyframes glitch-text {
    0%, 100% { transform: none; filter: none; }
    7% {
        transform: skew(-0.8deg, -0.1deg);
        filter: hue-rotate(180deg);
    }
    10% {
        transform: skew(0.5deg, 0.2deg);
        filter: hue-rotate(240deg);
    }
    20% { transform: none; filter: none; }
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(185, 159, 101, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Text Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading states */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.loaded {
    opacity: 1;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    gap: 2rem;
}

/* Image Hover Effects */
.image-hover {
    position: relative;
    overflow: hidden;
}

.image-hover img {
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.image-hover:hover img {
    transform: scale(1.05);
}

/* Input Focus Styles */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

/* Button Hover Effects */
.button-hover {
    position: relative;
    overflow: hidden;
}

.button-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.button-hover:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Form Styling */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(185, 159, 101, 0.2);
}

/* Video Section */
.video-background {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    margin: 4rem 0;
}

/* Video Loading Optimization */
iframe[src*="vimeo.com"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

iframe[src*="vimeo.com"].loaded {
    opacity: 1;
}

.video-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform-origin: 0%;
    z-index: 1000;
}

/* Mobile menu */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Image loading */
img.lazy {
    opacity: 0;
}

img.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}