:root {
    --bg-color: #06202B;
    --text-color: #F5EEDD;
    --text-muted: #7AE2CF;
    /* Aqua accent for muted/tech text */
    --primary-gradient: linear-gradient(135deg, #7AE2CF 0%, #077A7D 100%);

    /* Dark Premium Glass Variables */
    --glass-bg: rgba(7, 32, 43, 0.6);
    --glass-border: rgba(122, 226, 207, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: blur(20px) saturate(100%);

    --font-main: 'Space Grotesk', sans-serif;
    --spacing-section: 8rem;
    --border-radius: 16px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    font-weight: 300;
}

/* Background Orbs - Adjusted for Dark Mode */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #06202B 0%, #031016 100%);
}

/* Watermark Logo - Positioned bottom-right to avoid hero overlap */
.watermark-logo {
    position: fixed;
    bottom: 5%;
    right: 5%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
}

.watermark-logo img {
    width: 35vw;
    max-width: 600px;
    height: auto;
    display: block;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: orb-float 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #077A7D;
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #077A7D;
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #7AE2CF;
    top: 40%;
    left: 40%;
    animation-delay: -8s;
    opacity: 0.1;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 20px) scale(1.05);
    }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 32, 43, 0.5);
    /* Very transparent */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(122, 226, 207, 0.05);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;

    /* Glass Pill Style */
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    /* Extra left padding for Braille spinner */
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(245, 238, 221, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.logo-img {
    height: 180px;
    width: auto;
    /* Larger logo for better visual presence */
}

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
    /* Force vertical scroll */
    min-height: 100%;
}

.nav-links a:hover {
    color: #7AE2CF;
    opacity: 1;
    background: rgba(245, 238, 221, 0.08);
    border-color: rgba(122, 226, 207, 0.3);
    transform: translateY(-2px);
}

/* Active Link State */
.nav-links a.active {
    background: rgba(122, 226, 207, 0.1);
    border-color: rgba(122, 226, 207, 0.4);
    color: #7AE2CF;
    opacity: 1;
}

/* Show spinner on active link (always visible, not just hover) */
.nav-links a.active::before {
    opacity: 1;
    animation: braille 0.8s linear infinite;
}

/* Ensure spinner shows on active link hover too */
.nav-links a.active:hover::before {
    opacity: 1;
    animation: braille 0.8s linear infinite;
}

/* Braille Spinner Animation - using consistent 8-dot pattern */
@keyframes braille {
    0%, 100% {
        content: "⣷";
    }
    12.5% {
        content: "⣯";
    }
    25% {
        content: "⣟";
    }
    37.5% {
        content: "⡿";
    }
    50% {
        content: "⢿";
    }
    62.5% {
        content: "⣻";
    }
    75% {
        content: "⣽";
    }
    87.5% {
        content: "⣾";
    }
}

.nav-links a::before {
    content: "⣷";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7AE2CF;
    font-family: monospace;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 1em;
    text-align: center;
    display: inline-block;
}

.nav-links a:hover::before {
    opacity: 1;
    animation: braille 0.8s linear infinite;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0 8% 0 5%;
}

.hero-content {
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F5EEDD;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.45rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 0 3.5rem 0;
    font-weight: 400;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.4rem 3.5rem 1.4rem 4rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1.15rem;
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn::before {
    content: "⠋";
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: monospace;
    font-size: 1.3em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
    animation: braille 0.8s linear infinite;
}

.btn-primary {
    background: #7AE2CF;
    color: #06202B;
    border-color: #7AE2CF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    color: rgba(6, 32, 43, 0.6);
}

.btn-secondary {
    background: transparent;
    border-color: #7AE2CF;
    color: #F5EEDD;
}

.btn-secondary::before {
    color: #7AE2CF;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: #60C7C9;
    box-shadow: 0 8px 25px rgba(122, 226, 207, 0.15);
}

.btn-secondary:hover {
    background: rgba(122, 226, 207, 0.1);
    color: #F5EEDD;
}

/* Sections General */
.section {
    padding: var(--spacing-section) 5%;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0;
    width: 100%;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: left;
    letter-spacing: -0.02em;
    color: #F5EEDD;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    max-width: 900px;
    margin-left: 0;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(122, 226, 207, 0.3);
}

/* About Narrative */
.about-narrative h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #7AE2CF;
    letter-spacing: -0.01em;
}

.about-narrative p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #F5EEDD;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-narrative h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #F5EEDD;
    font-weight: 600;
}

.about-narrative ul {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #F5EEDD;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    opacity: 0.9;
}

.about-narrative li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0;
}

.glass-input {
    width: 100%;
    padding: 1.25rem;
    background: rgba(6, 32, 43, 0.6);
    border: 1px solid rgba(122, 226, 207, 0.2);
    border-radius: 12px;
    color: #F5EEDD;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(245, 238, 221, 0.3);
}

.glass-input:focus {
    background: rgba(6, 32, 43, 0.9);
    border-color: #7AE2CF;
    box-shadow: 0 0 0 3px rgba(122, 226, 207, 0.1);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.form-status.success {
    color: #2e7d32;
}

.form-status.error {
    color: #ff6b6b;
}

/* Projects Page Tweaks */
.products-page-content {
    padding-top: 260px !important;
}

.project-img {
    height: auto;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 2rem;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(6, 32, 43, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.copyright {
    color: var(--text-muted);
}

.legal-entity {
    border: 1px solid rgba(122, 226, 207, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 300;
    opacity: 0.7;
    margin-left: 0.5rem;
    color: #F5EEDD;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    text-decoration: none;
}

.logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
}

/* Store Badges Styling (Desktop Default) */
.store-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-badges a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-badges a:hover {
    transform: translateY(-2px);
}

.store-badge {
    height: auto;
    width: 150px;
    max-width: 150px;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    display: block;
}

.store-badge:hover {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utilities */
.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

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

/* Legal Page Styles */
.legal-content {
    color: var(--text-color);
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.legal-section {
    margin-bottom: 4rem;
}

/* =========================================
   MOBILE RESPONSIVE OVERRIDES (Consolidated)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Header & Navigation - VERTICAL STACK */
    /* 1. Header & Navigation - HORIZONTAL ROW (Restored) */
    .glass-nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 5% 0.75rem 3% !important; /* Use percentage padding like desktop */
        gap: 0.5rem !important;
        height: auto !important;
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .logo-container {
        width: auto !important;
        display: flex;
        justify-content: flex-start;
        flex: 0 0 auto;
    }

    .logo-img {
        height: 100px !important; /* Larger premium size for better visibility */
        width: auto;
    }

    .nav-links {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* Prevent content overflow */
        /* 2x2 Grid for compact buttons */
        gap: 0.4rem !important;
        margin-top: 0;
        margin-right: 8px !important; /* Smaller buffer - closer to right edge */
        max-width: calc(100vw - 120px) !important; /* More space for buttons */
        flex-shrink: 1 !important;
    }

    .nav-links a {
        padding: 0.65rem 2rem 0.65rem 0.6rem !important; /* Extra right padding for spinner */
        font-size: 0.9rem !important;
        /* Readable text size */
        text-align: center;
        width: 100% !important; /* Fill grid cell */
        white-space: nowrap;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box !important;
        min-width: 0 !important; /* Allow shrinking below content size */
        margin-left: 0 !important; /* Override desktop 2.5rem margin */
        margin-right: 0 !important;
    }

    /* Move braille spinner to right side on mobile */
    .nav-links a::before {
        left: auto !important;
        right: 0.5rem !important;
        font-size: 1em !important;
    }

    /* 2. Hero Section */
    .hero-section {
        padding: 180px 5% 8rem 5% !important;
        text-align: left !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 500px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .glass-card {
        padding: 2rem !important;
    }

    .hero-content h1 {
        font-size: 3.5rem !important;
        /* Readable mobile size */
        text-align: left;
    }

    .subtitle {
        text-align: left;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
        /* Center buttons */
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        padding: 1.2rem 1rem !important;
        /* Reduce side padding to avoid overflow */
    }

    /* 3. Store Badges - FIXED */
    .store-badges {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Force single line */
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    /* Target the anchors to ensure they don't block flex */
    .store-badges a {
        display: block !important;
        width: auto !important;
        flex: 0 0 auto !important;
        /* Don't grow/shrink weirdly */
    }

    /* Target the images */
    .store-badge {
        width: 120px !important;
        /* Good readable size */
        height: auto !important;
        margin: 0 !important;
    }
}