/* OXXIGEN Night Space Landing Page */

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

:root {
    --navy:       #060b1e;
    --deep-blue:  #0a1128;
    --mid-blue:   #132147;
    --accent:     #4a8fe7;
    --silver:     #bcc5d3;
    --silver-dim: #8893a6;
    --white:      #e8ecf2;
    --glow:       rgba(74, 143, 231, 0.45);
    --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--navy);
    color: var(--silver);
    line-height: 1.6;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
    background: rgba(6, 11, 30, 0.85);
    backdrop-filter: blur(14px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(188, 197, 211, 0.08);
}

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

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
    text-decoration: none;
}

.logo span { color: var(--silver); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: var(--silver);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 26px; height: 2px;
    background: var(--silver);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: radial-gradient(ellipse at 50% 40%, rgba(26, 58, 120, 0.25) 0%, transparent 65%);
}

.hero-pre {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--silver-dim);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(52px, 10vw, 110px);
    font-weight: 800;
    letter-spacing: 8px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #6db3f8 40%, var(--silver) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--glow));
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { filter: drop-shadow(0 0 20px var(--glow)); }
    to   { filter: drop-shadow(0 0 50px var(--glow)); }
}

.tagline {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 300;
    color: var(--silver);
    margin-bottom: 12px;
}

.subtitle {
    font-size: clamp(14px, 1.6vw, 18px);
    color: var(--silver-dim);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-primary {
    background: linear-gradient(135deg, #1a4d8f, var(--accent));
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--glow);
}

.btn-outline {
    background: transparent;
    color: var(--silver);
    border: 1.5px solid rgba(188, 197, 211, 0.3);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74, 143, 231, 0.15);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-hint span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--silver-dim);
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

/* SECTIONS COMMON */
section {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), var(--silver));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    text-align: center;
    font-size: clamp(15px, 1.5vw, 19px);
    color: var(--silver-dim);
    max-width: 620px;
    margin: 0 auto 60px;
}

/* ABOUT */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(6, 11, 30, 0.95) 0%, rgba(10, 17, 40, 0.95) 100%);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: rgba(19, 33, 71, 0.4);
    border: 1px solid rgba(188, 197, 211, 0.08);
    border-radius: 16px;
    padding: 40px 28px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 143, 231, 0.35);
    box-shadow: 0 16px 48px rgba(74, 143, 231, 0.12);
}

.card-icon {
    width: 52px; height: 52px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.card-icon svg { width: 100%; height: 100%; }

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--silver-dim);
    line-height: 1.7;
}

/* SERVICES */
.services {
    padding: 100px 0;
    background: rgba(6, 11, 30, 0.92);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: linear-gradient(145deg, rgba(19, 33, 71, 0.35), rgba(6, 11, 30, 0.6));
    border: 1px solid rgba(188, 197, 211, 0.06);
    border-radius: 14px;
    padding: 36px 30px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(74, 143, 231, 0.06));
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(74, 143, 231, 0.18);
}

.service-num {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(74, 143, 231, 0.25), rgba(188, 197, 211, 0.08));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: var(--silver-dim);
    line-height: 1.65;
}

/* CONTACT */
.contact {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(6, 11, 30, 0.95) 0%, rgba(10, 17, 40, 0.95) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(19, 33, 71, 0.3);
    border: 1px solid rgba(188, 197, 211, 0.06);
    border-radius: 14px;
    padding: 36px 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    border-color: rgba(74, 143, 231, 0.3);
    box-shadow: 0 8px 30px rgba(74, 143, 231, 0.1);
}

.contact-card svg {
    width: 32px; height: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.contact-card h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--silver-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card p {
    font-size: 16px;
    color: var(--silver);
    font-weight: 500;
}

/* FOOTER */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(188, 197, 211, 0.06);
    padding: 40px 0;
    background: rgba(6, 11, 30, 0.9);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo { font-size: 20px; margin-bottom: 4px; }

.footer p {
    font-size: 13px;
    color: var(--silver-dim);
}

.footer-tagline {
    font-style: italic;
    color: rgba(136, 147, 166, 0.6);
}

/* RESPONSIVE - TABLET */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        justify-self: center;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 260px; height: 100vh;
        background: rgba(6, 11, 30, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 90px 32px 32px;
        gap: 24px;
        transition: right 0.35s ease;
        border-left: 1px solid rgba(188, 197, 211, 0.06);
    }

    .nav-links.open { right: 0; }
    .nav-links a { font-size: 18px; }

    .hero { padding: 100px 20px 80px; }
    .hero h1 { letter-spacing: 4px; }
    .scroll-hint { display: none; }

    .card-grid { grid-template-columns: 1fr; }
    .card:last-child { max-width: none; }

    .services-grid { grid-template-columns: 1fr; }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .about, .services, .contact { padding: 70px 0; }
    .section-desc { margin-bottom: 40px; }
}

/* RESPONSIVE - SMALL PHONE */
@media (max-width: 480px) {
    .hero h1 { letter-spacing: 2px; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .card { padding: 28px 20px; }
    .service-card { padding: 28px 22px; }
}