:root {
    --bg-dark: #020308;
    --neon-cyan: #00f0ff;
    --neon-purple: #8a2be2;
    --neon-magenta: #e024c3;

    --btn-purple-start: #8a2be2;
    --btn-purple-end: #e024c3;
    --btn-purple-glow: rgba(224, 36, 195, 0.35);

    --glass-surface: rgba(18, 22, 34, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);

    --text-main: #f0f4f8;
    --text-sub: #94a3b8;

    --font-3d: 'Space Grotesk', sans-serif;
    --font-sans: 'Outfit', sans-serif;

    --ease-3d: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    transition: background-color 0.8s ease, color 0.8s ease;
}

/* FIXED BACKGROUND */
.fixed-space-texture-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(14, 18, 48, 0.8) 0%, rgba(2, 3, 8, 1) 85%),
        radial-gradient(circle at 85% 75%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 15% 65%, rgba(0, 240, 255, 0.08) 0%, transparent 45%);
    will-change: opacity;
}

.solar-descent-glow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 50% 100%, rgba(255, 150, 20, 0.35) 0%, rgba(255, 80, 0, 0.15) 50%, transparent 80%);
    opacity: 0;
    will-change: opacity;
}

.floating-brand-badge-bottom {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    padding: 0.55rem 1.25rem;
    background: rgba(12, 16, 28, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-sub);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* SOLAR LIT ADAPTATIONS */
body.solar-lit-active {
    background-color: #fffaf5;
    color: #1a0c02;
    --stat-num-color: #007b8a;
    --stat-glow: none;
    --stat-label-color: #3c2a1e;
    --star-color: #3c2a1e;
    --star-glow: 0 0 4px rgba(60, 42, 30, 0.4);
    --svg-accent: #007b8a;
}

body.solar-lit-active .fixed-space-texture-bg {
    opacity: 0.08;
}

body.solar-lit-active .section-tag {
    color: #d95200;
}

body.solar-lit-active .section-title,
body.solar-lit-active h1,
body.solar-lit-active h2 {
    color: #1a0800;
}

body.solar-lit-active .btn-3d-glow {
    background: linear-gradient(135deg, #ff7700 0%, #e63900 100%);
    box-shadow: 0 10px 25px rgba(230, 57, 0, 0.3);
    color: #ffffff;
}

body.solar-lit-active .glass-card-3d {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 120, 0, 0.25);
    box-shadow: 0 15px 35px rgba(230, 80, 0, 0.1);
    color: #2b1405;
}

body.solar-lit-active .box-copy,
body.solar-lit-active .about-text-content p,
body.solar-lit-active .hero-description {
    color: #4a2711;
}

body.solar-lit-active .form-input-3d {
    background: rgba(255, 245, 235, 0.95);
    border-color: rgba(255, 140, 0, 0.3);
    color: #1a0800;
}

.btn-3d-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--btn-purple-start) 0%, var(--btn-purple-end) 100%);
    color: #ffffff;
    font-family: var(--font-3d);
    font-weight: 700;
    font-size: 1rem;
    padding: 1.1rem 2.4rem;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 8px 20px var(--btn-purple-glow);
    border: none;
    cursor: pointer;
    transform: translateZ(0);
}

.galaxy-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.scroll-reveal .reveal-content {
    opacity: 0;
    transform: translate3d(0, 15px, 0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-reveal.reveal-active .reveal-content {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.canvas-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section-container {
    padding: 7rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-3d);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-3d);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@keyframes floatSpaceSubtle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(0.4deg);
    }
}

.glass-card-3d {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    animation: floatSpaceSubtle 14s ease-in-out infinite;
}

.graphic-art-container {
    animation: floatSpaceSubtle 16s ease-in-out infinite;
}

/* HERO SECTION */
.hero-3d-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 6rem;
    width: 100%;
    overflow: hidden;
}

.hero-content-inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.deep-space-nebula-container {
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ORGANIC MOVING AREAS OF LIGHT */
@keyframes lightGlowShift1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(45px, 30px) scale(1.18);
        opacity: 0.45;
    }
}

@keyframes lightGlowShift2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.32;
    }
    50% {
        transform: translate(-50px, -35px) scale(1.22);
        opacity: 0.48;
    }
}

.nebula-swirl {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
    will-change: transform;
}

.nebula-1 {
    top: -5%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.45) 0%, rgba(138, 43, 226, 0.22) 35%, rgba(224, 36, 195, 0.08) 60%, transparent 80%);
    animation: lightGlowShift1 18s ease-in-out infinite alternate;
}

.nebula-2 {
    top: 10%;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(0, 240, 255, 0.18) 35%, rgba(138, 43, 226, 0.08) 60%, transparent 80%);
    animation: lightGlowShift2 22s ease-in-out infinite alternate;
}

.solar-system-planet-wrapper {
    position: absolute;
    top: 12%;
    right: 8%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    opacity: 0.95;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.planet-lunar-core {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e6ecf2 0%, #b0b8c1 45%, #6a737d 80%, #3a4046 100%);
    box-shadow: 0 0 35px rgba(230, 236, 242, 0.25);
    overflow: hidden;
}

.lunar-maria {
    position: absolute;
    background: rgba(55, 62, 70, 0.35);
    border-radius: 50%;
    filter: blur(6px);
}

.maria-1 {
    top: 22%;
    left: 20%;
    width: 65px;
    height: 55px;
}

.maria-2 {
    top: 48%;
    left: 15%;
    width: 75px;
    height: 50px;
}

.maria-3 {
    top: 30%;
    left: 50%;
    width: 55px;
    height: 70px;
}

.lunar-crater {
    position: absolute;
    border-radius: 50%;
    background: rgba(130, 138, 145, 0.25);
    box-shadow: inset 1px 1.5px 2px rgba(0, 0, 0, 0.35);
}

.crater-1 {
    top: 65%;
    left: 58%;
    width: 22px;
    height: 22px;
}

.crater-2 {
    top: 25%;
    left: 68%;
    width: 16px;
    height: 16px;
}

.crater-3 {
    top: 75%;
    left: 35%;
    width: 12px;
    height: 12px;
}

.crater-4 {
    top: 15%;
    left: 38%;
    width: 10px;
    height: 10px;
}

.crater-5 {
    top: 42%;
    left: 78%;
    width: 12px;
    height: 12px;
}

.lunar-shadow-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, transparent 40%, rgba(10, 12, 18, 0.65) 75%, rgba(2, 3, 8, 0.92) 100%);
}

.stat-number-glow {
    font-size: clamp(3.2rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    display: block;
    color: var(--stat-num-color, #00f0ff);
    text-shadow: var(--stat-glow, 0 0 15px rgba(0, 240, 255, 0.35));
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    display: block;
    color: var(--stat-label-color, rgba(255, 255, 255, 0.75));
}

.hero-flying-stars-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-space-star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
}

.twinkling-star {
    animation: starPulse ease-in-out infinite alternate;
}

@keyframes starPulse {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.9;
    }
}

.hero-glass-portal {
    padding: 3.5rem;
    max-width: 780px;
    position: relative;
    z-index: 2;
    animation: none !important;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-headline {
    font-family: var(--font-3d);
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-headline span {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #00a8ff 40%, var(--neon-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-sub);
    max-width: 660px;
    margin: 0;
}

/* ABOUT SECTION */
.about-3d-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3.5rem;
    width: 100%;
}

.about-text-content {
    flex: 1;
    font-size: 1.05rem;
    color: var(--text-sub);
}

.about-text-content p {
    margin-bottom: 1.4rem;
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

.graphic-art-container {
    width: 280px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(4, 8, 18, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 18px;
    padding: 1.2rem;
    flex-shrink: 0;
    margin: 0 auto;
}

.connecting-art-svg {
    width: 100%;
    height: 100%;
}

.dotted-line-path {
    stroke-dasharray: 6, 10;
    animation: pulseDottedPath 2.5s linear infinite;
}

@keyframes pulseDottedPath {
    0% {
        stroke-dashoffset: 160;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* GRID */
.uniform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    align-items: stretch;
}

.standard-card {
    padding: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.box-copy {
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 1.65;
}

/* FOOTER SUN */
.footer-contact-3d {
    position: relative;
    padding: 10rem 2rem 12rem;
    overflow: hidden;
}

.footer-stage-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.giant-glowing-sun {
    position: absolute;
    left: 50%;
    top: 440px;
    width: 1780px;
    height: 1780px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 18%,
            #ffffff 0%,
            #fff9e6 12%,
            #ffe066 25%,
            #ff9f1c 42%,
            #ff5400 62%,
            #d00000 80%,
            rgba(157, 2, 8, 0.4) 92%,
            transparent 100%);
    box-shadow:
        0 -15px 45px rgba(255, 255, 255, 0.65),
        0 -30px 90px rgba(255, 210, 60, 0.7);
    z-index: 1;
    will-change: transform, opacity;
    transform: translate3d(-50%, 0, 0);
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.giant-glowing-sun::before {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 25%, rgba(255, 245, 190, 0.4) 0%, rgba(255, 140, 0, 0.2) 35%, rgba(255, 90, 0, 0.08) 55%, transparent 75%);
    pointer-events: none;
    animation: sunPulse 6s ease-in-out infinite alternate;
}

.giant-glowing-sun::after {
    content: '';
    position: absolute;
    inset: -80px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 20%, rgba(255, 210, 60, 0.22) 0%, rgba(255, 70, 0, 0.12) 40%, transparent 75%);
    pointer-events: none;
}

@keyframes sunPulse {
    0% {
        transform: scale(0.98);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.03);
        opacity: 1;
    }
}

.contact-card-3d {
    max-width: 680px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.form-input-3d {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1.1rem 1.4rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
}

textarea.form-input-3d {
    min-height: 120px;
    resize: vertical;
}

.submitted-msg-box {
    padding: 1.5rem;
    background: rgba(255, 140, 0, 0.2);
    border-radius: 14px;
    margin-top: 1.5rem;
    color: #ff6600;
    font-weight: bold;
}

/* RESPONSIVENESS (IPAD & TABLET TUNING) */
@media (max-width: 1024px) {
    .section-container {
        padding: 5.5rem 2rem;
    }

    .hero-3d-wrapper {
        min-height: 80vh;
        padding: 6.5rem 2rem 4.5rem;
    }

    .about-3d-container {
        flex-direction: column;
        padding: 2.8rem;
        gap: 2.2rem;
    }

    .hero-glass-portal {
        padding: 2.8rem;
    }

    .solar-system-planet-wrapper {
        width: 130px;
        height: 130px;
        top: 6%;
        right: 4%;
    }

    .giant-glowing-sun {
        width: 1100px;
        height: 1100px;
        top: 400px;
    }
}

@media (max-width: 640px) {
    .section-container {
        padding: 4rem 1.2rem;
    }

    .hero-glass-portal {
        padding: 2rem 1.4rem;
    }

    .about-3d-container {
        padding: 2rem 1.4rem;
    }

    .graphic-art-container {
        width: 100%;
        max-width: 260px;
        height: 380px;
    }

    .floating-brand-badge-bottom {
        top: 1rem;
        left: 1rem;
    }

    .solar-system-planet-wrapper {
        display: none;
    }

    .giant-glowing-sun {
        width: 800px;
        height: 800px;
        top: 380px;
    }
}