:root {
    --bg-color: #050507;
    --bg-secondary: #0f0f16;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #ff4d4d;
    /* Matches the red dot in the logo */
    --accent-glow: rgba(255, 77, 77, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Container & Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    /* Removed dangerous left/transform centering */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- Navigation --- */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 7, 0.8);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    max-width: 800px;
    width: 90%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Orbit Animation Background */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* CENTER BRANDING */
.center-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 
       Centering Logic:
       Offsets logo width/2 to left.
       Logo 150px -> -75px
    */
    transform: translate(-75px, -50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    pointer-events: auto;
}

.brand-logo-o {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 77, 77, 0.5));
}

.brand-text {
    font-size: 8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-left: -35px;
    /* Overlap */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    font-family: var(--font-main);
    z-index: -1;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    animation: rotate linear infinite;
}

/* ORBIT SIZES (Standard) */
.orbit-1 {
    width: 400px;
    height: 400px;
    animation-duration: 20s;
}

.orbit-2 {
    width: 700px;
    height: 700px;
    animation-duration: 35s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 1000px;
    height: 1000px;
    animation-duration: 50s;
}

.orbit-4 {
    width: 1300px;
    height: 1300px;
    animation-duration: 65s;
    animation-direction: reverse;
}

.orbit-5 {
    width: 1600px;
    height: 1600px;
    animation-duration: 80s;
}

.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}

/* PLANET SIZES (LARGE) & POSITIONS */
.orbit-1 .planet {
    width: 30px;
    height: 30px;
    margin-top: -200px;
}

.orbit-2 .planet {
    width: 50px;
    height: 50px;
    margin-top: -350px;
    background-color: var(--accent);
    box-shadow: 0 0 40px var(--accent);
}

.orbit-3 .planet {
    width: 25px;
    height: 25px;
    margin-top: -500px;
    opacity: 0.9;
}

.orbit-4 .planet {
    width: 40px;
    height: 40px;
    margin-top: -650px;
    background-color: #ffaa55;
    box-shadow: 0 0 30px #ffaa55;
}

.orbit-5 .planet {
    width: 20px;
    height: 20px;
    margin-top: -800px;
    opacity: 0.7;
}


@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 2px;
    background: linear-gradient(-45deg, #fff, rgba(0, 0, 255, 0));
    filter: drop-shadow(0 0 6px #fff);
    animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
    z-index: 1;
    opacity: 0;
}

.shooting-star::before,
.shooting-star::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #fff, rgba(0, 0, 255, 0));
    transform: translateX(50%) rotateZ(45deg);
    border-radius: 100%;
    animation: shining 3000ms ease-in-out infinite;
}

.shooting-star::after {
    transform: translateX(50%) rotateZ(-45deg);
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 100px;
    }

    100% {
        width: 0;
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        transform: translateX(300px) translateY(100px);
        opacity: 0;
    }
}

@keyframes shining {
    0% {
        width: 0;
    }

    50% {
        width: 30px;
    }

    100% {
        width: 0;
    }
}

/* Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 2s) infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: var(--min-opacity, 0.2);
    }

    50% {
        opacity: 1;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent), #ff8533);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text strong {
    color: white;
}

.about-visual .glass-card {
    text-align: center;
    padding: 40px;
}

.about-visual h3 {
    margin: 15px 0;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

/* --- Services Section --- */
.services-section {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    width: 100%;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding-bottom: 150px;
}

.cta-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.cta-content p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* --- Footer --- */
footer {
    background: #020202;
    padding: 50px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a,
.socials a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.socials a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Animations Utility Classes --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: var(--bg-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
    }

    .nav-links.active li {
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    /* MOBILE FIXES */
    /* Scale down the entire orbit system */
    .orbit-container {
        transform: translate(-50%, -50%) scale(0.6) !important;
        /* Need to be explicit or check specificity. 
           Wait, .orbit-container has transform on base class? 
           Base class: transform: translate(-50%, -50%);
           So this overrides it correct.
        */
    }

    /* Resize Center Brand */
    /* Resize Center Brand */
    .brand-logo-o {
        width: 200px !important;
        height: 200px !important;
    }

    .brand-text {
        display: none;
        /* Hide text on mobile as requested */
    }

    .center-brand {
        /* Standard Centering since it's just the logo now */
        transform: translate(-50%, -50%);
        z-index: 10;
        /* Ensure it stays on top of text if overlap happens */
    }

    /* Adjust Hero Text Position - LOWEST POSSIBLE */
    .hero-content {
        bottom: 10px !important;
        width: 100%;
        /* Full width */
        padding: 0 10px;
        /* Safety padding */
    }

    /* CENTRE SECTIONS FOR MOBILE */
    .about-content,
    .about-text,
    .about-visual {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
        padding: 0 10px;
        /* Prevent text touching edges */
    }

    .services-grid {
        justify-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        /* Grid gap handles spacing */
    }

    .service-card {
        text-align: center;
        width: 100%;
        max-width: 350px;
        /* Slightly narrower to be safe */
        margin: 0 auto;
        box-sizing: border-box;
    }

    .icon-box {
        margin: 0 auto 20px auto;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}