:root {
    --primary: #10b981;
    --primary1: rgb(0, 0, 110);
    /* Green */
    --primary-dark: #059669;
    /* Darker Green */
    --secondary: #0f172a;
    /* Keep background as is */
    --accent: #ffffff;
    --neon-blue: #34d399;
    /* Neon Green */
    --neon-purple: #ffffff;
    --neon-purple1:#0e89e2;
    /* White to replace purple */
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --border-radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Almarai', sans-serif;
    color: var(--light);
    line-height: 1.6;
    background: var(--secondary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-size: 1rem;
    opacity: 0;
    animation: fadeInBody 1s ease-out forwards;
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

/* Universe Background */
#universe {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
    /* Deep black space */
    overflow: hidden;
}

/* Three.js canvas will be injected here automatically */
canvas {
    display: block;
    /* Removes bottom scrollbar whitespace */
}

/* Removed legacy CSS planet styles as we are now using Three.js */

.cosmic-web {
    /* Removed or adjusted if needed, but keeping for now as subtle overlay */
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 99%, rgba(16, 185, 129, 0.05) 100%),
        linear-gradient(0deg, transparent 99%, rgba(16, 185, 129, 0.05) 100%);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.stars {
    /* Keeping stars for parallax but reducing opacity/size in JS if needed */
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.planets {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.celestial-body {
    position: absolute;
    transition: transform 0.1s ease-out;
}

.nearby-planet {
    position: fixed;
    opacity: 0;
    transform: scale(0);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 998;
    filter: drop-shadow(0 0 40px rgba(52, 211, 153, 0.7));
}

.nearby-planet.visible {
    opacity: 0.8;
    transform: scale(1);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* Header & Navbar */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    position: relative;
    z-index: 1001;
}

.logo i {
    color: var(--neon-blue);
    font-size: 1.5rem;
    animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
    0% {
        text-shadow: 0 0 10px var(--neon-blue);
    }

    100% {
        text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--neon-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    white-space: nowrap;
    min-height: 44px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    width: 9rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

/* Satellites */
.satellite {
    position: absolute;
    color: #fff;
    font-size: 14px;
    z-index: 5;
    filter: drop-shadow(0 0 5px var(--neon-blue));
    animation: satelliteBlink 1s infinite alternate;
}

@keyframes satelliteBlink {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--neon-blue));
    }
}

/* Galaxies */
.galaxy {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -2;
    filter: blur(50px);
    mix-blend-mode: screen;
    opacity: 0.6;
    animation: galaxyRotate 120s linear infinite;
}

@keyframes galaxyRotate {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: 50%;
    filter: drop-shadow(0 0 5px #fff);
    animation: shootingStar 4s linear infinite;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

@keyframes shootingStar {
    0% {
        transform: translate(0, 0) rotate(-45deg) scale(0);
        opacity: 0;
    }

    1% {
        opacity: 1;
        transform: translate(0, 0) rotate(-45deg) scale(1);
    }

    15% {
        opacity: 0;
        transform: translate(-300px, 300px) rotate(-45deg) scale(0.5);
    }

    100% {
        transform: translate(-300px, 300px) rotate(-45deg) scale(0);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: var(--neon-blue);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--neon-blue);
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Animations */
@keyframes logoGlow {
    0% {
        text-shadow: 0 0 10px var(--neon-blue);
    }

    100% {
        text-shadow: 0 0 25px var(--neon-blue), 0 0 40px var(--neon-blue);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 5rem 2rem;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

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