:root {
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --accent: #ff3c00;
    --grid: rgba(255, 255, 255, 0.08);
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-serif: 'Italiana', serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: auto;
}

/* Focus visible */
a:focus,
button:focus,
input:focus {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* ------------------------------------------------------ */
/* HUD NAVIGATION */
/* ------------------------------------------------------ */

.hud-nav { 
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    padding: 30px;
    pointer-events: none;
    z-index: 5000;
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.hud-corner {
    position: absolute;
    pointer-events: auto;
    display: flex;
    align-items: center;
}

.top-left { top: 30px; left: 30px; }
.top-right { top: 30px; right: 30px; }

.hud-center-top {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NAV LOGO (used in secondary pages, and can be used later on index if you want) */
.nav-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.nav-logo-img {
    height: 100px;      /* desktop default */
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-logo-img:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* Small text logo still used on landing page for docking */
.nav-logo-mini { 
    font-family: var(--font-display); 
    font-weight: 700; 
    letter-spacing: 2px; 
    font-size: 1.5rem; 
    color: #fff;
    line-height: 1;
    opacity: 0; /* JS on index controls visibility */
}

/* main nav links in top-right (desktop) */
.main-nav {
    display: flex;
    gap: 28px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile hamburger (hidden on desktop by default) */
.mobile-menu-toggle {
    display: none;
    margin-left: 16px;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle span:first-child { top: 6px; }
.mobile-menu-toggle span:last-child  { top: 14px; }

.mobile-menu-toggle.open span:first-child {
    top: 10px;
    transform: rotate(45deg);
}
.mobile-menu-toggle.open span:last-child {
    top: 10px;
    transform: rotate(-45deg);
}

/* Mobile dropdown menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 12px;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
    z-index: 6000;
}

.mobile-menu a {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.mobile-menu.open {
    display: flex;
}

/* ------------------------------------------------------ */
/* HERO STICKY SCENE (on index only) */
/* ------------------------------------------------------ */

.hero-scene {
    height: 400vh;      /* enough scroll space for 4-image transition */
    position: relative;
    z-index: 10;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* BACKGROUND LAYERS */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.hero-bg-1 {
    background-image: url('https://ratooooo.neocities.org/main-page-sauna.webp');
    opacity: 1;
}
.hero-bg-2 {
    background-image: url('https://ratooooo.neocities.org/main-page-bathroom-space.webp');
}
.hero-bg-3 {
    background-image: url('https://ratooooo.neocities.org/main-page-bed.webp');
}
.hero-bg-4 {
    background-image: url('https://ratooooo.neocities.org/main-page-bed.webp');
}

/* HERO CONTENT */
.hero-center {
    text-align: center;
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.main-title {
    font-family: var(--font-display);
    font-size: 12vw;
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: -5px;
    margin: 0;
    transform-origin: center center; 
    will-change: transform, opacity, letter-spacing;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-top: 20px;
    opacity: 0.8;
}

.scroll-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    letter-spacing: 3px;
    opacity: 0.5;
    z-index: 2;
}

.line {
    width: 1px;
    height: 60px;
    background: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { height: 0; opacity: 0; }
    50%  { height: 60px; opacity: 1; }
    100% { height: 60px; opacity: 0; transform: translateY(60px); }
}

/* SERVICE BLOCKS – card for readability */
.hero-service {
    position: absolute;
    left: 8vw;
    top: 60%;
    transform: translateY(-50%);
    max-width: 460px;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    color: #fff;

    padding: 26px 30px 26px 32px;
    border-radius: 22px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.25) 100%
    );
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.hero-service.active {
    pointer-events: auto;
}

.hero-service-title {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.hero-service-subtitle {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 18px;
}

.hero-service-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #f2f2f2;
    margin-bottom: 22px;
}

.hero-service-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-service-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-1px);
}

/* ------------------------------------------------------ */
/* MANIFESTO */
/* ------------------------------------------------------ */

.manifesto-section {
    background: var(--bg);
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    z-index: 10;
}

.scrolling-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    font-family: var(--font-display);
    font-size: 15vw;
    opacity: 0.05;
    white-space: nowrap;
    transform: translateY(-50%);
    animation: marquee 20s linear infinite;
    pointer-events: none;
}

@keyframes marquee {
    0%   { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-50%); }
}

.manifesto-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.manifesto-content h3 {
    font-family: monospace;
    color: var(--accent);
    margin-bottom: 20px;
}

.big-text {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1.4;
}

.highlight {
    font-family: var(--font-serif);
    font-style: italic;
    color: #fff;
    border-bottom: 1px solid var(--accent);
}

/* ------------------------------------------------------ */
/* BLUEPRINT GRID */
/* ------------------------------------------------------ */

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--grid);
    border-bottom: 1px solid var(--grid);
    background: #0e0e0e;
    position: relative;
    z-index: 10;
}

.grid-item {
    border-right: 1px solid var(--grid);
    padding: 60px 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.grid-item:last-child {
    border-right: none;
}

.grid-item:hover {
    background: #151515;
}

.idx {
    font-family: var(--font-display);
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: 0.3s;
}

.grid-item:hover .idx {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.2);
}

.grid-item h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.grid-item p {
    font-size: 0.9rem;
    color: #888;
}

.icon-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.03;
    transform: rotate(-15deg);
    transition: 0.5s;
}

.grid-item:hover .icon-bg {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.1;
}

/* ------------------------------------------------------ */
/* CONTACT TERMINAL */
/* ------------------------------------------------------ */

.contact-terminal {
    padding: 100px 20px;
    background: #050505;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terminal-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    color: var(--accent);
    font-size: 0.7rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.form-wrapper {
    width: 100%;
    max-width: 600px;
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group label {
    display: block;
    font-family: monospace;
    font-size: 0.7rem;
    margin-bottom: 10px;
    color: #666;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: 0.3s;
    outline: none;
}

.input-group input:focus {
    border-bottom-color: var(--accent);
}

.cyber-btn {
    width: 100%;
    padding: 20px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-family: monospace;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.cyber-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ------------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------------ */

.main-footer {
    background: #000;
    padding: 50px 0;
    text-align: center;
    z-index: 10;
    position: relative;
}

.footer-big {
    font-family: var(--font-display);
    font-size: 15vw;
    line-height: 1;
    opacity: 0.1;
}

.footer-meta {
    display: flex;
    justify-content: center;
    gap: 50px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
    margin-top: -50px;
}

/* ------------------------------------------------------ */
/* TABLET & DOWN – NAV TO DRAWER + LOGO SCALE */
/* ------------------------------------------------------ */

@media (max-width: 1024px) {

    .hud-nav {
        height: 60px;
        padding: 16px 18px;
    }

    .hud-center-top {
        top: 16px;
    }

    .nav-logo-img {
        height: 100px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ------------------------------------------------------ */
/* MOBILE LAYOUT */
/* ------------------------------------------------------ */

@media (max-width: 768px) {

    .nav-logo-img {
        height: 70px;
    }

    .main-title {
        font-size: 18vw;
    }

    /* Service card smaller + lower so more image visible */
    .hero-service {
        left: 6vw;
        right: 6vw;
        max-width: none;
        top: auto;
        bottom: 10vh;
        transform: none;
        padding: 18px 18px 18px 20px;
        border-radius: 18px;
        background: rgba(0,0,0,0.75);
    }

    .hero-service-title {
        font-size: 1.3rem;
        letter-spacing: 0.12em;
    }

    .hero-service-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 12px;
    }

    .hero-service-text {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .hero-service-btn {
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
        padding: 10px 18px;
    }

    .blueprint-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-item {
        padding: 40px 20px;
    }

    .footer-big {
        font-size: 22vw;
    }
}
