/* ============================================
   KSG GROUP - LANDING PAGE STYLES
   Premium, Animated, Professional
   ============================================ */

/* CSS Variables */
:root {
    /* Brand Colors - Extracted from KSG.png logo */
    --ksg-primary: #B41E28;
    --ksg-primary-light: #C82828;
    --ksg-primary-lighter: #D21E28;
    --ksg-primary-dark: #96141E;
    --ksg-accent-light: #DC968C;
    
    /* Legacy support - keeping burgundy for backward compatibility */
    --ksg-burgundy: #B41E28;
    --ksg-burgundy-light: #C82828;
    --ksg-burgundy-dark: #96141E;
    --ksg-charcoal: #2D3436;
    --ksg-dark: #0D0D0F;
    --ksg-darker: #080809;
    
    /* Accent Colors from subsidiaries */
    --extra-red: #E63946;
    --go-pink: #E91E8C;
    --worood-teal: #2CA58D;
    --alwafi-blue: #3B82F6;
    --hills-green: #7CB342;
    --sane-gold: #E6A637;
    --cg-blue: #2F4FA0;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F5;
    --gray-200: #E4E4E7;
    --gray-300: #D4D4D8;
    --gray-400: #A1A1AA;
    --gray-500: #71717A;
    --gray-600: #52525B;
    --gray-700: #3F3F46;
    --gray-800: #27272A;
    --gray-900: #18181B;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Noto Sans Arabic', 'Outfit', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Animations */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    
    /* Misc */
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --header-height: 80px;
}

/* ============================================
   BASE & RESET
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--ksg-darker);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--ksg-burgundy);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ksg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--ksg-burgundy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ksg-burgundy-light);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease-out-quart);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   CURSOR GLOW EFFECT
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 31, 65, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ksg-burgundy);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s var(--ease-out-expo);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 15, 0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.nav.scrolled::before {
    opacity: 1;
}

.nav.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 13, 15, 0.95);
    border-bottom: 1px solid rgba(180, 30, 40, 0.2);
}

.nav.scrolled .nav-link {
    color: var(--gray-300);
}

.nav.scrolled .nav-link:hover {
    color: var(--white);
}

.nav.scrolled .nav-toggle span {
    background: var(--white);
}

.nav.scrolled .nav-logo img {
    filter: brightness(0) invert(1);
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.nav-logo {
    position: relative;
    z-index: 10;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s var(--ease-out-expo), filter 0.4s var(--ease-out-expo);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.3s var(--ease-out-quart);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ksg-burgundy);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--ksg-charcoal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 28px;
    background: var(--ksg-burgundy);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
    position: relative;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ksg-burgundy-light) 0%, var(--ksg-burgundy) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 31, 65, 0.4);
}

.nav-cta:hover::before {
    opacity: 1;
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ksg-charcoal);
    margin: 3px 0;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--ksg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-300);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-cta { transition-delay: 0.3s; }

.mobile-link:hover {
    color: var(--white);
}

.mobile-cta {
    margin-top: var(--space-lg);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.active .mobile-cta {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) var(--space-xl) 200px;
    overflow: hidden;
    background: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F6F7 100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(180, 30, 40, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 70%, rgba(180, 30, 40, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(180, 30, 40, 0.04) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(180, 30, 40, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 30, 40, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    animation: patternShift 30s linear infinite;
}

@keyframes patternShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 80px;
    }
}

.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: orbFloat 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(180, 30, 40, 0.08);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(200, 40, 40, 0.06);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(150, 20, 30, 0.05);
    top: 40%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* Floating shapes decoration */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 2px solid rgba(180, 30, 40, 0.1);
    border-radius: 50%;
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: -3s;
    border-radius: 8px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: -6s;
}

.shape-4 {
    width: 30px;
    height: 30px;
    top: 30%;
    right: 25%;
    animation-delay: -9s;
    background: rgba(180, 30, 40, 0.05);
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Hero wave transition */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* Animated accent lines */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 30, 40, 0.15), transparent);
    animation: lineSlide 8s ease-in-out infinite;
}

@keyframes lineSlide {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 20px;
    background: rgba(180, 30, 40, 0.08);
    border: 1px solid rgba(180, 30, 40, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ksg-burgundy);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--ksg-burgundy);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-logo {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    max-width: min(80vw, 600px);
    height: auto;
    object-fit: contain;
    animation: fadeInScale 1s var(--ease-out-expo) forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--ksg-charcoal);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--gray-300), transparent);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--ksg-burgundy);
    color: var(--white);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ksg-burgundy-light) 0%, var(--ksg-burgundy-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(139, 31, 65, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--ksg-charcoal);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: rgba(180, 30, 40, 0.05);
    border-color: var(--ksg-burgundy);
    color: var(--ksg-burgundy);
    transform: translateY(-3px);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: fadeInUp 1s var(--ease-out-expo) 1s both;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    position: relative;
}

.scroll-line {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: var(--ksg-burgundy);
    border-radius: 1px;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */

section {
    position: relative;
    padding: var(--space-4xl) 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ksg-burgundy);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.section-title .accent {
    color: var(--ksg-burgundy);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--ksg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-text {
    color: var(--gray-400);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(139, 31, 65, 0.05);
    border: 1px solid rgba(139, 31, 65, 0.1);
    border-radius: var(--border-radius);
    transition: all 0.4s var(--ease-out-expo);
}

.feature:hover {
    background: rgba(139, 31, 65, 0.1);
    border-color: rgba(139, 31, 65, 0.2);
    transform: translateX(10px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ksg-burgundy);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-logo {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: floatLogo 6s ease-in-out infinite;
}

.visual-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.visual-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-arc {
    position: absolute;
    border: 2px solid rgba(139, 31, 65, 0.2);
    border-radius: 50%;
    animation: rotateArc 30s linear infinite;
}

.arc-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.arc-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-direction: reverse;
    animation-duration: 25s;
}

@keyframes rotateArc {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   COMPANIES SECTION
   ============================================ */

.companies {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.companies-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.companies-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(139, 31, 65, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--ksg-darker) 0%, var(--ksg-dark) 50%, var(--ksg-darker) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.company-categories {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4xl);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-300);
    white-space: nowrap;
}

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-700), transparent);
}

.company-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.company-card {
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 420px;
    transition: transform 0.8s var(--ease-out-expo);
    transform-style: preserve-3d;
}

.company-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.card-front {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.9) 0%, rgba(20, 20, 25, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: var(--space-sm);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
}

.card-front::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(139, 31, 65, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.company-card:hover .card-front::before {
    opacity: 1;
}

.card-logo {
    width: 280px;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    background: var(--white);
    border-radius: 16px;
    padding: var(--space-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s var(--ease-out-expo);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-region {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.card-stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-top: auto;
    padding-top: var(--space-md);
}

.card-stat .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ksg-burgundy);
}

.card-stat .stat-text {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.card-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: 4px 12px;
    background: var(--go-pink);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-back {
    background: var(--ksg-burgundy);
    transform: rotateY(180deg);
    justify-content: center;
}

.card-back p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: auto;
}

.card-tags span {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Featured Card */
.company-card.featured .card-front {
    border-color: rgba(233, 30, 140, 0.3);
}

.company-card.featured .card-back {
    background: linear-gradient(135deg, var(--go-pink) 0%, #c71979 100%);
}

/* ============================================
   PRESENCE SECTION
   ============================================ */

.presence {
    background: var(--ksg-dark);
}

.presence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.presence-locations {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.location {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: rgba(139, 31, 65, 0.05);
    border: 1px solid rgba(139, 31, 65, 0.1);
    border-radius: var(--border-radius-lg);
    transition: all 0.4s var(--ease-out-expo);
}

.location:hover {
    background: rgba(139, 31, 65, 0.1);
    border-color: rgba(139, 31, 65, 0.2);
    transform: translateX(10px);
}

.location-flag {
    font-size: 2.5rem;
    line-height: 1;
}

.location-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.location-info > p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.location-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.location-info li {
    font-size: 0.85rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.location-info li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--ksg-burgundy);
    border-radius: 50%;
}

.location-cities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.city-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 31, 65, 0.15);
    border: 1px solid rgba(139, 31, 65, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.city-tag:hover {
    background: rgba(139, 31, 65, 0.25);
    border-color: rgba(139, 31, 65, 0.5);
    color: var(--white);
}

.location-sublabel {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--space-sm);
    font-style: italic;
}

.presence-visual {
    display: flex;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: var(--space-xl);
}

.map-svg {
    width: 100%;
    height: auto;
}

.map-marker {
    cursor: pointer;
}

.marker-pulse {
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0%, 100% {
        r: 12;
        opacity: 0.25;
    }
    50% {
        r: 18;
        opacity: 0.08;
    }
}

.marker-dot {
    transition: transform 0.3s var(--ease-out-expo);
}

.map-marker:hover .marker-dot {
    transform: scale(1.3);
}

.map-connection {
    stroke-dashoffset: 100;
    animation: drawLine 3s ease-in-out infinite;
}

@keyframes drawLine {
    0%, 100% {
        stroke-dashoffset: 100;
    }
    50% {
        stroke-dashoffset: 0;
    }
}

.map-stats {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: var(--space-md) var(--space-xl);
    background: rgba(139, 31, 65, 0.15);
    border: 1px solid rgba(139, 31, 65, 0.3);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.map-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ksg-burgundy);
    display: block;
}

.map-stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.contact-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(139, 31, 65, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--ksg-dark) 0%, var(--ksg-darker) 100%);
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 31, 65, 0.1);
    border: 1px solid rgba(139, 31, 65, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--ksg-burgundy);
}

.info-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.info-content p {
    font-size: 1rem;
    color: var(--white);
}

.info-content .address-arabic {
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: var(--space-sm);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-lg) 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-700);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 20px;
}

.form-group select option {
    background: var(--ksg-dark);
    color: var(--white);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 0;
    top: var(--space-lg);
    font-size: 1rem;
    color: var(--gray-500);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--ksg-burgundy);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ksg-burgundy);
    transition: width 0.4s var(--ease-out-expo);
}

.form-group input:focus ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.btn-submit {
    margin-top: var(--space-lg);
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--ksg-darker);
    border-top: 1px solid rgba(139, 31, 65, 0.1);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 350px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.footer-column a {
    display: block;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xl);
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-xl);
}

.footer-legal a {
    color: var(--gray-600);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--gray-400);
}

/* ============================================
   ANIMATIONS - Scroll Reveal
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

[data-animate="fade-left"] {
    transform: translateX(60px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 1024px) {
    .about-grid,
    .presence-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .about-visual,
    .presence-visual {
        order: -1;
    }
    
    .visual-card {
        max-width: 350px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + var(--space-3xl));
    }
    
    .hero-stats {
        gap: var(--space-xl);
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .company-cards {
        grid-template-columns: 1fr;
    }
    
    .card-inner {
        height: 380px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-container {
        margin-bottom: 80px;
    }
    
    .map-stats {
        bottom: -60px;
    }
    
    .map-svg {
        max-height: 400px;
    }
    
    /* Touch-based card flip for mobile */
    .company-card:hover .card-inner {
        transform: none;
    }
    
    .company-card.flipped .card-inner {
        transform: rotateY(180deg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: var(--space-3xl) 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .location {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .location-info ul {
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

