:root {
    --bg-dark: #07070a;
    --bg-darker: #030305;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --primary: #00f0ff;
    --secondary: #b026ff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(7, 7, 10, 0.7);
    --footer-bg: #000000;
    --footer-border: rgba(255, 255, 255, 0.05);
    --env-card-bg: linear-gradient(145deg, rgba(20, 20, 30, 1) 0%, rgba(10, 10, 15, 1) 100%);
    --toggle-hover-bg: rgba(255, 255, 255, 0.04);
    --input-text: #f0f0f5;
    --input-placeholder: #8a93a3;
    --constellation-star: rgba(0, 240, 255, 0.6);
    --constellation-line-rgb: 0, 240, 255;
    --glass-blur: blur(16px);
}

/* Light theme overrides when `data-theme="light"` is set on <html> */
[data-theme="light"] {
    --bg-dark: #f6f7fb;
    --bg-darker: #ffffff;
    --text-main: #0b1220;
    --text-muted: #5a6470;
    --primary: #0066ff;
    --secondary: #6b21ff;
    --card-bg: rgba(11, 18, 32, 0.02);
    --card-border: rgba(11, 18, 32, 0.06);
    --nav-bg: rgba(246, 247, 251, 0.88);
    --footer-bg: #eef2f8;
    --footer-border: rgba(11, 18, 32, 0.08);
    --env-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 244, 251, 1) 100%);
    --toggle-hover-bg: rgba(11, 18, 32, 0.05);
    --input-text: #0b1220;
    --input-placeholder: #667085;
    --constellation-star: rgba(0, 102, 255, 0.32);
    --constellation-line-rgb: 0, 102, 255;
}

/* Smooth transitions for theme changes */
body, .navbar, .hero, .section, .footer, .feature-card, .env-card {
    transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--nav-bg);
    backdrop-filter: var(--glass-blur);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 72px; /* Increased for a more prominent logo */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3)); /* Adds a slight glow to match the theme */
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.15rem;
    margin-left: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.theme-toggle:hover {
    color: var(--primary);
    background: var(--toggle-hover-bg);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary);
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mt-4 {
    margin-top: 2rem;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    animation: pulse 8s infinite alternate;
}

.primary-orb {
    width: 400px;
    height: 400px;
    background: rgba(0, 240, 255, 0.2);
    top: 10%;
    left: 20%;
}

.secondary-orb {
    width: 350px;
    height: 350px;
    background: rgba(176, 38, 255, 0.2);
    bottom: 10%;
    right: 20%;
    animation-delay: -4s;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    z-index: 10;
    position: relative;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* SECTIONS */
.section {
    padding: 100px 5%;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-headers {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-headers h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-headers p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* FEATURES */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: var(--glass-blur);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ENVIRONMENTS */
.env-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.env-card {
    flex: 1;
    min-width: 300px;
    background: var(--env-card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.env-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.env-card:hover::before {
    transform: scaleX(1);
}

.env-content {
    padding: 3rem 2rem;
}

.env-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.env-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* HARDWARE */
.flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hardware-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tech-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 30s linear infinite;
}

.tech-circle .tech-img {
    width: 80%;
    border-radius: 50%;
    animation: rotate 30s linear infinite reverse; /* Keeps image upright */
}

.hardware-text {
    flex: 1;
}

.hardware-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hardware-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.check-list {
    list-style: none;
    margin-bottom: 2rem;
}

.check-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-content p {
    color: var(--text-muted);
    max-width: 300px;
    margin-top: 1rem;
}

.footer-cta h3 {
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    gap: 1rem;
}

.contact-form input {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: var(--input-text);
    outline: none;
    width: 300px;
}

.contact-form input::placeholder {
    color: var(--input-placeholder);
}

.contact-form input:focus {
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .navbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-left: 0;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 20px;
        background: var(--nav-bg);
        border: 1px solid var(--card-border);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    }

    .navbar.nav-open .nav-menu {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a,
    .nav-btn,
    .theme-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-links a {
        display: flex;
    }

    .nav-btn {
        display: inline-flex;
    }

    .theme-toggle {
        margin-left: 0;
        padding: 0.8rem 1rem;
    }

    .hero, .flex-row {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        width: 100%;
        margin-top: 3rem;
    }
    .tech-circle {
        width: 300px;
        height: 300px;
    }
    .contact-form {
        flex-direction: column;
    }
    .contact-form input {
        width: 100%;
    }
}

/* ANIMATIONS */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-fade {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
