/* ==========================================
   LOADER SCREEN
   ========================================== */

.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
}

[data-theme="dark"] .loader-screen {
    background-color: #050505;
}

.loader-screen.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* The SVG Logo Area */
.loader-visual {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.loader-logo-container {
    width: 280px;
    /* Increased to fit HUD brackets nicely */
    height: 280px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tech HUD Styles */
.tech-cage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.cage-bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary);
    /* Thicker for illustrative look */
    border-radius: 4px;
    /* Rounded for brand alignment */
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    animation: bracketPulse 2s infinite ease-in-out;
}

@keyframes bracketPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: brightness(1.2);
    }
}

.bracket-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.bracket-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bracket-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bracket-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.loader-logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    z-index: 2;
}

.logo-path-bg,
.logo-path-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    object-fit: contain;
}



.logo-path-bg {
    opacity: 0.25;
    /* Subtle background outline, grayscale to look 'empty' */
    filter: grayscale(100%) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* 2. Liquid Mask Container */
.logo-liquid-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    /* Use the logo PNG as a mask */
    -webkit-mask-image: url('assets/images/b-logo.png');
    mask-image: url('assets/images/b-logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    z-index: 5;
}

/* Water Element */
.liquid-water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* Animate this via JS */
    background: url('assets/images/logo-colorful.png');
    background-size: 200px 200px;
    background-repeat: no-repeat;
    background-position: bottom center;
    transition: height 0.1s linear;
    /* Smooth fill */
}

/* Waving Surface */
.liquid-water::before {
    content: '';
    position: absolute;
    top: -15px;
    /* Adjust based on wave height */
    left: -50%;
    width: 200%;
    height: 30px;
    /* Wave amplitude */
    background: rgba(255, 255, 255, 0.4);
    border-radius: 40%;
    animation: water-wave 2s linear infinite;
}

/* Add a second lighter wave for depth */
.liquid-water::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -50%;
    width: 200%;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 35%;
    animation: water-wave 4s linear infinite reverse;
}

@keyframes water-wave {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    100% {
        transform: translateX(25px) rotate(360deg);
    }
}

/* Add an 'inner' highlight simulation */
.loader-logo-wrapper::after {
    content: '';
    position: absolute;
    inset: 15%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    z-index: 4;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.6;
    mix-blend-mode: overlay;
    clip-path: url(#logoFillClip);
    /* Only show on filled area */
}

/* Floating Tech World Elements */
.floating-tech-world {
    position: absolute;
    inset: -60px;
    z-index: 1;
    pointer-events: none;
}

.tech-icon-3d {
    position: absolute;
    width: 36px;
    height: 36px;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

.icon-code-block {
    top: 5%;
    left: -5%;
    color: #3B82F6;
}

.icon-data-sphere {
    top: 40%;
    right: -30px;
    color: #F59E0B;
}

.icon-cloud-node {
    bottom: 10%;
    left: 0%;
    color: #10B981;
}

.icon-chart-cube {
    top: -15%;
    left: 45%;
    color: #E53935;
}

/* SVG Icon styles */
.tech-icon-3d svg {
    width: 100%;
    height: 100%;
    filter: brightness(1.1);
}


/* The Percentage Counter - Centered */
.loader-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.9;
    letter-spacing: 1px;
    font-family: var(--font-display);
}

.loader-percentage {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-tech-status {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    min-width: 300px;
    justify-content: center;
}

.tech-icon {
    font-size: 1.1rem;
    color: var(--primary);
    animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes pulseIcon {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.status-text {
    margin-right: 4px;
    display: inline-block;
}





/* ==========================================
   SKELETON LOADING STATES
   ========================================== */

.skeleton {
    background: linear-gradient(90deg,
            var(--background-alt) 0%,
            var(--border-color) 50%,
            var(--background-alt) 100%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

/* Skeleton Utility Classes */
.skeleton-w-100 {
    width: 100%;
}

.skeleton-w-95 {
    width: 95%;
}

.skeleton-w-90 {
    width: 90%;
}

.skeleton-w-85 {
    width: 85%;
}

.skeleton-w-80 {
    width: 80%;
}

.skeleton-w-75 {
    width: 75%;
}

.skeleton-w-70 {
    width: 70%;
}

.skeleton-w-60 {
    width: 60%;
}

.skeleton-w-50 {
    width: 50%;
}

.skeleton-w-40 {
    width: 40%;
}

.skeleton-h-60 {
    height: 60px;
}

.skeleton-h-48 {
    height: 48px;
}

.skeleton-h-32 {
    height: 32px;
}

.skeleton-h-28 {
    height: 28px;
}

.skeleton-h-24 {
    height: 24px;
}

.skeleton-h-20 {
    height: 20px;
}

.skeleton-mb-8 {
    margin-bottom: 8px;
}

.skeleton-mb-12 {
    margin-bottom: 12px;
}

.skeleton-mb-16 {
    margin-bottom: 16px;
}

.skeleton-mb-20 {
    margin-bottom: 20px;
}

.skeleton-mb-24 {
    margin-bottom: 24px;
}

.skeleton-mb-32 {
    margin-bottom: 32px;
}

.skeleton-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.skeleton-radius-8 {
    border-radius: 8px;
}

.skeleton-radius-16 {
    border-radius: 16px;
}

.skeleton-radius-20 {
    border-radius: 20px;
}

.skeleton-radius-circle {
    border-radius: 50%;
}

.skeleton-title {
    height: 32px;
    width: 70%;
    margin-bottom: 16px;
    border-radius: 8px;
}

.skeleton-image {
    width: 100%;
    height: 300px;
    border-radius: 16px;
}

.skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.skeleton-container {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.skeleton-container.hidden {
    opacity: 0;
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

/* Hide any section-header inside skeleton containers */
.skeleton-container .section-header {
    display: block;
}

.skeleton-container.hidden .section-header {
    display: none !important;
}

/* Ensure hidden elements are completely hidden from inspection */
[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.content-loaded {
    opacity: 0;
    animation: fadeInContent 0.6s ease forwards;
}

/* Ensure headers are always visible when content-loaded */
.section-header.content-loaded {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    animation: fadeInContent 0.6s ease forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

:root {
    /* Premium Tech Palette (SafetyWing-Inspired) */
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #0F172A;
    --accent: #E53935;
    /* SafetyWing Coral-Red */
    --success: #10B981;
    --background: #FCFAF7;
    /* SafetyWing Warm Cream */
    --surface: #FFFFFF;
    --border: #EDE8E0;
    /* Warm subtle border */
    --hero-bg: #FCFAF7;

    /* Text Colors */
    --text-primary: #0F172A;
    /* Deep Slate/Navy */
    --text-secondary: #475569;
    --text-light: #64748B;
    --border-color: var(--border);

    /* Card Background */
    --card-bg: var(--surface);

    /* Shadows - More subtle and premium */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(15, 23, 42, 0.03) 100%);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Typography */
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-primary: var(--font-body);
    --font-display: var(--font-heading);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fluid Typography - Scales from 320px to 1440px */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-md: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --fs-xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --fs-2xl: clamp(2rem, 1.75rem + 1.25vw, 2.5rem);
    --fs-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

    /* Standardized Gaps & Padding */
    --container-padding: clamp(1.5rem, 2vw, 3rem);
    --section-gap: clamp(4rem, 8vw, 10rem);
}

[data-theme="dark"] {
    /* Premium Dark Palette */
    --primary: #3B82F6;
    /* Brighter blue for dark background */
    --background: #050505;
    /* Deepest navy/black */
    --surface: #0F172A;
    /* Slightly lighter slate for cards */
    --border: #1E293B;
    /* Slate border */
    --text-primary: #F8FAFC;
    /* Very light gray/white */
    --text-secondary: #94A3B8;
    /* Muted slate */
    --text-light: #64748B;

    /* Legacy mapping */
    --card-bg: var(--surface);
    --border-color: var(--border);
    --hero-bg: #050505;
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    background-color: var(--background);
    /* Prevent white flash/scroll area */
    overflow-x: hidden !important;
    overflow-y: auto;
    /* Fixes anchor links landing under navbar */
    scroll-padding-top: clamp(80px, 10vh, 120px);
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.05rem;
    /* Slightly larger base for better legibility */
    background-color: transparent;

    /* Changed to transparent for 3D bg */
    overflow-x: hidden !important;
    overflow-y: auto;
    /* Ensure body allows scrolling */
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    /* Content sits above */
}

#loader-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind body content, on top of html bg */
    pointer-events: none;
    overflow: hidden;
}

#loader-3d-container canvas {
    display: block;
    /* Removes inline gap */
    width: 100%;
    height: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 1);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all var(--transition-base);
}

.logo:hover {
    background: transparent;
}

.logo-image {
    height: 42px;
    width: auto;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.nav-link.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    position: relative;
    border-radius: 8px;
    transition: all var(--transition-base);
}

.nav-toggle:hover {
    background: var(--background-alt);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    display: block;
}

.nav-toggle.active span {
    background: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-left: 24px;
    position: relative;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    border-color: transparent;
}

.theme-toggle:hover .theme-icon {
    filter: brightness(0) invert(1);
}

.theme-icon {
    font-size: 18px;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: rotate(0deg) scale(1);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--hero-bg);
}

.hero::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    top: 12%;
    right: 8%;
    background-image:
        linear-gradient(30deg, transparent 45%, rgba(255, 193, 7, 0.08) 45%, rgba(255, 193, 7, 0.08) 55%, transparent 55%),
        linear-gradient(90deg, transparent 45%, rgba(255, 193, 7, 0.08) 45%, rgba(255, 193, 7, 0.08) 55%, transparent 55%),
        linear-gradient(150deg, transparent 45%, rgba(255, 193, 7, 0.08) 45%, rgba(255, 193, 7, 0.08) 55%, transparent 55%);
    background-size: 50px 87px;
    animation: hexagonFloat 20s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    bottom: 20%;
    left: 8%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(33, 150, 243, 0.06) 10px, rgba(33, 150, 243, 0.06) 12px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(33, 150, 243, 0.05) 10px, rgba(33, 150, 243, 0.05) 12px);
    animation: techPatternMove 25s linear infinite;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(33, 150, 243, 0.03) 0%,
            rgba(76, 175, 80, 0.03) 25%,
            rgba(255, 193, 7, 0.03) 50%,
            rgba(229, 57, 53, 0.03) 100%);
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-yellow) 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-green) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-full);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.25;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn {
    padding: 12px 32px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    gap: 10px;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--background-alt);
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
    z-index: 10;
}

.stat-widget {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-widget:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
}

.widget-icon {
    width: 36px;
    height: 36px;
    background: var(--hero-bg);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.widget-data {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
}

[data-theme="dark"] .stat-widget {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Avatar - Redesigned */
.hero-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    height: auto;
    width: 100%;
    animation: fadeInRight 1s ease-out;
    perspective: 1000px;
}

#hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed, though we'll handle mouse move */
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: float-hero-avatar 12s ease-in-out infinite;
    will-change: transform;
}

.hero-environment {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    z-index: 1;
}

.hero-hud-frame {
    position: absolute;
    width: 520px;
    height: 520px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

/* Hero Visual Background (SafetyWing Style) */
.hero-visual-bg {
    width: 600px;
    height: 600px;
    background-image: url('assets/images/hero.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    /* Ensure it floats properly */
    position: relative;
    z-index: 10;
}

.hero-hud-frame .cage-bracket {
    width: 40px;
    height: 40px;
    border-width: 4px;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.floating-cards-container {
    position: absolute;
    inset: -15% -25%;
    /* Expanded perimeter for wide triangle */
    z-index: 5;
    pointer-events: none;
}



.floating-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transition: all var(--transition-base);
    width: 220px;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.card-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.card-status {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--success);
}

/* Specific Card Positions (Perimeter Dockets) */
.card-perimeter-tl {
    top: 3%;
    left: -2%;
}

.card-perimeter-br {
    bottom: 3%;
    right: -2%;
}

.card-perimeter-cl {
    top: 45%;
    left: -5%;
}

.hero-main-avatar {
    width: 450px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15));
    animation: hero-avatar-float 6s ease-in-out infinite;
    z-index: 3;
    position: relative;
}

@keyframes hero-avatar-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.video-stack {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Hero Environment refinements */
.hero-content {
    z-index: 10;
}

[data-theme="light"] .hero-subtitle {
    color: #4a5568;
}

[data-theme="light"] .hero-title {
    color: var(--secondary);
}

@keyframes float-hero-avatar {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-20px) rotate(2deg) scale(1.02);
    }

    66% {
        transform: translateY(-10px) rotate(-2deg) scale(0.98);
    }
}

/* Decorative Circles */
.avatar-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.avatar-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.circle-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-circle 4s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.18) 0%, transparent 70%);
    top: 8%;
    right: 3%;
    animation: float-circle 5s ease-in-out infinite;
    animation-delay: 1s;
}

.circle-3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.18) 0%, transparent 70%);
    bottom: 8%;
    left: -2%;
    animation: float-circle 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes pulse-circle {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

@keyframes float-circle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Avatar Badge */
.avatar-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 4;
    animation: badge-pulse 3s ease-in-out infinite;
    white-space: nowrap;
    border: 2px solid var(--border-color);
}

/* Mobile Hero Enhancements */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-avatar {
        order: 2;
        width: 100vw;
        margin-left: calc(-1 * var(--container-padding));
        margin-right: calc(-1 * var(--container-padding));
        min-height: 350px;
    }

    .hero-avatar-image {
        max-width: 100%;
        width: 100vw;
        height: auto;
        transform: scale(1.1);
        /* Slight zoom for impact on mobile */
    }

    .avatar-badge {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 20px;
        font-size: 14px;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

[data-theme="dark"] .avatar-badge {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
}

.avatar-badge span.badge-text {
    background: var(--gradient-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1) translateY(0);
    }

    50% {
        transform: translateX(-50%) scale(1.05) translateY(-5px);
    }
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
    padding-top: 5px;
    /* Extra safety */
    margin-bottom: 6px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: attr(data-number);
    position: absolute;
    inset: 0;
    background: var(--gradient-full);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: numberGlow 3s ease-in-out infinite;
}

@keyframes numberGlow {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    opacity: 0.8;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    pointer-events: auto;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--primary-color);
    animation: bounce-fast 1s infinite ease-in-out;
}

@keyframes bounce-fast {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    40% {
        transform: rotate(45deg) translateY(15px);
    }

    60% {
        transform: rotate(45deg) translateY(8px);
    }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    transform: rotate(45deg);
    animation: bounce 2.5s infinite ease-in-out;
}

@media (max-height: 800px) {
    .scroll-indicator {
        display: none;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 1;
    }

    40% {
        transform: rotate(45deg) translateY(12px);
        opacity: 0.7;
    }

    60% {
        transform: rotate(45deg) translateY(6px);
        opacity: 0.9;
    }
}

/* ==========================================
   SECTION STYLES
   ========================================== */

section {
    padding: var(--section-gap) 0;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
    display: block !important;
    /* Ensure headers are always visible when not hidden */
}

/* Hide headers that have display: none inline style */
.section-header[style*="display: none"] {
    display: none !important;
}

/* Scroll Animation Classes */
/* ==========================================
   ELEMENT REVEAL ANIMATIONS (GSAP)
   ========================================== */

.reveal-up,
.reveal-left,
.reveal-right,
.scale-in {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

/* Fallback for when JS is disabled or fails */
.no-js .reveal-up,
.no-js .reveal-left,
.no-js .reveal-right,
.no-js .scale-in {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(76, 175, 80, 0.2) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-tag:hover::before {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 10;
}

.section-header .section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

/* Alternating Section Backgrounds */
.about {
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(33, 150, 243, 0.05) 35px, rgba(33, 150, 243, 0.05) 38px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(33, 150, 243, 0.03) 35px, rgba(33, 150, 243, 0.03) 38px);
    animation: techPatternMove 30s linear infinite;
}

/* Founder Logo Animation */
.founder-avatar-animated {
    animation: logoFloatSpin 6s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 10px 15px rgba(33, 150, 243, 0.3));
}

@keyframes logoFloatSpin {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    50% {
        transform: translateY(-10px) rotateY(10deg);
    }
}

@keyframes techPatternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

.services {
    background: var(--background-alt);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    top: 5%;
    left: -5%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(76, 175, 80, 0.08) 20px, rgba(76, 175, 80, 0.08) 22px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(76, 175, 80, 0.08) 20px, rgba(76, 175, 80, 0.08) 22px);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: octagonSpin 40s linear infinite;
}

@keyframes octagonSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.services::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: 8%;
    right: 8%;
    background-image:
        radial-gradient(circle at center, transparent 45%, rgba(255, 193, 7, 0.1) 45%, rgba(255, 193, 7, 0.1) 48%, transparent 48%),
        radial-gradient(circle at center, transparent 65%, rgba(255, 193, 7, 0.08) 65%, rgba(255, 193, 7, 0.08) 68%, transparent 68%);
    animation: radarScan 20s linear infinite;
}

@keyframes radarScan {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: rotate(360deg) scale(1.1);
        opacity: 0.5;
    }
}

.portfolio {
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:
        conic-gradient(from 0deg at 50% 50%,
            rgba(33, 150, 243, 0.08) 0deg,
            transparent 60deg,
            rgba(33, 150, 243, 0.08) 120deg,
            transparent 180deg,
            rgba(33, 150, 243, 0.08) 240deg,
            transparent 300deg,
            rgba(33, 150, 243, 0.08) 360deg);
    animation: dataRadar 35s linear infinite;
}

@keyframes dataRadar {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.founder {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
}

/* Code Brackets Pattern - Web Development Theme (Subtle) */
.founder::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 15%;
    right: -5%;
    background-image:
        /* Subtle code brackets */
        linear-gradient(90deg, transparent 48%, rgba(33, 150, 243, 0.04) 48%, rgba(33, 150, 243, 0.04) 50%, transparent 50%),
        linear-gradient(0deg, transparent 48%, rgba(76, 175, 80, 0.04) 48%, rgba(76, 175, 80, 0.04) 52%, transparent 52%);
    background-size: 80px 80px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: codePatternFloat 30s ease-in-out infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes codePatternFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        transform: translate(-15px, 15px) rotate(3deg);
        opacity: 0.4;
    }
}

/* Cloud Pattern - Cloud Solutions Theme (Subtle) */
.founder::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 180px;
    bottom: 20%;
    left: -3%;
    background-image:
        /* Subtle cloud shapes */
        radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.05) 18%, transparent 18%),
        radial-gradient(circle at 30% 40%, rgba(76, 175, 80, 0.04) 0%, rgba(76, 175, 80, 0.04) 15%, transparent 15%),
        radial-gradient(circle at 70% 40%, rgba(76, 175, 80, 0.04) 0%, rgba(76, 175, 80, 0.04) 15%, transparent 15%);
    background-size: 120px 120px, 100px 100px, 100px 100px;
    background-position: 0 0, -20px -10px, 80px -10px;
    animation: cloudDrift 35s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes cloudDrift {
    0% {
        transform: translate(0, 0);
        opacity: 0.2;
    }

    50% {
        transform: translate(20px, -10px);
        opacity: 0.4;
    }

    100% {
        transform: translate(0, 0);
        opacity: 0.2;
    }
}

.testimonials {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    /* Reduced from 100px */
}

/* Network Nodes Pattern - Connectivity Theme (Subtle) */
.testimonials::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 15%;
    right: -5%;
    background-image:
        /* Subtle network nodes */
        radial-gradient(circle, rgba(33, 150, 243, 0.08) 3px, transparent 3px),
        radial-gradient(circle, rgba(76, 175, 80, 0.08) 3px, transparent 3px),
        /* Subtle connection lines */
        linear-gradient(45deg, transparent 48%, rgba(33, 150, 243, 0.04) 48%, rgba(33, 150, 243, 0.04) 52%, transparent 52%);
    background-size: 100px 100px, 100px 100px, 100px 100px;
    background-position: 0 0, 50px 50px, 0 0;
    animation: networkPulse 30s ease-in-out infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes networkPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

/* Security Shield Pattern - Cybersecurity Theme (Subtle) */
.testimonials::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 280px;
    bottom: 20%;
    left: -3%;
    background-image:
        /* Subtle shield outline */
        linear-gradient(135deg, transparent 47%, rgba(229, 57, 53, 0.05) 47%, rgba(229, 57, 53, 0.05) 50%, transparent 50%),
        linear-gradient(45deg, transparent 47%, rgba(229, 57, 53, 0.05) 47%, rgba(229, 57, 53, 0.05) 50%, transparent 50%),
        linear-gradient(90deg, transparent 48%, rgba(229, 57, 53, 0.04) 48%, rgba(229, 57, 53, 0.04) 52%, transparent 52%);
    background-size: 120px 140px, 120px 140px, 120px 140px;
    background-position: 0 0, 0 0, 0 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: shieldGlow 35s ease-in-out infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes shieldGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(10px, -8px) scale(1.03);
        opacity: 0.4;
    }
}

.contact {
    background: var(--background-alt);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: -8%;
    right: -8%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(33, 150, 243, 0.06) 15px, rgba(33, 150, 243, 0.06) 16px),
        repeating-linear-gradient(60deg, transparent, transparent 15px, rgba(33, 150, 243, 0.06) 15px, rgba(33, 150, 243, 0.06) 16px),
        repeating-linear-gradient(120deg, transparent, transparent 15px, rgba(33, 150, 243, 0.06) 15px, rgba(33, 150, 243, 0.06) 16px);
    animation: triangularGrid 25s ease-in-out infinite;
}

@keyframes triangularGrid {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1) rotate(30deg);
        opacity: 0.9;
    }
}

/* Tech Geometric Background */
.tech-geometric-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Hexagon Pattern */
.tech-hexagon {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(33, 150, 243, 0.15) 48%, rgba(33, 150, 243, 0.15) 52%, transparent 52%),
        linear-gradient(150deg, transparent 48%, rgba(33, 150, 243, 0.15) 48%, rgba(33, 150, 243, 0.15) 52%, transparent 52%),
        linear-gradient(270deg, transparent 48%, rgba(33, 150, 243, 0.15) 48%, rgba(33, 150, 243, 0.15) 52%, transparent 52%);
    background-size: 60px 104px;
    animation: hexagonFloat 25s ease-in-out infinite;
}

@keyframes hexagonFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translate(-30px, 30px) rotate(15deg);
        opacity: 0.3;
    }
}

/* Tech Grid */
.tech-grid {
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: 15%;
    left: 5%;
    background-image:
        linear-gradient(rgba(76, 175, 80, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 175, 80, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(45deg);
    animation: gridPulse 20s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: perspective(500px) rotateX(45deg) translateZ(0);
    }

    50% {
        opacity: 0.8;
        transform: perspective(500px) rotateX(45deg) translateZ(20px);
    }
}

/* Connected Dots Network */
.tech-dots {
    position: absolute;
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image:
        radial-gradient(circle, rgba(255, 193, 7, 0.4) 3px, transparent 3px),
        radial-gradient(circle, rgba(255, 193, 7, 0.3) 2px, transparent 2px);
    background-size: 80px 80px, 120px 120px;
    background-position: 0 0, 40px 40px;
    animation: dotsMove 30s linear infinite;
}

@keyframes dotsMove {
    0% {
        background-position: 0 0, 40px 40px;
    }

    100% {
        background-position: 80px 80px, 120px 120px;
    }
}

/* Circuit Pattern */
.tech-circuit {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 15%;
    background-image:
        linear-gradient(90deg, transparent 45%, rgba(229, 57, 53, 0.15) 45%, rgba(229, 57, 53, 0.15) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(229, 57, 53, 0.15) 45%, rgba(229, 57, 53, 0.15) 55%, transparent 55%);
    background-size: 50px 50px;
    animation: circuitFlow 15s linear infinite;
}

@keyframes circuitFlow {
    0% {
        background-position: 0 0;
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        background-position: 50px 50px;
        opacity: 0.4;
    }
}

/* Geometric Animation Keyframes */
@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, -30px);
    }

    50% {
        transform: translate(-20px, -50px);
    }

    75% {
        transform: translate(40px, -20px);
    }
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotateShapeSlow {
    0% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(375deg);
    }
}

@keyframes pulseShape {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-full);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section - Zen Portal */
.zen-portal-wrapper {
    position: relative;
    width: clamp(280px, 45vw, 420px);
    height: clamp(280px, 45vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    margin: 0 auto;
}

.portal-ring {
    position: absolute;
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%;
    animation: portal-morph 10s linear infinite;
    pointer-events: none;
}

.ring-1 {
    inset: -5%;
    border-color: rgba(255, 193, 7, 0.15);
    animation-duration: 15s;
}

.ring-2 {
    inset: -12%;
    border-color: rgba(76, 175, 80, 0.1);
    animation-duration: 20s;
    animation-direction: reverse;
}

.portal-atmosphere {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: atmosphere-pulse 4s ease-in-out infinite;
    z-index: 1;
}

.about-logo-container {
    width: 75%;
    height: 75%;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.about-logo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.15) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: glass-sweep 3s infinite;
}

.about-logo-container:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent-color);
}

[data-theme="dark"] .about-logo-container {
    background: var(--card-bg);
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

@keyframes portal-morph {
    0% {
        border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    33% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }

    66% {
        border-radius: 65% 35% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(360deg);
    }
}

@keyframes atmosphere-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes glass-sweep {
    0% {
        background-position: -100% -100%;
    }

    100% {
        background-position: 200% 200%;
    }
}

.main-logo {
    width: 100%;
    height: 100%;
    max-width: 320px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}


.about-text h3 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .service-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

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

.service-price-badge {
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: right;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.price-label {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.price-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    margin-bottom: 0px;
    /* No space since footer is removed */
    padding: 0;
}

.service-list li {
    font-size: 1rem;
    color: var(--text-secondary);

    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--primary);
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Centered Hover Overlay */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.service-card:hover .service-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btn-inquire-overlay {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card:hover .btn-inquire-overlay {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   PORTFOLIO SECTION - THE CHALLENGE
   ========================================== */

.work-intro {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.work-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 24px;
}

/* ==========================================
   PREMIUM PORTFOLIO MARQUEE SECTION
   ========================================== */
.portfolio-marquee-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 800px;
    /* Fixed height for desktop marquee */
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

@media (max-width: 991px) {
    .portfolio-marquee-wrapper {
        display: block;
        height: auto;
        overflow: visible;
    }
}

.portfolio-marquee-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.marquee-viewport {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

.marquee-up {
    animation: marquee-up 40s linear infinite;
}

.marquee-down {
    animation: marquee-down 40s linear infinite;
}

.portfolio-marquee-col:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes marquee-down {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

/* ==========================================
   PREMIUM PORTFOLIO CARD (GLASSMORPHIC)
   ========================================== */
.portfolio-card-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .portfolio-card-v2 {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Premium HUD Scanline Effect */
.portfolio-card-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(37, 99, 235, 0.05) 50%,
            transparent 50%);
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}


.portfolio-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(15, 23, 42, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card-v2:hover .portfolio-card-image::after {
    opacity: 1;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card-v2:hover .portfolio-card-image img {
    transform: scale(1.08);
}

.card-v2-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.card-v2-content h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

.card-v2-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-v2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-v2-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.portfolio-card-v2:hover .card-v2-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.portfolio-card-v2:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.portfolio-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    z-index: 3;
    pointer-events: none;
}

.portfolio-card-v2:hover::before {
    left: 150%;
}


/* Mobile Visibility HUD */
.portfolio-mobile-carousel {
    display: none;
}

@media (max-width: 991px) {
    .portfolio-marquee-col {
        display: none;
    }

    .portfolio-mobile-carousel {
        display: block;
        padding-top: 30px;
    }
}



/* ==========================================
   PORTFOLIO SECTION - 50/50 SPLIT
   ========================================== */

.portfolio-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .portfolio-split-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.portfolio-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.column-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-header i {
    color: var(--primary);
    font-size: 1.5rem;
}

.column-header h3 {
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text-primary);
}

.portfolio-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* LEGACY PORTFOLIO GRID REMOVED - REDEFINED IN PREMIUM MARQUEE SECTION */


@media (max-width: 640px) {
    .portfolio-carousel-container {
        padding: 0 50px;
    }

    .portfolio-image-container {
        height: 250px;
    }

    .portfolio-info-card {
        padding: 20px;
    }

    .portfolio-info-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .portfolio-info-card p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .portfolio-number {
        font-size: 32px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }
}

@media (max-width: 480px) {
    .portfolio-carousel-container {
        padding: 0 40px;
    }

    .portfolio-image-container {
        height: 220px;
    }

    .portfolio-info-card {
        padding: 18px;
    }

    .portfolio-info-card h3 {
        font-size: 18px;
    }

    .portfolio-info-card p {
        font-size: 13px;
    }

    .portfolio-number {
        font-size: 28px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .carousel-dots {
        margin-top: 30px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 30px;
    }
}

/* ==========================================
   FOUNDER SECTION - MESSAGE LAYOUT
   ========================================== */

.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.founder-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Founder Section - Quantum Aura (Pivot from Earth) */
.earth-3d-wrapper {
    position: relative;
    width: clamp(280px, 45vw, 420px);
    height: clamp(280px, 45vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.earth-atmosphere {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(33, 150, 243, 0.2) 0%, transparent 60%);
    box-shadow: inset 0 0 50px rgba(33, 150, 243, 0.1);
    animation: atmosphere-pulse 6s ease-in-out infinite;
    z-index: 1;
}

.earth-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    z-index: 0;
}

.ring-primary {
    width: 140%;
    height: 50%;
    transform: rotateX(65deg) rotateY(15deg);
    animation: aura-orbit 15s linear infinite;
    border-color: rgba(33, 150, 243, 0.2);
}

.ring-secondary {
    width: 50%;
    height: 140%;
    transform: rotateX(15deg) rotateY(65deg);
    animation: aura-orbit 20s linear infinite reverse;
    border-color: rgba(76, 175, 80, 0.15);
}

.tech-data-points {
    position: absolute;
    inset: -10%;
    z-index: 1;
    pointer-events: none;
}

.data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-light);
    opacity: 0.5;
}

.p1 {
    top: 20%;
    left: 10%;
    animation: orbit 12s linear infinite;
}

.p2 {
    top: 50%;
    right: 5%;
    animation: orbit 15s linear infinite reverse;
}

.p3 {
    bottom: 15%;
    left: 40%;
    animation: orbit 18s linear infinite;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

.earth-glow {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    z-index: 0;
}

.founder-image-wrapper {
    position: relative;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-alt);
    border: 4px solid var(--card-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: float-founder 4s ease-in-out infinite;
}

.founder-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1);
}

@keyframes rotate-atmos {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: rotateX(75deg) rotateY(15deg) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: rotateX(75deg) rotateY(15deg) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes float-founder {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


.founder-message {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    backdrop-filter: blur(10px);
}

.quote-icon {
    font-size: 100px;
    line-height: 1;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: serif;
}

.founder-quote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.2vw, 1.35rem);
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0 0 32px 0;
    font-style: italic;
    font-weight: 400;
}

.founder-signature {
    text-align: left;
    padding-top: 24px;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    flex-direction: column;
}

.founder-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.founder-company {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}


@media (max-width: 1024px) {
    .founder-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .founder-image-wrapper {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .quote-icon {
        left: 50%;
        transform: translateX(-50%);
    }

    .founder-signature {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .founder-content {
        gap: 32px;
    }

    .founder-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .founder-quote {
        font-size: 16px;
        line-height: 1.7;
    }

    .quote-icon {
        font-size: 80px;
        top: -20px;
    }

    .founder-name {
        font-size: 20px;
    }

    .founder-company {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .founder-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .founder-quote {
        font-size: 15px;
    }

    .quote-icon {
        font-size: 60px;
    }
}

/* Team Carousel Navigation */
.team-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.team-carousel-prev {
    left: 0;
}

.team-carousel-next {
    right: 0;
}

[data-theme="dark"] .team-carousel-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* Team Dots */
.team-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.team-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
}

.team-dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.team-dot.active {
    background: var(--primary-color);
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

@media (max-width: 640px) {
    .team-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ==========================================
   TESTIMONIALS SECTION - CAROUSEL
   ========================================== */

.testimonials-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 80px;
}

.testimonials-carousel {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    will-change: transform;
    transition: transform 0.8s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 calc(65% - 20px);
    min-width: calc(65% - 20px);
    transition: all 0.5s ease;
    opacity: 1;
    display: flex;
}


.testimonial-slide:not(.active-testimonial) {
    transform: scale(0.98);
}

.testimonial-slide.active-testimonial {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

@media (max-width: 968px) {
    .testimonials-carousel-container {
        padding: 0 60px;
    }

    .testimonial-slide {
        flex: 0 0 calc(80% - 20px);
        min-width: calc(80% - 20px);
    }

    .testimonial-card {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .testimonials-carousel-container {
        padding: 0 50px;
    }

    .testimonial-slide {
        flex: 0 0 calc(90% - 20px);
        min-width: calc(90% - 20px);
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .testimonial-text {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .testimonials-carousel-container {
        padding: 0 15px;
    }

    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .testimonials-carousel {
        gap: 16px;
    }

    .testimonial-card {
        padding: 32px 20px;
    }

    .testimonial-text {
        font-size: 16px;
        line-height: 1.8;
    }

    .testimonial-stars {
        font-size: 22px;
        margin-bottom: 20px;
        letter-spacing: 4px;
    }

    .author-image {
        width: 70px;
        height: 70px;
    }

    .author-info h4 {
        font-size: 19px;
    }

    .testimonial-dots {
        margin-top: 30px;
        gap: 8px;
    }

    .t-dot {
        width: 10px;
        height: 10px;
    }

    .t-dot.active {
        width: 32px;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel-container {
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 28px 18px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .testimonial-stars {
        font-size: 20px;
        margin-bottom: 18px;
        letter-spacing: 3px;
    }

    .author-image {
        width: 60px;
        height: 60px;
    }

    .author-info h4 {
        font-size: 17px;
    }

    .author-info span {
        font-size: 13px;
    }

    .author-date {
        font-size: 12px;
    }
}

.testimonial-card {
    background: var(--card-bg);
    padding: 60px 40px;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.1);
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .testimonial-card::before {
        font-size: 100px;
        top: 20px;
    }
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 140px;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.06;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(33, 150, 243, 0.15);
    border-color: var(--primary-color);
}

.testimonial-stars {
    font-size: 28px;
    margin-bottom: 32px;
    letter-spacing: 6px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 500;
    font-style: italic;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
    padding: 12px;
    background: var(--background);
    border: 4px solid var(--background-alt);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.testimonial-card:hover .author-image {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(33, 150, 243, 0.25);
}

.author-info {
    text-align: center;
}

.author-info h4 {
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-primary);
}

.author-info span {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.author-date {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

/* Testimonial Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
}

.t-dot:hover {
    background: var(--primary-light);
    transform: scale(1.3);
}

.t-dot.active {
    background: var(--primary-color);
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 16px;
}

.contact-info>p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--text-light);
}

.contact-item a,
.contact-item p {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Social Media */
.contact-social {
    margin-top: 32px;
}

.contact-social h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--background-alt);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 18px;
}

.contact-social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: all var(--transition-base);
    background: var(--card-bg);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 100%);
    color: white;
    padding: 60px 0 20px;
    transition: all var(--transition-base);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(76, 175, 80, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0b1120 0%, #080c14 100%);
}

[data-theme="dark"] .footer::before {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-about {
    max-width: 350px;
}

.footer-about p {
    margin-bottom: 12px;
    font-size: 14px;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px !important;
    letter-spacing: 0.3px;
    display: inline-block;
}

.tagline-emoji {
    font-size: 20px;
    margin-left: 4px;
    -webkit-text-fill-color: initial;
    background: none;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 16px;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* ==========================================
   RESPONSIVE DESIGN - COMPREHENSIVE
   ========================================== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Tablets and Small Laptops (1024px - 1199px) */
@media (max-width: 1199px) {
    .hero-wrapper {
        grid-template-columns: 1fr 0.8fr;
        gap: 60px;
    }

    .hero-title {
        font-size: clamp(38px, 5vw, 56px);
    }

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

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    .navbar {
        padding: 16px 0;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-avatar {
        order: 2;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .portfolio-slide {
        flex: 0 0 calc(85% - 15px);
        min-width: calc(85% - 15px);
    }

    .testimonial-slide {
        flex: 0 0 calc(80% - 20px);
        min-width: calc(80% - 20px);
    }
}

/* Mobile Landscape and Small Tablets (640px - 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    .navbar {
        padding: 16px 0;
    }

    .nav-wrapper {
        padding: 16px 0;
    }

    .logo-image {
        height: 38px;
    }

    .logo {
        padding: 6px 12px;
    }

    .nav-toggle {
        display: flex;
        padding: 6px;
    }

    .nav-toggle span {
        width: 26px;
        height: 3px;
    }

    .hero {
        min-height: auto;
        padding: 80px 0 60px;
        position: relative;
        overflow: hidden;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 11px;
        gap: 8px;
        opacity: 0.7;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 44px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

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

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

    .service-card {
        padding: 32px 28px;
    }

    .portfolio-carousel-container,
    .testimonials-carousel-container {
        padding: 0 50px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }
}

/* Mobile Portrait (480px - 639px) */
@media (max-width: 639px) {
    .navbar {
        padding: 14px 0;
    }

    .nav-wrapper {
        padding: 14px 0;
    }

    .logo-image {
        height: 34px;
    }

    .logo {
        padding: 6px 10px;
    }

    .nav-toggle {
        padding: 6px;
    }

    .nav-toggle span {
        width: 24px;
        height: 3px;
    }

    .hero {
        position: relative;
        overflow: hidden;
    }

    .scroll-indicator {
        bottom: 15px;
        font-size: 10px;
        gap: 6px;
        opacity: 0.6;
    }

    .scroll-arrow {
        width: 18px;
        height: 18px;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        gap: 24px;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .menu-close {
        position: absolute;
        top: 30px;
        right: 30px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10000;
    }

    .menu-close:hover {
        background: var(--primary-color);
        transform: rotate(90deg);
        border-color: var(--primary-color);
    }

    .nav-link {
        width: auto;
        padding: 10px 30px;
        margin: 5px 0;
        border-radius: 30px;
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
        background: transparent;
        color: white;
        display: flex;
        align-items: center;
        position: relative;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        background: var(--background-alt);
        color: var(--primary-color);
        border-color: var(--border-color);
        transform: translateX(8px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .nav-link.active {
        background: linear-gradient(135deg, var(--background-alt) 0%, var(--card-bg) 100%);
        color: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateX(8px);
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
        font-weight: 700;
    }

    /* Theme Toggle in Mobile Menu - Improved Design */
    .theme-toggle {
        width: 100%;
        margin: 20px 0 0 0;
        padding: 0;
        border-radius: 12px;
        height: 50px;
        min-height: 50px;
        border: 2px solid var(--border-color);
        border-top: 1px solid var(--border-color);
        background: var(--background-alt);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: row;
    }

    .theme-toggle::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
        border-radius: 12px;
    }

    .theme-toggle .theme-icon {
        position: relative;
        z-index: 1;
        font-size: 22px;
        line-height: 1;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        transition: transform 0.3s ease;
        filter: none;
        transform: rotate(0deg) scale(1) !important;
    }

    /* Dark theme specific styling for theme toggle */
    [data-theme="dark"] .theme-toggle {
        background: var(--background-alt);
        border-color: var(--border-color);
        border-top-color: var(--border-color);
    }

    [data-theme="dark"] .theme-toggle .theme-icon {
        filter: brightness(1.2);
        transform: rotate(0deg) scale(1) !important;
    }

    /* Light theme - ensure no rotation */
    [data-theme="light"] .theme-toggle .theme-icon {
        transform: rotate(0deg) scale(1) !important;
    }

    .theme-toggle:hover {
        border-color: var(--primary-color);
        border-top-color: var(--primary-color);
        background: var(--card-bg);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
    }

    .theme-toggle:hover::before {
        opacity: 0.1;
    }

    .theme-toggle:hover .theme-icon {
        transform: rotate(180deg) scale(1.1) !important;
        filter: brightness(1.3);
    }

    [data-theme="dark"] .theme-toggle:hover {
        background: var(--background-alt);
        border-color: var(--primary-color);
        border-top-color: var(--primary-color);
        box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
    }

    [data-theme="dark"] .theme-toggle:hover .theme-icon {
        transform: rotate(180deg) scale(1.1) !important;
        filter: brightness(1.3);
    }

    /* Mobile menu overlay - removed to prevent grey area */
    /* Overlay removed - menu provides sufficient visual separation */
    .nav-links::after {
        display: none !important;
        content: none !important;
    }

    /* Ensure navbar stays visible above overlay with solid background */
    .navbar {
        z-index: 10001 !important;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    [data-theme="dark"] .navbar {
        background: rgba(11, 17, 32, 0.7) !important;
    }

    /* Ensure logo and nav-toggle stay visible */
    .logo,
    .logo-image,
    .nav-toggle {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10002 !important;
        position: relative;
    }

    .logo-image {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-primary);
        cursor: pointer;
    }

    .hero-avatar-image {
        width: 100%;
        height: auto;
        max-width: 320px;
    }

    .portfolio-slide,
    .testimonial-slide {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
    }

    .portfolio-carousel,
    .testimonials-carousel {
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-wrapper {
        padding: 12px 0;
    }

    .logo-image {
        height: 32px;
    }

    .logo {
        padding: 6px 8px;
    }

    .nav-toggle {
        padding: 6px;
    }

    .nav-toggle span {
        width: 22px;
        height: 3px;
    }

    .hero {
        position: relative;
        overflow: hidden;
    }

    .scroll-indicator {
        bottom: 10px;
        font-size: 9px;
        gap: 5px;
        opacity: 0.5;
    }

    .scroll-arrow {
        width: 16px;
        height: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-icon {
        font-size: 40px;
    }

    .team-member {
        padding: 28px 20px;
    }

    .member-image {
        width: 90px;
        height: 90px;
    }

    .portfolio-carousel-container,
    .testimonials-carousel-container {
        padding: 0 35px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 17, 32, 0.9);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        gap: 2rem;
        padding: 2rem;
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.9);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--fs-xl);
        font-weight: 600;
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(33, 150, 243, 0.1);
        transform: scale(1.05);
    }

    .theme-toggle {
        margin-left: 0;
        margin-top: 1rem;
        width: 60px;
        height: 60px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
}

/* ==========================================
   EXISTING RESPONSIVE RULES
   ========================================== */

@media (max-width: 968px) {

    /* Mobile Menu Toggle button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10002;
    }

    .nav-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: left center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        background-color: var(--primary-color);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        background-color: var(--primary-color);
    }

    .hero-avatar-image {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .portfolio-slide,
    .testimonial-slide {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
    }

    .portfolio-carousel,
    .testimonials-carousel {
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Mobile Navigation & Branding Refinements */
    .navbar {
        z-index: 10001 !important;
        background: rgba(11, 17, 32, 0.75) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    [data-theme="light"] .navbar {
        background: rgba(255, 255, 255, 0.75) !important;
    }

    .logo-image {
        height: 32px;
        width: auto;
    }

    .logo,
    .logo-image,
    .nav-toggle {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10002 !important;
        position: relative;
    }

    /* Hero Section Transformations */
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-avatar {
        order: -1;
        min-height: 280px;
        height: auto;
    }

    /* Avatar Circles Scaling */
    .circle-1 {
        width: 250px !important;
        height: 250px !important;
    }

    .circle-2,
    .circle-3 {
        width: 120px !important;
        height: 120px !important;
    }

    .avatar-badge {
        font-size: 13px;
        padding: 8px 16px;
        bottom: 10px;
    }

    /* Content Layout Adjustments - Restored */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .hero-avatar {
        min-height: 200px;
    }

    .hero {
        min-height: 90vh;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* 24px standardized gap */
    }

    /* Form Optimization: Prevent browser zooming on mobile */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .service-card,
    .team-member,
    .testimonial-card {
        padding: 20px;
    }

    .portfolio-carousel-container,
    .testimonials-carousel-container {
        padding: 0 15px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 10px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .carousel-btn {
        background: rgba(30, 41, 59, 0.9);
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .portfolio-info-card {
        padding: 15px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

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

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 40px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 40px;
}

/* ==========================================
   SERVICE INQUIRY MODAL
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--background-alt);
    color: var(--text-primary);
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    padding: 32px 32px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-title span {
    color: var(--primary-color);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-form {
    padding: 28px 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: all var(--transition-base);
    background: var(--background);
    color: var(--text-primary);
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.modal-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-success {
    padding: 48px 32px;
    text-align: center;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.modal-success h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-success p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-header,
    .modal-form,
    .modal-success {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ==========================================
   WEBSITE AVATAR/MASCOT
   ========================================== */

.website-avatar {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
    cursor: pointer;
    transition: all var(--transition-base);
    animation: float-avatar 3s ease-in-out infinite;
}

.website-avatar:hover {
    transform: scale(1.1) translateY(-5px);
}

.avatar-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    border-radius: 50%;
    background: var(--background);
    padding: 5px;
}

.avatar-tooltip {
    position: absolute;
    bottom: 50%;
    right: 100%;
    margin-right: 15px;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    transform: translateX(10px);
}

.avatar-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent var(--primary-color);
}

.website-avatar:hover .avatar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes float-avatar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* Quantum Aura & Zen Portal Keyframes */
@keyframes aura-orbit {
    from {
        transform: rotate(0deg) rotateX(65deg);
    }

    to {
        transform: rotate(360deg) rotateX(65deg);
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    50% {
        transform: translate(15px, -25px);
        opacity: 0.9;
    }
}

@keyframes atmosphere-pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Hide avatar on small screens to avoid overlapping with scroll-to-top button */
@media (max-width: 640px) {
    .website-avatar {
        width: 60px;
        height: 60px;
        bottom: 90px;
        right: 20px;
    }

    .avatar-image {
        width: 60px;
        height: 60px;
    }

    .avatar-tooltip {
        display: none;
    }
}

/* ==========================================
   NEW COMPONENT STYLES
   ========================================== */

/* 1. Testimonial Card Design - Minimalist */
.testimonial-card-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-logo {
    height: 32px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.testimonial-card-v2:hover .testimonial-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.testimonial-metric {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.testimonial-text-v2 {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-v2 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details-v2 h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.author-details-v2 span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 2. Portfolio/Project Card Design */
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    color: white;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover .project-title,
.project-card:hover .project-description,
.project-card:hover .stat-value,
.project-card:hover .stat-label {
    color: white;
}

.project-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.project-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: color var(--transition-base);
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    transition: color var(--transition-base);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: color var(--transition-base);
}

/* 3. Project Details Modal - Enhanced */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
}

.project-modal-container {
    position: relative;
    background: var(--surface);
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn:hover {
    background: var(--accent);
    transform: rotate(180deg) scale(1.1);
    border-color: var(--accent);
}

.modal-hero {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.project-modal.active .modal-hero img {
    transform: scale(1.05);
}

.modal-hero-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.6) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    color: white;
}

.modal-category {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.modal-hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.modal-body {
    padding: 0;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 0;
}

.case-study-content {
    padding: 4rem;
}

.modal-sidebar {
    padding: 4rem;
    background: var(--background);
    border-left: 1px solid var(--border);
}

.modal-section {
    margin-bottom: 3.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-section-title::before {
    content: '';
    width: 24px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.case-study-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.case-study-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-testimonial {
    position: relative;
    padding: 2.5rem;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.modal-testimonial::after {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

.modal-testimonial p {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Service Pricing Badge - Premium Tech HUD Version */
.service-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(37, 99, 235, 0.05);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: auto;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-price-badge i {
    font-size: 0.8rem;
    color: var(--primary);
}

.service-card:hover .service-price-badge {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.service-card:hover .service-price-badge i {
    color: white;
}

[data-theme="dark"] .service-price-badge {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* GSAP Reveal Animations Utility */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

/* 4. Trust Signals Section */
.trust-signals {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    opacity: 0.6;
}

.trust-logo {
    height: 40px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.trust-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 640px) {
    .logo-cloud {
        gap: 2rem;
    }

    .trust-logo {
        height: 30px;
    }
}

/* Tech Stack Marquee */
.tech-stack {
    padding: 3rem 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.tech-marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.tech-marquee-content {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.tech-item:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Service Card HUD Overlays */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, var(--primary) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.03;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.08;
}

.service-card .card-hud-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .card-hud-line {
    width: 100%;
}

/* Elegant Heading Reveal Styles */
.word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.word-inner {
    display: inline-block;
    will-change: transform;
}

/* ==========================================
   NEW PREMIUM STYLES (v1.2.0)
   ========================================== */

/* Testimonial v3 - Premium Look */
.testimonial-text-v2 {
    font-style: italic;
}

/* Legacy cleanup */


/* Testimonial v3 - Premium HUD Look (Compact) */
.testimonial-card-v3 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px 28px;
    /* Reduced from 40px 32px */
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    max-width: 780px;
    /* Slimmer */
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-theme="dark"] .testimonial-card-v3 {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Active Highlight for Carousel */
.testimonial-slide {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    filter: blur(2px);
    opacity: 0.4;
    transform: scale(0.9);
}

.testimonial-slide.active {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

/* HUD Corner Accents (Optimized Placement) */
.testimonial-card-v3::before,
.testimonial-card-v3::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    opacity: 0.3;
}

.testimonial-card-v3::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.testimonial-card-v3::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.testimonial-metric {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    /* Tighter */
    border: 1px solid rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.testimonial-metric::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: glint 3s infinite;
}

.testimonial-text-v3 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 20px;
    font-style: italic;
}

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

.author-avatar-v3 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

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

.author-details-v3 h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0px;
}

.author-details-v3 span {
    font-size: 14px;
    color: var(--text-secondary);
}


@keyframes glint {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}


.tech-badge {
    background: var(--background-alt);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
}

[data-theme="dark"] .tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   CONSOLIDATED PREMIUM COMPONENT STYLES
   ========================================== */

/* Portfolio Card Design Enhancement */
.card-v2-content h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.card-v2-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tag Styles */
.product-tag,
.outcome-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 100px;
    margin-top: 12px;
}

.product-tag {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.outcome-tag {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Footer Interaction */
.card-v2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .portfolio-slide {
        padding: 0 10px;
    }

    .card-v2-content h4 {
        font-size: 1.25rem;
    }
}

/* ==========================================
   FEATURES DETAIL SECTION
   ========================================== */
.features-detail {
    padding: 100px 0;
    background: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-item i {
    font-size: 24px;
    color: var(--primary);
    margin-top: 5px;
}

.feature-text h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing {
    padding: 100px 0;
    background: #FCFAF7;
    /* Light cream background for contrast */
}

[data-theme="dark"] .pricing {
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.pricing-card-header {
    margin-bottom: 32px;
}

.recommended {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pricing-card-header p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price span {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-top: 5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.pricing-features li i {
    color: #10B981;
    /* Success Green */
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq {
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    transition: all var(--transition-base);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.04);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(37, 99, 235, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta {
    padding: 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.2);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-card .section-title {
    color: white;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

    .cta-buttons {
        flex-direction: column;
    }
}