/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Janna LT Regular', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1E2A38;
    color: #F5F0E6;
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'liga' 1, 'kern' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #1E2A38;
    --secondary-color: #F5F0E6;
    --accent-color: #D4A056;
    --support-color-1: #888C8F;
    --support-color-2: #1C1C1E;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1.5rem;
    --font-size-lg: 1.7rem;
    --font-size-xl: 2.5rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Standardized Section Typography */
    --section-title-size: clamp(1.75rem, 5vw, 3.5rem);
    --section-subtitle-size: clamp(1rem, 2vw, 1.25rem);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

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

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-title {
    font-size: var(--section-title-size);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--accent-color);
}

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

/* ===== SCROLL REVEAL SYSTEM ===== */
.p2g-section {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* Hidden state: Simple slide-up */
.section-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
}

/* When hidden, PAUSE all animations and transitions to save CPU/GPU */
.section-hidden * {
    animation-play-state: paused !important;
    transition: none !important;
    pointer-events: none;
}

/* Visible state: Reset transform */
.section-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow), transform 0.7s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6%);
}

/* Slide the whole overlay down out of view */
.loading-overlay.overlay-slide-out {
    transform: translateY(100vh);
    transition: transform 1.5s ease-out;
    z-index: 9998;
    /* below sweeper */
}

/* Hide overlay content as sweeper moves down */
.loading-overlay.overlay-slide-out .loading-content {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

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

/* Quick fade of inner content before slide-out */
.loading-content.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.loading-edge-logo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    /* clip anything outside viewport */
}

.loading-edge-logo img {
    position: absolute;
    width: min(34vw, 340px);
    /* تكبير الحجم */
    height: auto;
    opacity: 0.14;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transform: translate(-50%, -50%);
}

.loading-animation {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

/* Sweeper: brace-down coming from top */
.brace-sweeper {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(40vw, 420px);
    height: auto;
    z-index: 10000;
    /* above overlay */
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
    pointer-events: none;
    animation: sweepDown 1500ms ease both;
    transition: all 0.3s ease;
    will-change: transform;
    /* Optimized: removed filter from will-change */
}

.brace-sweeper:hover {
    filter: drop-shadow(0 12px 32px rgba(212, 160, 86, 0.6));
}

/* Add pulsing effect to brace-sweeper */
.brace-sweeper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    will-change: transform, opacity;
}

/* Add trailing effect to brace-sweeper */
.brace-sweeper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 160, 86, 0.2) 50%, transparent 70%);
    animation: trailingEffect 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    will-change: transform, opacity;
}

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

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        opacity: 0.5;
    }

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

@keyframes pulseGlow {

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

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes sweepDown {
    0% {
        transform: translate(-50%, -10vh) rotate(0deg) scale(1);
        opacity: 1;
    }

    8% {
        transform: translate(-50%, 2vh) rotate(-8deg) scale(1.15);
        opacity: 1;
    }

    15% {
        transform: translate(-45%, 8vh) rotate(12deg) scale(1.1);
        opacity: 1;
    }

    25% {
        transform: translate(-55%, 18vh) rotate(-6deg) scale(1.05);
        opacity: 1;
    }

    35% {
        transform: translate(-48%, 28vh) rotate(10deg) scale(1.0);
        opacity: 1;
    }

    45% {
        transform: translate(-52%, 38vh) rotate(-4deg) scale(0.95);
        opacity: 1;
    }

    55% {
        transform: translate(-47%, 48vh) rotate(7deg) scale(0.9);
        opacity: 1;
    }

    65% {
        transform: translate(-53%, 58vh) rotate(-5deg) scale(0.85);
        opacity: 1;
    }

    75% {
        transform: translate(-49%, 68vh) rotate(3deg) scale(0.8);
        opacity: 1;
    }

    85% {
        transform: translate(-51%, 78vh) rotate(-2deg) scale(0.75);
        opacity: 1;
    }

    95% {
        transform: translate(-50%, 88vh) rotate(1deg) scale(0.7);
        opacity: 1;
    }

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

/* ===== SCATTER ANIMATIONS ===== */
/* ===== SCATTER ANIMATIONS ===== */
@keyframes scatterLeft {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1) !important;
        opacity: 1 !important;
    }

    15% {
        transform: translate(-60px, -30px) rotate(-45deg) scale(1.2) !important;
        opacity: 0.95 !important;
    }

    30% {
        transform: translate(-120px, -80px) rotate(-90deg) scale(1.0) !important;
        opacity: 0.8 !important;
    }

    50% {
        transform: translate(-200px, -150px) rotate(-180deg) scale(0.8) !important;
        opacity: 0.6 !important;
    }

    70% {
        transform: translate(-300px, -250px) rotate(-270deg) scale(0.6) !important;
        opacity: 0.4 !important;
    }

    85% {
        transform: translate(-400px, -350px) rotate(-360deg) scale(0.4) !important;
        opacity: 0.2 !important;
    }

    100% {
        transform: translate(-500px, -450px) rotate(-450deg) scale(0.1) !important;
        opacity: 0 !important;
    }
}

@keyframes scatterRight {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1) !important;
        opacity: 1 !important;
    }

    15% {
        transform: translate(60px, -30px) rotate(45deg) scale(1.2) !important;
        opacity: 0.95 !important;
    }

    30% {
        transform: translate(120px, -80px) rotate(90deg) scale(1.0) !important;
        opacity: 0.8 !important;
    }

    50% {
        transform: translate(200px, -150px) rotate(180deg) scale(0.8) !important;
        opacity: 0.6 !important;
    }

    70% {
        transform: translate(300px, -250px) rotate(270deg) scale(0.6) !important;
        opacity: 0.4 !important;
    }

    85% {
        transform: translate(400px, -350px) rotate(360deg) scale(0.4) !important;
        opacity: 0.2 !important;
    }

    100% {
        transform: translate(500px, -450px) rotate(450deg) scale(0.1) !important;
        opacity: 0 !important;
    }
}

@keyframes scatterText {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg) !important;
        opacity: 1 !important;
    }

    15% {
        transform: translate(0, -20px) scale(1.3) rotate(8deg) !important;
        opacity: 0.95 !important;
    }

    30% {
        transform: translate(0, -50px) scale(1.1) rotate(-5deg) !important;
        opacity: 0.8 !important;
    }

    50% {
        transform: translate(0, -100px) scale(0.9) rotate(12deg) !important;
        opacity: 0.6 !important;
    }

    70% {
        transform: translate(0, -180px) scale(0.6) rotate(-8deg) !important;
        opacity: 0.4 !important;
    }

    85% {
        transform: translate(0, -280px) scale(0.4) rotate(15deg) !important;
        opacity: 0.2 !important;
    }

    100% {
        transform: translate(0, -400px) scale(0.1) rotate(0deg) !important;
        opacity: 0 !important;
    }
}

/* Edge logo scatter animations */
@keyframes edgeScatter1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg) !important;
        opacity: 1 !important;
    }

    20% {
        transform: translate(-80px, -60px) scale(1.2) rotate(-45deg) !important;
        opacity: 0.9 !important;
    }

    40% {
        transform: translate(-150px, -120px) scale(1.0) rotate(-90deg) !important;
        opacity: 0.7 !important;
    }

    60% {
        transform: translate(-250px, -200px) scale(0.8) rotate(-135deg) !important;
        opacity: 0.5 !important;
    }

    80% {
        transform: translate(-400px, -300px) scale(0.5) rotate(-180deg) !important;
        opacity: 0.3 !important;
    }

    100% {
        transform: translate(-600px, -450px) scale(0.2) rotate(-225deg) !important;
        opacity: 0 !important;
    }
}

@keyframes edgeScatter2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg) !important;
        opacity: 1 !important;
    }

    20% {
        transform: translate(100px, -80px) scale(1.2) rotate(60deg) !important;
        opacity: 0.9 !important;
    }

    40% {
        transform: translate(200px, -160px) scale(1.0) rotate(120deg) !important;
        opacity: 0.7 !important;
    }

    60% {
        transform: translate(350px, -250px) scale(0.8) rotate(180deg) !important;
        opacity: 0.5 !important;
    }

    80% {
        transform: translate(500px, -350px) scale(0.5) rotate(240deg) !important;
        opacity: 0.3 !important;
    }

    100% {
        transform: translate(700px, -500px) scale(0.2) rotate(300deg) !important;
        opacity: 0 !important;
    }
}

.animated-braces {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    will-change: transform;
}

/* Scatter animation classes - moved to individual element selectors */

.animated-braces .brace-left,
.animated-braces .brace-right {
    width: 60px;
    height: 60px;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    object-fit: contain;
    transition: all 0.3s ease;
    will-change: transform, opacity;
}

.animated-braces .brace-left:hover,
.animated-braces .brace-right:hover {
    filter: drop-shadow(0 4px 8px rgba(212, 160, 86, 0.4));
    transform: scale(1.1);
}

.animated-braces .brace-left {
    transform-origin: right center;
}

.animated-braces .brace-left.scatter {
    animation: scatterLeft 1.2s ease-out forwards !important;
    z-index: 1000 !important;
    pointer-events: none !important;
    /* Remove shadow during scatter */
}

.animated-braces .brace-right {
    transform-origin: left center;
}

.animated-braces .brace-right.scatter {
    animation: scatterRight 1.2s ease-out forwards !important;
    z-index: 1000 !important;
    pointer-events: none !important;
    /* Remove shadow during scatter */
}

.animated-braces .loading-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0 var(--spacing-md);
    white-space: nowrap;
    min-width: 200px;
    text-align: center;
    position: relative;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textPulse 2s ease-in-out infinite, textShimmer 3s ease-in-out infinite;
    will-change: transform, opacity;
}

.animated-braces .loading-text.scatter {
    animation: scatterText 1.2s ease-out forwards !important;
    z-index: 1000 !important;
    pointer-events: none !important;
    /* Remove shadow during scatter */
}

/* Edge logo scatter classes */
.loading-edge-logo img.edge-scatter:nth-child(1) {
    animation: edgeScatter1 1.2s ease-out forwards !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}

.loading-edge-logo img.edge-scatter:nth-child(2) {
    animation: edgeScatter2 1.2s ease-out forwards !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}







@keyframes textPulse {

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

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Additional random animations for variety */




@keyframes pulse {

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

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

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: var(--spacing-sm) 0;
    /* Optimized: Removed continuous headerGlow animation for performance */
}

/* Scrolled State - Modern Glassmorphism */
.header.scrolled {
    background: rgba(30, 42, 56, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    /* Compact size on scroll */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    transition: height 0.4s ease;
}

.header.scrolled .navbar {
    height: 64px;
    /* Smaller height on scroll */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--secondary-color);
    position: relative;
    z-index: 10;
}

/* Logo Styles */
.logo-svg-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-svg {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header.scrolled .logo-svg {
    height: 40px;
}

.nav-brand:hover .logo-svg-container {
    transform: scale(1.05) rotate(2deg);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-brand:hover .brand-text {
    opacity: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--spacing-xl);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(245, 240, 230, 0.85);
    /* Slightly muted for depth */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

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

/* Modern Expanding Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease-out;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-color);
}

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

/* Active Link State (Optional adds subtle dot) */
.nav-link.active-link {
    color: var(--accent-color);
}

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

/* Toggle Button (Hamburger) - Refined */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: transform 0.2s ease;
}

.nav-toggle:active {
    transform: scale(0.9);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    position: relative;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: inherit;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger Animation State */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Popdown Menu Override (ensure it matches new glass style) */
.nav-pop {
    /* Existing structure is in another block, but we ensure style consistency */
    background: rgba(30, 42, 56, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Call to Action in Nav (optional distinct button style for 'Contact') */
/* .nav-item:last-child .nav-link {} - placeholder removed */

/* Responsive Adjustments */
@media (max-width: 900px) {
    .nav-menu {
        gap: var(--spacing-lg);
    }
}

/* ===== HERO SECTION ===== */
/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    height: 100vh;
    /* Force full viewport height */
    display: flex;
    align-items: center;
    /* Vertically center content */
    justify-content: center;
    padding: 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
    animation: heroEntrance 1.2s ease-out forwards;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Remove animation and transitions after loading is complete for JS control */
.hero.animation-complete {
    animation: none;
    transition: none !important;
}

.hero.animation-complete .hero-content,
.hero.animation-complete .hero-visual,
.hero.animation-complete .hero-background,
.hero.animation-complete .typing-text,
.hero.animation-complete .code-window,
.hero.animation-complete .floating-shape {
    transition: none !important;
    /* Ensure children also have no lag */
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 50px, 0) scale(0.95);
    }

    50% {
        opacity: 0.7;
        transform: translate3d(0, 20px, 0) scale(0.98);
    }

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    animation: backgroundEntrance 1.4s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes backgroundEntrance {
    0% {
        opacity: 0;
        transform: scale(1.1) rotate(2deg);
    }

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

.floating-elements {
    position: absolute;
    /* Changed to absolute to float freely */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    /* Let clicks pass through */
    animation: floatingEntrance 1.6s ease-out forwards;
    will-change: transform, opacity;
}

/* Floating SVG icons replacing dot shapes */
.floating-elements .floating-icon {
    position: absolute;
    display: block;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
    animation: heroIconFadeIn 1.5s ease-out forwards;
    will-change: transform, opacity;
}

/* Default sizes (desktop) */
.icon-idea {
    width: clamp(40px, 5vw, 56px);
    top: 20%;
    right: 15%;
    animation-delay: 0s, 0.4s;
    --icon-rot: -2deg;
}

.icon-grow {
    width: clamp(50px, 6vw, 72px);
    bottom: 20%;
    /* Moved to bottom for balance */
    left: 15%;
    top: auto;
    animation-delay: 1.4s, 0.6s;
    --icon-rot: 3deg;
}



@keyframes heroIconFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.9;
    }
}

@keyframes floatingEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9) rotate(-5deg);
    }

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

/* removed legacy floating-shape dots */

.hero-container {
    max-width: 1400px;
    /* Increased max-width */
    width: 100%;
    display: flex;
    /* Changed to flex for better centering */
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: containerEntrance 1.3s ease-out forwards;
    will-change: transform, opacity;
    padding-top: 60px;
    /* Account for navbar */
}

@keyframes containerEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 30px, 0) scale(0.9);
    }

    60% {
        opacity: 0.8;
        transform: translate3d(0, 10px, 0) scale(0.95);
    }

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    /* Limit content width */
    text-align: center;
    z-index: 3;
    animation: contentEntrance 1.5s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes contentEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 40px, 0) scale(0.9);
    }

    50% {
        opacity: 0.7;
        transform: translate3d(0, 15px, 0) scale(0.95);
    }

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

.hero-badge {
    display: inline-block;
    background: rgba(212, 160, 86, 0.1);
    border: 1px solid rgba(212, 160, 86, 0.3);
    border-radius: 50px;
    padding: var(--spacing-sm) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    font-weight: 600;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.typing-text {
    text-align: center;
    font-size: clamp(0.9rem, 2.9vw, 2.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
    min-height: 60px;
    animation: typingTextEntrance 1.6s ease-out forwards;
    will-change: transform, opacity;
}


@keyframes typingTextEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.9);
    }

    40% {
        opacity: 0.6;
        transform: translate3d(0, 10px, 0) scale(0.95);
    }

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

.text-line {
    color: var(--secondary-color);
    display: block;
    position: relative;
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    height: 0;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out forwards, textLineEntrance 1.8s ease-out forwards;
    animation-delay: 0.3s, 0.5s;
    animation-fill-mode: forwards;
    white-space: pre-line;
    will-change: transform, opacity, height;
}

@keyframes textLineEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 15px, 0) scale(0.95);
    }

    50% {
        opacity: 0.7;
        transform: translate3d(0, 8px, 0) scale(0.98);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        height: 0;
        transform: translate3d(0, 30px, 0);
    }

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

.text-line::after {
    content: '|';
    color: var(--accent-color);
    animation: blink 1s infinite, cursorEntrance 0.5s ease-out forwards;
    margin-left: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes cursorEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
        filter: blur(3px);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(90deg);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* Mobile responsiveness for Hero */
@media (max-width: 992px) {
    .hero-container {
        padding-top: 80px;
    }

    .hero-content {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 var(--spacing-sm);
        height: 100vh;
        /* Ensure full height on mobile too */
        min-height: 600px;
        /* Minimum constrained height */
    }

    .hero-container {
        flex-direction: column;
        padding-top: 100px;
        gap: 4rem;
        /* Increased gap between text and code window */
    }

    .hero-content {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .typing-text {
        font-size: 1.5rem;
        /* Smaller font for mobile */
        min-height: 80px;
        /* Allow wrapping */
    }

    .text-line {
        white-space: normal;
        /* Allow wrapping on small screens */
    }
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    opacity: 0;
    z-index: 10;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    animation: arrowEntrance 1s ease-out 2s forwards, arrowBounce 2s infinite 3s;
}

.scroll-down-arrow svg {
    width: 32px;
    height: 32px;
}

.scroll-down-arrow:hover {
    color: var(--accent-color);
    transform: translateX(-50%) scale(1.1);
}

@keyframes arrowEntrance {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 0.7;
        transform: translate(-50%, 0);
    }
}

@keyframes arrowBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

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

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

.text-line.typing::after {
    opacity: 1;
    animation: blink 1s infinite, cursorEntrance 0.5s ease-out forwards;
}



.text-line.typing-complete::after {
    display: none;
    animation: cursorFadeOut 0.5s ease-out forwards;
}

@keyframes cursorFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--accent-color));
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
        filter: drop-shadow(0 0 10px var(--accent-color));
    }

    100% {
        opacity: 0;
        transform: scale(0);
        filter: drop-shadow(0 0 0px var(--accent-color));
    }
}

.text-line .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    animation: highlightEntrance 0.8s ease-out forwards;
}

@keyframes highlightEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
        filter: blur(3px);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(2deg);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.text-line .highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    animation: underlineExpand 1s ease-out 3s forwards, highlightUnderlineEntrance 1.2s ease-out forwards;
    border-radius: 2px;
}

@keyframes highlightUnderlineEntrance {
    0% {
        opacity: 0;
        transform: scaleX(0) rotate(-2deg);
        filter: blur(2px);
    }

    50% {
        opacity: 0.7;
        transform: scaleX(0.5) rotate(1deg);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: scaleX(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.2s forwards;
}

.hero-description p {
    font-size: var(--font-size-lg);
    color: rgba(245, 240, 230, 0.8);
    line-height: 1.6;
    max-width: 500px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.8s forwards, visualEntrance 1.4s ease-out forwards;
}

@keyframes visualEntrance {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.8) rotate(5deg);
        filter: blur(15px);
    }

    40% {
        opacity: 0.6;
        transform: translateX(20px) scale(0.9) rotate(2deg);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

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

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

@keyframes codeLineEntrance {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
        filter: blur(4px);
    }

    50% {
        opacity: 0.6;
        transform: translateX(-15px) scale(0.95);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.code-window {
    background: linear-gradient(180deg, rgba(22, 30, 40, 0.96), rgba(28, 36, 48, 0.96));
    border: 1px solid rgba(212, 160, 86, 0.28);
    border-radius: 16px;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    line-height: 1.6;
    --code-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    box-shadow: var(--code-shadow);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    direction: ltr;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
    animation: codeWindowEntrance 1.6s ease-out forwards;
}

/* Gradient accent border using ::before */
.code-window::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    /* border thickness */
    background: linear-gradient(135deg, rgba(212, 160, 86, 0.65), rgba(212, 160, 86, 0.05) 40%, rgba(255, 255, 255, 0.06) 60%, rgba(212, 160, 86, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Subtle grid texture */
.code-window::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.25;
    pointer-events: none;
}

@keyframes codeWindowEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotate(-3deg);
        filter: blur(20px);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    30% {
        opacity: 0.5;
        transform: translateY(15px) scale(0.9) rotate(-1deg);
        filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    60% {
        opacity: 0.8;
        transform: translateY(5px) scale(0.95) rotate(0.5deg);
        filter: blur(5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
        box-shadow: var(--code-shadow);
    }
}

.code-window:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    border-color: rgba(212, 160, 86, 0.6);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(212, 160, 86, 0.2);
    animation: codeHeaderEntrance 1.6s ease-out forwards;
}

@keyframes codeHeaderEntrance {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
        filter: blur(5px);
    }

    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(0.95);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.code-dots {
    display: flex;
    gap: var(--spacing-xs);
    animation: codeDotsEntrance 1.7s ease-out forwards;
}

@keyframes codeDotsEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
        filter: blur(3px);
    }

    60% {
        opacity: 0.8;
        transform: scale(0.8) rotate(90deg);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27ca3f;
}


.code-content {
    padding: var(--spacing-xl);
    animation: codeContentEntrance 0.1s ease-out forwards;
}

@keyframes codeContentEntrance {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
        filter: blur(6px);
    }

    60% {
        opacity: 0.7;
        transform: translateY(8px) scale(0.98);
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.code-line {
    opacity: 0;
    animation: codeFadeIn 0.1s ease forwards, codeLineEntrance 0.5s ease-out forwards;
}

.code-line:nth-child(1) {
    animation-delay: 2s;
}

.code-line:nth-child(2) {
    animation-delay: 2.2s;
}

.code-line:nth-child(3) {
    animation-delay: 2.4s;
}

.code-line:nth-child(4) {
    animation-delay: 2.6s;
}

@keyframes codeFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.indent {
    margin-left: var(--spacing-2xl);
}

.code-keyword {
    color: #ff79c6;
    font-weight: 600;
}

.code-function {
    color: #50fa7b;
    font-weight: 600;
}

.code-bracket {
    color: #f8f8f2;
    font-weight: bold;
}

.code-string {
    font-weight: 600;
    color: #f1fa8c;
    font-style: italic;
}

.code-semicolon {
    color: #f8f8f2;
    font-weight: bold;
}

.code-comment {
    color: #6272a4;
    font-style: italic;
    opacity: 0.7;
    font-size: 0.75em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-container {
        gap: var(--spacing-xs);
    }

    .typing-text {
        font-size: clamp(0.8rem, 3vw, 3.5rem);
        min-height: 90px;
        font-weight: 600;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 100px var(--spacing-md) var(--spacing-xl);
        align-items: flex-start;
    }

    .typing-text {
        font-size: clamp(1rem, 3.5vw, 3rem);
        min-height: 40px;
        margin-top: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }

    /* Prioritize hero-content on small/medium screens */
    .hero-content {
        order: -1;
        /* content first */
        z-index: 3;
        /* on top if overlapping */
        position: relative;
    }

    .hero-visual {
        order: 2;
        /* visual after content */
        margin-top: var(--spacing-lg);
        margin-bottom: 0;
        z-index: 2;
    }

    .code-window {
        max-width: 100%;
        transform: scale(0.95);
        --code-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

    /* ≤ 992px positions */
    .icon-idea {
        top: 16%;
        right: 12%;
        --icon-rot: -1deg;
    }

    .icon-grow {
        top: 34%;
        left: 10%;
        --icon-rot: 2deg;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 90px var(--spacing-md) var(--spacing-lg);
        align-items: flex-start;
    }

    .typing-text {
        font-size: clamp(0.95rem, 4vw, 2rem);
        min-height: 0px;
        margin-top: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }

    .hero-content {
        order: -1;
    }

    .hero-visual {
        order: 2;
        opacity: 0.9;
        /* soften prominence */
        transform: scale(0.9);
        margin-top: var(--spacing-md);
    }

    .code-window {
        font-size: 1.33rem;
        transform: scale(0.9);
        --code-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

    .code-content {
        padding: var(--spacing-lg);
    }

    /* Floating icons: responsive sizes and positions */
    .icon-grow {
        width: min(18vw, 64px);
        top: 26%;
        left: 80%;
        --icon-rot: -3deg;
    }

    .icon-idea {
        width: min(14vw, 52px);
        top: 16%;
        right: 83%;
        --icon-rot: 4deg;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 80px var(--spacing-sm) var(--spacing-sm);
        align-items: flex-start;
    }

    .typing-text {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        min-height: 60px;
        margin-top: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }

    .hero-content {
        order: -1;
    }

    .hero-visual {
        order: 2;
        opacity: 0.8;
        transform: scale(0.85);
        margin-top: var(--spacing-sm);
    }

    .code-window {
        font-size: 1rem;
        transform: scale(0.85);
        --code-shadow: 0 0px 0px rgba(0, 0, 0, 0.1), inset 0 0 0 0px rgba(255, 255, 255, 0.02);
    }

    .code-content {
        padding: var(--spacing-md);
    }

    /* Very small screens */
    .icon-grow {
        width: min(22vw, 52px);
        opacity: 0.8;
        top: 26%;
        left: 80%;
        --icon-rot: -4deg;
    }

    .icon-idea {
        width: min(16vw, 42px);
        top: 16%;
        right: 83%;
        --icon-rot: 5deg;
    }
}

@media (max-width: 375px) {
    .typing-text {
        font-size: clamp(0.4rem, 5vw, 1.7rem);
        min-height: 40px;
        padding-top: var(--spacing-xs);
    }

    .code-window {
        font-size: 0.75rem;
        transform: scale(0.85);
    }

    /* ≤ 375px positions */
    .icon-idea {
        top: 12%;
        right: 7%;
        --icon-rot: 3deg;
    }

    .icon-grow {
        top: 62%;
        right: 75%;
        --icon-rot: -6deg;
    }
}

@media (max-width: 275px) {
    .code-window {
        font-size: 10px;
        transform: scale(0.85);
    }

    .nav-brand .brand-text {
        font-size: 16px;
    }

    .nav-brand .logo-svg {
        height: 30px;
        max-width: 60px;
    }

    .hamburger {
        scale: 0.6;
        padding: 0px;
    }

    /* ≤ 275px positions */
    .icon-idea {
        top: 9%;
        right: 7%;
        --icon-rot: 2deg;
    }

    .icon-grow {
        top: 57%;
        right: 66%;
        --icon-rot: -8deg;
    }
}

@media (max-width: 475px) {
    .hero {
        min-height: auto;
        padding: 70px var(--spacing-xs) var(--spacing-sm);
        align-items: flex-start;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .hero-content {
        order: -1;
        padding: var(--spacing-sm);
    }

    .hero-visual {
        order: 2;
        opacity: 0.7;
        transform: scale(0.8);
    }

    .typing-text {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .code-window {
        transform: scale(0.9);
    }
}

@media (max-width: 275px) {
    .hero {
        min-height: auto;
        padding: 60px var(--spacing-xs) var(--spacing-xs);
        align-items: flex-start;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        text-align: center;
    }

    .hero-content {
        order: -1;
        padding: var(--spacing-xs);
    }

    .hero-visual {
        order: 2;
        opacity: 0.6;
        transform: scale(0.75);
    }

    .typing-text {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
    }

    .code-window {
        transform: scale(0.8);
    }
}

/* ===== ABOUT US SECTION ===== */
.about-us {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: var(--primary-color);
    overflow: hidden;
}

/* Floating Elements Container */
.about-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floating Icons */
.about-floating-elements .floating-icon {
    position: absolute;
    opacity: 0.15;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
    will-change: transform, opacity;
}

.about-floating-elements .floating-icon:hover {
    transform: scale(1.15) rotate(8deg) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(212, 160, 86, 0.4));
    animation-play-state: paused;
}

/* Icon positioning and sizing - Desktop */
.icon-goal {
    width: 50px;
    top: 44%;
    left: 9%;
    animation-delay: 1.5s, 1s;
    --icon-rot: 4deg;
}

.icon-info {
    width: 55px;
    top: 83%;
    right: 41%;
    animation-delay: 0s, 0.5s;
    --icon-rot: -3deg;
}

/* Icon animations - Enhanced floating effect for About section */


@keyframes aboutIconFadeIn {
    from {
        opacity: 0;
        filter: blur(4px);
    }

    to {
        opacity: 0.2;
        filter: none;
    }
}

/* Mobile responsiveness for about floating icons */
@media (max-width: 925px) {
    .icon-goal {
        width: 48px;
        top: 64%;
        right: 88%;
        --icon-rot: 3deg;
    }

    .icon-info {
        width: 56px;
        top: 31%;
        right: 88%;
        --icon-rot: -2deg;
    }
}

@media (max-width: 768px) {
    .icon-goal {
        width: 38px;
        top: 66%;
        right: 90%;
        --icon-rot: 3deg;
    }

    .icon-info {
        width: 40px;
        top: 40%;
        right: 90%;
        --icon-rot: -2deg;
    }
}

@media (max-width: 480px) {
    .icon-goal {
        width: 40px;
        top: 65%;
        right: 83%;
        --icon-rot: 2deg;
    }

    .icon-info {
        width: 48px;
        top: 35%;
        right: 83%;
        --icon-rot: -1deg;
    }
}

/* Container */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.about-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.about-title {
    font-size: var(--section-title-size);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: white;
    line-height: 1.2;
}

/* live gradient like brand-text */
.about-title {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textPulse 2s ease-in-out infinite, textShimmer 3s ease-in-out infinite;
}

.about-subtitle {
    font-size: var(--section-subtitle-size);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: var(--spacing-2xl);
    align-items: stretch;
    /* make cards equal height */
}

/* Cards - Minimalist Modern Design */
.mission-card,
.vision-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Subtle animated border */
.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(212, 160, 86, 0.4) 25%,
            transparent 50%,
            rgba(212, 160, 86, 0.4) 75%,
            transparent 100%);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: borderFlow 3s ease-in-out infinite;
}

/* Floating accent dots */
.mission-card::after,
.vision-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    animation: dotPulse 2s ease-in-out infinite;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 30px rgba(212, 160, 86, 0.15);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.04) 100%);
}

.mission-card:hover::before,
.vision-card:hover::before {
    opacity: 1;
}

.mission-card:hover::after,
.vision-card:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

/* ensure card content sits above decorative layers */
.mission-card>*,
.vision-card>* {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
    line-height: 1.3;
    flex-shrink: 0;
    position: relative;
    padding-right: 30px;
    /* space for accent dot */
}

.card-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), transparent);
    border-radius: 2px;
    opacity: 0.7;
}

.card-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    font-size: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* Keyframes for new animations */
@keyframes borderFlow {

    0%,
    100% {
        background-position: 0% 50%;
        opacity: 0;
    }

    50% {
        background-position: 100% 50%;
        opacity: 0.8;
    }
}

/* Additional hover effects for new design */
.mission-card:hover .card-title::before,
.vision-card:hover .card-title::before {
    opacity: 1;
    transform: scaleY(1.1);
}

.mission-card:hover .card-description,
.vision-card:hover .card-description {
    color: rgba(255, 255, 255, 0.95);
}

/* Subtle text animation on load - REMOVED per user request */
.card-title {
    opacity: 1;
    transform: none;
}

.card-description {
    opacity: 1;
    transform: none;
}

/* @keyframes titleSlideIn { removed } */
/* @keyframes descriptionFadeIn { removed } */

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--spacing-3xl) 0;
    background: var(--primary-color);
    overflow: hidden;
    position: relative;
}

/* Floating Elements Container for Services */
.services-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floating Icons for Services */
.services-floating-elements .floating-icon {
    position: absolute;
    opacity: 0.15;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
    will-change: transform, opacity;
}

.services-floating-elements .floating-icon:hover {
    transform: scale(1.15) rotate(8deg) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(212, 160, 86, 0.4));
    animation-play-state: paused;
}

/* Services Icon animations */


@keyframes servicesIconFadeIn {
    from {
        opacity: 0;
        filter: blur(4px);
    }

    to {
        opacity: 0.2;
        filter: none;
    }
}

/* Services Icon positioning and sizing - Desktop */
.icon-support {
    width: 55px;
    top: 62%;
    left: 4%;
    animation-delay: 0s, 0.3s;
    --icon-rot: -2deg;
}

.icon-server {
    width: 55px;
    top: 83%;
    left: 38%;
    animation-delay: 0.8s, 0.6s;
    --icon-rot: 3deg;
}

.icon-app {
    width: 56px;
    top: 27%;
    left: 40%;
    animation-delay: 1.2s, 0.9s;
    --icon-rot: -4deg;
}

.icon-web {
    width: 55px;
    top: 46%;
    right: 29%;
    animation-delay: 1.6s, 1.2s;
    --icon-rot: 2deg;
}

.icon-tasks {
    width: 58px;
    top: 44%;
    right: 67%;
    animation-delay: 2s, 1.5s;
    --icon-rot: -3deg;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.services-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.services-title {
    font-size: var(--section-title-size);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff 20%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: none;
    color: transparent;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.services-subtitle {
    font-size: var(--section-subtitle-size);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

/* Premium Glassmorphism Card Style */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: var(--spacing-2xl);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.service-card:hover,
.service-card.active {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(212, 160, 86, 0.1);
    border-color: rgba(212, 160, 86, 0.2);
}

.service-card:hover::before,
.service-card.active::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--accent-color), transparent);
}

/* Service Icon with Glow */
.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(212, 160, 86, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    transition: all 0.4s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: var(--accent-color);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon,
.service-card.active .service-icon {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1) rotate(-3deg);
}

.service-card:hover .service-icon::after,
.service-card.active .service-icon::after {
    opacity: 0.4;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
    transition: all 0.4s ease;
    color: var(--accent-color);
}

.service-card:hover .service-icon svg,
.service-card.active .service-icon svg {
    color: var(--primary-color);
    stroke-width: 2;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.feature-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(212, 160, 86, 0.2);
    color: var(--accent-color);
    border-color: rgba(212, 160, 86, 0.3);
    transform: translateY(-2px);
}

/* Services Scroll Effects */
/* Services Scroll Effects - DISABLED (Static Visibility) */
.services-scroll,
.services-header-scroll,
.services-cards-scroll {
    /* will-change: opacity, transform, filter; */
    opacity: 1;
    transform: none;
    filter: none;
}

.services-scroll {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.6s ease-out;
}

.services-header-scroll {
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
        transform 1s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.8s ease-out;
}

.services-cards-scroll {
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.7s ease-out;
}

@media (max-width: 1208px) {
    .icon-support {
        width: 55px;
        top: 75%;
        left: 4%;
        animation-delay: 0s, 0.3s;
        --icon-rot: -2deg;
    }

    .icon-server {
        width: 55px;
        top: 90%;
        left: 56%;
        animation-delay: 0.8s, 0.6s;
        --icon-rot: 3deg;
    }

    .icon-app {
        width: 56px;
        top: 22%;
        left: 7%;
        animation-delay: 1.2s, 0.9s;
        --icon-rot: -4deg;
    }

    .icon-web {
        width: 55px;
        top: 35%;
        right: 40%;
        animation-delay: 1.6s, 1.2s;
        --icon-rot: 2deg;
    }

    .icon-tasks {
        width: 58px;
        top: 63%;
        right: 80%;
        animation-delay: 2s, 1.5s;
        --icon-rot: -3deg;
    }
}


@media (max-width: 810px) {
    .icon-support {
        width: 55px;
        top: 87%;
        left: 9%;
        animation-delay: 0s, 0.3s;
        --icon-rot: -2deg;
    }

    .icon-server {
        width: 55px;
        top: 72%;
        left: 15%;
        animation-delay: 0.8s, 0.6s;
        --icon-rot: 3deg;
    }

    .icon-app {
        width: 56px;
        top: 27%;
        left: 7%;
        animation-delay: 1.2s, 0.9s;
        --icon-rot: -4deg;
    }

    .icon-web {
        width: 55px;
        top: 12%;
        right: 82%;
        animation-delay: 1.6s, 1.2s;
        --icon-rot: 2deg;
    }

    .icon-tasks {
        width: 58px;
        top: 57%;
        right: 82%;
        animation-delay: 2s, 1.5s;
        --icon-rot: -3deg;
    }
}


/* Mobile-specific adjustments for services */
@media (max-width: 768px) {
    .services {
        padding: var(--spacing-xl) 0;
    }

    .services-container {
        padding: 0 var(--spacing-md);
    }

    .services-subtitle {
        /* font-size handled by clamp variable */
        line-height: 1.5;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-md);
        min-height: auto;
        border-radius: 16px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: var(--spacing-sm);
    }

    .service-icon svg {
        width: 26px;
        height: 26px;
    }

    .service-title {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .service-description {
        font-size: 0.7rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }

    .feature-tag {
        font-size: 0.65rem;
        padding: 3px 7px;
    }

    .services-scroll,
    .services-header-scroll,
    .services-cards-scroll {
        opacity: 0.8;
        transform: translateY(15px) translateX(0) scale(0.99);
        filter: blur(2px);
    }

    .services-scroll {
        transition: opacity 0.6s ease-out,
            transform 0.6s ease-out,
            filter 0.4s ease-out;
    }

    .services-header-scroll {
        transition: opacity 0.7s ease-out,
            transform 0.7s ease-out,
            filter 0.5s ease-out;
    }

    .services-cards-scroll {
        transition: opacity 0.8s ease-out,
            transform 0.8s ease-out,
            filter 0.6s ease-out;
    }

}

@media (max-width: 480px) {

    .services-scroll,
    .services-header-scroll,
    .services-cards-scroll {
        opacity: 0.9;
        /* Even higher opacity on small screens */
        transform: translateY(10px) translateX(0) scale(0.995);
        /* Minimal transforms */
        filter: blur(1px);
        /* Minimal blur */
    }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: var(--spacing-3xl) 0;
    background: var(--primary-color);
    overflow: hidden;
    position: relative;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.portfolio-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.portfolio-title {
    font-size: var(--section-title-size);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff 20%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: none;
    color: transparent;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.portfolio-subtitle {
    font-size: var(--section-subtitle-size);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Professional Carousel */
.professional-carousel {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-sm);
    overflow: hidden;
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-card {
    flex: 0 0 400px;
    height: 240px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    transform: scale(0.9);
}

.carousel-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 30px rgba(212, 160, 86, 0.3);
    border-color: rgba(212, 160, 86, 0.4);
}

.carousel-card.prev {
    opacity: 0.7;
    transform: scale(0.95) translateX(120px);
    z-index: 2;
}

.carousel-card.next {
    opacity: 0.7;
    transform: scale(0.95) translateX(-120px);
    z-index: 2;
}

.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 86, 0.1), transparent);
    transition: left 0.6s ease;
}

.carousel-card:hover::before {
    left: 100%;
}

.carousel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 160, 86, 0.4);
}

.carousel-card.coming-soon {
    background: linear-gradient(135deg, rgba(212, 160, 86, 0.15), rgba(255, 255, 255, 0.05));
    border-color: rgba(212, 160, 86, 0.3);
}

.carousel-card.coming-soon::after {
    content: 'قريباً';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 160, 86, 0.3);
}

.company-logo {
    margin-bottom: var(--spacing-lg);
}

.company-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-type {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.company-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

/* Pagination Dots */
.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.pagination-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(212, 160, 86, 0.6);
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Company Cards */
.company-card {
    width: 280px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 86, 0.1), transparent);
    transition: left 0.6s ease;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 160, 86, 0.2);
}

.company-card:hover::before {
    left: 100%;
}

.company-card.coming-soon {
    background: rgba(212, 160, 86, 0.1);
    border-color: rgba(212, 160, 86, 0.3);
}

.company-card.coming-soon:hover {
    background: rgba(212, 160, 86, 0.15);
    border-color: var(--accent-color);
}

.company-logo {
    margin-bottom: var(--spacing-sm);
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company-type {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.company-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 250px;
}

/* Circular Animation Classes */
.portfolio-track.rotating .company-card:nth-child(1) {
    animation: moveToLeft 0.8s ease-in-out forwards;
}

.portfolio-track.rotating .company-card:nth-child(2) {
    animation: moveToCenter 0.8s ease-in-out forwards;
}

.portfolio-track.rotating .company-card:nth-child(3) {
    animation: moveToRight 0.8s ease-in-out forwards;
}

@keyframes moveToLeft {
    to {
        opacity: 0.7;
        transform: scale(0.9) translateX(-200px) translateY(-20px);
        z-index: 2;
    }
}

@keyframes moveToCenter {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        z-index: 3;
    }
}

@keyframes moveToRight {
    to {
        opacity: 0.7;
        transform: scale(0.9) translateX(200px) translateY(-20px);
        z-index: 2;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio {
        padding: var(--spacing-3xl) 0;
    }

    .portfolio-header {
        margin-bottom: var(--spacing-2xl);
    }



    .professional-carousel {
        height: 350px;
    }

    .carousel-card {
        flex: 0 0 350px;
        height: 200px;
        padding: var(--spacing-lg);
    }

    .carousel-card.prev {
        transform: scale(0.95) translateX(100px);
    }

    .carousel-card.next {
        transform: scale(0.95) translateX(-100px);
    }

    .company-name {
        font-size: 1.4rem;
    }

    .company-type {
        font-size: 0.9rem;
    }

    .company-description {
        font-size: 0.9rem;
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .professional-carousel {
        height: 300px;
    }

    .carousel-card {
        flex: 0 0 300px;
        height: 180px;
        padding: var(--spacing-md);
    }

    .carousel-card.prev {
        transform: scale(0.95) translateX(80px);
    }

    .carousel-card.next {
        transform: scale(0.95) translateX(-80px);
    }

    .company-name {
        font-size: 1.2rem;
    }

    .company-type {
        font-size: 0.8rem;
    }

    .company-description {
        font-size: 0.8rem;
        max-width: 200px;
    }

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

/* ===== PORTFOLIO MARQUEE (Infinite Loop) ===== */
.portfolio {
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

.portfolio-header {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}



.professional-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    /* Increased height for better visibility */
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Mask/Fade Effect on edges */
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 20px;
    /* Reduced gap */
    width: max-content;
    animation: marqueeScroll 10s linear infinite;
    /* Speed increased */
    padding: var(--spacing-xl) 0;
}

/* Pause on hover */
.professional-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Force LTR direction for the scroll track to make math easier, or adjust for RTL */
/* Since site is Arabic (RTL), translateX positive moves Left? No, negative moves Left. */
/* Arabic usually reads Right to Left. So Marquee should probably move Left to Right? 
   Or just infinite scroll.
   I'll set direction: ltr on the track to standardise the animation direction. */
.carousel-track {
    direction: ltr;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
        /* Moves 1/4th (one full set of original items) for seamless loop */
    }
}

.carousel-card {
    flex: 0 0 300px;
    /* Slightly adjusted width */
    height: 380px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.carousel-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 160, 86, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 160, 86, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* Image/Logo Area */
.company-logo {
    height: 100%;
    /* Increased image area */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Enhanced Overlay Effect */
.company-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 100%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.carousel-card:hover .company-logo::after {
    opacity: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the area */
    z-index: 1;
    transition: transform 0.5s ease;
}

.carousel-card:hover .company-logo img {
    transform: scale(1.1);
}

/* Content Area */
.carousel-card-content {
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.company-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(212, 160, 86, 0.2);
}

.company-type {
    display: none !important;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(212, 160, 86, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .professional-carousel {
        height: 340px;
    }

    .carousel-card {
        flex: 0 0 260px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .professional-carousel {
        height: 300px;
    }

    .carousel-card {
        flex: 0 0 240px;
        height: 280px;
    }
}

/* ===== PORTFOLIO SCROLL EFFECTS ===== */
.portfolio-scroll,
.portfolio-header-scroll,
.portfolio-carousel-scroll {
    will-change: opacity, transform, filter;
    opacity: 0;
    transform: translateY(30px) translateX(0) scale(0.98);
    filter: blur(6px);
}

.portfolio-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}

.portfolio-header-scroll {
    transition: opacity 0.9s ease-out, transform 0.9s ease-out, filter 0.9s ease-out;
}

.portfolio-carousel-scroll {
    transition: opacity 1s ease-out, transform 1s ease-out, filter 1s ease-out;
}

/* Mobile-specific adjustments for portfolio */
@media (max-width: 768px) {

    .portfolio-scroll,
    .portfolio-header-scroll,
    .portfolio-carousel-scroll {
        opacity: 0.8;
        /* Start with higher opacity on mobile */
        transform: translateY(15px) translateX(0) scale(0.99);
        /* Reduced transforms */
        filter: blur(2px);
        /* Reduced blur */
    }

    .portfolio-scroll {
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
    }

    .portfolio-header-scroll {
        transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
    }

    .portfolio-carousel-scroll {
        transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
    }
}

@media (max-width: 480px) {

    .portfolio-scroll,
    .portfolio-header-scroll,
    .portfolio-carousel-scroll {
        opacity: 0.9;
        /* Even higher opacity on small screens */
        transform: translateY(10px) translateX(0) scale(0.995);
        /* Minimal transforms */
        filter: blur(1px);
        /* Minimal blur */
    }
}

/* ===== CUSTOM CURSOR SYSTEM ===== */
body {
    cursor: none;
    position: relative;
    overflow-x: hidden;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    opacity: 0;
    will-change: transform, opacity;
}

.custom-cursor.active {
    opacity: 1;
    animation: cursorPulse 2s ease-in-out infinite;
}

.custom-cursor.press {
    transform: translate(-50%, -50%) scale(0.7);
    background: radial-gradient(circle, rgba(212, 160, 86, 1) 0%, transparent 70%);
}


@keyframes cursorPulse {

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

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

/* ===== DYNAMIC PARTICLES SYSTEM ===== */
.floating-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 20s linear infinite;
    will-change: transform, opacity;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(-200vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== GLOBAL AMBIENT GLOW ===== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 160, 86, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 160, 86, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 160, 86, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: globalAmbientGlow 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes globalAmbientGlow {

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

    33% {
        opacity: 0.5;
        transform: scale(1.02);
    }

    66% {
        opacity: 0.4;
        transform: scale(0.98);
    }
}

/* ===== DYNAMIC PAGE PARTICLES SYSTEM ===== */
.particles-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.page-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.9) 0%, transparent 60%);
    box-shadow: 0 0 8px rgba(212, 160, 86, 0.5);
    /* Reduced from 15px */
    opacity: 0.8;
    z-index: 1;
    animation-fill-mode: both;
}

.page-particle.white {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    /* Reduced from 12px */
}

.page-particle.gold {
    background: radial-gradient(circle, rgba(212, 160, 86, 1) 0%, transparent 50%);
    box-shadow: 0 0 10px rgba(212, 160, 86, 0.6);
    /* Reduced from 18px */
}

.page-particle.small {
    width: 4px;
    height: 4px;
    box-shadow: none;
    /* Removed for performance */
}

.page-particle.medium {
    width: 8px;
    height: 8px;
}

.page-particle.large {
    width: 12px;
    height: 12px;
}

/* Particle floating animation */
@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-30px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Particle drift animation */
@keyframes particleDrift {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-8px) translateX(25px) rotate(90deg);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-15px) translateX(-15px) rotate(180deg);
        opacity: 0.9;
    }

    75% {
        transform: translateY(-22px) translateX(10px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Additional particle animations */
@keyframes particleRise {
    0% {
        transform: translateY(0px) translateX(0px) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
        transform: translateY(-10px) translateX(5px) scale(1);
    }

    80% {
        opacity: 0.8;
        transform: translateY(-25px) translateX(15px) scale(1.1);
    }

    100% {
        transform: translateY(-40px) translateX(30px) scale(0.8);
        opacity: 0;
    }
}

@keyframes particleSway {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }

    33% {
        transform: translateY(-12px) translateX(20px) rotate(120deg);
        opacity: 0.9;
    }

    66% {
        transform: translateY(-20px) translateX(-10px) rotate(240deg);
        opacity: 0.7;
    }
}

/* ===== MAGNETIC EFFECTS ===== */
.hero.animation-complete .floating-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, filter;
}

.hero.animation-complete .floating-icon:hover {
    transform: translateY(-20px) translateX(5px) scale(1.15) rotate(calc(var(--icon-rot, 0deg) + 5deg));
    filter: drop-shadow(0 15px 30px rgba(212, 160, 86, 0.5));
    animation-play-state: paused;
}

/* ===== ENHANCED CODE WINDOW ===== */
.code-window::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg,
            rgba(212, 160, 86, 0.8),
            rgba(255, 255, 255, 0.1) 25%,
            rgba(212, 160, 86, 0.4) 50%,
            rgba(255, 255, 255, 0.1) 75%,
            rgba(212, 160, 86, 0.8));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderFlow 3s ease-in-out infinite;
}

@keyframes borderFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

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

.code-window::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(212, 160, 86, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px, 12px 12px, 12px 12px;
    opacity: 0.4;
    pointer-events: none;
    animation: textureShift 10s linear infinite;
    z-index: 1;
}

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

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

.code-window:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(212, 160, 86, 0.2);
    border-color: rgba(212, 160, 86, 0.6);
}

.code-window:hover::before {
    animation-duration: 1s;
}

.code-content {
    position: relative;
    z-index: 2;
}

.code-line {
    position: relative;
    transition: all 0.3s ease;
}

.code-line:hover {
    background: rgba(212, 160, 86, 0.05);
    border-radius: 4px;
    padding-left: 8px;
    margin-left: -8px;
}

/* Enhanced syntax highlighting */
.code-keyword {
    color: #ff79c6;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 121, 198, 0.3);
}

.code-function {
    color: #50fa7b;
    font-weight: 500;
}

.code-string {
    color: #f1fa8c;
    font-style: italic;
    text-shadow: 0 0 8px rgba(241, 250, 140, 0.2);
}

.code-bracket {
    color: #8be9fd;
    font-weight: bold;
}

.code-semicolon {
    color: #f8f8f2;
    font-weight: bold;
}

.code-comment {
    color: #6272a4;
    font-style: italic;
    opacity: 0.8;
    font-size: 0.85em;
}

/* ===== SECTION SPACING ===== */
main>section+section {
    margin-top: var(--spacing-2xl);
}

@media (max-width: 768px) {
    main>section+section {
        margin-top: var(--spacing-xl);
    }

    /* Reduce effects on mobile for performance */
    .custom-cursor {
        display: none;
    }

    .page-particle {
        animation-duration: 12s;
    }

    .particles-layer {
        opacity: 0.7;
    }

    body::after {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {

    /* Further reduce effects on small screens */
    .page-particle {
        animation-duration: 10s;
    }

    .particles-layer {
        opacity: 0.5;
    }

    body::after {
        opacity: 0.1;
    }

    .code-window::before {
        animation-duration: 5s;
    }

    .code-window::after {
        animation-duration: 15s;
    }
}

/* ===== MAIN INTERFACE ===== */
.main-interface {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-md);
    margin-top: 80px;
    /* Account for fixed header */
}

.welcome-message {
    text-align: center;
    max-width: 600px;
    padding: var(--spacing-2xl);
    background: rgba(30, 42, 56, 0.8);
    border-radius: var(--border-radius-xl);
    border: 2px solid var(--accent-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
}

.welcome-message h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--accent-color);
    background: linear-gradient(45deg, var(--accent-color), #E6B85C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MOBILE POPDOWN MENU (NO OVERLAY) ===== */
.nav-pop {
    position: absolute;
    top: 86px;
    left: 0px;
    background: rgba(30, 42, 56, 0.98);
    border: 1px solid rgba(212, 160, 86, 0.25);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    padding: 10px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
    z-index: 1200;
}

.nav-pop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-pop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.nav-pop-menu .nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    animation: popLinkFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.3s);
}

@keyframes popLinkFloat {

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

    50% {
        transform: translateX(2px) scale(1.01);
    }
}

.nav-pop-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    animation-play-state: paused;
}

.welcome-message p {
    font-size: var(--font-size-lg);
    color: var(--secondary-color);
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: #E6B85C;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--support-color-2);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-info p {
    color: var(--support-color-1);
    font-size: var(--font-size-sm);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

    /* Hide desktop menu; use floating overlay instead */
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-description {
        font-size: var(--font-size-lg);
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-svg {
        height: 55px;
        max-width: 100px;
    }

    .nav-brand {
        display: flex;
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .loading-logo .logo-svg {
        height: 60px;
        max-width: 150px;
    }

    .animated-braces .brace-left,
    .animated-braces .brace-right {
        width: 45px;
        height: 45px;
    }

    .animated-braces .loading-text {
        font-size: var(--font-size-lg);
        min-width: 150px;
    }

    .welcome-message h1 {
        font-size: var(--font-size-3xl);
    }

    .welcome-message p {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .animated-braces .brace-left,
    .animated-braces .brace-right {
        width: 35px;
        height: 35px;
    }

    .animated-braces .loading-text {
        font-size: var(--font-size-base);
        min-width: 120px;
        padding: 0 var(--spacing-sm);
    }

    .welcome-message {
        padding: var(--spacing-lg);
        margin: var(--spacing-md);
    }

    .welcome-message h1 {
        font-size: var(--font-size-2xl);
    }

    .welcome-message p {
        font-size: var(--font-size-sm);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* ===== HERO SCROLL EFFECTS ===== */
.hero-scroll-effect,
.hero-content-scroll,
.hero-visual-scroll,
.hero-background-scroll,
.floating-shape-scroll,
.typing-text-scroll,
.code-window-scroll {
    will-change: opacity, transform, filter;
}

.hero-scroll-effect {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.6s ease-out;
}

.hero-content-scroll,
.typing-text-scroll {
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
        transform 1s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.8s ease-out;
}

.hero-visual-scroll,
.code-window-scroll {
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.7s ease-out;
}

.hero-background-scroll {
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease-out;
}

.floating-shape-scroll {
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.3s ease-out;
}

/* Initial state for hero elements when animation is complete */
.hero.animation-complete .hero-scroll-effect,
.hero.animation-complete .hero-content-scroll,
.hero.animation-complete .hero-visual-scroll,
.hero.animation-complete .hero-background-scroll,
.hero.animation-complete .floating-shape-scroll,
.hero.animation-complete .typing-text-scroll,
.hero.animation-complete .code-window-scroll {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    filter: none;
}

/* Enhanced scroll effects with better performance */
.hero.animation-complete {
    contain: layout style paint;
}

.hero.animation-complete .hero-scroll-effect,
.hero.animation-complete .hero-content-scroll,
.hero.animation-complete .hero-visual-scroll,
.hero.animation-complete .hero-background-scroll,
.hero.animation-complete .floating-shape-scroll,
.hero.animation-complete .typing-text-scroll,
.hero.animation-complete .code-window-scroll {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    will-change: auto;
}

.hero-background,
.svg-elements {
    will-change: transform;
}

.btn {
    will-change: transform, background-color;
}

/* ===== ABOUT US — MODERN REDESIGN ===== */
.about-us {
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

/* Background blob effect for modern look */
.about-us::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.about-header {
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-title {
    font-size: var(--section-title-size);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff 20%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    text-align: center;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-subtitle {
    font-size: var(--section-subtitle-size);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

/* Unified Card Styling with Glassmorphism */
.mission-card,
.vision-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: var(--spacing-2xl);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mission-card:hover,
.vision-card:hover,
.mission-card.active,
.vision-card.active {
    transform: translateY(-8px);
    border-color: rgba(212, 160, 86, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 160, 86, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* Icon Wrapper Styling */
.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(212, 160, 86, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: transform 0.4s ease;
    color: var(--accent-color);
}

.card-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.mission-card:hover .card-icon-wrapper,
.vision-card:hover .card-icon-wrapper,
.mission-card.active .card-icon-wrapper,
.vision-card.active .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
    color: var(--primary-color);
}

.card-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--support-color-1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-us {
        padding: var(--spacing-2xl) 0;
    }

    .about-content {
        gap: var(--spacing-lg);
    }
}

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





    .mission-card,
    .vision-card {
        padding: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .about-us {
        padding: var(--spacing-xl) 0;
    }



    .card-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-md);
    }

    .card-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .mission-card,
    .vision-card {
        padding: var(--spacing-lg);
    }
}

/* ===== ABOUT US — SCROLL EFFECTS (match hero style) ===== */
.about-us-scroll,
.about-header-scroll,
.about-cards-scroll {
    /* will-change: opacity, transform, filter; */
    opacity: 1;
    transform: none;
    filter: none;
}

.about-us-scroll {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.6s ease-out;
}

.about-header-scroll {
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
        transform 1s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.8s ease-out;
}

.about-cards-scroll {
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.7s ease-out;
}

/* subtle creative motion for icons */
@keyframes iconBob {

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

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

.card-icon {
    animation: iconBob 5s ease-in-out infinite;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== ABOUT US RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .about-us {
        padding: var(--spacing-xl) 0;
    }

    .about-container {
        padding: 0 var(--spacing-md);
    }



    .about-subtitle {
        /* font-size handled by clamp variable */
        line-height: 1.5;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .mission-card,
    .vision-card {
        padding: var(--spacing-md);
        min-height: auto;
    }

    .card-icon {
        width: 45px;
        height: 45px;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    .card-title {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .card-description {
        font-size: 0.7rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .about-us {
        padding: var(--spacing-xl) 0;
    }







    .mission-card,
    .vision-card {
        padding: var(--spacing-md);
    }

    .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 475px) {
    .services {
        padding: var(--spacing-xl) var(--spacing-sm);
    }



    .services-subtitle {
        /* font-size handled by clamp variable */
        line-height: 1.5;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 275px) {
    .services {
        padding: var(--spacing-lg) var(--spacing-xs);
    }



    .services-subtitle {
        /* font-size handled by clamp variable */
        line-height: 1.4;
    }

    .service-card {
        padding: var(--spacing-sm);
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

/* ============================================
   Contact Section - Modern Design
   ============================================ */

.contact {
    padding: var(--spacing-3xl) var(--spacing-lg);
    margin-top: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Background Atmospheric Glow */
.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: -1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.contact-title {
    font-size: var(--section-title-size);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff 20%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.contact-subtitle {
    font-size: var(--section-subtitle-size);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Social Grid - Balanced & Responsive */
.social-links {
    display: grid;
    /* Desktop: 4 columns (4x1) */
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
    justify-content: center;
}

/* ... existing styles ... */

/* Responsive */
@media (max-width: 791px) {
    .social-links {
        /* Tablet & Mobile: Always 2 columns (2x2) */
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {

    /* grid-template-columns inherited from 791px (2 cols) */
    /* Adjust spacing/sizing only */
    .social-links {
        gap: var(--spacing-md);
    }
}

/* Modern Vertical Social Card */
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 220px;
    /* Ensure uniform height perception */
}

/* Hover Glow Effect */
.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 160, 86, 0.3);
    /* Accent border on hover */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

/* Icons - Centered & Prominent */
.social-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    /* Space between icon and text */
    margin-left: 0;
    /* Reset margin */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background for icon */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
    /* Icon bg becomes accent on hover */
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Text Content */
.social-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.social-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.social-handle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    opacity: 0.8;
}

.social-link:hover .social-handle {
    color: var(--accent-color);
    opacity: 1;
}

/* Platform Specific Colors on Icon Hover (Optional) */
.social-link.facebook:hover .social-icon {
    background: linear-gradient(135deg, #1877F2, #0d47a1);
}

.social-link.instagram:hover .social-icon {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
}

.social-link.linkedin:hover .social-icon {
    background: linear-gradient(135deg, #0077b5, #004182);
}

.social-link.whatsapp:hover .social-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-link.email:hover .social-icon {
    background: linear-gradient(135deg, #DB4437, #C62828);
}

/* Static Visibility Override */
.contact-scroll,
.contact-header-scroll,
.social-links-scroll,
.social-link {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .social-links {
        gap: var(--spacing-md);
    }

    .social-link {
        padding: var(--spacing-lg) var(--spacing-md);
        min-height: 180px;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-md);
        margin-left: 0;
    }

    .social-icon svg {
        width: 28px;
        height: 28px;
    }

    .social-name {
        font-size: 1.2rem;
    }
}



@media (max-width: 480px) {
    .contact {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .social-link {
        min-height: 160px;
        padding: var(--spacing-md);
        border-radius: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-sm);
        margin-left: 0;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
    }

    .social-name {
        font-size: 1.1rem;
    }

    .social-handle {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .social-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .header,
    .footer,
    .loading-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}