/* Schiate Media - Premium Design System */

:root {
    --primary: #2563eb;
    --primary-light: rgba(37, 99, 235, 0.1);
    --background-light: #ffffff;
    --background-dark: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: inherit;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Softer, high-end shadow */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, height 0.3s ease;
}

header.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none; /* Prevent accidental clicks while hidden */
}

header.scrolled {
    height: 70px;
    background: rgba(15, 23, 42, 0.8); /* Semi-transparent dark slate */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

header:not(.scrolled) .logo-text {
    color: #ffffff; /* Explicitly white at the top of the dark hero */
}

.logo-text:hover {
    opacity: 0.8;
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

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

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #0d615a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 117, 109, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(15, 117, 109, 0.05);
}

/* Sections */
section {
    padding: 100px 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
    background: #050505; 
    z-index: 20; /* Ensure dark background covers the cursor blob */
}

/* Floating 3D Shapes (Automatez Style) */
.floating-shape {
    position: absolute;
    border-radius: 999px; /* Pill shape */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    z-index: 3;
    pointer-events: none;
    animation: floatShape 12s infinite ease-in-out alternate;
}

@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-30px) rotate(5deg) scale(1.02); }
}

/* Specific shape variations */
.shape-1 { width: 350px; height: 90px; top: 15%; left: -5%; transform: rotate(-15deg); }
.shape-2 { width: 250px; height: 70px; top: 25%; right: 5%; transform: rotate(12deg); animation-delay: -3s; animation-duration: 15s; }
.shape-3 { width: 450px; height: 110px; bottom: 10%; left: 15%; transform: rotate(-8deg); animation-delay: -5s; animation-duration: 18s; }
.shape-4 { width: 300px; height: 80px; bottom: 25%; right: -10%; transform: rotate(20deg); animation-delay: -7s; animation-duration: 14s; }

.hero-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center 30%; /* Focus more on the top/face of the video on wide screens */
}

@media (max-width: 768px) {
    .hero-bg video {
        object-position: center center; /* Default center on mobile where aspect ratio matches better */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Overlay removed */
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 4;
}

.hero-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #3b82f6; /* Brighter primary for visibility */
    text-transform: uppercase;
    letter-spacing: 0.6em;
    margin-bottom: 2rem;
    display: block;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-actions .btn {
    min-width: 220px;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}
/* The Challenge Section */
#problem {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('../assets/challenge-bg.png') center/cover no-repeat;
    color: #ffffff;
}

#problem .hero-tagline {
    color: #3b82f6;
}

#problem h2 {
    color: #ffffff;
}

#problem .section-desc {
    color: #cbd5e1;
}

#problem .problem-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#problem .problem-card h4 {
    color: #ffffff;
}

#problem .problem-card p {
    color: #94a3b8;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .problem-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .problem-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .problem-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
    .problem-card h4 {
        min-height: auto; /* No forced height when stacked 1-up on mobile */
    }
}

.problem-card {
    padding: 3rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.problem-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    flex-grow: 1;
}

.problem-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.2);
}

.problem-icon {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.problem-icon span {
    color: var(--primary);
    font-size: 2rem;
}

.problem-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.problem-card h4 {
    font-size: 1.5rem;
    line-height: 1.4;
    min-height: 6.3rem; /* Space for up to 3 lines of heading */
    margin-bottom: 1rem;
    color: #0f172a;
}

/* Services */
#services {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('../assets/solutions-bg.png') center/cover no-repeat;
    color: #ffffff;
}

#services .hero-tagline {
    color: #3b82f6;
}

#services h2 {
    color: #ffffff;
}

#services .section-desc {
    color: #cbd5e1;
}

#services .service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#services .service-card h4 {
    color: #ffffff;
}

#services .service-card p {
    color: #94a3b8;
}

.section-header {
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.divider-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .services-grid::-webkit-scrollbar {
        display: none;
    }
}


.service-card {
    padding: 3rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

/* Service cards equal height on mobile — MUST come after base rule */
@media (max-width: 768px) {
    .service-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        height: 380px;
        overflow: hidden;
    }
    .service-card h4 {
        min-height: auto;
        font-size: 1.25rem;
    }
    .service-card p {
        font-size: 0.9rem;
    }
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 100px;
    height: 100px;
    background-color: transparent;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.service-card h4 {
    font-size: 1.5rem;
    line-height: 1.4;
    min-height: 6.3rem; /* Space for up to 3 lines of heading */
    margin-bottom: 1rem;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-light);
    display: none;
}

@media (min-width: 1024px) {
    .process-grid::before {
        display: block;
    }
}

.process-step {
    position: relative;
    z-index: 1;
}

.step-number {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
    display: block;
}

.process-step h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* Dark Section */
.bg-dark {
    background-color: #0f172a;
    color: white;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

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

.feature-item i {
    color: var(--primary);
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 200px;
    padding: 2rem;
}

.bar {
    width: 6px;
    background-color: var(--primary);
    border-radius: 99px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { height: 20px; opacity: 0.3; }
    50% { height: 100%; opacity: 1; }
}

/* Portfolio */
.portfolio-grid {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.portfolio-grid::-webkit-scrollbar {
    height: 8px;
}

.portfolio-grid::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.portfolio-item {
    cursor: pointer;
    flex: 0 0 300px; /* Adjusted width for vertical videos to prevent excessive height */
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .portfolio-grid {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .portfolio-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.portfolio-media {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #f1f5f9;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .play-overlay {
    opacity: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #000;
}

.video-container.vertical {
    padding-bottom: 177.77%; /* 9:16 Aspect Ratio for Shorts */
}

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

.portfolio-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.portfolio-item span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* CTA Card */
.cta-card {
    padding: 6rem;
    text-align: center;
    border-radius: 4rem;
    margin-top: 4rem;
}

.cta-card h2 {
    font-size: 4rem;
    margin-bottom: 3rem;
    line-height: 1.1;
}

/* Footer */
footer {
    background-color: #050505;
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Dark theme border */
    position: relative;
    overflow: hidden;
    z-index: 20; /* Ensure dark background covers the cursor blob */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

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

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 2;
    }
}

footer h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    color: #ffffff;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 1rem;
}

footer ul li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
}

.footer-desc {
    color: #94a3b8;
}

/* UI Refinement Classes */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 4rem;
}

.voice-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.waveform-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.portfolio-play-icon {
    color: white;
    font-size: 4rem;
}

.btn-pill-lg {
    border-radius: 99px;
    padding: 1.5rem 3rem;
    font-size: 1.125rem;
}

.footer-logo-wrap {
    margin-bottom: 2rem;
    display: flex;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 2rem;
}

.footer-social-icon {
    font-size: 1.2rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-link {
    text-decoration: none;
    color: inherit;
}

.footer-bottom-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

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

    .hero-actions .btn {
        min-width: unset;
        width: 100%;
        justify-content: center;
    }

    .hero-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.4em;
        margin-bottom: 1.5rem;
    }



    
    .contact-card {
        padding: 3rem 1.5rem;
        border-radius: 2rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .cta-card {
        padding: 3rem 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 2.5rem;
    }

    /* Floating shapes smaller on mobile */
    .floating-shape {
        opacity: 0.5;
    }
    .shape-1 { width: 200px; height: 50px; }
    .shape-2 { width: 150px; height: 40px; }
    .shape-3 { width: 250px; height: 60px; }
    .shape-4 { width: 180px; height: 45px; }
}

/* Contact Section */
.contact-card {
    padding: 6rem;
    border-radius: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-card {
        grid-template-columns: 1fr 1.2fr;
        text-align: left;
    }
}

.contact-header h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Staggered Reveal Animation */
.reveal-init {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger Classes */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Interactive Hover States */
.service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(37, 99, 235, 0.3);
}

.portfolio-item {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

/* Button Shimmer Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn-primary:hover::after {
    left: 100%;
    opacity: 1;
}

/* Mouse Glow Effect */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    will-change: transform;
}

/* Update some specific colors that might need refinement */
.glass {
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.hero-bg {
    background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-outline {
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-outline:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Interactive Mesh Gradients */
.mesh-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: #ffffff;
}

.mesh-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15; /* Much more subtle for white background */
    transition: transform 0.1s ease-out;
}

.mesh-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.mesh-glow-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
}

.mesh-glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    top: 40%;
    left: 30%;
}

/* Cursor Gradient Blob */
#cursor-blob {
    width: 600px; /* Made slightly larger for better effect */
    height: 600px;
    background: radial-gradient(circle, rgba(147, 250, 165, 0.45) 0%, rgba(200, 166, 255, 0.4) 40%, rgba(255, 230, 160, 0.25) 80%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    position: fixed;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 1; /* Above body background, but below main (10) */
    filter: blur(80px);
    opacity: 0; /* Hidden initially */
    transition: opacity 0.5s ease; /* Let JS handle transform for smoothness */
    transform: translate(-50%, -50%); /* Base centering */
}

/* Ensure the blob floats beneath regular white-background content but text is legible */
main {
    position: relative;
    z-index: 10;
}

/* =========================================================================
   SCROLL-TO-TOP BUTTON
   ========================================================================= */
#scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top-btn:hover {
    background: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
}

#scroll-top-btn .material-symbols-outlined {
    font-size: 1.5rem;
}

/* =========================================================================
   PORTFOLIO SLIDER CONTROLS (Arrows + Dots)
   ========================================================================= */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.slider-arrow .material-symbols-outlined {
    font-size: 1.4rem;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.slider-dot:hover:not(.active) {
    background: rgba(37, 99, 235, 0.4);
    transform: scale(1.15);
}

/* =========================================================================
   RESPONSIVE — MOBILE POLISH
   ========================================================================= */

/* Hide scrollbar on portfolio for cleaner mobile look */
@media (max-width: 768px) {
    .portfolio-grid {
        scrollbar-width: none;
    }
    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }
}

/* Small mobile tweaks */
@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .hero-actions .btn {
        min-width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .problem-card,
    .service-card {
        padding: 2rem;
    }

    .problem-card h4,
    .service-card h4 {
        font-size: 1.25rem;
        min-height: auto;
    }

    .contact-card {
        padding: 2rem 1.25rem;
        border-radius: 1.5rem;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .btn-pill-lg {
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    .footer-grid {
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .slider-controls {
        gap: 0.5rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow .material-symbols-outlined {
        font-size: 1.1rem;
    }
}

/* Tablet landscape & small laptop */
@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-item {
        flex: 0 0 280px;
    }

    .contact-card {
        padding: 4rem 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Large desktop fine-tuning */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .portfolio-item {
        flex: 0 0 320px;
    }
}

/* Ensure nav links stay hidden on mobile, show hamburger area */
@media (max-width: 767px) {
    header .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .portfolio-info h4 {
        font-size: 1rem;
    }
}

