/*
---
File: styles.css
Theme: Retro-Synth Observatory
---
*/

/* ---------------------------------- */
/*          1. Base & Setup           */
/* ---------------------------------- */

:root {
    --color-background: #0d021f;
    /* Deeper violet */
    --color-primary-accent: #ff00c8;
    /* Magenta */
    --color-secondary-accent: #00ffff;
    /* Cyan */
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #a89fba;
    --color-border: rgba(0, 255, 255, 0.2);
    --color-surface: rgba(46, 0, 62, 0.6);
    --color-surface-glow: rgba(46, 0, 62, 0.9);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;

    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 5px var(--color-secondary-accent), 0 0 10px rgba(0, 255, 255, 0.3);
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--color-secondary-accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--color-secondary-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 100px 0;
}

.highlight {
    color: var(--color-primary-accent);
    text-shadow: 0 0 5px var(--color-primary-accent), 0 0 10px rgba(255, 0, 200, 0.3);
}

/* ---------------------------------- */
/*       2. Background Effects        */
/* ---------------------------------- */

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: scroll-grid 10s linear infinite;
}

@keyframes scroll-grid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 -50px;
    }
}

/* ---------------------------------- */
/*        3. Header & Navigation      */
/* ---------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(13, 2, 31, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, top 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    color: var(--color-text-secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-primary);
    text-shadow: 0 0 5px var(--color-secondary-accent);
}

.cta-button {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid var(--color-primary-accent);
    border-radius: var(--border-radius);
    color: var(--color-primary-accent);
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-in-out;
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-background);
    border-color: var(--color-primary-accent);
    text-shadow: none;
}

.cta-button:hover::before {
    transform: scaleX(1);
}

.header-cta {
    margin-left: 20px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*           4. Hero Section          */
/* ---------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title span {
    display: block;
}

.hero-title .line2 {
    color: var(--color-primary-accent);
    text-shadow: 0 0 10px var(--color-primary-accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
    color: var(--color-text-secondary);
}

.primary-cta {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* 3D Planet */
.hero-planet-container {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    perspective: 1000px;
    z-index: 1;
}

.planet {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate-planet 60s linear infinite;
}

.surface {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(46, 0, 62, 1), var(--color-background) 70%);
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.9),
        0 0 40px -10px var(--color-secondary-accent);
}

.rings {
    width: 160%;
    height: 160%;
    border: 4px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    top: -30%;
    left: -30%;
    transform: rotateX(75deg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.rings::before,
.rings::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.rings::before {
    width: 105%;
    height: 105%;
    border: 2px solid rgba(0, 255, 255, 0.1);
    top: -2.5%;
    left: -2.5%;
}

.rings::after {
    width: 95%;
    height: 95%;
    border: 1px solid rgba(0, 255, 255, 0.15);
    top: 2.5%;
    left: 2.5%;
}

@keyframes rotate-planet {
    from {
        transform: rotateY(0deg) rotateX(5deg);
    }

    to {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

/* ---------------------------------- */
/*      5. General Section Styling    */
/* ---------------------------------- */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary-accent);
    box-shadow: 0 0 10px var(--color-primary-accent);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------------------------------- */
/*         6. Services Section        */
/* ---------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(0, 255, 255, 0.2),
            transparent 30%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-secondary-accent);
    background: var(--color-surface-glow);
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    to {
        transform: rotate(360deg);
    }
}

.service-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    color: var(--color-secondary-accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px var(--color-secondary-accent));
}

.service-title {
    margin-bottom: 15px;
    color: var(--color-text-primary);
}

.service-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* ---------------------------------- */
/*         7. Process Section         */
/* ---------------------------------- */
.process-section {
    background: linear-gradient(rgba(13, 2, 31, 0), var(--color-background));
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-timeline::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.process-step {
    padding-left: 100px;
    position: relative;
    margin-bottom: 50px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary-accent);
    border: 2px solid var(--color-secondary-accent);
    border-radius: 50%;
    background-color: var(--color-background);
    z-index: 2;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.process-step-content {
    background: rgba(46, 0, 62, 0.4);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-primary-accent);
}

.process-step-title {
    color: var(--color-primary-accent);
    text-shadow: 0 0 5px var(--color-primary-accent);
    margin-bottom: 10px;
}

/* ScrollTrigger Active State */
.process-step.is-active .process-step-number {
    background-color: var(--color-secondary-accent);
    color: var(--color-background);
    box-shadow: 0 0 20px var(--color-secondary-accent);
}

/* ---------------------------------- */
/*      8. Interactive (ROI) Section    */
/* ---------------------------------- */
.interactive-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.interactive-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calculator-wrapper h2 {
    text-align: left;
    margin-bottom: 20px;
}

.calculator-wrapper h2::after {
    left: 30px;
}

.calculator-form .form-group {
    margin-bottom: 20px;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-body);
    color: var(--color-text-secondary);
}

.calculator-form input {
    width: 100%;
    padding: 12px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.calculator-form input:focus {
    outline: none;
    border-color: var(--color-secondary-accent);
    box-shadow: 0 0 10px var(--color-secondary-accent);
}

.results-wrapper {
    background: var(--color-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.results-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-primary-accent);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-box {
    background: var(--color-surface);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-box h4 {
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
}

.result-box p {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    margin: 0;
    font-weight: 700;
}

.result-box-large {
    grid-column: 1 / -1;
}

#projected-uplift {
    color: var(--color-secondary-accent);
}

#new-revenue {
    color: var(--color-secondary-accent);
}

#annual-impact {
    color: var(--color-primary-accent);
    font-size: 2.2rem;
}


/* ---------------------------------- */
/*       9. Testimonials Section      */
/* ---------------------------------- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 30px;
    background: var(--color-surface);
    border-left: 4px solid var(--color-secondary-accent);
    border-radius: var(--border-radius);
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    line-height: 1.6;
}

.testimonial-text::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-secondary-accent);
    position: absolute;
    opacity: 0.5;
    margin-left: -35px;
    margin-top: -10px;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-primary);
}

.author-title {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.slider-controls {
    text-align: center;
    margin-top: 30px;
}

.slider-arrow {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--color-secondary-accent);
    color: var(--color-background);
    border-color: var(--color-secondary-accent);
}

/* ---------------------------------- */
/*         10. Final CTA Section       */
/* ---------------------------------- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(13, 2, 31, 0) 0%, rgba(46, 0, 62, 0.8) 50%, rgba(13, 2, 31, 0) 100%);
}

.cta-title {
    font-size: 2.2rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.cta-subtitle {
    margin-bottom: 2.5rem;
}

/* ---------------------------------- */
/*           11. Footer               */
/* ---------------------------------- */
.site-footer {
    background-color: #080111;
    border-top: 1px solid var(--color-border);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
}

.footer-column .logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary-accent);
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul a,
.footer-legal ul a {
    color: var(--color-text-secondary);
}

.footer-links ul a:hover,
.footer-legal ul a:hover {
    color: var(--color-text-primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact strong {
    color: var(--color-text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ---------------------------------- */
/*      12. Legal & Contact Pages     */
/* ---------------------------------- */
.page-header-section {
    padding: 150px 0 50px;
    text-align: center;
    background: linear-gradient(180deg, rgba(13, 2, 31, 0) 0%, rgba(46, 0, 62, 0.5) 100%);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
}

.legal-content .container,
.contact-section .container {
    max-width: 900px;
}

.legal-content h2 {
    color: var(--color-primary-accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-content p {
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form-wrapper h2 {
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-body);
    color: var(--color-text-secondary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-secondary-accent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    display: none;
}

.form-status-message.success {
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--color-secondary-accent);
    color: var(--color-secondary-accent);
}

.form-status-message.error {
    background-color: rgba(255, 0, 200, 0.1);
    border: 1px solid var(--color-primary-accent);
    color: var(--color-primary-accent);
}

.contact-info-wrapper h2 {
    text-align: left;
}

.contact-info-block {
    margin-bottom: 30px;
    padding-left: 30px;
    position: relative;
}

.contact-info-block h3 {
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.contact-info-block .icon {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--color-primary-accent);
    font-size: 1.2rem;
}

/* ---------------------------------- */
/*         13. Responsiveness         */
/* ---------------------------------- */

@media (max-width: 1024px) {
    .hero-planet-container {
        width: 600px;
        height: 600px;
        right: -15%;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-planet-container {
        opacity: 0.1;
        width: 100%;
        height: 100%;
        right: 0;
        top: 50%;
        transform: translateY(-50%) scale(1.5);
    }

    .interactive-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .process-timeline::after {
        left: 20px;
    }

    .process-step {
        padding-left: 60px;
    }

    .process-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}