/* ppuzzl.win - Cosmic Terminal Styles */
/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
    --abyss-black: #020408;
    --deep-ocean: #040c18;
    --ocean-navy: #0a1a30;
    --bioluminescent-blue: #0048a0;
    --electric-teal: #00b4d8;
    --star-silver: #e8f0f8;
    --moonlight: #f5f8ff;
    --twilight-purple: #1a0a2e;

    --font-mono: 'IBM Plex Mono', monospace;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Abril Fatface', Georgia, serif;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--abyss-black);
    color: var(--star-silver);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================
   STAR FIELD
   ========================================== */
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: var(--star-silver);
    animation: twinkle ease-in-out infinite alternate;
}

.star--bright {
    background: var(--electric-teal);
    box-shadow: 0 0 6px var(--electric-teal), 0 0 12px rgba(0, 180, 216, 0.3);
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================
   NEBULA OVERLAY
   ========================================== */
.nebula-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 10, 46, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 72, 160, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(0, 180, 216, 0.08) 0%, transparent 40%);
    background-blend-mode: screen;
}

/* ==========================================
   MAIN WRAPPER
   ========================================== */
.main-wrapper {
    position: relative;
    z-index: 2;
}

/* ==========================================
   SECTIONS - MA NEGATIVE SPACE
   ========================================== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.section--visible {
    opacity: 1;
    transform: translateY(0);
}

.section--hero {
    opacity: 1;
    transform: none;
    gap: 60px;
}

/* ==========================================
   FLOATING ISLANDS
   ========================================== */
.floating-island {
    max-width: 680px;
    width: 100%;
}

.floating-island--wide {
    max-width: 1100px;
}

.floating-island--center {
    max-width: 560px;
    text-align: center;
}

/* ==========================================
   TERMINAL PANEL
   ========================================== */
.terminal-panel {
    background: rgba(4, 12, 24, 0.9);
    border: 1px solid rgba(0, 180, 216, 0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.terminal-panel:hover {
    box-shadow:
        0 0 30px rgba(0, 180, 216, 0.1),
        0 0 60px rgba(0, 72, 160, 0.05);
}

.terminal-panel--wide {
    max-width: 680px;
}

.terminal-panel--feature {
    height: 100%;
}

.terminal-panel--contact {
    text-align: left;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(10, 26, 48, 0.8);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(232, 240, 248, 0.5);
    margin-left: 8px;
}

.terminal-body {
    padding: 20px 24px;
}

/* ==========================================
   TERMINAL TEXT STYLES
   ========================================== */
.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--star-silver);
}

.terminal-line--small {
    font-size: 0.75rem;
    margin-top: 12px;
    opacity: 0.7;
}

.terminal-prompt {
    color: var(--electric-teal);
    margin-right: 8px;
    text-shadow: 0 0 20px var(--electric-teal);
}

.terminal-command {
    color: var(--moonlight);
}

.terminal-cursor-block {
    color: var(--electric-teal);
    margin-right: 6px;
}

.terminal-output {
    color: rgba(232, 240, 248, 0.6);
    font-size: 0.85rem;
}

.terminal-output--glow {
    color: var(--electric-teal);
    text-shadow: 0 0 20px var(--electric-teal), 0 0 40px rgba(0, 180, 216, 0.3);
}

.terminal-output-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 180, 216, 0.1);
}

/* ==========================================
   TEXT GLOW
   ========================================== */
.text-glow {
    color: var(--electric-teal);
    text-shadow: 0 0 20px var(--electric-teal), 0 0 40px rgba(0, 180, 216, 0.3);
}

/* ==========================================
   CURSOR BLINK
   ========================================== */
.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--electric-teal);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ==========================================
   HERO
   ========================================== */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.hero-title__line {
    display: block;
}

.hero-title__line--serif {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 1.8rem;
    color: rgba(232, 240, 248, 0.7);
    letter-spacing: 0.05em;
    font-style: italic;
}

.hero-title__line--display {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--moonlight);
    text-shadow: 0 0 60px rgba(0, 180, 216, 0.3), 0 0 120px rgba(0, 72, 160, 0.15);
    line-height: 1.1;
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */
.section-heading {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-heading__mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--electric-teal);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px var(--electric-teal);
}

.section-heading__serif {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--moonlight);
    letter-spacing: 0.02em;
}

/* ==========================================
   ABOUT
   ========================================== */
.about-text {
    margin-bottom: 16px;
    line-height: 1.8;
}

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

.about-text--mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--electric-teal);
    text-shadow: 0 0 20px var(--electric-teal);
}

.about-text--serif {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--star-silver);
    font-style: italic;
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.feature-svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--moonlight);
    margin-bottom: 8px;
}

.feature-desc {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: rgba(232, 240, 248, 0.6);
    line-height: 1.6;
    font-style: italic;
}

/* ==========================================
   PROCESS TIMELINE
   ========================================== */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
}

.process-step--visible {
    opacity: 1;
    transform: translateX(0);
}

.process-step__number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--electric-teal);
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.4);
    line-height: 1;
    min-width: 80px;
    text-align: right;
}

.process-step__content {
    flex: 1;
    padding-top: 8px;
}

.process-step__title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--moonlight);
    margin-bottom: 8px;
}

.process-step__desc {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: rgba(232, 240, 248, 0.6);
    font-style: italic;
    line-height: 1.7;
}

.process-step__line {
    position: absolute;
    left: 64px;
    top: 60px;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(0, 180, 216, 0.4), transparent);
}

.process-step:last-child .process-step__line {
    display: none;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-input-group .terminal-prompt {
    min-width: 50px;
    font-size: 0.85rem;
}

.contact-input,
.contact-textarea {
    flex: 1;
    background: rgba(10, 26, 48, 0.6);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 4px;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--star-silver);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(232, 240, 248, 0.25);
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--electric-teal);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.15);
}

.contact-textarea {
    resize: vertical;
    min-height: 60px;
}

.contact-submit {
    background: transparent;
    border: 1px solid rgba(0, 180, 216, 0.4);
    border-radius: 4px;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--star-silver);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.contact-submit:hover {
    background: rgba(0, 180, 216, 0.1);
    border-color: var(--electric-teal);
    color: var(--electric-teal);
    text-shadow: 0 0 20px var(--electric-teal);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.15);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid rgba(0, 180, 216, 0.1);
}

.footer-text {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: rgba(232, 240, 248, 0.4);
}

.footer-mono {
    font-family: var(--font-mono);
    color: var(--electric-teal);
    text-shadow: 0 0 20px var(--electric-teal);
}

.footer-serif {
    font-family: var(--font-serif);
    font-style: italic;
}

.footer-text--dim {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(232, 240, 248, 0.25);
}

/* ==========================================
   TYPING TEXT
   ========================================== */
.typing-text {
    display: inline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-title__line--display {
        font-size: 3.5rem;
    }

    .section-heading__serif {
        font-size: 2rem;
    }

    .process-step {
        gap: 20px;
    }

    .process-step__number {
        font-size: 2rem;
        min-width: 50px;
    }

    .process-step__line {
        left: 34px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 8vh 6vw;
    }

    .hero-title__line--display {
        font-size: 2.5rem;
    }

    .hero-title__line--serif {
        font-size: 1.2rem;
    }

    .section-heading__serif {
        font-size: 1.6rem;
    }

    .terminal-body {
        padding: 16px;
    }

    .contact-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .contact-input,
    .contact-textarea {
        width: 100%;
    }
}