/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES: PORTFOLIO
   Theme: Premium Dark-Mode, Glassmorphism, Dynamic Gradients
   Fonts: Galano Grotesque (Local)
   ========================================================================== */

/* 1. FONT DECLARATIONS */
@font-face {
    font-family: 'Galano Grotesque';
    src: url('GalanoGrotesqueAlt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('GalanoGrotesqueAlt-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('GalanoGrotesqueAlt-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('GalanoGrotesqueAlt-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('GalanoGrotesque-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* 2. ROOT VARIABLES & TOKENS */
:root {
    --bg-base: #060608;
    --bg-surface: rgba(15, 15, 22, 0.6);
    --bg-surface-hover: rgba(25, 25, 35, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);
    
    --text-primary: #f4f4f7;
    --text-secondary: #9494a3;
    --text-muted: #626270;
    
    /* Elegant vibrant gradients based on Stranger Creative aesthetics */
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    
    --grad-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 50%, var(--accent-cyan) 100%);
    --grad-text: linear-gradient(135deg, #ffffff 30%, #a855f7 100%);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
    
    --font-sans: 'Galano Grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Customized Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

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

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Background grid detail for visual premium effect */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -2;
}

.bg-radial-blur {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
}

.bg-radial-blur-bottom {
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
}

/* Typography Utility */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism card utility */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-surface-hover);
}

/* 4. HEADER & NAVIGATION */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 6, 8, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(6, 6, 8, 0.85);
    border-bottom-color: var(--border-color);
}

header .container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span.dot {
    width: 8px;
    height: 8px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-smooth);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.btn-header {
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.btn-header:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* 5. HERO SECTION */
.hero {
    height: 100vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* Dynamic Tag */
.hero-tag {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: pulseGlow 3s infinite alternate;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    padding: 16px 36px;
    background: var(--grad-primary);
    color: white;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    padding: 16px 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator span.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

/* 6. CASE STUDY: CREDIEXITO */
.section-title-wrap {
    margin-bottom: 60px;
    text-align: center;
}

.section-tag {
    color: var(--accent-purple);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
}

h2.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.case-study-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.meta-item span.label {
    color: var(--text-muted);
    margin-right: 4px;
}

.case-study-content h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.case-study-content p.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Project Features details */
.project-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    background: var(--grad-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* INTERACTIVE PHONE SIMULATOR */
.phone-mockup-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-simulator {
    width: 320px;
    height: 640px;
    background: #000000;
    border-radius: 48px;
    padding: 12px;
    border: 4px solid #1a1a24;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        var(--shadow-glow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Speaker & Camera cutout (Dynamic Island Style) */
.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    background: #0e0e12;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.phone-screen img.active {
    opacity: 1;
}

/* Phone Controls underneath */
.phone-controls {
    margin-top: 32px;
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 100px;
    gap: 4px;
}

.control-tab {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: var(--transition-smooth);
}

.control-tab.active {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

/* CATEGORY CAROUSEL SECTION */
.carousel-outer-wrap {
    margin-top: 80px;
    position: relative;
}

.carousel-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.carousel-title-bar h4 {
    font-size: 1.5rem;
    font-weight: 800;
}

.carousel-nav-buttons {
    display: flex;
    gap: 8px;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.carousel-arrow:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.category-carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
    gap: 20px;
    padding: 10px 0 20px 0;
    scrollbar-width: none; /* Hide scrollbar on Firefox */
}

.category-carousel-viewport::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome */
}

.carousel-card {
    flex: 0 0 280px;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carousel-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card:hover .carousel-card-bg {
    transform: scale(1.1);
}

.carousel-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.carousel-card-info {
    position: relative;
    z-index: 3;
}

.carousel-card-info h5 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.carousel-card-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 7. MOTION & AUDIOVISUAL GALLERY */
.motion-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    color: var(--text-secondary);
}

.motion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.motion-card {
    height: 280px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.motion-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-card:hover video {
    transform: scale(1.05);
}

.motion-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 6, 8, 0.8) 0%, transparent 60%);
    z-index: 2;
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.motion-card:hover .motion-card-overlay {
    opacity: 0.9;
    background: linear-gradient(to top, rgba(6, 6, 8, 0.9) 0%, rgba(168, 85, 247, 0.2) 100%);
}

.motion-card-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 3;
    transition: var(--transition-smooth);
}

.motion-card-info h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.motion-card-info p {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 3;
    transition: var(--transition-smooth);
    transform: scale(0.8);
    opacity: 0;
}

.motion-card:hover .play-badge {
    opacity: 1;
    transform: scale(1);
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* 8. GRAPHIC DESIGN GALLERY */
.graphic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
}

.graphic-card {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.graphic-card.span-2 {
    grid-column: span 2;
}

.graphic-card.row-2 {
    grid-row: span 2;
}

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

.graphic-card:hover img {
    transform: scale(1.06);
}

/* Image Info Overlay */
.graphic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 8, 0.7);
    z-index: 2;
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.graphic-card:hover .graphic-overlay {
    opacity: 1;
}

.graphic-overlay-info h5 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.graphic-overlay-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.graphic-card:hover .graphic-overlay-info h5,
.graphic-card:hover .graphic-overlay-info p {
    transform: translateY(0);
}

/* 9. CONTACT & FOOTER */
.contact-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.contact-container p.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-contact svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn-contact.wsp {
    background: #25d366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-contact.wsp:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

.btn-contact.mail {
    background: var(--grad-primary);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.btn-contact.mail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.45);
}

/* Footer structure */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(6, 6, 8, 0.8);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
}

/* 10. MODAL LIGHTBOX FOR VIDEOS & IMAGES */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.lightbox-content video,
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    background: var(--accent-purple);
    transform: scale(1.1);
}

/* 11. KEYFRAME ANIMATIONS */
@keyframes scrollMouse {
    0% {
        opacity: 1;
        top: 6px;
    }
    50% {
        opacity: 0.3;
        top: 18px;
    }
    100% {
        opacity: 1;
        top: 6px;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
        border-color: rgba(168, 85, 247, 0.6);
    }
}

/* Scroll reveal utility classes for Intersection Observer */
.reveal-on-scroll {
    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);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .phone-mockup-wrapper {
        order: -1; /* Place phone simulator on top of text on tablets/mobile */
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .graphic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .graphic-card.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    h2.section-title {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(6, 6, 8, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid var(--border-color);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    nav a {
        font-size: 1.25rem;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .contact-container h2 {
        font-size: 2.5rem;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .graphic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    
    .graphic-card.row-2 {
        grid-row: span 1;
    }
}
