/* Import Cinematic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=IBM+Plex+Mono:wght@300;400&display=swap');

/* Base Styles & Variables */
:root {
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --accent: #ffffff;
}

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

body {
    /* Screenplay/Technical Body Font */
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: #000000;
    position: relative;
}

/* 
   SCROLLING CINEMATIC BACKGROUND LAYER
   This creates a layer behind your content that scrolls with the text, 
   applies the B&W filter, and fades smoothly into the black background. 
*/
body::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 130vh; /* Covers the hero section and spills slightly into the next */
    
    /* Gradient shadow from top to bottom, fading into solid black */
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 75%, #000000 100%),
        url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?q=80&w=2025&auto=format&fit=crop');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    
    /* Applies the pure Black & White filter to the image */
    filter: grayscale(100%);
    
    /* Keeps the image behind the text and ensures it doesn't block clicks */
    z-index: -1;
    pointer-events: none;
}

/* Cinematic Headings */
h1, h2, h3, .logo, .nav-links a {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
}

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

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    z-index: -1;
}

/* Layout Sections */
.section {
    padding: 6rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    color: var(--accent);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.grid-item h3 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    color: var(--accent);
    text-transform: none; /* Overrides global uppercase rule */
    letter-spacing: 1px;
}

.grid-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.about-contact ul {
    list-style: none;
    margin-top: 1.5rem;
}

.about-contact li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-contact strong {
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(161, 161, 170, 0.5);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 1rem;
    }
    
    .logo {
        letter-spacing: 2px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section {
        padding: 4rem 5%;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}