@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #ff3f05;
    /* New brand color */
    --accent-glow: rgba(255, 63, 5, 0.4);
    --secondary-bg: #111111;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base UI Components */
h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 1px;
}

nav ul li a:hover,
nav ul li a.active,
.mobile-links li a.active {
    opacity: 1;
    color: var(--accent-color);
}

nav ul li a.active {
    font-weight: 700;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0.6;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    opacity: 1;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.03);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s linear;
}

.slide.active img {
    transform: scale(1);
}


.slider-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
    /* Hidden by default, shown if URL exists */
    overflow: hidden;
}

.hero-video-container.active {
    display: block;
}

.hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.lens-flare {
    position: absolute;
    top: 20%;
    left: 70%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    z-index: 5;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.4;
    animation: flareFloat 10s infinite alternate;
}

@keyframes flareFloat {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-30px, 20px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 80%, #050505 100%);
    z-index: 3;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    opacity: 0;
    /* Hidden initially to avoid flicker */
}

.hero h1 {
    font-size: clamp(3rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 0.8;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff 40%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.hero p {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: 12px;
    color: var(--accent-color);
    font-weight: 900;
    margin-bottom: 20px;
}

/* ─── Hero Offer Bar ─────────────────────────────────────────── */
.hero-offer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 108px;
    z-index: 15;
    /* sits above overlay (z-index:3) but below header (z-index:1000) */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(5, 5, 5, 0.6) 40%, #050505 100%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    backdrop-filter: blur(50px) saturate(180%);
    
    /* Subtle mask to fade in the effect */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
    
    display: flex;
    align-items: center;
    overflow: hidden;
}

.offer-bar-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.offer-label {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
}

.offer-badge {
    flex-shrink: 0;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 24px;
    white-space: nowrap;
    box-shadow: 0 0 14px var(--accent-glow);
    animation: pulseBadge 2.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

.offer-badge-img {
    height: auto;
    width: auto;
    max-height: 80px;
    vertical-align: middle;
    object-fit: contain;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 10px var(--accent-glow); }
    50%       { box-shadow: 0 0 22px rgba(255, 63, 5, 0.7); }
}

.offer-text {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-whatsapp-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.offer-whatsapp-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.offer-whatsapp-btn svg {
    flex-shrink: 0;
    color: #25D366; /* Specific WhatsApp green for visibility */
}

/* ─── Hero Bottom Fade (smooth transition to next section) ───── */
.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom, 
        rgba(5, 5, 5, 0) 0%, 
        rgba(5, 5, 5, 0.02) 40%, 
        rgba(5, 5, 5, 0.1) 70%, 
        rgba(5, 5, 5, 0.25) 100%); 
    z-index: 12;
    pointer-events: none;
}

/* Portfolio Grid */
.portfolio {
    padding: 80px 0;
    background-color: var(--bg-color);
    scroll-margin-top: 100px;
    position: relative;
    z-index: 1;
}

/* Blend the top of portfolio with the banner above */
.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #050505 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 5; /* Ensure titles are above the blend gradient (z-index: 2) */
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.project-card {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--secondary-bg);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}


/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    position: relative;
    height: 700px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    box-shadow: 0 20px 40px var(--accent-glow);
}

.exp-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 5px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 25px;
}

.about-text .lead {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    opacity: 1;
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: #000;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fila 2: Instagram + Facebook lado a lado */
.contact-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
    text-decoration: none;
    color: #fff;
    gap: 20px;
}

.contact-btn:hover {
    background: rgba(20, 20, 20, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: var(--transition-fast);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.btn-text {
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.85;
}

/* WhatsApp */
.whatsapp .btn-icon {
    color: #25D366;
}

.whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.2);
}

.whatsapp:hover .btn-icon {
    background: rgba(37, 211, 102, 0.12);
}

/* Instagram */
.instagram .btn-icon {
    color: #E4405F;
}

.instagram:hover {
    border-color: rgba(228, 64, 95, 0.5);
    box-shadow: 0 10px 40px rgba(228, 64, 95, 0.2);
}

.instagram:hover .btn-icon {
    background: rgba(228, 64, 95, 0.12);
}

/* Facebook */
.facebook .btn-icon {
    color: #1877F2;
}

.facebook:hover {
    border-color: rgba(24, 119, 242, 0.5);
    box-shadow: 0 10px 40px rgba(24, 119, 242, 0.2);
}

.facebook:hover .btn-icon {
    background: rgba(24, 119, 242, 0.12);
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.socials {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.socials a {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.5;
}

.socials a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.copyright {
    opacity: 0.3;
    font-size: 0.7rem;
    letter-spacing: 2px;
}


@media (max-width: 768px) {
    header {
        width: calc(100% - 20px);
        padding: 0 20px;
    }

    nav ul {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-images {
    position: relative;
    width: 200px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-images img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    /* Hidden initially, controlled by GSAP */
    object-fit: contain;
}

/* Gallery & Masonry Page */
.gallery-wrapper {
    padding: 180px 0 100px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 80px;
}

.gallery-header h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.gallery-header p {
    color: var(--accent-color);
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--secondary-bg);
    transition: transform 0.4s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.masonry-item:hover img {
    filter: brightness(1.1);
}

/* Lightbox Popup */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.close-lightbox:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

@media (max-width: 1100px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }

    .gallery-header h1 {
        font-size: 2.5rem;
    }
}
.masonry-item video, .masonry-item iframe {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.masonry-item:hover video, .masonry-item:hover iframe {
    transform: scale(1.02);
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}


.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.video-container {
    position: relative;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(33, 33, 33, 0.8);
    width: 68px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-play-btn svg {
    width: 32px;
    height: 32px;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-color, #ff0000); /* YouTube red or accent */
}

.video-container:hover .video-play-btn {
    color: #fff;
}

