/* =========================================
   1. CSS Variables (Your Color Palette)
   ========================================= */
:root {
    --bg-main: #121212;
    /* Deep charcoal background */
    --bg-secondary: #1e1e1e;
    /* A background for Titles */
    --title-back: rgb(123, 13, 13);
    /* Slightly lighter for project cards */
    --text-main: #46e716;
    /* Off-white for readability */
    --text-muted: #2f7d05;
    /* Gray for secondary text */
    --accent: rgb(214, 214, 13);
    /* A sharp, terminal-style accent color */
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================================
   2. Base Reset & Typography
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    text-align: center;
    max-width: 1000px;
    /* Keeps content readable on wide screens */
    margin: 0 auto;
    /* Centers the website */
    padding: 20px;
    /* The linear-gradient adds a 70% dark overlay on top of the image */
    background-image: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), url('../images/ihslogzz.jpg');

    background-size: cover;
    /* Forces the image to cover the entire screen */
    background-position: center;
    /* Keeps the focal point in the middle */
    background-repeat: no-repeat;
    /* Prevents the image from tiling */
    background-attachment: fixed;
    /* Optional: keeps the image locked in place when you scroll */
}

.linkpage,
.deepLinkpage {
    padding-left: 50px;
}

.linkTitle {
    background-color: var(--title-back);
    color: var(--accent);
}

h1,
h2,
h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 400;
    border-radius: 10px;
}

h1 {
    background-color: var(--title-back);
    color: var(--accent);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #23a309;
}

/* =========================================
   3. Navigation Bar
   ========================================= */
nav {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow-x: auto;

}

nav a {
    font-size: 1.1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--accent);
}

/* =========================================
   4. The Projects Grid
   ========================================= */
.project-grid {
    display: grid;
    /* This automatically creates responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: var(--bg-secondary);
    padding: 20px;
    border: 1px solid #333;
    border-radius: 15px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

/* =========================================
   5. Media & Imagery Display
   ========================================= */
.media-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* The container holding the images */
.picFrame {
    max-width: 800px;
    /* How wide the frame gets */
    aspect-ratio: 16 / 9;
    /* Keeps a nice cinematic rectangle shape */
    margin: 40px auto;
    /* Centers it on the page */
    position: relative;
    overflow: hidden;
    /* Hides the images that spill outside the frame */
    border: 1px solid #333;
    /* A subtle dark border */
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* The images themselves */
.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents weird stretching */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    /* Hides all images by default */
    transition: opacity 1.5s ease-in-out;
    /* Creates the smooth fade effect */
}

/* The class that makes an image visible */
.slide.active {
    opacity: 1;
}

.logo-link {
    display: inline-block;
}

.logo-image {
    max-width: 150px;
    /* Change this number to make the logo bigger or smaller */
    height: auto;
    /* This prevents the patch from stretching weirdly */
}

ul {
    list-style-type: disc;


}

.under {
    list-style-type: upper-roman;
    color: var(--accent);
}

.facebook-outreach {
    list-style-type: none;
}

.project-card h2.linkTitle2 {
    background-color: var(--title-back);
    color: var(--accent);
    font-weight: bold;
}

.titleCamp {
    font-weight: 700;
    font-style: oblique;
    line-height: 2.6;
}

.titleMedia {
    font-weight: 700;
    font-style: normal;
    line-height: 2.6;
}

.tubes {
    font-size: xx-large;
    list-style-type: none;
}

.project-card .contact {
    list-style-type: none;
    font-size: 18pt;
}

/* =========================================
   7. Video & Iframe Embeds
   ========================================= */
.embed-container {
    width: 100%;
    margin: 15px auto;
    /* The 'auto' perfectly centers it horizontally */
    display: flex;
    /* Forces the content to behave */
    justify-content: center;
    /* Centers the iframe inside the container */
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.embed-container iframe {
    display: block;
    /* Removes the weird invisible gap below iframes */
    width: 100%;
    max-width: 800px;
    /* Prevents it from getting too massive on huge screens */
    aspect-ratio: 16 / 9;
    border: none;
    /* Removes the ugly default browser border */
}