@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --primary: #ffad19;
    --primary-dark: #e09000;
    --primary-rgb: 255, 173, 25;
    --black: #060608;
    --dark: #0e0e12;
    --dark-accent: #16161c;
    --white: #f0f0f5;
    --gray: #888899;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(6, 6, 8, 0.7);
    --header-scrolled: rgba(6, 6, 8, 0.97);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-color: rgba(255, 255, 255, 0.07);
    --card-bg: rgba(14, 14, 18, 0.85);
    --body-bg: #060608;
    --shadow-gold: 0 0 30px rgba(255, 173, 25, 0.15);
}

[data-theme="light"] {
    --primary: #d98c00;
    --primary-dark: #b87200;
    --primary-rgb: 217, 140, 0;
    --black: #f5f5f8;
    --dark: #ffffff;
    --dark-accent: #f0f0f5;
    --white: #111116;
    --gray: #55556a;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(245, 245, 248, 0.8);
    --header-scrolled: rgba(245, 245, 248, 0.98);
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(255, 255, 255, 0.9);
    --body-bg: #f5f5f8;
    --shadow-gold: 0 0 30px rgba(217, 140, 0, 0.1);
}

/* ── Light mode nav pill overrides ── */
[data-theme="light"] header {
    background: rgba(245, 245, 248, 0.75);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(217, 140, 0, 0.15);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1), 0 1px 0 rgba(217,140,0,0.1);
}
[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .nav-link {
    color: rgba(17, 17, 22, 0.65);
}
[data-theme="light"] .nav-link:hover {
    color: #111116;
    background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .nav-link.active {
    color: #fff;
    background: var(--primary);
}
[data-theme="light"] .nav-icon-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #111116;
}
[data-theme="light"] .nav-icon-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--body-bg);
    color: var(--white);
    font-family: 'Tajawal', 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -15%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.07) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
    animation: ambientDrift 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
    animation: ambientDrift 25s ease-in-out infinite alternate-reverse;
}

@keyframes ambientDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.1); }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================================
   HEADER & NAV — PREMIUM REDESIGN
   ============================================================ */
header {
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    background: rgba(6, 6, 8, 0.6);
    padding: 14px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(6, 6, 8, 0.95);
    border-bottom-color: rgba(255, 173, 25, 0.12);
    box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(255,173,25,0.08);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo-img { height: 44px; width: auto; display: block; }

/* Pill nav container */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 6px 8px;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-close-wrap { display: none; }

/* Individual link */
.nav-link {
    display: block;
    color: rgba(240,240,245,0.65);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 7px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.nav-link.active {
    color: #000;
    background: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}

/* Right actions group */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 4px;
}

/* Icon buttons (theme toggle) */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(240,240,245,0.7);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: tajawal;
}

.nav-icon-btn:hover {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    transform: rotate(20deg);
}

/* CTA contact button in nav */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.5);
    background: linear-gradient(135deg, #ffc94d 0%, var(--primary) 100%);
}

/* Old .btn-admin kept for compatibility */
.btn-admin {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-admin:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-toggle:hover { background: rgba(var(--primary-rgb), 0.1); border-color: rgba(var(--primary-rgb), 0.3); }

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-cta { display: none; } /* hide CTA on mobile, shown inside drawer separately */

    .nav-links {
        position: fixed;
        top: 0;
        right: -110%;
        width: min(300px, 85vw);
        height: 100dvh;
        background: rgba(6, 6, 8, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 24px 20px 40px;
        gap: 4px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid rgba(255,255,255,0.08);
        overflow-y: auto;
        /* Override pill styles for mobile */
        border-radius: 0;
        border-top: none;
        border-bottom: none;
        border-right: none;
    }

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

    /* Close button row */
    .nav-close-wrap {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-close-btn {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        color: var(--white);
        width: 34px;
        height: 34px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .nav-close-btn:hover { background: rgba(var(--primary-rgb), 0.15); color: var(--primary); }

    .nav-link {
        font-size: 1.05rem;
        padding: 13px 16px;
        border-radius: 12px;
        color: rgba(240,240,245,0.8);
        letter-spacing: 0;
    }

    .nav-link.active {
        color: #000;
        border-radius: 12px;
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.06);
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-icon-btn { border-radius: 10px; }
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 60px;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

/* Eyebrow box above title */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 22px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    width: max-content;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.7);
    animation: dotPulse 2s ease-in-out infinite;
}

.eyebrow-dot:last-child { animation-delay: 1s; }

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5); transform: scale(1); opacity: 0.7; }
    50% { box-shadow: 0 0 14px rgba(var(--primary-rgb), 1); transform: scale(1.4); opacity: 1; }
}

.hero-content h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ff7f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 38px;
    max-width: 520px;
    line-height: 1.8;
}

/* Hero Buttons */
.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.55), 0 0 30px rgba(var(--primary-rgb), 0.25);
    background: linear-gradient(135deg, #ffc94d 0%, var(--primary) 100%);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    color: var(--white);
    padding: 15px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.stat-number {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Image */
.hero-image-wrap {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    position: relative;
}

.hero-img-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-img {
    width: 100%;
    border-radius: 28px;
    position: relative;
    z-index: 1;
    animation: heroFloat 6s ease-in-out infinite;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--glass-border);
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Floating badges */
/* Floating badges — always dark regardless of theme */
.hero-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f0f0f5;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: badgeFloat 5s ease-in-out infinite;
    white-space: nowrap;
}

.hero-floating-badge i { color: var(--primary); font-size: 1rem; }

.badge-top {
    top: -10px;
    right: -15px;
    animation-delay: 0s;
}

.badge-bottom {
    bottom: 20px;
    left: -20px;
    animation-delay: -2.5s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
    padding: 20px 0 40px;
}

.features-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--gray);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: default;
}

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

.feature-chip:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-padding { padding: 100px 0; }

.section-header {
    margin-bottom: 70px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-sub {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 20px;
}

.accent-line {
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

/* ============================================================
   PLATFORM CARDS (Services)
   ============================================================ */
.platforms-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.platform-card-horizontal {
    display: flex;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: stretch;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-height: 280px;
}

.platform-card-horizontal:hover {
    transform: translateY(-10px) scale(1.005);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.platform-card-horizontal.reverse { flex-direction: row-reverse; }

.platform-img-wrapper {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
}

.platform-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.platform-card-horizontal:hover .platform-img-wrapper img {
    transform: scale(1.06);
}

.platform-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 8, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-card-horizontal:hover .platform-overlay { opacity: 1; }

/* Card number decoration */
.card-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.15);
    line-height: 1;
    font-family: 'tajawal', sans-serif;
}

.platform-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 14px;
    opacity: 0.9;
}

.platform-info h3 {
    font-size: 1.9rem;
    margin-bottom: 14px;
    font-weight: 800;
    background: linear-gradient(to right, var(--white), rgba(var(--primary-rgb), 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

[data-theme="light"] .platform-info h3 {
    background: linear-gradient(to right, #111, var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.platform-info p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    width: max-content;
    transition: var(--transition);
}

.btn-readmore:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    gap: 16px;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 100px 40px;
    background: var(--card-bg);
    border-radius: 28px;
    border: 1px dashed var(--glass-border);
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.empty-state p { color: var(--gray); }

/* ============================================================
   DETAILS PAGE
   ============================================================ */
.details-hero {
    padding-top: 180px;
    padding-bottom: 100px;
}

.details-hero .grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.main-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.project-info, .glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.text-gradient {
    background: linear-gradient(135deg, var(--white), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #111, var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-shadow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-shadow:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), var(--shadow-gold);
}

.card-link, .back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-link:hover, .back-link:hover {
    gap: 14px;
    color: var(--white);
}

/* ============================================================
   ADMIN UI
   ============================================================ */
.admin-card {
    background: var(--dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    background: var(--dark-accent);
    border: 1px solid var(--glass-border);
    color: var(--white);
    border-radius: 12px;
    margin-top: 8px;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 70px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.social-links { display: flex; gap: 14px; }

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

/* Brand col */
.footer-brand {}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-tagline {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

/* Footer columns */
.footer-col {}

.footer-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 18px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.footer-links a i {
    font-size: 0.65rem;
    color: var(--primary);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    color: var(--white);
    gap: 12px;
}

.footer-links a:hover i { opacity: 1; }

/* Contact col special */
.footer-contact a i {
    font-size: 0.82rem;
    width: 14px;
    text-align: center;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
    color: var(--gray);
}

.footer-bottom strong { color: var(--white); }

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE — FOOTER
   ============================================================ */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ============================================================
   RESPONSIVE — GENERAL
   ============================================================ */
@media (max-width: 992px) {
    .hero-flex { gap: 40px; }

    .platform-card-horizontal,
    .platform-card-horizontal.reverse {
        flex-direction: column;
    }

    .platform-img-wrapper {
        flex: none;
        height: 280px;
    }

    .platform-info { padding: 30px; }

    .details-hero .grid-container { grid-template-columns: 1fr; }

    .content-right {
        position: static !important;
        top: auto !important;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
    }

    .content-right { order: 1; }
    .content-left  { order: 2; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-image-wrap { display: none; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.3rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .features-flex { gap: 10px; }
    .feature-chip { font-size: 0.82rem; padding: 8px 16px; }
    .hero-btns { flex-direction: column; }
    .btn-main, .btn-outline { justify-content: center; text-align: center; }

    .grid-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .main-image { margin-bottom: 20px; }
}

@media (max-width: 576px) {
    .details-hero { padding-top: 120px; padding-bottom: 50px; }
    .project-info, .glass-card { padding: 24px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
