/* --- VARIABLES --- */
:root {
    --bg-dark-blue: #1e293b;    /* Brightened Dark Slate Blue */
    --bg-dark-grey: #2d2d2d;
    --bg-cyan: #00c0ff;
    --card-bg: #27272a;
    --primary-color: #00c0ff;
    --primary-hover: #ffffff;
    --text-color: #f8fafc;
    --text-muted: #a1a1aa;
    --border-color: #334155;
    --max-width: 1100px;
    --radius: 12px;
}

/* --- FONTS --- */
@font-face {
    font-family: 'Molot';
    src: url('fonts/molot_b-webfont.woff2') format('woff2'),
         url('fonts/molot_b-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'DDin-Exp';
    src: url('fonts/d-dinexp-webfont.woff2') format('woff2'),
         url('fonts/d-dinexp-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
/* fdfnjkfjna sfdsadf */
}

/* --- BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h2 {
    font-family:'Molot';
    font-weight: normal;
    color: #ffffff;
    text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
    font-size: 4em;
    letter-spacing: normal;
}

h3 {
    font-family: 'Molot';
    font-weight: normal;
    color: white;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    font-size: 2em;
    letter-spacing: normal;
    padding: 0 0 0 1rem;
}

body {
    font-family: 'DDin-Exp', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark-grey);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 14pt;
}



/* --- LAYOUT CONTAINERS --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    text-align: left;
}

.container-center {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

/* --- NAVBAR --- */
.floating-header {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* Pushes Logo to far LEFT, Nav/Hamburger to far RIGHT */
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    height: 3.75rem; /* Set container height directly */
    margin: 0 auto;
    padding: 0 1.5rem;
    background-color: rgba(30, 41, 59, 0.85); /* Slightly translucent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    position: relative; /* Context for mobile dropdown positioning */
}

nav {
    display: flex;
    align-items: center;
}

.logo {
    font-family: 'Molot';
    font-weight: 400;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--bg-cyan);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- NAV BAR MOBILE --- */

/* Hide button on desktop */
.menu-toggle {
    display: none;
    background: var(--bg-dark-blue);
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}



/* Base Sectioning & Alternating Colors */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-cyan {
    background-color: var(--bg-cyan);
}

.section-grey {
    background-color: var(--bg-dark-grey);
}

/* Angled Diagonal Slashes (between 4deg and 7deg slopes) */
.angle-1 {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    margin-top: -4rem;
    padding-top: 8rem;
}

.angle-2 {
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
    margin-top: -5rem;
    padding-top: 8rem;
}

.angle-3 {
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
    margin-top: -6rem;
    padding-top: 9rem;
}

/* Banner / Hero Section */
.hero-banner {
    position: relative;
    overflow: hidden; /* Clips the blurred background edges */
    padding: 20rem 0 10rem 0;
    text-align: left;
}

/* Background image on a pseudo-element layer */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(assets/AF_SiteBanner.png);
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Ensure content stays crystal clear above the background */
.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    text-align: left;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;    /* Vertically centers icon and text */
    justify-content: center;
    gap: 0.5rem;            /* Creates space between icon and text */
    text-decoration: none;

    /* display: inline-block; */
    background-color: var(--primary-color);
    color: #ffffff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.5rem;
    margin: 10px;
    border-radius: 0 0 var(--radius);
    transform: skewX(-6deg);
    text-decoration: none;
    font-weight: 600;
    font-size: 18pt;
    transition: background-color 0.2s;
}
.btn:hover {
    background-color: var(--primary-hover);
    color: var(--bg-dark-grey);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.0);
}

.btn-icon{
    width: 2rem;          /* Adjust icon size to match your font height */
    height: 2rem;
    display: block;
    fill: currentColor;      /* Ensures SVG icons inherit the button text color */
}

/* --- GRIDS AND CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
}

.screenshot {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
}

/* --- YOUTUBE VIDEO CONTAINER --- */
.video-container {
    position: relative;
    max-width: 90%;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/9;
    /* REMOVED: overflow: hidden (This was hiding the skewed shape) */
    /* REMOVED: height: 0 and padding-bottom: 40% (Conflict with aspect-ratio) */
}

.video-container::before {
    content: "";
    position: absolute;
    inset: -10px; /* Expands the shape outward so it shows behind the video */
    background-color: white;
    transform: skewX(20deg); rotate: 4deg;
    z-index: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid var(--bg-dark-grey); 
    border-radius: var(--radius);
    z-index: 1;
}


/* --- FOOTER --- */
footer {
    background-color: var(--bg-dark-blue);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1em;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- LIGHT BOX --- */

/* Lightbox Dialog Container */
.lightbox {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible;
    margin: auto;
}
/* Dimmed backdrop behind the image */
.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

/* Lightbox Image */
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius, 8px);
    display: block;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Pointer cursor for clickable images */
.lightbox-trigger {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.lightbox-trigger:hover {
    transform: scale(1.02);
}




/* 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////RESPONSIVE BREAKPOINTS//////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
*/
@media (max-width: 768px) {
    body {
        font-size: 12pt;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-banner {
        padding: 5rem 0 2rem 0; /* Adjusted padding for smaller screens */
    }

    /* Blur only the background layer on mobile */
    .hero-banner::before {
        filter: blur(8px);
        transform: scale(1.08); /* Scales up slightly so blurred white edges don't show */
    }
    
    h3 {
        font-size: 1.25em;
    }

    /* Mobile setup */
    .menu-toggle {
        display: flex;
    }

    .nav-container nav {
        position: absolute;
        top: calc(100% + 0.5rem); /* Position dropdown right below header pill */
        left: 0;
        width: 100%;
        height: auto; /* Allow menu height to expand to fit content */
        background-color: var(--bg-dark-blue);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        font-size: 1.2rem;
    }
    /* Show menu when active */
    .nav-container nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 20px 24px;
        gap: 18px;
        align-items: flex-start;
    }

    /* Hamburger transform animation into 'X' when open */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}