/* =============================================================
   WebGL Canvas – Stone / 3D Particle Effect Background
   (Ported from phase-1-particle-effect branch)
   ============================================================= */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;            /* behind all page content */
    pointer-events: none;   /* clicks pass through */
    background-color: transparent;
}


/* =========================================
   CSS Variables & Core System
   ========================================= */
:root {
    /* Color Palette */
    --clr-primary: #480A79;
    --clr-primary-light: #6A14B0;
    --clr-primary-dark: #2F0552;
    --clr-primary-soft: rgba(72, 10, 121, 0.05);
    --clr-primary-glow: rgba(72, 10, 121, 0.15);
    
    --clr-text-main: #0B0414; /* Premium obsidian-purple (ultra-high contrast headings) */
    --clr-text-muted: #453A52; /* Premium slate-charcoal purple (extremely legible body copy) */
    
    --clr-bg-main: #FFFFFF;
    --clr-bg-alt: #F9F7FB; /* Premium light purple/grey tint */
    --clr-white: #FFFFFF;
    --clr-border: rgba(72, 10, 121, 0.08);
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Borders & Corners */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    
    /* Elegant Shadow System */
    --shadow-sm: 0 4px 10px rgba(72, 10, 121, 0.02);
    --shadow-md: 0 10px 30px rgba(72, 10, 121, 0.04);
    --shadow-lg: 0 20px 50px rgba(72, 10, 121, 0.08);
    
    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Document Defaults
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* =========================================
   Typography & Typography Utilities
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 { 
    font-size: clamp(2.8rem, 6vw, 4.3rem); 
    font-weight: 800; /* Extremely bold, modern premium look */
    line-height: 1.1; 
    letter-spacing: -0.035em; /* Tight kerning for impact */
}

h2 { 
    font-size: clamp(1.9rem, 3.8vw, 2.8rem); 
    font-weight: 800; 
    line-height: 1.15; 
    letter-spacing: -0.025em; 
}

h3 { 
    font-size: clamp(1.35rem, 2.5vw, 1.75rem); 
    font-weight: 700; 
    line-height: 1.25; 
    letter-spacing: -0.015em; 
}

h4 { 
    font-size: 1.2rem; 
    font-weight: 600; 
    line-height: 1.3; 
    letter-spacing: -0.01em; 
}

p {
    font-size: 1.0625rem; /* Optimum body copy text size */
    line-height: 1.65; /* Comfortable spacing for light backgrounds */
    font-weight: 500; /* Increased to Medium for extra readability over dynamic bg */
    color: var(--clr-text-muted);
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
}


/* =========================================
   General Helper Classes
   ========================================= */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-alt {
    background-color: transparent; /* Changed to transparent so the 3D stone shows through in these sections */
    position: relative;
}



.section-header {
    max-width: 650px;
    margin-bottom: 70px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.125rem;
    margin-top: 12px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    border-radius: 100px;
    font-weight: 700; /* Extra crisp rendering */
    font-size: 0.75rem; /* Slightly smaller for premium look */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.12em; /* Modern tracking standard */
    border: 1px solid rgba(72, 10, 121, 0.06);
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.text-underline { text-decoration: underline; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 6px 20px rgba(72, 10, 121, 0.25);
}

.btn-primary:hover {
    background-color: var(--clr-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(72, 10, 121, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 10, 121, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(72, 10, 121, 0.05);
    transition: var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: var(--transition-normal);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: inline-flex;
    align-items: center;
    width: 140px;
    height: 62px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: transparent;
    transition: var(--transition-normal);
}

.header.scrolled .logo {
    height: 52px;
    width: 118px;
}

.header.scrolled .logo img {
    width: 100%;
    height: 100%;
}

.nav-list {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-text-main);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--clr-text-main);
    color: var(--clr-white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    transform: scale(1.05);
    background-color: var(--clr-primary);
}

/* Mobile Dropdown Menu Drawer */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-nav-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-text-main);
    display: block;
}

.mobile-nav-link:hover {
    color: var(--clr-primary);
}

/* Hero video background — REMOVED (video disabled by user) */
/* .hero-video-bg { ... } */

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    /* Hero is transparent — lets the WebGL stone canvas show as background */
    background-color: transparent;
}

.hero-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(72, 10, 121, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 20% 80%, rgba(106, 20, 176, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(72, 10, 121, 0.15);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 72px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    border-top: 1px solid var(--clr-border);
    padding-top: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--clr-primary);
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.75rem;
    color: var(--clr-primary);
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* =========================================
   2. About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.65;
}

.about-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.mission-vision-box {
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition-normal);
}

.mission-vision-box.mission {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: var(--shadow-md);
}

.mission-vision-box.mission p {
    color: rgba(255, 255, 255, 0.85);
}

.mission-vision-box.mission .box-title {
    color: var(--clr-white);
}

.mission-vision-box.vision {
    background-color: var(--clr-white);
    border: 2px solid var(--clr-primary);
    color: var(--clr-text-main);
}

.mission-vision-box.vision p {
    color: var(--clr-text-muted);
}

.box-icon {
    font-size: 1.75rem;
    background: rgba(255,255,255,0.15);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.mission-vision-box.vision .box-icon {
    background: var(--clr-primary-soft);
    color: var(--clr-primary);
}

.box-title {
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.box-text {
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   3. Services Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 44px 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(72, 10, 121, 0.03);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(72, 10, 121, 0.12);
}

/* Add custom purple bar on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--clr-primary);
    transition: var(--transition-normal);
}

.service-card:hover::before {
    width: 100%;
}

.service-icon-bg {
    width: 64px;
    height: 64px;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon-bg {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.service-icon {
    font-size: 2rem;
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-card-desc {
    font-size: 0.95rem;
    margin: 0 0 20px;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--clr-border);
    padding-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.service-features li i {
    color: var(--clr-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* =========================================
   5. Why Choose Us Section
   ========================================= */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: flex-start;
}

.why-desc {
    font-size: 1.05rem;
    line-height: 1.7;
}

.why-cards-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--clr-border);
}

.why-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.why-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-card-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.why-card-text {
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   6. Our Process Timeline
   ========================================= */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    position: relative;
    margin-top: 40px;
}

/* Timeline Connector Line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 7%;
    right: 7%;
    height: 2px;
    background-image: linear-gradient(to right, var(--clr-primary) 50%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 12px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    aspect-ratio: 1 / 1;
    flex: 0 0 50px;
    border-radius: 50%;
    background-color: var(--clr-white);
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.timeline-step:hover .step-num {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   4. Portfolio Section
   ========================================= */
/* Portfolio Infinite Card Scroll Wrapper */
.portfolio-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding: 30px 0;
}

/* Glass fading cover effect on edges of portfolio */
.portfolio-marquee::before,
.portfolio-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.portfolio-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--clr-bg-main) 0%, rgba(255,255,255,0) 100%);
}

.portfolio-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--clr-bg-main) 0%, rgba(255,255,255,0) 100%);
}

.portfolio-marquee-track {
    display: inline-flex;
    animation: portfolioScroll 32s linear infinite;
    gap: 30px;
}

/* Pause scroll when user hovers over any card so they can click/view it */
.portfolio-marquee-track:hover {
    animation-play-state: paused;
}

.portfolio-item {
    display: inline-block;
    flex-shrink: 0;
    width: 330px; /* Maintains the exact grid card size shape */
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: 
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        border-color 0.4s ease;
    will-change: transform;
    border: 1px solid rgba(72, 10, 121, 0.08);
    background-color: var(--clr-white);

    /* Soft baseline shadow */
    box-shadow: 
        0 4px 20px rgba(72, 10, 121, 0.03),
        0 2px 8px rgba(72, 10, 121, 0.02);
}

.portfolio-item:hover {
    /* Sleek upward float with a subtle, premium 3D tilt perspective */
    transform: translateY(-10px) scale(1.02) rotateX(2deg);
    /* 
     * Holographic Glow Shadow:
     * Combines deep purple shadow with bright cyan & magenta highlights
     * to make the card feel like it's emitting colored light.
     */
    box-shadow: 
        0 20px 40px rgba(72, 10, 121, 0.12), 
        0 1px 20px rgba(0, 255, 255, 0.20), /* Cyan light beam */
        0 1px 25px rgba(255, 0, 255, 0.15), /* Magenta light beam */
        0 0 0 1px rgba(106, 20, 176, 0.2);  /* Active border ring */
    border-color: rgba(106, 20, 176, 0.3);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    /* Vignette shade inside the wrapper */
    background: radial-gradient(circle, transparent 60%, rgba(72, 10, 121, 0.03) 100%);
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Slow, cinematic image transition */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    display: none;
}

.portfolio-item:hover .portfolio-img-wrapper img {
    /* Gentle clean zoom without heavy distortions */
    transform: scale(1.05);
}

.portfolio-cat {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-bottom: 6px;
}

.portfolio-item-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-white);
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

@keyframes portfolioScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); } /* Adjust for gap offsets */
}

.portfolio-btn {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.portfolio-btn:hover {
    background-color: var(--clr-primary-light);
    transform: scale(1.05);
}

/* =========================================
   Portfolio Tabs
   ========================================= */
/* Portfolio Sub Headers */
.portfolio-sub-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--clr-border);
}
.portfolio-sub-header i { font-size: 1.5rem; }

.portfolio-tabs {
    gap: 12px;
    margin-bottom: 48px;
}

.portfolio-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid var(--clr-primary);
    background-color: transparent;
    color: var(--clr-primary);
    transition: var(--transition-normal);
}

.portfolio-tab-btn:hover,
.portfolio-tab-btn.active {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 6px 20px rgba(72, 10, 121, 0.25);
}

.portfolio-tab-content {
    display: none;
}

.portfolio-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* Instagram Posts Grid */
.instagram-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.instagram-post-item {
    display: flex;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Clip off the caption/comment section — show only the post image */
    max-height: 380px;
    box-shadow: 0 4px 16px rgba(72, 10, 121, 0.12);
    border: 1.5px solid rgba(72, 10, 121, 0.10);
}

.instagram-post-item .instagram-media {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .instagram-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .instagram-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Video Showcase Premium
   ========================================= */
.video-showcase-box {
    position: relative;
    border-radius: var(--radius-lg);
    background-color: #f5f0fa;
    padding: 160px 40px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Background video fills the box */
.video-showcase-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    mix-blend-mode: multiply;
}

.video-overlay-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(72,10,121,0.5) 0%, rgba(17,8,28,0.85) 100%);
    z-index: 1;
}

.video-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.video-showcase-title {
    color: var(--clr-white);
    margin-bottom: 16px;
}

.video-showcase-desc {
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--clr-white);
    color: var(--clr-primary);
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.15);
    animation: pulseGlow 2s infinite;
    transition: var(--transition-fast);
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.25); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0px rgba(255, 255, 255, 0); }
}

/* =========================================
   7. Testimonials & 8. Trusted By
   ========================================= */
.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    background-color: var(--clr-bg-alt);
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-rating {
    color: #FFB800; /* Star yellow */
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--clr-text-main);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin: 0;
}

.testimonial-controls {
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: 60px;
    right: 60px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
}

/* 8. Trusted By Ticker */
.trusted-by {
    margin-top: 100px;
}

.trusted-title {
    font-size: 0.75rem; /* Slightly smaller for premium uppercase balance */
    font-weight: 800; /* Extra Bold for high impact */
    letter-spacing: 0.15em; /* Premium modern tracking */
    color: var(--clr-text-main);
    opacity: 0.55; /* Blended with main theme color for professional contrast */
    margin-bottom: 40px;
    text-transform: uppercase;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding: 10px 0;
}

/* Glass fading cover effect on edges */
.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--clr-white) 0%, rgba(255,255,255,0) 100%);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--clr-white) 0%, rgba(255,255,255,0) 100%);
}

.logo-marquee-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.brand-logo-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    border-radius: 50%; /* Premium circular badge tokens */
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 16px rgba(72, 10, 121, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-right: 45px;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    cursor: pointer;
}

.brand-logo-token:hover {
    transform: translateY(-6px) scale(1.08); /* Sophisticated lift & scale */
    border-color: rgba(106, 20, 176, 0.35); /* Subtle purple highlights */
    box-shadow: 
        0 12px 28px rgba(106, 20, 176, 0.14),
        0 4px 10px rgba(72, 10, 121, 0.05);
}

.brand-logo-img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px; /* Smooth corners for screenshots */
    opacity: 0.9;
    mix-blend-mode: multiply; /* Extremely clever: blends screenshot white bg with glass */
    transition: opacity 0.3s ease;
}

.brand-logo-token:hover .brand-logo-img {
    opacity: 1;
}




@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   9. Results Section
   ========================================= */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.result-item {
    text-align: center;
}

.result-num {
    font-size: 3.5rem;
    color: var(--clr-primary);
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin: 0;
}

/* =========================================
   Team Section Premium
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.team-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--clr-border);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(72, 10, 121, 0.15);
}

.team-img-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 24px;
    box-shadow: inset 0 2px 8px rgba(72, 10, 121, 0.1);
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    margin: 0;
}

/* =========================================
   Pricing Packages
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    perspective: 1000px;
}

.pricing-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    will-change: transform;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--clr-primary);
    position: relative;
    box-shadow: var(--shadow-md);
}

.pricing-card.featured .badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 14px;
    border-radius: 100px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-plan-name {
    font-size: 1.25rem;
    color: var(--clr-text-main);
    margin-bottom: 24px;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 36px;
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

.pricing-features {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li i {
    color: var(--clr-primary);
    font-size: 1.15rem;
}

/* =========================================
   10. Blog Section
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-card-img-placeholder {
    height: 220px;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition-normal);
}

.blog-card:hover .blog-card-img-placeholder {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.blog-card-img-wrapper {
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--clr-border);
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.07);
}

.blog-card-body {
    padding: 30px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a:hover {
    color: var(--clr-primary);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   11. FAQ Section
   ========================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--clr-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    background: none;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--clr-text-main);
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--clr-primary);
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--clr-primary);
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 30px 24px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: rgba(72, 10, 121, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* =========================================
   12. Contact Section
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.contact-desc {
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.65;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.detail-link {
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
}

.detail-link:hover {
    color: var(--clr-primary);
}

.social-links-wrapper {
    border-top: 1px solid var(--clr-border);
    padding-top: 30px;
}

.social-links-title {
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--clr-primary-soft);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--clr-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--clr-border);
    outline: none;
    font-size: 0.95rem;
    background-color: var(--clr-bg-alt);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--clr-primary);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(72, 10, 121, 0.1);
}

/* =========================================
   Final Call To Action
   ========================================= */
.final-cta {
    background-color: var(--clr-primary-dark);
    padding: 100px 0;
    color: var(--clr-white);
}

.final-cta-container {
    max-width: 800px;
}

.final-cta-title {
    color: var(--clr-white);
    margin-bottom: 8px;
}

.final-cta-subtitle {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 30px;
}

.final-cta-subtitle.text-gradient {
    background: linear-gradient(135deg, #A855F7, #D8B4FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   13. Footer
   ========================================= */
.footer {
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    padding: 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 80px;
}

.footer-logo {
    display: inline-block;
    width: 150px;
    height: 90px;
    position: relative;
}

.footer-logo img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links-list a {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.footer-links-list a:hover {
    color: var(--clr-primary);
    padding-left: 4px;
}

.footer-p.small {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-bottom-links a:hover {
    color: var(--clr-primary);
}

/* =========================================
   Modal & Back to Top & Utility Animations
   ========================================= */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 8, 28, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.open {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#modal-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.close-modal:hover {
    transform: rotate(90deg);
    color: var(--clr-primary-light);
}

.video-placeholder-container {
    text-align: center;
    color: var(--clr-white);
}

.video-pulse-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--clr-primary);
    border-top-color: transparent;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Hidden by default */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(72, 10, 121, 0.3);
    z-index: 999;
    transition: var(--transition-normal);
}

.back-to-top.visible {
    right: 30px;
}

.back-to-top:hover {
    background-color: var(--clr-primary-light);
    transform: translateY(-3px);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1200px) {
    .about-grid { gap: 40px; }
    .why-grid { gap: 40px; }
    .contact-grid { gap: 40px; }
}

@media (max-width: 991px) {
    .nav-list { display: none; }
    .menu-toggle { display: flex; }
    .header-cta-btn { display: none; } /* Hide on tablet/mobile header */
    
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrapper { max-width: 600px; margin: 0 auto; }
    
    .why-grid { grid-template-columns: 1fr; }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 20px;
    }
    
    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: 45px;
        width: 2px;
        height: 90%;
        background-image: linear-gradient(to bottom, var(--clr-primary) 50%, rgba(255,255,255,0) 0%);
        background-size: 2px 12px;
        background-repeat: repeat-y;
    }
    
    .timeline-step {
        text-align: left;
        display: flex;
        gap: 24px;
        align-items: center;
    }
    
    .step-num {
        margin: 0;
    }
    
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { max-width: 600px; }
    .contact-form-wrapper { padding: 40px 30px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hero { padding-top: 150px; }
    .hero-stats { flex-direction: column; gap: 32px; padding-top: 30px; }
    .hero-cta { flex-direction: column; width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-cta .btn { width: 100%; }
    .hero-description { font-size: 1.05rem; }
    
    .portfolio-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0 auto; }
    .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; margin: 0 auto; }
    .blog-grid { grid-template-columns: 1fr 1fr; max-width: 100%; margin: 0 auto; }
    .results-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .result-num { font-size: 2.5rem; }

    .form-grid { grid-template-columns: 1fr; gap: 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-container { flex-direction: column; gap: 16px; text-align: center; }
    
    /* Testimonials */
    .testimonial-slider-container { padding: 36px 24px 80px; }
    .testimonial-text { font-size: 1.05rem; }
    .testimonial-controls { bottom: 24px; right: 24px; }
    
    /* Video showcase */
    .video-showcase-box { padding: 80px 24px; }

    /* Services card */
    .service-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .section { padding: 80px 0; }

    /* Hero */
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 2.2rem; }

    /* About */
    .about-boxes { gap: 14px; }
    .mission-vision-box { padding: 18px 16px; gap: 14px; }

    /* Services */
    .service-card { padding: 28px 20px; }
    .services-grid { grid-template-columns: minmax(min(320px, 100%), 1fr); gap: 20px; }

    /* Process */
    .process-timeline { padding-left: 0; gap: 28px; }
    .step-title { font-size: 1rem; }
    .step-desc { font-size: 0.82rem; }

    /* Results */
    .results-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .result-num { font-size: 2rem; }

    /* Portfolio */
    .portfolio-item { width: 280px; }

    /* Team */
    .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; max-width: 100%; }

    /* Testimonials */
    .testimonial-slider-container { padding: 28px 18px 72px; }
    .testimonial-text { font-size: 1rem; }
    .testimonial-author { gap: 12px; }
    .author-avatar { width: 48px; height: 48px; font-size: 1.4rem; }

    /* Video showcase */
    .video-showcase-box { padding: 60px 20px; }
    .play-btn { width: 64px; height: 64px; font-size: 1.4rem; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact-form-wrapper { padding: 24px 18px; }
    .contact-info-list { gap: 16px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-links-col { padding: 0; }

    /* Toast */
    .toast-notification {
        bottom: 16px;
        right: 16px;
        left: 16px;
        min-width: unset;
        max-width: unset;
    }
}

/* =========================================
   Scroll Reveal / Animation Utilities
   ========================================= */
.reveal-fade,
.reveal-slide-up,
.reveal-slide-left,
.reveal-slide-right,
.reveal-zoom-in {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-slide-up {
    transform: translateY(50px);
}

.reveal-slide-left {
    transform: translateX(50px);
}

.reveal-slide-right {
    transform: translateX(-50px);
}

.reveal-zoom-in {
    transform: scale(0.93);
}

.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Transitions */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* =========================================
   3D Perspective & Depth Utilities
   ========================================= */
.services-grid,
.portfolio-grid,
.team-grid,
.pricing-grid,
.blog-grid {
    perspective: 1200px;
}

/* 3D floating animation for hero stats */
@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-8px) rotateX(2deg); }
}

.stat-item {
    animation: float3d 4s ease-in-out infinite;
}

.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 1s; }

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 3D depth shadow on hover for cards */
.service-card:hover,
.portfolio-item:hover,
.team-card:hover,
.pricing-card:hover,
.blog-card:hover {
    box-shadow: 0 30px 60px rgba(72, 10, 121, 0.15), 0 0 0 1px rgba(72, 10, 121, 0.05);
}

/* 3D inner content lift on card hover */
.service-card:hover .service-icon-bg,
.team-card:hover .team-img-placeholder,
.blog-card:hover .blog-card-img-placeholder {
    transform: translateZ(40px);
}

/* Smooth 3D transition for inner elements */
.service-icon-bg,
.team-img-placeholder,
.blog-card-img-placeholder {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

/* Premium gradient border glow */
.pricing-card.featured {
    box-shadow: 0 0 40px rgba(72, 10, 121, 0.12), var(--shadow-md);
}

/* 3D scroll reveal enhancement */
.reveal-zoom-in.revealed {
    transform: scale(1) translateZ(0);
}

/* Hero title 3D entrance */
@keyframes heroTitleIn {
    from { opacity: 0; transform: translateZ(-100px) translateY(30px); }
    to { opacity: 1; transform: translateZ(0) translateY(0); }
}

.hero-title {
    animation: heroTitleIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-description {
    animation: heroTitleIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s both;
}

.hero-cta {
    animation: heroTitleIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s both;
}

.hero-stats {
    animation: heroTitleIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s both;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .stat-item,
    .hero-title,
    .hero-description,
    .hero-cta,
    .hero-stats {
        animation: none;
    }
    .hero-3d-canvas {
        display: none;
    }
    .hero-bg-glow {
        z-index: -2;
    }
}

/* =========================================
   Toast Notification
   ========================================= */
.toast-notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    min-width: 320px;
    max-width: 440px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-white);

    /* Start hidden — slides up on show */
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success {
    background: linear-gradient(135deg, #1a7a4a, #25a163);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-error {
    background: linear-gradient(135deg, #8b1a1a, #c0392b);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notification.toast-hide {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.toast-message {
    flex: 1;
    line-height: 1.45;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--clr-white);
    background: rgba(255, 255, 255, 0.15);
}

/* Submit button loading spin */
@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-form [type="submit"] .ph-circle-notch,
.contact-form [type="submit"] i.ph-circle-notch {
    display: inline-block;
    animation: spinIcon 0.8s linear infinite;
}

@media (max-width: 480px) {
    .toast-notification {
        bottom: 16px;
        right: 16px;
        left: 16px;
        min-width: unset;
        max-width: unset;
    }
}

/* =========================================
   Skip Link (Accessibility)
   ========================================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--clr-primary);
    color: var(--clr-white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.2s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* =========================================
   Focus States (Accessibility & Keyboard Nav)
   ========================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--clr-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove default outline only when focus-visible is supported */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Form field focus */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(72, 10, 121, 0.15);
}

/* Required field asterisk */
.form-group label span[aria-hidden="true"] {
    color: #c0392b;
    margin-left: 2px;
}

/* =========================================
   Form Validation States
   ========================================= */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form select:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.contact-form input:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   Image lazy-load fade-in
   ========================================= */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* =========================================
   Improved Button Submit Icon
   ========================================= */
.btn .ph-paper-plane-tilt {
    font-size: 1.1rem;
    margin-right: 4px;
}

/* =========================================
   Smooth scroll on all anchor links
   ========================================= */
html {
    scroll-behavior: smooth;
}

/* =========================================
   Print styles
   ========================================= */
@media print {
    .header, .footer, .back-to-top, .skip-link, #webgl-canvas,
    .video-modal, .portfolio-marquee { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}

/* =========================================
   QUALITY AUDIT IMPROVEMENTS
   ========================================= */

/* ── Fix: Section title missing class used in HTML ── */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--clr-text-main);
    margin-bottom: 20px;
}

/* ── Fix: Video showcase section with empty content ── */
.video-showcase.section {
    padding: 0;
}

.video-showcase-box {
    border-radius: var(--radius-lg);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix video bg to cover whole box */
.video-showcase-bg {
    border-radius: var(--radius-lg);
}

/* ── Fix: Overflow on hero at mobile ── */
@media (max-width: 480px) {
    .hero-container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        letter-spacing: -0.02em;
    }
    .hero-description {
        font-size: 0.975rem;
        margin-bottom: 32px;
    }
    .hero-cta {
        gap: 12px;
        margin-bottom: 48px;
    }
    .hero-cta .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    .stat-number {
        font-size: 1.9rem;
    }
}

/* ── Fix: Nav overflow on medium screens ── */
@media (max-width: 1100px) and (min-width: 992px) {
    .nav-list { gap: 16px; }
    .nav-link { font-size: 0.875rem; }
    .logo { width: 124px; height: 56px; }
    .logo img { width: 100%; height: 100%; }
}

/* ── Fix: Process timeline on 480-768 ── */
@media (max-width: 768px) and (min-width: 481px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-left: 20px;
    }
    .process-timeline::before {
        top: 0; bottom: 0; left: 45px; width: 2px; height: 90%;
        background-image: linear-gradient(to bottom, var(--clr-primary) 50%, rgba(255,255,255,0) 0%);
        background-size: 2px 12px; background-repeat: repeat-y;
    }
    .timeline-step { text-align: left; display: flex; gap: 24px; align-items: center; }
    .step-num { margin: 0; flex-shrink: 0; }
}

/* ── Fix: Blog grid on mobile ── */
@media (max-width: 480px) {
    .process-timeline::before {
        left: 25px;
        right: auto;
    }

    .timeline-step {
        display: grid;
        grid-template-columns: 50px minmax(78px, auto) minmax(0, 1fr);
        column-gap: 14px;
        align-items: center;
    }

    .step-num {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        flex-basis: 50px;
        margin: 0;
    }

    .step-title,
    .step-desc {
        min-width: 0;
    }

    .blog-grid { grid-template-columns: 1fr; }
}

/* ── Improvement: Contact form full width on mobile ── */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 28px 20px; }
}

/* ── Improvement: Footer logo sizing fix ── */
.footer-logo {
    height: auto;
    width: auto;
    display: block;
    position: static;
}
.footer-logo img {
    position: static;
    transform: none;
    width: 140px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Improvement: Social icons accessible hit area ── */
.social-links a {
    min-width: 44px;
    min-height: 44px;
}

/* ── Improvement: Stronger focus rings on all interactive elements ── */
.btn:focus-visible,
.card-btn:focus-visible,
.faq-question:focus-visible,
.slider-btn:focus-visible,
.back-to-top:focus-visible,
.menu-toggle:focus-visible,
.social-links a:focus-visible {
    outline: 3px solid var(--clr-primary);
    outline-offset: 3px;
}

/* ── Improvement: Make mobile menu links bigger tap targets ── */
.mobile-nav-link {
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* ── Improvement: Ensure portfolio marquee doesn't overflow on mobile ── */
@media (max-width: 480px) {
    .portfolio-item { width: 260px; }
    .portfolio-marquee::before,
    .portfolio-marquee::after { width: 60px; }
}

/* ── Improvement: Prevent text overflow on small cards ── */
.service-card-title,
.blog-card-title,
.why-card-title,
.team-name {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ── Improvement: Testimonial slider controls accessible ── */
.testimonial-controls {
    gap: 12px;
}

/* ── Improvement: About section image aspect ratio stable ── */
.about-image {
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ── Fix: Results section padding ── */
.results.section {
    background: linear-gradient(135deg, #1a003a 0%, var(--clr-primary-dark) 40%, var(--clr-primary) 100%);
    padding: 100px 0;
}

.result-num {
    color: #ffffff;
}

.result-label {
    color: rgba(255,255,255,0.75);
}

/* ── Fix: Final CTA padding/typography on mobile ── */
@media (max-width: 768px) {
    .final-cta { padding: 80px 0; }
    .final-cta-subtitle { font-size: clamp(1.2rem, 4vw, 1.8rem); }
}

@media (max-width: 480px) {
    .final-cta { padding: 60px 0; }
}

/* ── Improvement: Add smooth transition to FAQ answer height ── */
.faq-answer {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Improvement: Better button contrast ── */
.btn-outline {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    font-weight: 600;
}

/* ── Fix: Ensure loading="lazy" images on blog and trusted by show ── */
.blog-card-img-wrapper img,
.brand-logo-img,
.portfolio-img-wrapper img,
.about-image {
    opacity: 1 !important; /* Override lazy opacity for immediately visible imgs */
}

/* ── Improvement: Smooth hover on nav links ── */
.nav-link {
    transition: color var(--transition-fast);
}

/* ── Improvement: Sticky header shadow when scrolled ── */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(72, 10, 121, 0.1);
}

/* ── Fix: team grid on small mobiles ── */
@media (max-width: 360px) {
    .team-grid { grid-template-columns: 1fr; max-width: 100%; }
    .section { padding: 60px 0; }
    .container { padding: 0 14px; }
    .hero { padding-top: 110px; }
}

/* ── Improvement: Add WhatsApp sticky CTA button for mobile ── */
.whatsapp-cta {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.whatsapp-cta:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
    color: #fff;
}
.whatsapp-cta:focus-visible {
    outline: 3px solid #25D366;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .whatsapp-cta { bottom: 80px; right: 20px; width: 48px; height: 48px; font-size: 1.35rem; }
    .back-to-top { bottom: 20px; }
    .back-to-top.visible { right: 20px; }
}

/* ── Improvement: Pricing section inside index.html padding ── */
#pricing.pricing.section {
    padding: 100px 0;
}

/* ── Improvement: Add loading skeleton for images ── */
img {
    background-color: var(--clr-bg-alt);
}

/* ── Improvement: Better select styling ── */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23480A79'%3E%3Cpath d='M8 10.5L3 5.5h10L8 10.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
    cursor: pointer;
}

/* ── Improvement: Form textarea min-height ── */
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ── Fix: Ensure mission box text white ── */
.mission-vision-box.mission .box-text {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* ── Improvement: Add active nav state ── */
.nav-link.active-section {
    color: var(--clr-primary);
    font-weight: 600;
}
.nav-link.active-section::after {
    width: 100%;
}

/* ── Improvement: Section header text sizing ── */
.section-subtitle {
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* ── Fix: Portfolio section background for section-alt ── */
.portfolio.section {
    background-color: var(--clr-bg-main);
}

/* ── Fix: Blog card title link colour ── */
.blog-card-title a {
    color: var(--clr-text-main);
    transition: color var(--transition-fast);
}
.blog-card-title a:hover {
    color: var(--clr-primary);
}

/* ── Improvement: Ensure contact detail-link visible ── */
.detail-link {
    color: var(--clr-text-main);
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    transition: color var(--transition-fast);
}
.detail-link:hover { color: var(--clr-primary); }

/* ── Fix: Footer brand col not overflowing ── */
.footer-brand {
    max-width: 320px;
}
@media (max-width: 768px) {
    .footer-brand { max-width: 100%; }
}

/* ── Improvement: Service card equal height ── */
.services-grid {
    align-items: stretch;
}
.service-card {
    display: flex;
    flex-direction: column;
}
.service-features {
    margin-top: auto;
}

/* ── Fix: Why section grid on tablet ── */
@media (max-width: 768px) {
    .why-grid { gap: 40px; }
    .why-desc { font-size: 1rem; }
}

/* ── Improvement: Reduce animation-heavy 3D on low-end devices ── */
@media (max-width: 991px) {
    .service-card,
    .team-card,
    .blog-card,
    .pricing-card {
        transform-style: flat;
    }
}

/* ── Fix: Trusted by logos on alt section background ── */
.logo-marquee::before {
    background: linear-gradient(to right, var(--clr-bg-main) 0%, rgba(255,255,255,0) 100%);
}
.logo-marquee::after {
    background: linear-gradient(to left, var(--clr-bg-main) 0%, rgba(255,255,255,0) 100%);
}

/* Responsive hardening: fluid reflow, touch, landscape and safe areas */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { width: 100%; }
#webgl-canvas { inset: 0; width: 100%; height: 100%; }

main, section, article, aside, .container, .header-container,
.about-grid > *, .why-grid > *, .contact-grid > *, .form-grid > *,
.footer-grid > *, .services-grid > *, .team-grid > *, .blog-grid > * {
    min-width: 0;
}

.container { padding-inline: clamp(14px, 3vw, 24px); }
.section { padding-block: clamp(72px, 8vw, 120px); }
img, video, canvas, iframe { max-width: 100%; }
video { height: auto; }

.btn, .card-btn, .btn-primary-cta, .btn-outline-cta {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.detail-link, .footer a, .legal-content a, .service-card-title,
.blog-card-title, .team-name { overflow-wrap: anywhere; }
.social-links, .hero-cta, .cta-actions { flex-wrap: wrap; }
.portfolio-item { max-width: calc(100vw - 28px); }

.mobile-menu.open {
    max-height: min(500px, calc(100dvh - 70px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.whatsapp-cta {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(90px, calc(env(safe-area-inset-bottom) + 70px));
}
.back-to-top.visible {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header, .team-card, .contact-form-wrapper { background-color: rgba(255,255,255,.96); }
}

@media (max-width: 768px) {
    .reveal-slide-left,
    .reveal-slide-right { transform: translateY(32px); }

    .hero { min-height: 100svh; padding-top: clamp(110px, 18vw, 150px); }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(8px, 4vw, 24px);
        width: 100%;
    }
    .stat-number { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    .stat-label { font-size: clamp(.72rem, 2.8vw, .9rem); line-height: 1.35; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
    .blog-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
    .form-group input, .form-group select, .form-group textarea {
        min-width: 0;
        font-size: 16px;
    }
    .contact-detail-item { align-items: flex-start; }
    .detail-icon { flex: 0 0 50px; }
}

@media (max-width: 340px) {
    .container { padding-inline: 12px; }
    .header-container { height: 72px; }
    .logo { width: 112px; height: 50px; }
    .menu-toggle { width: 44px; height: 44px; }
    .hero-title { font-size: clamp(1.75rem, 10vw, 2rem); }
    .hero-description { font-size: .95rem; }
    .results-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper, .service-card, .team-card { padding-inline: 16px; }
}

/* Ultra-small phones need explicit shrink boundaries. Without these, an
   animated hero child can keep its intrinsic width and be clipped. */
@media (max-width: 480px) {
    .header-container,
    .hero-container,
    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .logo {
        flex-shrink: 0;
    }

    .header-actions {
        min-width: 44px;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .menu-toggle {
        display: flex !important;
        visibility: visible;
        flex: 0 0 44px;
    }

    .hero-title,
    .hero-description {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .hero-title {
        font-size: clamp(1.65rem, 9vw, 2rem);
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .reveal-slide-left,
    .reveal-slide-right { transform: translateY(32px); }

    .hero { min-height: auto; padding-top: 100px; padding-bottom: 48px; }
    .hero-description { margin-bottom: 24px; }
    .hero-cta { margin-bottom: 32px; }
    .hero-stats { padding-top: 24px; }
    .mobile-menu.open { max-height: calc(100dvh - 70px); }
}

@media (hover: none), (pointer: coarse) {
    .service-card:hover, .team-card:hover, .blog-card:hover,
    .portfolio-item:hover, .social-links a:hover { transform: none; }
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(47,5,82,.82), transparent 65%);
    }
}
