:root {
    --bg-color: #0D0F12;
    --accent-cyan: #00F0FF;
    --secondary-purple: #7000FF;
    --text-primary: #FFFFFF;
    --text-secondary: #9BA1A6;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(13, 15, 18, 0.6);
    --btn-glow-shadow: rgba(0, 240, 255, 0.2);
    --btn-glow-hover1: rgba(0, 240, 255, 0.5);
    --btn-glow-hover2: rgba(0, 240, 255, 0.3);
    --badge-bg: rgba(13, 15, 18, 0.75);
}

:root.light-mode {
    --bg-color: #F8F9FA;
    --accent-cyan: #008899; 
    --secondary-purple: #5A00CC; 
    --text-primary: #1A1C1E;
    --text-secondary: #5F6368;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --btn-glow-shadow: rgba(0, 136, 153, 0.2);
    --btn-glow-hover1: rgba(0, 136, 153, 0.5);
    --btn-glow-hover2: rgba(0, 136, 153, 0.3);
    --badge-bg: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Component */
.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Inter', sans-serif; /* Keep English font for logo */
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
    direction: ltr;
}

.logo .dot {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, var(--accent-cyan), var(--secondary-purple));
    transition: width 0.3s ease;
}

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

.header-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.icon-sun, .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

:root:not(.light-mode) .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

:root:not(.light-mode) .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

:root.light-mode .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

:root.light-mode .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-glow {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px var(--btn-glow-shadow);
}

.btn-glow:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--btn-glow-hover1), 0 0 45px var(--btn-glow-hover2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--secondary-purple));
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(112, 0, 255, 0.4), 0 0 30px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(128, 128, 128, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for header */
    overflow: hidden;
}

/* Subtle background glow effects */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(112,0,255,0.15) 0%, rgba(13,15,18,0) 70%);
    z-index: 0;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0,240,255,0.1) 0%, rgba(13,15,18,0) 70%);
    z-index: 0;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

:root.light-mode .hero::before,
:root.light-mode .hero::after {
    opacity: 0.5; /* Reduce glow intensity in light mode */
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.eyebrow-icon {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(to left, var(--accent-cyan), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.8;
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.spline-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    overflow: visible;
    z-index: 5;
    /* Placeholder styles below */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease-out, background 0.3s ease, border-color 0.3s ease;
}

:root.light-mode .spline-container {
    background: linear-gradient(145deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 100%);
}

.spline-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(112,0,255,0.05) 0%, transparent 70%);
}

.spline-placeholder-text {
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.anti-gravity-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--badge-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    pointer-events: auto;
    transition: border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.floating-badge:hover {
    border-color: var(--accent-cyan);
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        margin-right: auto;
        margin-left: auto;
    }

    .nav-links {
        display: none;
    }

    .hero-visual {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}
