/* ============================================
   Mafhoom — FRQ-Inspired with Mafhoom Brand Colors
   ============================================ */

/* --- Custom Fonts (Neo Sans W23) --- */
@font-face {
    font-family: 'alfont_com_AlFont_com_Neo-Sans-W23-l-1';
    src: url('../fonts/alfont_com_AlFont_com_Neo-Sans-W23-l-1.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'alfont_com_AlFont_com_Neo-Sans-W23-m-1';
    src: url('../fonts/alfont_com_AlFont_com_Neo-Sans-W23-m-1.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'alfont_com_NeoSansW23-Regular';
    src: url('../fonts/alfont_com_NeoSansW23-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'alfont_com_NeoSansW23-Bold';
    src: url('../fonts/alfont_com_NeoSansW23-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens --- */
:root {
    --primary: #00BFFF;
    --primary-light: #00D4AA;
    --primary-gradient: linear-gradient(135deg, #00BFFF, #00D4AA);
    --primary-hover: #00a8e0;
    --primary-glow: rgba(0, 191, 255, 0.12);
    --bg: #000000;
    --bg-elevated: #060a10;
    --bg-card: #0d1117;
    --bg-card-hover: #131a24;
    --text: #FFFFFF;
    --text-secondary: #A6B5C8;
    --text-muted: #5A6A7E;
    --border: #1c2535;
    --border-hover: #00BFFF;
    --font-heading: 'alfont_com_NeoSansW23-Bold', 'alfont_com_AlFont_com_Neo-Sans-W23-m-1', sans-serif;
    --font-body: 'alfont_com_NeoSansW23-Regular', 'alfont_com_AlFont_com_Neo-Sans-W23-l-1', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
}

.cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15),
                0 0 30px rgba(255, 255, 255, 0.08),
                0 0 50px rgba(255, 255, 255, 0.04);
}

/* Enlarge on hover over interactive elements */
.cursor-hover .cursor-aura {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2),
                0 0 40px rgba(0, 191, 255, 0.1),
                0 0 60px rgba(0, 191, 255, 0.05);
}

.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--primary);
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-aura { display: none !important; }
    body { cursor: auto; }
}

/* Keep normal cursor on inputs/textareas */
input, textarea, select, button, a {
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

img { max-width: 100%; display: block; }
ul { list-style: none; }

.rtl-layout { direction: rtl; text-align: right; }
.ltr-layout { direction: ltr; text-align: left; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

#nav-logo {
    height: 38px;
    width: auto;
    transition: opacity var(--transition), transform var(--transition);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

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

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

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

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

.lang-select {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.lang-select:hover { border-color: var(--primary); }
.lang-select option { background: var(--bg); color: var(--text); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.8;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(to top, var(--bg), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

#hero-logo {
    max-width: 320px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.25));
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-lg {
    padding: 1.25rem 3.5rem;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.2);
}

.btn-lg:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.3);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--bg);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.btn:hover .btn-arrow { transform: translateX(-4px); }
.rtl-layout .btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   2026 AI YEAR — SEPARATE BANNER
   ============================================ */
.ai-year-banner {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 191, 255, 0.03) 50%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ai-year-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ai-year-tag {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.ai-year-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.ai-year-title .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-year-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   PARTNERS — HORIZONTAL SCROLL BAR
   ============================================ */
.partners-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-elevated);
    position: relative;
}

/* Fade edges for smooth looping look */
.partners-section::before,
.partners-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-elevated), transparent);
}

.partners-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-elevated), transparent);
}

.partners-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.partners-container {
    width: 100%;
    overflow: hidden;
    /* Force LTR for the track so translateX values are consistent in both languages */
    direction: ltr !important; 
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scroll-unified 40s linear infinite;
}

/* Ensure track animation is always negative (moving left) */
@keyframes scroll-unified {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by exactly 25% (one full group container) */
        transform: translateX(-25%);
    }
}

/* Container for one set of logos - Force Flex with !important to prevent any stacking */
.partners-section .partners-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6rem;
    padding-right: 6rem;
    width: max-content !important;
}

.partner-logo {
    height: 42px; /* Slightly smaller for better fit */
    width: auto;
    opacity: 0.5;
    filter: grayscale(1) brightness(1.8);
    transition: all var(--transition);
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
}

/* ============================================
   SECTION COMMON
   ============================================ */
/* Gallery-style Spacious Sections */
.section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-full {
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-title .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 0 auto 2rem;
    border: none;
    border-radius: 2px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-text {
    text-align: center;
    max-width: 750px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.about-text .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ============================================
   FEATURES — CARD GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: var(--primary-glow);
    border-radius: 0 var(--radius-lg) 0 80%;
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CAPABILITIES — STATS
   ============================================ */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
}

.cap-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.cap-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   IMPACT
   ============================================ */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.impact-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

.impact-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.impact-percent {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.impact-item h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.impact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   TIMELINE — SCROLLABLE JOURNEY
   ============================================ */
.timeline-section {
    padding: 6rem 0;
    overflow: hidden;
}

.timeline-section .section-header {
    padding: 0 2rem;
}

.timeline-wrapper {
    position: relative;
    padding: 3rem 0 2rem;
}

/* The horizontal line */
.timeline-line {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 1px;
    animation: timelineGlow 3s ease-in-out infinite alternate;
}

@keyframes timelineGlow {
    0% { left: 0%; }
    100% { left: 70%; }
}

.timeline-track {
    display: flex;
    justify-content: center !important;
    gap: 5rem;
    padding: 30px 3rem; /* Increased vertical padding for better spacing */
    overflow-x: auto;
    overflow-y: hidden; /* Lock vertical scroll */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
    position: relative;
    z-index: 1;
    cursor: grab;
}

.timeline-track:active {
    cursor: grabbing;
}

.timeline-track::-webkit-scrollbar {
    height: 4px;
}

.timeline-track::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 2px;
}

.timeline-track::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 2px;
}

.timeline-item {
    flex: 0 0 340px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary), 0 0 15px rgba(0, 191, 255, 0.3);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    width: 100%;
}

.timeline-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.timeline-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.timeline-card-content {
    padding: 1.25rem;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.timeline-card-content h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.timeline-card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-scroll-hint {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scroll-arrow {
    display: inline-block;
    animation: scrollHint 1.5s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.rtl-layout .scroll-arrow {
    animation: scrollHintRtl 1.5s ease-in-out infinite;
}

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

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info-side h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-info-side h2 .accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-side > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Form */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 120px;
}

/* Honeypot - hidden from humans */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.3);
}

.form-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 212, 170, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(255, 80, 80, 0.1);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-col p,
.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

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

.footer-col .footer-icon {
    margin-left: 0.3rem;
}

.rtl-layout .footer-col .footer-icon {
    margin-left: 0;
    margin-right: 0.3rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS & REVEAL SYSTEM
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Stagger Utilities */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Interactive Hover Lifts */
.feature-card:hover,
.cap-card:hover,
.impact-item:hover,
.btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.timeline-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

/* ============================================
   NEW: DYNAMIC NAVBAR & LANG MENU
   ============================================ */
.navbar.hero-mode {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

.navbar.hero-mode .brand-logo,
.navbar.hero-mode .nav-links,
.navbar.hero-mode .nav-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.navbar.hero-mode .lang-menu-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.navbar .brand-logo,
.navbar .nav-links,
.navbar .nav-toggle,
.navbar .lang-menu-wrapper {
    transition: opacity 0.4s ease, transform 0.4s ease, left 0.4s ease, top 0.4s ease;
}

/* Language Globe Menu */
.lang-menu-wrapper {
    position: relative;
    margin: 0 1rem;
}

.lang-globe-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-globe-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.rtl-layout .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: inherit;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.lang-option.active {
    color: var(--primary);
    font-weight: 700;
}

/* Hero Scroll Hint (Know More) - Absolute Centering */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content;
    z-index: 10;
    text-align: center;
}

/* Atomic Fix: Ensure centering is preserved after fade-in animation */
.hero-scroll-hint.fade-in-up.visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}

.scroll-hint-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.scroll-hint-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.scroll-arrow-box {
    animation: bounceAndFade 2.5s infinite;
    display: flex;
    justify-content: center;
    color: var(--primary);
}

@keyframes bounceAndFade {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(15px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }
}

/* Timeline Scroll Hint (Dynamic) */
.timeline-scroll-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.timeline-scroll-hint.show-hint {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* Specific Switch to flex-start for timeline when it may overflow but is above 768px */
@media (max-width: 1250px) {
    .timeline-track {
        justify-content: flex-start !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .ai-year-title { font-size: 1.8rem; }
    .contact-info-side h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero { min-height: 110vh; padding-bottom: 6rem; } /* Extra height for mobile content */
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .stat-number { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .section { padding: 5rem 1.25rem; }
    .section-full { padding: 5rem 1.25rem; }
    .nav-container { padding: 0.75rem 1.25rem; }
    #hero-logo { max-width: 200px; }
    /* Force nowrap and unified LTR scrolling for marquee groups */
    .partners-track, .partners-group { flex-wrap: nowrap !important; }
    .partners-track { gap: 2rem; }
    .partner-logo { height: 32px; min-width: 80px; } 
    .timeline-item { flex: 0 0 280px; }
    .timeline-track { padding: 20px 2rem; gap: 2rem; justify-content: flex-start; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .capabilities-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; }
    #hero-logo { max-width: 180px; }
    .contact-form-card { padding: 1.5rem; }
}
