/* ==========================================
   1. CUSTOM LOCAL FONTS (Web Optimized)
   ========================================== */
@font-face {
    font-family: 'Century Gothic';
    src: url('font/centurygothic.woff2') format('woff2'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lemon Milk';
    src: url('font/lemonmilk.woff2') format('woff2'); 
    font-weight: normal;
    font-style: normal;
}

/* ==========================================
   2. GLOBAL RESET & CORE PROPERTIES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ==========================================
   3. NAVBAR
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0; 
    
    /* Change the '6%' below to a higher number like '10%' or '15%' 
       to squeeze both the logo and the link closer to the center */
    margin: 0 6%; 
    
    border-bottom: 1px solid #333333;
}

.brand-zone {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-img {
    height: 132px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: 'Century Gothic', sans-serif; 
    font-size: 2.0rem;
    font-weight: normal;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.brand-title {
    font-family: 'Lemon Milk', sans-serif; 
    font-size: 1.5rem;
    color: #14b8a6;
    font-weight: normal;
    letter-spacing: 0.15em;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-right: 5vw; /* Squeezes it inward from the right side */
    margin-top: 60px; /* Pushes it down to align where you want it */
}

.nav-links a {
    color: #888888;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #14b8a6;
}

/* Hide hamburger icon on desktop */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* ==========================================
   4. MISSION STATEMENT
   ========================================== */
.mission {
    padding: 10vh 6% 8vh; 
    display: flex;
    flex-direction: column; /* This forces the headline and text to stack vertically */
    align-items: center;    /* Centers them horizontally */
    text-align: center;
}

/* Styling for your new headline */
.mission-headline {
    font-family: 'lemon milk', sans-serif; 
    font-size: 1.5rem;
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 0.10em;
    margin-bottom: 1.5rem; /* This creates the gap between the headline and the body text */
}

.mission-text {
    font-family: 'Century Gothic', sans-serif; 
    font-size: 1.0rem; 
    color: #b5b5b5; 
    max-width: 1200px; 
    line-height: 1.6;
    letter-spacing: 0.05em;
    font-weight: normal;
}

/* ==========================================
   5. PORTFOLIO GALLERY GRID
   ========================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* STRICTLY forces 3 equal columns */
    gap: 3.5rem;
    padding: 1.35rem 6% 2rem;
}

/* On tablets and smaller laptops, it drops to 2 columns so it isn't squeezed */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On mobile phones, it drops to a single vertical column */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.video-thumbnail {
    position: relative; 
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0b0b0b;
    border: 1px solid #1a1a1a;
    overflow: hidden; 
    transition: border-color 0.4s ease;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.4s ease;
}

.overlay-text {
    text-align: center;
    padding: 0 1rem;
}

.overlay-text h3 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.overlay-text p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 0.95rem;
    color: #14b8a6; 
    letter-spacing: 0.05em;
}

/* ==========================================
   INTERACTIVE HOVER STATES
   ========================================== */

/* 2. Execute the cinematic zoom on the image */
.project-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* 3. Fade the text overlay into view */
.project-card:hover .project-overlay {
    opacity: 1;
}

/* ==========================================
   6. FOOTER
   ========================================== */
footer {
    margin: 4rem 6% 0; 
    padding: 4.5rem 0; 
    border-top: 1px solid #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 2.5rem;
}

.social-icon {
    color: #555555; 
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #14b8a6; 
    transform: translateY(-3px); 
}

/* Styling for the copyright text */
footer p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 0.70rem; /* Change this number to make it bigger or smaller! */
    color: #666666; /* Gives it a subtle, premium dark grey look */
    letter-spacing: 0.05em;
}

/* ==========================================
   7. VIDEO MODAL (LIGHTBOX)
   ========================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); 
    backdrop-filter: blur(5px); 
}

.modal-content {
    position: relative;
    width: 85%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%); 
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #14b8a6; 
}

/* ==========================================
   8. CONTACT SECTION (Two-Column Layout)
   ========================================== */
.contact-container {
    margin: 8rem 6% 2rem;
    padding: 4rem 0;
    border-top: 1px solid #333333;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

/* Responsive adjustment for tablets and mobile */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 5rem;
    }
}

/* Left Column Styling */
.contact-left h2 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1.7rem;
    font-weight: normal;
    letter-spacing: 0.00em;
    margin-bottom: 1.0rem;
    color: #ffffff;
}

.contact-direct-links p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1rem;
    color: #888888;
    margin-bottom: 0.8rem;
    letter-spacing: 0.03em;
}

.contact-direct-links a {
    color: #14b8a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-direct-links a:hover {
    color: #ffffff;
}

/* Right Column Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Century Gothic', sans-serif;
    font-size: 0.9rem;
    color: #b5b5b5;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    background-color: transparent;
    border: 1px solid #333333;
    padding: 0.8rem;
    color: #ffffff;
    font-family: 'Century Gothic', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, outline 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #14b8a6;
}

/* Send Button Layout */
.submit-btn {
    align-self: flex-start;
    background-color: #14b8a6;
    color: #000000;
    border: none;
    padding: 0.8rem 2.5rem;
    font-family: 'Lemon Milk', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ==========================================
   9. ABOUT SECTION
   ========================================== */
.about-container {
    margin: 8rem 6% 2rem;
    padding: 2rem 0;
    border-top: 1px solid #333333;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 5rem;
    }
}

.about-image {
    width: 100%;
    aspect-ratio: 4 / 5; /* Cinematic portrait framing */
    background-color: #0b0b0b;
    border: 1px solid #1a1a1a;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%); /* Gives the photo a slight moody/cinematic feel */
    transition: filter 0.5s ease, transform 0.5s ease;
}

.about-image img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-text h2 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-text p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 1rem;
    color: #b5b5b5;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

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

/* ==========================================
   10. MOBILE RESPONSIVE TWEAKS (iPhones)
   ========================================== */
@media (max-width: 400px) {
    /* 1. Stack the header and shrink the logo */
        /* 1. Adjust the header for the hamburger menu */
    .navbar {
        flex-direction: row; /* Keeps logo on left, hamburger on right */
        padding: 2rem 0;
        position: relative; /* Needed for the dropdown to attach to */
    }
    
        .hamburger {
        display: block; 
    }
    
    /* Animate the SVG size */
    .hamburger svg {
        transition: transform 0.3s ease;
    }
    
    /* Animate the color of the 3 lines */
    .hamburger svg rect {
        transition: fill 0.3s ease;
    }

    /* When clicked: Shrink it and turn it dark gray */
    .hamburger.active svg {
        transform: scale(0.75);
    }
    
    .hamburger.active svg rect {
        fill: #666666; 
    }
    
    .logo-img {
        height: 75px; 
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    /* 2. The Dropdown Menu Magic (Frosted Glass Version) */
    .nav-links {
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        height: 100vh; /* Makes the blur cover the rest of the screen */
        
        /* The Blur Magic */
        background-color: rgba(11, 11, 11, 0.65); /* Semi-transparent black */
        backdrop-filter: blur(15px); /* Blurs whatever is behind it */
        -webkit-backdrop-filter: blur(15px); /* Critical for Safari/iPhones! */
        
        padding: 4rem 0; /* Pushes the links down a bit nicely */
        text-align: center;
        gap: 2.5rem;
        z-index: 999; 
        border-top: 1px solid #333333; /* Crisp line between header and blur */
        margin: 0;
        
        opacity: 0; 
        visibility: hidden; 
        transform: translateY(-15px); 
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s ease;
    }

    /* When the button is clicked, this triggers the smooth slide and fade! */
    .nav-links.active {
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0); 
    }

    /* 3. Scale down the massive homepage text */
    .mission {
        padding: 5vh 6% 4vh; 
    }
    
    .mission-headline {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .mission-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* 4. Scale down About and Contact text just in case */
    .about-text h2, .contact-left h2 {
        font-size: 1.6rem;
    }
    
    .about-text p, .contact-direct-links p {
        font-size: 0.9rem;
    }
    
    /* 5. The Scroll Lock (Freezes background when menu is open) */
    body.no-scroll {
        overflow: hidden;
    }
}