/* Base Styles */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Space+Grotesk:wght@400;600;700&family=Syne:wght@400&display=swap');

:root {
    --text-primary: #e2e2e2; /* Soft, warm off-white */
    --bg-dark: #090a0c;
    --text-muted: #a1a7b0;
    --accent: #3ba2f6;
    --accen2: #a2f4fc;
    --card-radius: 8px;
    
    /* Using Cabinet Grotesk for Headings and Inter for Body, if imported */
    --font-heading: 'Space Grotesk', Arial, -apple-system, system-ui, sans-serif;
    --font-headbig: 'Syne', Arial, -apple-system, system-ui, sans-serif;
    --font-body: 'Lato', Helvetica, system-ui, sans-serif;
}

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

body {
    /* background-color: #060709; Deepest background */
    /* background: linear-gradient(180deg, #0b1329 0%, #111827 100%); */
    background-color: rgb(32, 87, 124);

    /* background: linear-gradient(90deg, #e0f2fe 0%, #0b1329 20%, #0b1329 80%, #e0f2fe 100%); */
    /* background: linear-gradient(90deg, 
        rgb(96, 132, 156) 0%, 
        #0b1329 50%, 
        #0b1329 50%, 
        rgba(96, 132, 156) 100%
    );*/
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Ensures any cut-off edges don't cause horizontal scrollbars */

    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    /* padding: 3rem 1.5rem; */
}

.page-wrapper {
    /* Set your main site width (e.g., max 1200px) */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* Centers the solid box */
    
    /* Solid blue background under your text and galleries */
    background-color: #0b1329; 
    
    /* Optional: padding so content doesn't touch the very edge of the solid area */
    padding: 0 1.5rem; 
    min-height: 100vh;
}

/* Header */
.home-header {
    text-align: left;
    margin-bottom: 2.5rem;
    padding-top: 3rem;
}

.home-header h1 {
    font-family: var(--font-headbig);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    margin: 0; /* Removes default margins so flexbox handles alignment cleanly */
}

.home-header p {
    color: var(--accen2);
    font-size: 1.2rem;
    margin: 0;
    margin-left: auto; /* Magic trick: pushes just this element to the far right */
    margin-right: 0.5em;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: baseline; /* Aligns the text baselines nicely */
    /* gap: 1.5rem; Creates breathing room between the name and subtitle */
    flex-wrap: wrap; /* Automatically drops the subtitle to the next line on tiny mobile screens */
}

/* --- SECTION BACKGROUND SHADES --- */
.category-section {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Shade One: Slightly richer dark slate */
.bg-shade-one {
    background-color: #31414b;
}

/* Shade Two: Subtle shift to a neutral charcoal tone */
.bg-shade-two {
    background-color: #223142;
}

.bg-shade-three {
    background-color: #051e3a;
}

/* Main Content Container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Portfolio Categories */
.portfolio-category {
    margin-bottom: 1rem;
}

.category-info {
    margin-bottom: 1.5rem;
    max-width: 600px;
    border-left: 3px solid var(--accent);
}

.category-info h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--accen2);
    text-align: left;
    margin-left: 0.75rem;
    margin-bottom: 0.25rem;
}

.category-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 0.75rem;
}

/* --- THE IMAGERY GRID --- */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for visibility */
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet/desktop */
    }
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Individual Gallery Item (Card) */
.gallery-item {
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* background: #111; */
    background: #181b22; /* Card background contrasts nicely with section shades */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Standard widescreen thumbnail ratio */
    overflow: hidden;
}

.image-wrapper-vertical {
    position: relative;
    /* max-width: 320px; */
    /* width: 33%; */
    width: 100%;
    /* height: 60%; */
    aspect-ratio: 9/16;
    max-height: 380px; /* Keeps the vertical card from stretching too aggressively */
    margin: 0 auto;
    overflow: hidden;
}

.image-wrapper img,
.image-wrapper-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* .image-wrapper-vertical img {
    width: 60%;
    height: 60%;
} */

.gallery-item:hover .image-wrapper img,
.gallery-item:hover .image-wrapper-vertical img {
    transform: scale(1.04); /* Subtle zoom-in effect */
}

/* Dark, Subtle Overlay on Hover */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .item-overlay {
    opacity: 1; /* Revealed on hover */
}

.item-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.item-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.home-footer {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 4rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.home-footer a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Styling for the Individual Project View */
.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

.video-wrapper-large {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.2rem;
}

.video-wrapper-large video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vertical 9:16 wrapper for YouTube Shorts */
.video-wrapper.vertical {
    padding-bottom: 177.78%; /* 9:16 aspect ratio */
    max-width: 400px; /* Optional: keeps it from blowing up too wide on desktop screens */
    margin: 0 auto;  /* Centers it nicely on the page */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Container to center social/embedded videos nicely on the detail page */
.social-video-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2rem 0;
}

.youtube-embed-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-width: 400px;
    aspect-ratio: 9/16;
    max-height: 700px;
    border-radius: var(--card-radius, 8px);
    background: #000;
}

/* Ensure the iframe fills its controlled wrapper completely */
.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fb-reel-wrapper iframe {
    width: 100% !important;
    max-width: 450px;
    height: 700px !important;
    display: block;
    margin: 0 auto;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
}

.project-nav a {
    color: var(--accen2);
    text-decoration: none;
    transition: color 0.2s;
}

.project-nav h1 {
    font-family: var(--font-headbig);
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    /* margin-bottom: 0.5rem; */
    color: var(--text-primary);
}

.nav-name {
    text-align: center;
}

.project-nav a:hover {
    color: var(--text-main);
}

.project-details {
    /* padding-left: 2.5rem; */
    
    padding: 0rem 10rem 2.5rem 3rem;
}

.description {
    margin-right: 3rem;

}

.project-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1200px;
    margin: 0 auto;
}

.project-inner p {
    color: var(--text-muted);
}
/* 
.project-details {
    background-color: darkseagreen;
    width: 100%;
} */
.project-details h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.description {
    padding-top: 1.2rem;
} 