@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500&display=swap');

:root {
    --nerv-red: #E52D27;
    --text-black: #000000;
    --text-gray: #666666;
    --bg-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    background: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--nerv-red);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-black);
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    flex: 1;
}

/* Hero */
.hero {
    margin-bottom: 6rem;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 0.9;
    color: var(--nerv-red);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Content */
.content {
    margin-bottom: 6rem;
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--nerv-red);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-black);
}

.project-description {
    font-size: 0.875rem !important;
    color: var(--text-gray) !important;
    margin-top: 0.5rem;
    line-height: 1.6 !important;
}

/* Project Image with NERV Overlay */
.project-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 1.5rem 0 0.75rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
}

.nerv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--nerv-red);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: color;
    transition: opacity 0.3s ease;
}

.section:hover .nerv-overlay {
    opacity: 0.4;
}

.link {
    color: var(--nerv-red);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 1rem;
    transition: opacity 0.2s ease;
}

.link:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    background: var(--bg-white);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.footer .email {
    color: var(--text-gray);
    text-decoration: none;
}

/* Legal Pages */
.legal-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    flex: 1;
}


.legal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--nerv-red);
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-align: left;
}

.legal-content {
    margin-bottom: 6rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--nerv-red);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-black);
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.contact-content {
    width: 100%;
}

.contact-block {
    text-align: center;
    line-height: 2;
    font-size: 1rem;
}

.contact-block .email {
    color: var(--text-black);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .nav {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    /* Container */
    .container {
        padding: 6rem 1.5rem 3rem;
    }
    
    .legal-container {
        padding: 6rem 1.5rem 3rem;
    }
    
    /* Hero */
    .hero {
        margin-bottom: 4rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
    
    /* Content */
    .section {
        margin-bottom: 2.5rem;
    }
    
    .section h2 {
        font-size: 0.7rem;
    }
    
    .section p {
        font-size: 0.9rem;
    }
    
    .project-description {
        font-size: 0.8rem !important;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    /* Legal Pages */
    .legal-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 0.7rem;
    }
    
    .legal-section p {
        font-size: 0.9rem;
    }
    
    .legal-section {
        text-align: left;
    }
    
    .contact-block {
        text-align: left;
    }
    
    /* Contact page specific on mobile */
    .contact-page .legal-container {
        margin: 0;
        max-width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .contact-block {
        text-align: left;
    }
}