/* ================================
   GEMINI STUDIO THEME VARIABLES
================================== */
:root {
    --navy: #0D1117;
    --navy-light: #161B22;
    --navy-mid: #21262D;
    --gold: #D4AF37;
    --white: #ffffff;
    --blue-accent: #3470ff;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* ================================
   BASE
================================== */
body {
    font-family: var(--font-inter);
    color: var(--white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* fixed navbar space */
    overflow-x: hidden;
    background: radial-gradient(
        circle at center,
        #111624 0%,
        #0D1117 75%,
        #05080c 100%
    );
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

/* screen-reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   BUTTONS
================================== */
.btn {
    display: inline-block;
    background: var(--blue-accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 112, 255, 0.3);
    transition: background 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background: #5a8aff;
    box-shadow: 0 6px 15px rgba(52, 112, 255, 0.5);
}

/* ================================
   PRELOADER (DISABLED)
================================== */
#preloader,
.preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-logo {
    width: 250px;
    margin-bottom: 20px;
}

.loader-content img {
    width: 150px;
    animation: pulse 1.5s infinite alternate;
}

.loader-text {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 15px;
    font-family: var(--font-montserrat);
}

/* PRELOADER / HERO LOGO ANIMATION */
@keyframes pulse {
    from {
        opacity: 0.8;
        transform: scale(1.0);
    }
    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ================================
   HERO SECTION
================================== */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy);
}

/* Three.js Canvas Container */
#canvas-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
}

/* Hero Overlay */
.hero-overlay {
    position: relative;
    z-index: 5;
    text-align: center;
}

.hero-logo {
    width: 220px;
    margin-bottom: 20px;
    opacity: 0;
    animation: pulse 1.5s infinite alternate;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
}

.hero-title {
    font-family: var(--font-montserrat);
    font-size: 4.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 40px;
}

/* ================================
   WHY CHOOSE LUNO
================================== */
#why-luno {
    background: var(--navy-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    background: var(--navy);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--navy-mid);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-accent);
    box-shadow: 0 10px 20px rgba(52, 112, 255, 0.4);
}

.feature-card:focus,
.feature-card:active {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 4px rgba(52, 112, 255, 0.6);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--blue-accent);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.feature-card:hover .feature-icon {
    color: var(--gold);
}

.feature-card:hover strong,
.feature-card:hover b {
    color: var(--blue-accent);
    transition: color 0.3s;
}

.feature-title {
    font-family: var(--font-montserrat);
    font-weight: 700;
    margin-top: 0;
    color: var(--white);
}

.feature-text {
    color: #888;
}

/* ================================
   FOOTPRINT / GLOBE
================================== */
#footprint {
    position: relative;
}

#interactive-globe-container {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Pin Labels */
.pin-label {
    position: absolute;
    background: var(--blue-accent);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    transform: translate(-50%, -100%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    display: none;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.pin-label.active {
    opacity: 1;
    display: block;
    transform: translate(-50%, -130%);
}

/* State Overlay */
.state-name-overlay {
    position: absolute;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-inter);
    font-weight: 500;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(13, 17, 23, 0.7);
    transition: color 0.3s, border-color 0.3s, opacity 0.5s;
    pointer-events: auto;
    cursor: default;
    opacity: 0;
}

.state-name-overlay.active {
    opacity: 1;
}

.state-name-overlay:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ================================
   SOLAR MAN & SPEECH BUBBLE
================================== */
.solar-man {
    position: fixed;
    bottom: 40px;
    right: 0;
    width: 130px;
    height: auto;
    z-index: 90;
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.solar-man.show {
    display: block;
    opacity: 1;
}

.speech-bubble {
    position: fixed;
    bottom: 75px;
    right: 160px;
    width: 200px;
    background: var(--white);
    color: var(--navy);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--white);
}

/* ================================
   PRODUCT CATALOG
================================== */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h3 {
    margin: 0;
    font-family: var(--font-montserrat);
    color: var(--white);
    font-size: 1.8rem;
}

.category-header span {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.e-card {
    background: var(--navy-light);
    border-radius: 12px;
    border: 1px solid var(--navy-mid);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.e-card:hover {
    border-color: var(--blue-accent);
    box-shadow: 0 0 15px rgba(52, 112, 255, 0.2);
    transform: translateY(-3px);
}

.e-card:active,
.e-card:focus-within {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow:
        0 0 0 4px rgba(52, 112, 255, 0.3),
        0 0 15px rgba(52, 112, 255, 0.5);
    transform: translateY(-3px);
}

.e-card:focus {
    outline: none;
    border-color: var(--blue-accent);
}

.e-img-box {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.e-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.e-card:hover .e-img-box img {
    transform: scale(1.05);
}

.e-content {
    padding: 20px;
}

.e-model {
    color: var(--gold);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.e-title {
    font-family: var(--font-montserrat);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.e-features {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.e-feat {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #ccc;
}

.e-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-tech {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--navy);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--gold);
    z-index: 10;
}

/* View Specs Button */
.btn-view {
    background: var(--blue-accent);
    color: var(--white);
    font-weight: 700;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-view:hover {
    background: #5a8aff;
}

/* ================================
   CALCULATOR
================================== */
.calc-form {
    max-width: 480px;
    margin: 0 auto;
    background: var(--navy-light);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--navy-mid);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.calc-form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ccc;
}

.calc-form input,
.calc-form select,
.calc-form textarea {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-bottom: 25px;
    border: 1px solid #333;
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    box-sizing: border-box;
    font-family: inherit;
}

.result-panel {
    display: none;
    margin-top: 30px;
    padding: 25px;
    text-align: center;
    border-radius: 4px;
    background: var(--navy);
}

/* ================================
   STATS
================================== */
.stats-section {
    background: var(--navy-light);
    padding: 50px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-number {
    font-size: 3rem;
    font-family: var(--font-montserrat);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: #aaa;
    margin-top: 5px;
}

/* ================================
   CERTIFICATIONS TICKER
================================== */
.cert-section {
    background: var(--gold);
    padding: 15px 0;
}

.cert-track {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
    animation: marquee 30s linear infinite;
}

.cert-item {
    padding: 0 40px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================
   FOOTER
================================== */
footer {
    padding: 60px 0;
    text-align: center;
}

/* ================================
   FLOATING CONTACT BUTTONS
================================== */
.call-float,
.whatsapp-float {
    position: fixed;
    width: 45px;
    height: 45px;
    left: 20px;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

.call-float {
    bottom: 80px;
    background-color: var(--blue-accent);
    color: #fff;
}

.call-float:hover {
    background-color: #5a8aff;
}

.whatsapp-float {
    bottom: 20px;
    background-color: #25D366;
    color: #fff;
}

.whatsapp-float:hover {
    background-color: #128C7E;
}

/* ================================
   MODAL
================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--blue-accent);
    background-color: var(--navy-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--white);
}

/* ================================
   VIDEO BOX
================================== */
.video-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ================================
   REVEAL ANIMATION
================================== */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* ================================
   TOP NAVIGATION
================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #000;
    display: flex;
    align-items: center;
    z-index: 2000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 45px;
    margin: 0;
    display: block;
}

.nav-center {
    display: flex;
    gap: 40px;
}

.nav-item {
    font-family: var(--font-inter);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

.nav-item:hover {
    color: #f4c14a;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 2px solid #fff;
    border-radius: 999px;
}

.nav-search input {
    width: 160px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
}

.nav-search input::placeholder {
    color: #aaa;
}

.nav-search button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ================================
   DIRECTOR LAYOUT (FOR TARUN)
================================== */
.director-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.director-photo {
    flex: 0 0 380px;
}

.director-quote {
    flex: 1;
}

/* Optional small overlap of quote onto image */
.director-row.overlap .director-quote {
    margin-left: -60px;
    z-index: 2;
}

/* ================================
   TARUN IMAGE HEADING OVERLAY
================================== */
.tarun-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 14px 40px rgba(0,0,0,0.7);
    margin-bottom: 10px;
}

.tarun-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tarun-heading {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tarun-heading span {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ================================
   MEDIA QUERIES
================================== */
@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .director-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .director-quote {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-center {
        gap: 20px;
    }

    .nav-search input {
        width: 100px;
    }
}

@media (max-width: 600px) {
    .calc-form {
        padding: 20px;
        max-width: 100%;
    }

    .calc-form form > div {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .calc-form input,
    .calc-form select {
        margin-bottom: 20px !important;
    }
}

/* ================================
   PREVENT CARET ON HERO / CANVAS
================================== */
#hero,
#canvas-container {
    outline: none;
}

#hero:focus,
#canvas-container:focus {
    outline: none;
}
