/* ============================================
   SOLUCIONAI — FULL STYLESHEET
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FBF9F6;
    color: #2D241E;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 64px;
    }
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .navbar-container {
    padding-top: 12px;
}

.liquid-glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08), 
                0 1px 1px rgba(0, 0, 0, 0.02);
    border-radius: 9999px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .liquid-glass-nav {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.12);
    padding: 8px 24px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 110;
}

.logo-icon-m {
    width: 32px;
    height: 26px;
    color: #000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-image-navbar {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-logo:hover .logo-icon-m,
.navbar-logo:hover .logo-image-navbar {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.04em;
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 36px;
}

@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.navbar-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .navbar-actions {
        display: flex;
    }
}

.nav-phone {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    padding: 10px 22px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    transition: all 0.3s ease;
}

.nav-phone:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
}

.nav-cta-btn {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #000;
    padding: 11px 24px;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta-btn:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hamburger */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 120;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-nav-link[data-index="0"] { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-link[data-index="1"] { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-link[data-index="2"] { transition-delay: 0.3s; }
.mobile-menu.open .mobile-nav-link[data-index="3"] { transition-delay: 0.4s; }

.mobile-nav-link:hover {
    color: #fff;
}

.mobile-nav-cta {
    margin-top: 16px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 36px;
    border-radius: 9999px;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 8s ease-out;
    filter: brightness(0.7);
}

.hero.in-view .hero-bg-img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
}

.hero-line-accent {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}


/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-strip {
    background: #0A0A0A;
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
}

.marquee-item {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.marquee-dot {
    color: rgba(255, 255, 255, 0.15);
    font-size: 6px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(45, 36, 30, 0.4);
    margin-bottom: 16px;
}

.section-label-dark {
    color: rgba(255, 255, 255, 0.4);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: #2D241E;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-title-dark {
    color: #fff;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(45, 36, 30, 0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.section-subtitle-dark {
    color: rgba(255, 255, 255, 0.5);
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: #ffffff;
    padding: 120px 0;
}

.section-header-left {
    text-align: left;
    margin-bottom: 64px;
    max-width: 800px;
}

.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.section-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #000;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.section-lead {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: #555555;
    line-height: 1.6;
    font-weight: 400;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.solution-card {
    position: relative;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #0c0c0c;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
}

.solution-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.solution-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .solution-bg img {
    transform: scale(1.08);
}

.solution-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .solution-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 25%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.solution-content {
    position: relative;
    z-index: 2;
    padding: 32px 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.solution-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.solution-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.solution-desc {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 95%;
}

.solution-price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.solution-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.solution-card:hover .solution-btn {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.solution-card:hover .solution-btn svg {
    stroke: #000;
    transform: translate(2px, -2px);
}


/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
    background: #0A0A0A;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    font-weight: 400;
}


/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: #0A0A0A;
    padding: 120px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.p-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}

.p-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(255, 255, 255, 0.03);
}

.p-browser {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-dots {
    display: flex;
    gap: 5px;
}

.p-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
}

.p-dots span:nth-child(1) { background: #ff5f56; }
.p-dots span:nth-child(2) { background: #ffbd2e; }
.p-dots span:nth-child(3) { background: #27c93f; }

.p-url {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
    font-family: monospace;
}

.p-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0d0d0d;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.p-media-iframe {
    width: 1280px;
    height: 800px;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    background: #ffffff;
    display: block;
    pointer-events: none;
    transform: scale(var(--iframe-scale, 0.3));
    transform-origin: top left;
    transition: opacity 0.3s ease, transform 0.1s linear;
}

.p-card:hover .p-media-iframe,
.p-card:focus-within .p-media-iframe {
    pointer-events: auto;
}

.p-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.p-cat {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    font-weight: 500;
}

.p-result {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #fff;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    flex: 1;
}

.p-result strong {
    color: #fff;
    font-weight: 600;
}

.p-link {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: color 0.3s ease;
}

.p-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.p-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.p-link:hover::after {
    transform: translate(2px, -2px) rotate(45deg);
}

.p-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-in;
}

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

/* Align media boundary for cards without browser headers to match web cards */
.p-card:not(:has(.p-browser)) .p-media {
    aspect-ratio: auto;
    height: 0;
    padding-top: calc(62.5% + 41px); /* 62.5% is 16:10 aspect ratio height, 41px is the browser mockup header height */
    position: relative;
}

.p-card:not(:has(.p-browser)) .p-project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
}

.portfolio-more {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* dedicated portfolio styling */
.portfolio-hero {
    padding: 180px 0 60px 0;
    text-align: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.portfolio-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.portfolio-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover, .filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.filter-btn:active {
    transform: scale(0.98);
}

.p-card.hidden {
    display: none !important;
}

/* Portfolio Details Modal */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.portfolio-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .modal-container {
        grid-template-columns: 1.1fr 0.9fr;
        overflow: hidden;
        max-height: 80vh;
    }
}

.portfolio-modal.open .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    font-size: 20px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.modal-media-col {
    background: #080808;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 320px;
    height: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .modal-media-col {
        height: 80vh;
        min-height: auto;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.modal-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-gallery-img.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    bottom: 24px;
    display: flex;
    gap: 12px;
    z-index: 11;
}

.gallery-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: #fff;
    color: #000;
}

.modal-info-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    height: 100%;
}

@media (min-width: 768px) {
    .modal-info-col {
        height: 80vh;
    }
}

.modal-project-cat {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.modal-project-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-meta-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.modal-meta-val {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.modal-desc-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.modal-desc-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-actions {
    margin-top: auto;
}


/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: #FBF9F6;
    padding: 120px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(45, 36, 30, 0.75);
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D241E;
}

.author-role {
    display: block;
    font-size: 0.8rem;
    color: rgba(45, 36, 30, 0.4);
    font-weight: 300;
}





/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: #F5F5F7;
    padding: 120px 0;
}

.contact-card-wrapper {
    background: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.12), 
                0 20px 40px -15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
    .contact-card-wrapper {
        grid-template-columns: 4fr 6fr;
        min-height: 640px;
    }
}

/* Left Panel (Dark) */
.contact-left-panel {
    background: #000000;
    color: #ffffff;
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 992px) {
    .contact-left-panel {
        padding: 64px;
        align-items: flex-start;
    }
}

.panel-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(to right, #ffffff 1px, transparent 1px),
        linear-gradient(to bottom, #ffffff 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 1;
    pointer-events: none;
}

.panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

@media (min-width: 992px) {
    .panel-content {
        text-align: left;
        align-items: flex-start;
    }
}

.panel-logo {
    width: 140px;
    height: auto;
    color: #ffffff;
    filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.1));
}

.panel-logo-icon {
    width: 100%;
    height: auto;
}

.logo-image-panel {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: invert(1) drop-shadow(0 10px 25px rgba(255, 255, 255, 0.15));
    mix-blend-mode: screen;
}

.panel-tagline {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.03em;
    max-width: 320px;
}

/* Right Panel (Light Form) */
.contact-right-panel {
    background: #ffffff;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-right-panel {
        padding: 56px 48px;
    }
}

@media (min-width: 992px) {
    .contact-right-panel {
        padding: 64px 80px;
    }
}

.form-main-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    line-height: 1.1;
}

/* Quick Contact Pills */
.quick-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.quick-pill {
    background: #000000;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background: #1a1a1a;
}

.pill-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Form Styles */
.project-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.custom-label {
    font-size: 11px;
    font-weight: 700;
    color: #a3a3a3;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.custom-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    background: #F8F9FA;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-input::placeholder {
    color: #a3a3a3;
}

.custom-input:focus {
    background: #ffffff;
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

/* Teléfono split prefix layout */
.phone-input-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
}

.phone-prefix-pill {
    background: #F8F9FA;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.phone-number-input {
    flex: 1;
}

/* Toggle Category Pills */
.toggle-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.toggle-pill {
    background: #F8F9FA;
    color: #4a4a4a;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-pill:hover {
    background: #eef0f2;
    color: #000000;
}

.toggle-pill.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Submit Button */
.custom-submit-btn {
    background: #000000;
    color: #ffffff;
    padding: 18px 36px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.custom-submit-btn:active {
    transform: scale(0.98);
}

.submit-arrow {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-submit-btn:hover .submit-arrow {
    transform: translate(2px, -2px);
}

.privacy-notice {
    font-size: 11px;
    color: #a3a3a3;
    text-align: center;
    margin-top: 14px;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0A0A0A;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.logo-image-footer {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: invert(1);
    mix-blend-mode: screen;
}

.footer-logo .logo-text {
    font-size: 18px;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    max-width: 300px;
    font-weight: 300;
}

.footer-heading {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-address {
    margin-top: 20px;
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-address p {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-address a {
    color: inherit;
    transition: color 0.3s ease;
}

.footer-address a:hover {
    color: #fff;
}

.footer-contact-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.footer-address p:hover .footer-contact-icon {
    color: #fff;
}

/* ============================================
   LOCAL COVERAGE (SEO Section)
   ============================================ */
.local-coverage {
    background: #0D0D0D;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .coverage-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.coverage-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.coverage-col:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.coverage-region {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    border-left: 3px solid #fff;
    padding-left: 12px;
    line-height: 1.2;
}

.coverage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coverage-list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.coverage-list li strong {
    color: #fff;
    font-weight: 600;
}

.coverage-list li:hover {
    color: rgba(255, 255, 255, 0.85);
}

.coverage-note {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 50px;
}

.coverage-note a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.coverage-note a:hover {
    border-color: #fff;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade-up[data-delay="0"] { transition-delay: 0s; }
.anim-fade-up[data-delay="1"] { transition-delay: 0.1s; }
.anim-fade-up[data-delay="2"] { transition-delay: 0.2s; }
.anim-fade-up[data-delay="3"] { transition-delay: 0.3s; }
.anim-fade-up[data-delay="4"] { transition-delay: 0.4s; }


/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: #000;
    color: #fff;
}


/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .services {
        padding: 80px 0;
    }

    .projects {
        padding: 80px 0;
    }

    .testimonials {
        padding: 80px 0;
    }


    .contact {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .stats-strip {
        padding: 60px 0;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}

/* ==========================================================================
   PORTFOLIO LIGHTBOX STYLING (IMAGE EXPANSION)
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005; /* Se muestra por encima del details modal (9999) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10010;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}
