:root {
    --primary-orange: #00e5ff;
    --dark-bg: #0a0a0a;
    --text-white: #ffffff;
    --glass-white: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--dark-bg);
    font-family: 'Roboto', sans-serif;
    color: var(--text-white);
    overflow: hidden; /* Prevent scrolling for this landing page */
    height: 100vh;
    width: 100vw;
}

/* Arabic Font Override */
/* Arabic Font Override (Global) */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] p,
html[lang="ar"] span,
html[lang="ar"] a,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea {
    font-family: 'Cairo', sans-serif !important;
}

/* --- 1. Background Video --- */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    object-position: center;
    /* Optional: filter to make it look more cinematic/darker */
    filter: brightness(0.6) contrast(1.1);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to ensure text pop, especially at bottom */
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6));
    z-index: -1;
}

/* --- 3. UI Layer --- */
.ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 4rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text .be {
    color: var(--primary-orange);
    font-style: italic;
    margin-right: 2px;
}

.circle-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-orange);
    border-radius: 50%;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    cursor: pointer;
}

.menu-icon .bar {
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.menu-icon .long { width: 35px; }
.menu-icon .medium { width: 25px; }
.menu-icon .short { width: 15px; }

/* Main Headline */
.main-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.headline {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Outline Text Effect */
.headline .line {
    color: transparent;
    -webkit-text-stroke: 1px white;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.headline .filled {
    color: var(--primary-orange);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

/* --- WhatsApp Floating Button (Fixed Bottom Right) --- */
.cta-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    /* Removed continuous animation for cleaner look */
    animation: floatIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pulse-float {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 0 20px 10px rgba(0, 229, 255, 0);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00e5ff, #0099cc);
    color: #000;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    /* Subtle Ripple for Attention */
    position: relative;
    overflow: visible;
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    border: 1px solid rgba(0, 229, 255, 0.6);
    animation: ripple-glow 2s infinite cubic-bezier(0.1, 0, 1, 1);
    z-index: -1;
}

@keyframes ripple-glow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-btn i {
    font-size: 1.2rem;
    color: #000;
}

.whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
    background: linear-gradient(135deg, #33ebff, #33adff);
}

/* sidebar */
.social-sidebar {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: black;
    color: var(--primary-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* Soft square */
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    border-color: var(--primary-orange);
}

/* Responsive */
@media (max-width: 768px) {
    .headline { font-size: 3rem; }
    .hero-visual { max-height: 60vh; opacity: 0.7; }
    .ui-layer { padding: 1.5rem; }
    .cta-container {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }
}

/* --- Fixed Social Sidebar --- */
.side-social-bar {
    position: fixed;
    left: 20px; /* Closer to edge */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px; /* Smaller gap */
    z-index: 100;
}

.social-icon {
    color: rgba(255, 255, 255, 0.7); /* Subtle white */
    font-size: 0.9rem; /* Smaller size */
    transition: color 0.3s, transform 0.3s;
    width: 30px; /* Fixed width for alignment */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 50%;
}

.social-icon:hover {
    color: var(--primary-orange);
    border-color: rgba(255, 102, 0, 0.3); /* Ring effect */
    transform: translateX(5px) scale(1.1);
    background: rgba(0,0,0,0.5);
}

/* --- Scroll To Top (Right Side) --- */
.scroll-to-top {
    position: fixed;
    right: 40px;
    top: 50%;
    transform-origin: right center;
    transform: translateY(-50%) rotate(-90deg);
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.scroll-to-top i {
    transform: rotate(90deg); /* Counter-rotate the arrow so it points up relative to screen, or left relative to text */
}

/* Fix arrow orientation: since text is rotated -90deg (vertical up), the arrow needs to point "up" relative to page.
   Visual check: Text runs bottom-to-top. Arrow should be at the "top" (right side of unrotated text).
*/

.scroll-to-top:hover {
    color: var(--primary-orange);
}

/* Responsive Hide */
@media (max-width: 900px) {
    .side-social-bar, .scroll-to-top { display: none; }
}

/* Language Toggle Specifics */
.lang-toggle {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.8rem !important; /* Force smaller size for text */
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    color: white;
}

.lang-toggle:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: black;
}

/* --- Theme Support --- */
:root {
    --primary-orange: #00e5ff;
    --primary-cyan: #00d2ff;
    --active-color: var(--primary-orange);
}

body.cyan-mode {
    --active-color: var(--primary-cyan);
}

/* Override utility: We should replace instances of #ff6600 with var(--active-color) 
   where it makes sense. For now, I'll add targeted overrides. */
body.cyan-mode .highlight-bg,
body.cyan-mode .highlight-text,
body.cyan-mode .be,
body.cyan-mode .icon-orange,
body.cyan-mode .submit-btn:hover,
body.cyan-mode .commit-dot.feat,
body.cyan-mode .skill-node:hover circle,
body.cyan-mode .lang-toggle:hover {
    color: var(--primary-cyan) !important;
    border-color: var(--primary-cyan) !important;
    background-color: transparent; /* Some need resetting */
}

body.cyan-mode .highlight-bg {
    background-color: var(--primary-cyan) !important;
    color: black !important;
}

body.cyan-mode .prompt,
body.cyan-mode .terminal-toggle-btn {
    color: var(--primary-cyan) !important;
}
/* --- MOBILE OPTIMIZATIONS (Max Width 768px) --- */
@media (max-width: 768px) {
    /* 1. Global Typography Scaling */
    html { font-size: 14px; } /* Base scale down */
    
    h1, .hero-title, .about-title-large, .section-title, .contact-title {
        font-size: 3rem !important; /* Force smaller titles */
        line-height: 1.1;
    }

    /* 2. Layout Resets */
    .about-container, 
    .contact-container,
    .values-nav,
    .footer-top-row {
        flex-direction: column !important;
        gap: 40px;
    }
    
    /* 3. Spacing Reductions */
    section, .about-section, .services-grid-section, .contact-section {
        padding: 60px 5% !important;
        min-height: auto !important; /* Remove full viewport forcing */
    }

    /* 4. Specific Section Fixes */
    /* Hero */
    .hero-content {
        margin-left: 0 !important;
        text-align: center;
        padding: 0 20px;
    }
    .hero-content h1 { font-size: 2.5rem !important; }

    /* About */
    .about-image-wrapper { 
        width: 100%; 
        padding-left: 0;
        order: -1; /* Image first? Or text? Image usually first */
    }
    .about-content { padding-top: 0; text-align: center; }
    .about-services-grid { justify-content: center; }
    
    /* Contact */
    .contact-left, .contact-right { width: 100%; flex: 100%; }
    .contact-title { font-size: 3rem; text-align: center; }
    .contact-subtitle { text-align: center; display: block; margin: 0 auto 20px auto; }
    .service-toggles { justify-content: center; }

    /* Footer */
    .footer-divider { display: none; }
    .footer-col { padding: 10px 0; text-align: center; }
    
    /* WhatsApp Button - Mobile Position */
    .cta-container {
        bottom: 20px;
        right: 20px;
        transform: scale(0.9); /* Slightly smaller */
    }
    .whatsapp-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Cursor - Hide Custom Cursor on Mobile */
    .cursor-dot, .cursor-ring { display: none !important; }
    body { cursor: auto !important; }
}
