:root {
    --bg-dark: #050505;
    --bg-light: #f4f4f4;
    --text-dark: #ffffff;
    --text-light: #111111;
    --accent-cyan: #00f3ff;
    --accent-purple: #9d00ff;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.preloader .counter {
    font-family: var(--font-head);
    font-size: 10vw;
    color: var(--accent-cyan);
    font-weight: 900;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--text-dark);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.05s linear;
}

.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-dark);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

/* Magnetic Active State */
.cursor-circle.active {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    /* Visible on both dark and light */
    color: #fff;
}

.logo {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
}

.menu-items {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-items a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-nav {
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.btn-nav:hover {
    background: #fff;
    color: #000;
}

/* Themes */
.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.light-theme {
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* SECTION 1: HERO */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('space_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    /* Fully visible */
    z-index: 0;
    animation: driftSpace 60s infinite linear alternate;
}

@keyframes driftSpace {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.hero-3d-obj {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    max-width: 800px;
    animation: floatCrystal 10s infinite ease-in-out alternate;
    filter: drop-shadow(0 0 50px rgba(0, 243, 255, 0.3));
}

@keyframes floatCrystal {
    0% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translate(-50%, -50%) translateY(-60px) rotate(-5deg);
    }
}

.hero-container {
    text-align: center;
    z-index: 10;
}

.reveal-text {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    margin: 0;
    opacity: 0;
    /* JS reveals */
    transform: translateY(100px);
}

.outline {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.hero-footer {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* SECTION 2: MANIFESTO */
.manifesto-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 50px;
}

.big-statement {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 500;
    max-width: 1200px;
    margin: 0 auto;
}

.word {
    display: inline-block;
    opacity: 0.2;
    /* Default dimmed */
    transition: opacity 0.3s;
}

.word.highlight {
    color: var(--accent-purple);
    font-weight: 700;
}

/* SECTION 2.5: TESTIMONIALS */
.testimonials-section {
    padding: 50px 50px 100px;
    background: var(--bg-light);
    /* Continue light theme from manifesto */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    opacity: 0.5;
}

.review-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reviewer h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 2px;
}

.reviewer span {
    font-size: 0.8rem;
    color: #888;
}

/* SECTION 3: BENTO GRID */
.services-section {
    padding: 150px 50px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #888;
    font-size: 1.2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.bento-box {
    background: rgba(255, 255, 255, 0.08);
    /* Increased visibility */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Sharper border */
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.bento-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.box-large {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(0, 0, 0, 0));
}

.box-tall {
    grid-row: span 2;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    /* Subtly visible behind content */
    transition: transform 0.5s;
    z-index: 1;
}

.bento-box:hover .bento-bg {
    transform: scale(1.1);
    opacity: 0.4;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    /* Subtly visible behind content */
    transition: transform 0.5s;
    z-index: 1;
}

.bento-box:hover .bento-bg {
    transform: scale(1.1);
    opacity: 0.4;
}

.box-wide {
    grid-column: span 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-content i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: block;
}

.bento-content h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bento-content p {
    color: #aaa;
    line-height: 1.5;
}

.tech-tags {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* SECTION 4: PROCESS (HORIZONTAL) */
.process-section {
    height: 100vh;
    /* Viewport height for pinning */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* Hide horizontal scrollbar */
    background: var(--bg-light);
}

.process-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* We will animate the horizontal transform of .process-container */
}

.process-container {
    display: flex;
    padding-left: 100px;
    gap: 100px;
}

.process-step {
    min-width: 400px;
    padding: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.intro-step {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-step h2 {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1;
    color: var(--text-light);
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: #eee;
    margin-bottom: 20px;
    display: block;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* SECTION 5: CONTACT */
.contact-section {
    padding: 150px 50px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-left h2 {
    font-family: var(--font-head);
    font-size: 4rem;
    margin-bottom: 30px;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    /* Larger for phone */
    color: var(--accent-cyan);
    text-decoration: none;
    margin: 20px 0;
    transition: 0.3s;
}

.email-link.secondary {
    font-size: 1.3rem;
    color: #aaa;
    margin-top: 0;
}

.email-link:hover {
    color: #fff;
    transform: translateX(10px);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: #fff;
    text-decoration: none;
}

.contact-right {
    flex: 1;
    max-width: 500px;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.minimal-form input,
.minimal-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-body);
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

.btn-glow {
    background: var(--text-dark);
    color: #000;
    padding: 20px 40px;
    /* Larger hit area */
    border: none;
    border-radius: 5px;
    font-weight: 900;
    font-size: 1.2rem;
    /* Bold text */
    cursor: pointer;
    align-self: flex-start;
    margin-top: 20px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

.btn-schedule {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    border: 2px solid transparent;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.btn-schedule:hover {
    background: #fff;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.divider-text {
    color: #555;
    margin: 10px 0 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

footer {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 50px;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .process-section {
        height: auto;
    }

    .process-container {
        flex-direction: column;
        padding: 50px;
        gap: 20px;
    }

    .process-step {
        min-width: auto;
    }

    .reveal-text {
        font-size: 3rem;
    }
}