/* ==========================================================================
   NG Tekno Solutions - Premium CSS Stylesheet
   ========================================================================== */

/* 1. Design System Tokens & Custom Properties */
:root {
    /* Color Palette */
    --color-bg-deep: #0F172A;       /* Slate 900 */
    --color-bg-charcoal: #1E293B;   /* Slate 800 */
    --color-bg-card: #1E293B;       /* Slate 800 */
    --color-border: #334155;        /* Slate 700 */
    --color-border-glow: rgba(14, 165, 233, 0.2);
    --color-text-cool: #94A3B8;     /* Slate 400 */
    --color-text-light: #F8FAFC;    /* Slate 50 */
    --color-text-muted: #64748B;    /* Slate 500 */
    
    /* Brand Accents */
    --color-accent: #0EA5E9;        /* Electric Teal/Blue */
    --color-accent-hover: #0284C7;  /* Darker Teal/Blue */
    --color-accent-glow: rgba(14, 165, 233, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Layout Variables */
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --container-width: 1280px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-card: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Base Reset & Layout */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-deep);
    color: var(--color-text-cool);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
    border: 2px solid var(--color-bg-deep);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Utility Components (Buttons, Badges) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px var(--color-accent-glow);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.08);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: var(--color-text-cool);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-primary svg.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg.arrow-icon {
    transform: translateX(4px);
}

/* Badges */
.section-tag {
    display: inline-block;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-accent);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--color-accent); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

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

/* 4. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Scrolled Header Style */
.site-header.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -0.02em;
}

/* Navigation Links */
.desktop-nav .nav-links {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-cool);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-light);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* 5. Mobile Navigation Menu */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--color-bg-deep);
    border-left: 1px solid var(--color-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 8rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-light);
    display: block;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 0.75rem;
}

.mobile-nav-link:hover {
    color: var(--color-accent);
    padding-left: 0.5rem;
}

.mobile-action-li {
    margin-top: 1.5rem;
}

.w-full {
    width: 100%;
}

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

/* Mobile Open State */
body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .mobile-nav {
    right: 0;
}

body.menu-open .mobile-menu-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* 6. Hero Section */
.hero-section {
    position: relative;
    padding: calc(var(--header-height) + 5rem) 0 7rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-deep);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-accent) 0%, rgba(59, 130, 246, 0) 70%);
}

.shape-2 {
    bottom: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3B82F6 0%, rgba(14, 165, 233, 0) 70%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-cool);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

.visual-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(59, 130, 246, 0) 60%);
    pointer-events: none;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.95);
    transition: transform 0.8s ease;
}

.visual-wrapper:hover .hero-image {
    transform: scale(1.03);
}

/* Mouse Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mouse-icon:hover {
    border-color: var(--color-accent);
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-text-muted);
    border-radius: 4px;
    animation: scroll-wheel 1.5s infinite;
}

.mouse-icon:hover .wheel {
    background-color: var(--color-accent);
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}


/* 7. General Section Layouts */
.section-header {
    max-width: 760px;
    margin: 0 auto 4rem;
}

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

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-cool);
    line-height: 1.6;
}


/* 8. About / Core Services */
.about-section {
    padding: 6rem 0;
    background-color: var(--color-bg-charcoal);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background-color: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition-card);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(14, 165, 233, 0.05);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(14, 165, 233, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--color-text-cool);
    line-height: 1.6;
}


/* 9. Flagship Showcase (Schoolios) */
.flagship-section {
    position: relative;
    padding: 8rem 0;
    background-color: var(--color-bg-deep);
    overflow: hidden;
}

.flagship-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.flagship-tag {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
}

.flagship-box {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--color-bg-charcoal);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 4.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.flagship-details {
    display: flex;
    flex-direction: column;
}

.flagship-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.flagship-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -0.01em;
}

.flagship-headline {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.flagship-desc {
    font-size: 1.05rem;
    color: var(--color-text-cool);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.flagship-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.feat-check {
    margin-top: 3px;
    flex-shrink: 0;
}

.feat-item span {
    color: var(--color-text-light);
}

/* Flagship Preview Mockup CSS (Interactive Tech Aesthetic) */
.flagship-preview {
    width: 100%;
}

.preview-mockup {
    background-color: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10.5;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 40px;
    background-color: rgba(30, 41, 59, 0.7);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #334155;
}

.mockup-header .dot:nth-child(1) { background-color: #EF4444; }
.mockup-header .dot:nth-child(2) { background-color: #F59E0B; }
.mockup-header .dot:nth-child(3) { background-color: #10B981; }

.mockup-address {
    margin-left: 1.5rem;
    flex-grow: 1;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 2px 12px;
    color: var(--color-text-muted);
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-body {
    flex-grow: 1;
    display: flex;
    background-color: #0B0F19;
}

.mockup-sidebar {
    width: 50px;
    border-right: 1px solid var(--color-border);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.mockup-sidebar .m-item {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: rgba(148, 163, 184, 0.15);
}

.mockup-sidebar .m-item.active {
    background-color: var(--color-accent);
}

.mockup-content {
    flex-grow: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Stat cards — now show real labels & numbers */
.m-stat {
    height: auto;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    overflow: hidden;
    /* shimmer sweep */
    background: linear-gradient(
        90deg,
        rgba(30, 41, 59, 0.7) 25%,
        rgba(14, 165, 233, 0.07) 50%,
        rgba(30, 41, 59, 0.7) 75%
    );
    background-size: 200% auto;
    animation: shimmer 2.5s linear infinite;
}

.m-stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.7);
    font-family: monospace;
}

.m-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #F8FAFC;
    font-family: var(--font-heading);
    line-height: 1;
}

.m-stat-value.accent { color: var(--color-accent); }
.m-stat-value.warn   { color: #F59E0B; }

/* Class list table */
.mockup-table {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.5);
    flex-grow: 1;
}

.m-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.6rem;
    color: #94A3B8;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    transition: background 0.2s ease;
}

.m-table-row:last-child { border-bottom: none; }

.m-table-row.header-row {
    background-color: rgba(15, 23, 42, 0.8);
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.m-table-row:not(.header-row):hover {
    background-color: rgba(14, 165, 233, 0.04);
}

.m-table-row span:first-child {
    color: #E2E8F0;
    font-weight: 500;
}

.m-muted { color: rgba(148, 163, 184, 0.6); }

.m-badge {
    display: inline-block;
    font-size: 0.48rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
}

.active-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pending-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Announcement strip */
.mockup-announce {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background-color: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 6px;
    flex-shrink: 0;
}

.announce-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--color-accent);
    animation: pulse 1.8s infinite;
}

.announce-text {
    font-size: 0.58rem;
    color: rgba(148, 163, 184, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* 10. R&D Pipeline Section */
.pipeline-section {
    padding: 8rem 0;
    background-color: var(--color-bg-charcoal);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pipeline-card {
    position: relative;
    background-color: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-card);
}

.pipeline-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Neon glow line top of pipeline cards */
.pipeline-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    transition: var(--transition-smooth);
}

.pipeline-card:hover::after {
    width: 100%;
}

.card-badge-row {
    margin-bottom: 1.5rem;
}

.pipeline-card-title {
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.pipeline-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-cool);
    line-height: 1.65;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pipeline-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pipeline-card-tech span {
    font-family: monospace;
    font-size: 0.75rem;
    background-color: rgba(148, 163, 184, 0.06);
    color: var(--color-text-cool);
    border: 1px solid var(--color-border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}


/* 11. Contact Section */
.contact-section {
    padding: 8rem 0;
    background-color: var(--color-bg-deep);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
    align-items: center;
}

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

.contact-headline {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--color-text-cool);
    line-height: 1.65;
    margin-bottom: 3rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

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

.info-text span:first-child {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.info-text a, .info-text span:last-child {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.info-text a:hover {
    color: var(--color-accent);
}

/* Centered Contact Box styling */
.contact-box.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.contact-box.centered .contact-info {
    align-items: center;
    width: 100%;
}

.info-list.centered {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    width: 100%;
}

.info-list.centered .info-item {
    background-color: var(--color-bg-charcoal);
    border: 1px solid var(--color-border);
    padding: 1.75rem 2.5rem;
    border-radius: 16px;
    min-width: 300px;
    justify-content: flex-start;
    transition: var(--transition-card);
    text-align: left;
}

.info-list.centered .info-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(14, 165, 233, 0.05);
}

/* On mobile, stack contact info blocks */
@media (max-width: 768px) {
    .info-list.centered {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    .info-list.centered .info-item {
        width: 100%;
        max-width: 360px;
    }
}


/* 12. Footer */
.site-footer {
    background-color: #070B16;
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

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

.footer-brand .logo {
    margin-bottom: 1.25rem;
}

.footer-desc {
    color: var(--color-text-cool);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 1.5rem;
}

.origin-badge {
    background-color: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #FB7185;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-link-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.footer-link-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-col a {
    font-size: 0.9rem;
    color: var(--color-text-cool);
}

.footer-link-col a:hover {
    color: var(--color-accent);
}

.footer-modal-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-cool);
    text-align: left;
    transition: var(--transition-smooth);
    padding: 0;
}

.footer-modal-trigger:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding: 1.5rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-socials a {
    color: var(--color-text-cool);
}

.footer-socials a:hover {
    color: var(--color-accent);
}


/* 13. Legal Policy Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 11, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--color-bg-charcoal);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-cool);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--color-text-light);
    background-color: rgba(148, 163, 184, 0.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text-light);
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--color-text-cool);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}


/* 14. Responsive Layout Rules (Media Queries) */

/* Large screens container limit */
@media (min-width: 1400px) {
    :root {
        --container-width: 1320px;
    }
}

/* Laptops & Tablets */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flagship-box {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding: 3rem;
    }
    
    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-box {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

/* Medium Tablets & Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .launch-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .modal-card {
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* Small Devices (Mobile) */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    .hero-title {
        font-size: 1.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-title {
        font-size: 1.65rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .flagship-box {
        padding: 1.75rem;
    }
    
    .flagship-headline {
        font-size: 1.45rem;
    }
    
    .pipeline-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   15. Arabic Language & RTL Layout Overrides
   ========================================================================== */

html[lang="ar"] {
    font-family: 'Cairo', var(--font-primary);
}

html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] h4, 
html[lang="ar"] h5, 
html[lang="ar"] h6,
html[lang="ar"] .btn {
    font-family: 'Cairo', var(--font-heading);
}

/* Button & Arrow Rotations */
html[lang="ar"] svg.arrow-icon {
    transform: scaleX(-1);
}

html[lang="ar"] .btn-primary:hover svg.arrow-icon {
    transform: scaleX(-1) translateX(4px);
}

html[lang="ar"] .hero-primary-cta:hover svg.arrow-icon,
html[lang="ar"] #flagship-outbound-btn:hover svg.arrow-icon {
    transform: scaleX(-1) translateX(6px);
}

/* Mobile Navigation RTL */
html[lang="ar"] .mobile-nav {
    right: auto;
    left: -300px;
    border-left: none;
    border-right: 1px solid var(--color-border);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="ar"] body.menu-open .mobile-nav {
    left: 0;
    right: auto;
}

/* Flagship Section Mockup RTL tweaks */
html[lang="ar"] .mockup-sidebar {
    border-right: none;
    border-left: 1px solid var(--color-border);
}

html[lang="ar"] .mockup-address {
    margin-left: 0;
    margin-right: 1.5rem;
}

html[lang="ar"] .m-stat::after {
    left: auto;
    right: 10%;
}

html[lang="ar"] .m-stat::before {
    left: auto;
    right: 10%;
}

html[lang="ar"] .mockup-chart::before {
    left: auto;
    right: 15%;
}

/* Form elements RTL support */
html[lang="ar"] input,
html[lang="ar"] textarea {
    text-align: right;
}

html[lang="ar"] .info-text {
    text-align: right;
}

html[lang="ar"] .footer-modal-trigger {
    text-align: right;
}

html[lang="ar"] .logo {
    flex-direction: row-reverse;
}

html[lang="ar"] .logo-text {
    letter-spacing: normal;
}

/* Alignment fixes for grid structures in RTL */
html[lang="ar"] .info-item {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: flex-start;
}

html[lang="ar"] .info-list {
    align-items: flex-end;
}

html[lang="ar"] .info-list.centered {
    flex-direction: row-reverse;
    align-items: center;
}

html[lang="ar"] .about-card {
    text-align: right;
}

html[lang="ar"] .about-card .card-icon {
    margin-left: auto;
    margin-right: 0;
}

html[lang="ar"] .pipeline-card {
    text-align: right;
}

html[lang="ar"] .pipeline-card-tech {
    flex-direction: row-reverse;
}

html[lang="ar"] .footer-brand {
    align-items: flex-end;
    text-align: right;
}

html[lang="ar"] .footer-link-col {
    text-align: right;
}

html[lang="ar"] .footer-link-col h4 {
    letter-spacing: normal;
}

html[lang="ar"] .footer-modal-trigger {
    text-align: right;
}

html[lang="ar"] .modal-header {
    flex-direction: row-reverse;
}

html[lang="ar"] .modal-body {
    text-align: right;
}

html[lang="ar"] .modal-footer {
    justify-content: flex-start;
}

/* Spacing Adjustments for Language Switcher */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-cool);
    cursor: pointer;
    font-family: var(--font-heading);
}

.lang-toggle-btn:hover {
    color: var(--color-text-light);
    border-color: var(--color-text-cool);
    background: rgba(148, 163, 184, 0.12);
}

.lang-toggle-btn svg {
    opacity: 0.8;
}

.globe-icon {
    flex-shrink: 0;
}

/* ==========================================================================
   16. Advanced Animation System
   ========================================================================== */

/* ---- Scroll-Reveal Base States ---- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-scale {
    transform: scale(0.92);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for grouped reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- Animated Gradient Text Shimmer ---- */
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 40%, #8B5CF6 70%, #0EA5E9 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

/* ---- Floating Animation for Hero Visual ---- */
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-14px); }
    100% { transform: translateY(0px); }
}

.visual-wrapper {
    animation: float 6s ease-in-out infinite;
}

.visual-wrapper:hover {
    animation-play-state: paused;
}

/* ---- Animated Background Orbs ---- */
@keyframes orb-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -20px) scale(1.05); }
    66%  { transform: translate(-15px, 25px) scale(0.97); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-25px, 15px) scale(1.03); }
    66%  { transform: translate(20px, -30px) scale(0.98); }
    100% { transform: translate(0, 0) scale(1); }
}

.shape-1 { animation: orb-drift-1 18s ease-in-out infinite; }
.shape-2 { animation: orb-drift-2 22s ease-in-out infinite; }

/* ---- Hero Badge Glow Pulse ---- */
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
    50%       { box-shadow: 0 0 18px 4px rgba(14, 165, 233, 0.18); }
}

.hero-badge {
    animation: badge-glow 3s ease-in-out infinite;
}

/* ---- Mockup Shimmer Live Data ---- */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.m-stat {
    background: linear-gradient(
        90deg,
        rgba(30, 41, 59, 0.4) 25%,
        rgba(14, 165, 233, 0.1) 50%,
        rgba(30, 41, 59, 0.4) 75%
    );
    background-size: 200% auto;
    animation: shimmer 2.5s linear infinite;
}

/* ---- Mockup sidebar active item pulse ---- */
@keyframes sidebar-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--color-accent); }
    50%       { opacity: 0.5; box-shadow: 0 0 14px var(--color-accent); }
}

.mockup-sidebar .m-item.active {
    animation: sidebar-pulse 2s ease-in-out infinite;
}

/* ---- Chart line draw animation ---- */
@keyframes chart-draw {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}

.mockup-chart::before {
    animation: chart-draw 2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* ---- Card Icon hover effect ---- */
.card-icon svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card:hover .card-icon svg {
    transform: rotate(10deg) scale(1.15);
}

/* ---- Pipeline card animated glow border ---- */
@keyframes border-glow-pulse {
    0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
    50%       { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(14, 165, 233, 0.12); }
}

.pipeline-card:hover {
    animation: border-glow-pulse 2s ease-in-out infinite;
    transform: translateY(-8px);
    border-color: var(--color-accent);
}

/* ---- Section Tag reveal sweep underline ---- */
.section-tag {
    position: relative;
    display: inline-block;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.section-header.visible .section-tag::after {
    width: 100%;
}

/* ---- Contact info card extra glow on hover ---- */
.info-list.centered .info-item:hover {
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4), 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(14, 165, 233, 0.08);
}

/* ---- Hero entrance animations (page load) ---- */
@keyframes hero-slide-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes hero-zoom-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-slide-up {
    animation: hero-slide-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.animate-fade-in {
    animation: hero-fade-in 1s ease 0.5s both;
}

.badge-container.animate-fade-in {
    animation: hero-fade-in 0.8s ease 0.05s both;
}

.animate-zoom-in {
    animation: hero-zoom-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ---- Footer atmospheric gradient ---- */
.site-footer {
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(7, 11, 22, 0.5));
    pointer-events: none;
    z-index: 0;
}

/* ---- Respect user reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---- Legal Policy Language Toggling ---- */
.lang-ar-only {
    display: none !important;
}
.lang-en-only {
    display: block !important;
}

html[lang="ar"] .lang-ar-only {
    display: block !important;
}
html[lang="ar"] .lang-en-only {
    display: none !important;
}

