/* 
   A&C Digital Studio - Global Stylesheet
   Premium Glassmorphism Dark Theme
*/

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

:root {
    --bg-app: #CAF0F8;
    --bg-card: rgba(255, 255, 255, 0.45);
    --bg-card-hover: rgba(144, 224, 239, 0.35);
    
    --text-primary: #023E8A;
    --text-secondary: #005F8F;
    --text-muted: #497B9B;
    
    --primary: #0077B6; /* Ocean Blue */
    --primary-glow: rgba(0, 119, 182, 0.25);
    --secondary: #023E8A; /* Dark Blue */
    --secondary-glow: rgba(2, 62, 138, 0.2);
    --accent: #90E0EF; /* Soft Cyan */
    
    --gradient-primary: linear-gradient(135deg, #023E8A 0%, #0077B6 100%);
    --gradient-purple: linear-gradient(135deg, #0077B6 0%, #90E0EF 100%);
    --gradient-app: linear-gradient(180deg, #CAF0F8 0%, #E0F7FA 100%);
    
    --border-glass: rgba(2, 62, 138, 0.12);
    --border-hover: rgba(2, 62, 138, 0.25);
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-app);
    background-image: var(--gradient-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Background Glowing Accents */
.glow-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}
.glow-blue {
    background: var(--primary);
    top: 10%;
    left: -10%;
}
.glow-green {
    background: var(--secondary);
    bottom: 20%;
    right: -10%;
}
.glow-purple {
    background: var(--accent);
    top: 50%;
    left: 40%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
h2 { font-size: clamp(1.6rem, 4vw + 0.8rem, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw + 0.5rem, 1.5rem); color: var(--text-primary); }
p { margin-bottom: 1.5rem; color: var(--text-secondary); font-size: clamp(0.95rem, 1vw + 0.8rem, 1.05rem); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--secondary);
}

/* Navigation Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #023E8A;
    border-bottom: 1px solid rgba(144, 224, 239, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

header .logo-link img.logo-icon {
    filter: brightness(0) invert(1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    max-width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
}

.logo-link img.logo-icon {
    height: 65px;
    width: auto;
    object-fit: contain;
}

nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #CAF0F8;
    border-bottom: 1px solid var(--border-glass);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(2, 62, 138, 0.1);
    z-index: 1001;
}
nav.active {
    display: block;
}
nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.5rem;
    align-items: stretch;
}
nav a {
    display: block;
    padding: 0.75rem 1rem;
    min-height: 48px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
nav a:hover {
    color: var(--text-primary);
    background-color: rgba(0, 119, 182, 0.06);
    padding-left: 1.5rem;
}
nav a.active {
    color: var(--text-primary);
    background-color: rgba(0, 119, 182, 0.12);
    padding-left: 1.5rem;
    font-weight: 600;
}

/* Header Lang Toggles & Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(144, 224, 239, 0.2);
    border-radius: 20px;
    padding: 2px;
}

.lang-opt {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: #CAF0F8;
    cursor: pointer;
    transition: var(--transition);
}

.lang-opt.active {
    background: var(--primary);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.45);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(144, 224, 239, 0.3);
    border-color: var(--border-hover);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

.hero-section {
    padding: 160px 0 100px 0;
    display: flex;
    align-items: center;
    min-height: 90vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.section-title p {
    max-width: 600px;
    margin: 0.5rem auto 0 auto;
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px rgba(2, 62, 138, 0.08), 0 0 30px var(--primary-glow);
}

/* Layout Grids */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

/* Base style for top-level inner page content sections */
section.container {
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
}
.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: var(--transition);
}

/* Footer styling */
/* Tech Canvas Footer */
footer {
    position: relative;
    background: #011A3A; /* Extremely deep blue, almost black */
    overflow: hidden;
    padding: 80px 0 30px 0;
    margin-top: 50px;
    z-index: 1;
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Ambient Aurora & Micro-Dot Matrix styles */
.footer-ambient-bg {
    background-image: radial-gradient(rgba(202, 240, 248, 0.05) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    background-color: #011A3A;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aurora-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(144, 224, 239, 0.7) 0%, rgba(0, 119, 182, 0.25) 60%, rgba(0, 0, 0, 0) 100%);
    filter: blur(120px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.footer-content {
    position: relative;
    z-index: 2; /* Situate above the canvas */
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col .footer-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: #90E0EF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.brand-col .brand-text {
    font-size: 0.95rem;
    color: #CAF0F8;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(144, 224, 239, 0.2);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    font-size: 0.95rem;
    color: #CAF0F8;
}

.footer-links a {
    color: #CAF0F8;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #0077B6 !important; /* Smooth color change to accent ocean blue */
}

.connect-links .location-info {
    font-style: italic;
    color: #90E0EF;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    color: #90E0EF;
    font-size: 0.9rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo img.footer-logo-img {
    height: 220px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-top: -60px;
    margin-bottom: -60px;
}

/* Media Queries for Footer Grid */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-grid .brand-col {
        grid-column: span 2;
    }
    
    .footer-grid .footer-col:nth-child(4) {
        grid-column: span 2;
    }
}

/* Feature Specific Styles */
.hero-section {
    padding: 100px 0 60px 0;
    display: flex;
    align-items: center;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Hide code editor on mobile — prevents horizontal overflow */
.hero-img-container {
    display: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
}


.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(2, 62, 138, 0.15);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}
.hero-buttons .btn {
    width: 100%;
}

/* Service Card List */
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 119, 182, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(0, 119, 182, 0.15);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    transition: var(--transition);
}

/* Portfolio grid & items */
.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-glass);
}

.portfolio-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.portfolio-metrics {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.metric-item {
    flex: 1;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Testimonial items */
.testimonial-stars {
    color: #FBBF24;
    margin-bottom: 1rem;
}
.testimonial-quote {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #90E0EF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.author-info h4 {
    margin-bottom: 0.1rem;
    font-size: 1rem;
}
.author-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Contact form & Info card */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}
.form-control {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 119, 182, 0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Blog layouts */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card-content {
    flex-grow: 1;
}
.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}
.blog-card-title {
    margin-bottom: 0.75rem;
}
.blog-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

/* Article Page Layout */
.article-header {
    padding: 100px 0 40px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .article-header {
        padding: 140px 0 40px 0;
    }
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}
.article-body h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-glass);
}
.article-body h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.article-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(0, 119, 182, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.article-body img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--border-glass);
}

/* ==========================================
   Responsive Breakpoints (Mobile-First)
   ========================================== */

/* Tablet Viewport */
@media (min-width: 768px) {
    /* Only grid-3 and grid-4 go to 2 columns at tablet.
       grid-2 stays 1 column until desktop to avoid hero overflow. */
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding: 140px 0 80px 0;
        min-height: 80vh;
    }

    .hero-content {
        text-align: left;
    }

    .hero-buttons {
        flex-direction: row;
        width: auto;
        justify-content: flex-start;
    }

    .hero-buttons .btn {
        width: auto;
    }

    .hero-img-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2.5rem;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Desktop Viewport */
@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    section.container {
        padding-top: 140px;
        padding-bottom: 100px;
    }
    
    .hero-section {
        padding: 160px 0 100px 0;
        min-height: 90vh;
    }
    
    /* Layout hero into 2 columns on desktop */
    .hero-section .grid-2 {
        align-items: center;
    }
    
    /* Revert menu toggle and display inline nav */
    .menu-toggle {
        display: none;
    }
    
    nav {
        display: block;
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        width: auto;
    }
    
    nav ul {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }
    
    nav a {
        padding: 0.5rem 1.25rem;
        min-height: auto;
        font-size: 0.95rem;
        border-radius: 20px;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #CAF0F8;
    }
    
    nav a:hover {
        color: #FFFFFF;
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
        padding-left: 1.25rem;
    }
    
    nav a.active {
        color: #FFFFFF;
        background-color: var(--primary);
        font-weight: 600;
        padding-left: 1.25rem;
    }
    
    nav a::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 3rem;
    }
}

/* Ultra-wide / 4K Monitors */
@media (min-width: 1440px) {
    :root {
        --container-max: 1400px;
    }
    body {
        font-size: 1.1rem;
    }
}

/* Hero Dark Background and Interactive Editor */
.hero-section {
    background: linear-gradient(135deg, #010813 0%, #023E8A 50%, #0077B6 100%);
    position: relative;
    overflow: hidden;
}

/* Override Hero text colors for readability on dark background */
.hero-section .hero-content h1 {
    background: linear-gradient(135deg, #CAF0F8 0%, #90E0EF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .hero-content p {
    color: #E0F7FA;
}

.hero-section .hero-content strong {
    color: #FFFFFF;
}

.hero-section .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.hero-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.08);
}

/* Code Editor Window */
.code-editor-window {
    width: 100%;
    max-width: 550px;
    background: #010813;
    border: 1px solid rgba(144, 224, 239, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(2, 62, 138, 0.25);
    font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
    text-align: left;
    animation: floatAnimation 6s ease-in-out infinite;
}

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

/* Window Header Bar */
.editor-header {
    background: #03122b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(144, 224, 239, 0.1);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-close { background: #FF5F56; }
.dot-minimize { background: #FFBD2E; }
.dot-expand { background: #27C93F; }

.editor-title {
    color: #90E0EF;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Window Content Body */
.editor-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    min-height: 310px;
}

.code-output {
    margin: 0;
    color: #FFFFFF;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Syntax Highlighting Palettes */
.syntax-tag { color: #CAF0F8; }        /* HTML Tags & Variables */
.syntax-keyword { color: #CAF0F8; }    /* JS Keywords */
.syntax-class { color: #90E0EF; }      /* Classes */
.syntax-method { color: #90E0EF; }     /* Functions/Methods */
.syntax-attr { color: #90E0EF; }       /* Attributes */
.syntax-str { color: #0077B6; }        /* Strings */
.syntax-punctuation { color: #E2E8F0; }/* Operators/Punctuation */
.syntax-plain { color: #FFFFFF; }      /* Plain Text */

/* Blinking Cursor */
.cursor {
    color: #90E0EF;
    font-weight: bold;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================
   CRO Homepage Redesign Sections
   ========================================== */

/* Buttons - Outline Option */
.btn-outline {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Trust Bar Section */
.trust-bar-section {
    background-color: #CAF0F8;
    border-bottom: 1px solid rgba(144, 224, 239, 0.4);
    padding: 1.5rem 0;
    text-align: center;
}

.trust-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .trust-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
}

.trust-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.trust-logo-item {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.trust-logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.trust-logo-item svg {
    height: 28px;
    width: auto;
    fill: currentColor;
}

/* Service Grid & Cards */
.services-grid-section {
    padding: 80px 0;
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.service-grid-card {
    background: rgba(202, 240, 248, 0.4);
    border: 1px solid rgba(144, 224, 239, 0.5);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-grid-card .service-icon {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-grid-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-grid-card p {
    color: #1E293B; /* Gris muy oscuro for legibility and CRO guidelines */
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-grid-card .card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-grid-card .card-link:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.service-grid-card:hover {
    transform: translateY(-8px);
    background: #CAF0F8;
    border-color: #90E0EF;
    box-shadow: 0 15px 35px rgba(2, 62, 138, 0.08), 0 0 25px rgba(144, 224, 239, 0.45);
}

/* Metrics Section */
.metrics-section {
    background: #CAF0F8;
    border-top: 1px solid rgba(144, 224, 239, 0.4);
    border-bottom: 1px solid rgba(144, 224, 239, 0.4);
    padding: 60px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
    text-align: center;
}

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

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-lbl {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B; /* Gris muy oscuro for paragraph text/labels */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFFFFF;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #25D366;
    border-radius: 50%;
    opacity: 0;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Mobile Header & Drawer Navigation Optimization */
@media (max-width: 1023px) {
    .nav-actions .btn {
        display: none !important;
    }

    header {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    .logo-link {
        order: 1;
        flex-shrink: 0;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    .menu-toggle {
        order: 3;
        flex-shrink: 0;
    }

    /* WhatsApp slightly smaller on very small screens */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 16px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Mobile drawer menu CTA styling */
    .nav-mobile-cta {
        display: block;
        width: 100%;
        padding: 0 1rem;
        margin-top: 1rem;
    }

    .nav-mobile-cta a.btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        background: var(--gradient-primary) !important;
        color: #FFFFFF !important;
        border-radius: 10px;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
        padding: 0.75rem 1rem !important;
    }
}

@media (min-width: 1024px) {
    .nav-mobile-cta {
        display: none !important;
    }
}

/* ==========================================
   Refactored Utility & Layout Classes (Audit Cleanup)
   ========================================== */

/* Team photo in nosotros.html / about-us.html */
.team-photo {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
}

/* Action Banner in servicios.html / services.html / testimonios.html */
.action-banner-block {
    text-align: center;
    margin-top: 3rem;
}
.action-banner-block-purple {
    text-align: center;
    margin-top: 4rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 50px;
}
.action-banner-block-purple h2 {
    color: white;
}
.action-banner-block-purple p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.action-banner-block h2 {
    margin-bottom: 1rem;
}
.action-banner-block p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* CTA card in portafolio.html / portfolio.html */
.portfolio-cta-card {
    text-align: center;
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
}
.portfolio-cta-card p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* FAQ Layout */
.faq-container-card {
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
}
.faq-container-card h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.faq-question {
    font-size: 1.15rem;
    color: var(--secondary);
}

/* General Layout Utilities */
.align-items-center {
    align-items: center;
}
.align-items-start {
    align-items: flex-start;
}
.mb-4rem {
    margin-bottom: 4rem;
}
.display-flex-column {
    display: flex;
    flex-direction: column;
}
.flex-column-gap-2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.flex-column-gap-1-5 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.flex-justify-center-gap-1 {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.mt-1-5rem {
    margin-top: 1.5rem;
}
.margin-0 {
    margin: 0;
}
.font-0-95rem {
    font-size: 0.95rem;
}
.font-0-9rem {
    font-size: 0.9rem;
}
.width-100-padding-1 {
    width: 100%;
    padding: 1rem;
}
.border-top-glass {
    border: 0;
    border-top: 1px solid var(--border-glass);
}
.contact-phone-item {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #CAF0F8;
}
.services-heading {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

/* ==========================================
   Page Transitions Easing (Vercel/Apple Feel)
   ========================================== */
main {
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: opacity, transform;
}

main.is-leaving {
    transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: scale(0.98);
}

main.is-entering {
    opacity: 0;
    transform: translateY(20px);
}

/* ==========================================
   Premium Custom Modal — Contact Form
   ========================================== */

/* Overlay backdrop */
.ac-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 28, 62, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}
.ac-modal-overlay.ac-modal-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal card */
.ac-modal-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0faff 100%);
    border: 1px solid rgba(0, 119, 182, 0.18);
    border-radius: 24px;
    box-shadow:
        0 32px 64px rgba(2, 28, 62, 0.35),
        0 0 0 1px rgba(255,255,255,0.6) inset;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    transform: scale(0.88) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
    position: relative;
}
.ac-modal-overlay.ac-modal-visible .ac-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Icon circle */
.ac-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.ac-modal-icon.success {
    background: linear-gradient(135deg, #023E8A 0%, #0077B6 100%);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.35);
}
.ac-modal-icon.error {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.ac-modal-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Greeting tag */
.ac-modal-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,119,182,0.1) 0%, rgba(2,62,138,0.1) 100%);
    border: 1px solid rgba(0,119,182,0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* Title */
.ac-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: var(--secondary);
}

/* Body text */
.ac-modal-body {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}
.ac-modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Close / CTA button */
.ac-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.35);
    letter-spacing: 0.02em;
    width: 100%;
}
.ac-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.45);
}
.ac-modal-btn.error-btn {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

/* Decorative dots */
.ac-modal-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
}

@media (max-width: 480px) {
    .ac-modal-card {
        padding: 2rem 1.5rem 1.75rem;
    }
    .ac-modal-title {
        font-size: 1.25rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
}

/* Responsive adjustments for background glows */
@media (max-width: 767px) {
    .glow-effect {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }
}

/* Call to Action Card Section */
.cta-card-section {
    background: var(--gradient-primary);
    text-align: center;
    padding: 60px 1.5rem;
    border-radius: 24px;
    margin: 40px 1.5rem;
}

@media (min-width: 1100px) {
    .cta-card-section {
        margin: 40px auto;
        max-width: 1100px;
        padding: 60px 0;
    }
}

/* ==========================================================================
   Scrollytelling Hero — 5-Scene Pinned Experience
   Brand palette: #010813 bg | #023E8A secondary | #0077B6 primary | #90E0EF accent | #CAF0F8 highlight
   ========================================================================== */

/* ── Outer scroll driver (creates scroll travel distance) ─────────────── */
.hero-scrollytelling {
    padding: 0 !important;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Sticky viewport canvas (stays fixed while user scrolls) ─────────── */
.hero-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #010813;
    z-index: 2;
}

/* ── Particle + grid background canvas ──────────────────────────────── */
#hero-particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* ── Custom cursor glow ─────────────────────────────────────────────── */
.hero-cursor {
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(144,224,239,0.28) 0%, transparent 70%);
    border: 1px solid rgba(144,224,239,0.38);
    pointer-events: none;
    z-index: 100;
    will-change: transform;
    transform: translate3d(-300px,-300px,0);
    transition: width 0.2s ease, height 0.2s ease;
}
.hero-cursor.cur-expand {
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(0,119,182,0.22) 0%, transparent 70%);
}

/* ── Scene base ─────────────────────────────────────────────────────── */
.hero-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 3rem 2rem 3rem; /* top: 70px header + 10px breathing room */
    box-sizing: border-box;
    z-index: 3;
}

/* ── Override global heading styles inside hero ─────────────────────── */
.hero-scrollytelling h1,
.hero-scrollytelling h2,
.hero-scrollytelling h3 {
    background: none !important;
    -webkit-text-fill-color: inherit !important;
    color: #FFFFFF !important;
}
.hero-scrollytelling p {
    color: rgba(202,240,248,0.78);
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   SHARED SCENE ELEMENTS
   ══════════════════════════════════════════════════════════════════════ */
.scene-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 1.1rem;
    border: 1px solid rgba(144,224,239,0.28);
    border-radius: 100px;
    background: rgba(0,119,182,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #CAF0F8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.scene-h1 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5.5vw + 1rem, 5.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    perspective: 900px;
}

.scene-h1 .word {
    display: inline-block;
    margin-right: 0.22em;
    will-change: transform, opacity;
}

.scene-h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(1.7rem, 3.5vw + 0.5rem, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.scene-sub {
    font-size: clamp(0.98rem, 1.3vw + 0.4rem, 1.22rem);
    color: rgba(202,240,248,0.78);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

/* ── Buttons inside hero ─────────────────────────────────────────────── */
.scene-ctas {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scrollytelling .btn {
    min-height: 52px;
    padding: 0.88rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.hero-scrollytelling .btn-primary {
    background: linear-gradient(135deg, #023E8A 0%, #0077B6 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 28px rgba(0,119,182,0.42),
                0 0 0 1px rgba(144,224,239,0.12) inset;
}
.hero-scrollytelling .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0,119,182,0.65),
                0 0 0 1px rgba(144,224,239,0.2) inset;
    color: #FFFFFF !important;
}

.hero-scrollytelling .btn-outline {
    background: rgba(255,255,255,0.07) !important;
    color: #CAF0F8 !important;
    border: 1.5px solid rgba(144,224,239,0.32) !important;
    backdrop-filter: blur(10px);
}
.hero-scrollytelling .btn-outline:hover {
    background: rgba(144,224,239,0.12) !important;
    border-color: #CAF0F8 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════
   SCENE 1 — The Awakening
   ══════════════════════════════════════════════════════════════════════ */
.scene-1-content {
    text-align: center;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Subtle radial glow behind scene 1 headline */
#scene-1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(0,119,182,0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
#scene-1 > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .hero-scene {
        padding: 80px 1.5rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .scene-h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .scene-sub { font-size: 0.95rem; }
    .scene-ctas {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .hero-scrollytelling .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ── Accessibility: disable motion-heavy animations ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-cursor { display: none; }
}


.hero-asymmetric {
    background-color: #023E8A; /* Strictly brand dark blue background */
    width: 100%;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
}

/* Desktop Viewport (Split Layout 50/50) */
@media (min-width: 1024px) {
    .hero-asymmetric {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .hero-left-col {
        position: sticky;
        top: 15vh;
        height: 85vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 4rem 0 8%; /* Align with site brand spacing */
        box-sizing: border-box;
        z-index: 10;
        align-self: start; /* Enable sticky scroll within grid track */
    }

    .hero-right-col {
        padding: 25vh 8% 25vh 4rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 5rem; /* Large spacing between cards */
        z-index: 5;
    }
}

/* Mobile & Tablet Viewport (Normal Flow Layout) */
@media (max-width: 1023px) {
    .hero-asymmetric {
        padding: 100px 1.5rem 60px 1.5rem;
    }

    .hero-left-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        margin-bottom: 4rem;
    }

    .hero-right-col {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
}

/* Content Element Styling */
.hero-left-col h1 {
    font-size: clamp(2.2rem, 5vw + 0.8rem, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    background: none;
    -webkit-text-fill-color: #FFFFFF;
}

.hero-left-col p {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.35rem);
    color: #CAF0F8;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.hero-left-col .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.hero-left-col .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-left-col .btn-primary {
    background: #0077B6; /* Ocean Blue */
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.35);
}

.hero-left-col .btn-primary:hover {
    background: #0288d1;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.55);
}

.hero-left-col .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.hero-left-col .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .hero-left-col .hero-buttons {
        flex-direction: row;
        width: auto;
        gap: 1.5rem;
    }

    .hero-left-col .btn {
        width: 220px;
    }
}

/* Glassmorphic Cards Styling */
.hero-asymmetric .glass-card {
    background: rgba(202, 240, 248, 0.05); /* Cian Hyper-transparent */
    border: 1px solid rgba(144, 224, 239, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-asymmetric .glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(144, 224, 239, 0.35);
    background: rgba(202, 240, 248, 0.09);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.hero-asymmetric .glass-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    background: none;
    -webkit-text-fill-color: #FFFFFF;
}

.hero-asymmetric .glass-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #CAF0F8;
    margin-bottom: 0;
}

