/* ==========================================================
   CSS TABLE OF CONTENTS
   1. DESIGN SYSTEM & CUSTOM PROPERTIES
   2. BASE STYLES & RESET
   3. FIXED HEADER & BRANDING LAYOUT
   4. LAYOUT & GRID CONTAINERS
   5. HERO / TITLE SECTION
   6. CARD & PLACEHOLDER STYLES
   7. INTERACTIVE & UI COMPONENT STYLES
   8. FOOTER STYLES
   9. RESPONSIVE WEB DESIGN (MEDIA QUERIES)
   ========================================================== */

/* ==========================================================
   1. DESIGN SYSTEM & CUSTOM PROPERTIES
   Defines the metallic dark slate color palette, fonts, and blurs.
   Complementary neon cyan is added for highlight and user interaction.
   ========================================================== */
:root {
    /* Color Palette (Extracted from dark grey background & silver logo) */
    --color-primary: #242830;         /* Slate charcoal grey (dominant bg tone) */
    --color-primary-light: #3a3f4b;   /* Mid-slate grey for borders/cards */
    --color-accent: #aed0d6;          /* Vibrant cyan (brand highlight color) */
    --color-accent-hover: #73e2f5;    /* Hover state for cyan elements */
    --color-silver: #c0c4cc;          /* Light metallic silver (for badges and borders) */
    
    /* Text Color Tokens */
    --text-main: #0d131a;             /* Slate 100 (high contrast for dark themes) */
    --text-muted: #94a3b8;            /* Slate 400 */
    --text-dark: #0f172a;             /* Slate 900 */
    
    /* Glassmorphism Styling Tokens (For dark tech aesthetics) */
    --glass-bg: rgba(30, 36, 46, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.35);
    --glass-blur: blur(12px);
    
    /* Global Transitions & Border Radius */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   2. BASE STYLES & RESET
   Establishes reset and background image rules.
   ========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* ------------------------------------------------------ */
    /* BACKGROUND IMAGE SPECIFICATIONS                       */
    /* Sets the background image as fixed and non-scrolling.  */
    /* ------------------------------------------------------ */
    background-image: url('background.png');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--color-primary); /* Charcoal fallback */
}

/* ==========================================================
   3. FIXED HEADER & BRANDING LAYOUT
   Creates a non-scrolling navbar with logo on left, menu on right.
   ========================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    
    /* Translucent header background to prevent overlapping text readability issues */
    background: rgba(30, 36, 46, 0.75);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Flex wrapper for logo and title side-by-side */
.header-branding {
    display: flex;
    align-items: center;
}

.branding-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Specific image constraints to scale high-res assets down cleanly */
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.title-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-left: 12px; /* Places title immediately to the right of logo */
    transition: var(--transition-smooth);
}

/* Hover effects for branding */
.branding-link:hover .logo-img {
    transform: scale(1.05) rotate(360deg);
}

.branding-link:hover .title-img {
    filter: drop-shadow(0 0 6px var(--color-accent));
}

/* Navigation Links Container (Top Right Alignment) */
.nav-container {
    display: flex;
    gap: 16px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid transparent;
}

/* Micro-interaction sliding underline style */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 4px;
    left: 16px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 32px);
}

.nav-link:hover {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--color-accent);
    background: rgba(88, 216, 240, 0.1);
    border-color: rgba(88, 216, 240, 0.15);
    font-weight: 700;
}

/* ==========================================================
   4. LAYOUT & GRID CONTAINERS
   Configures grid system and prevents header overlap.
   ========================================================== */
.grid-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px 40px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on Desktop */
    gap: 30px;
    flex: 1 0 auto;
}

/* ==========================================================
   5. HERO / TITLE SECTION
   Pushed downwards via margin-top to avoid fixed header overlap.
   ========================================================== */
.hero-section {
    max-width: 1200px;
    width: 100%;
    margin: 130px auto 30px auto; /* 130px spacing prevents header overlap */
    padding: 0 30px;
    text-align: left;
}

.page-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.7rem;
    color: var(--text-dark);
    font-weight: 300;
    text-indent: 10%;
}

.photo-section {
    max-width: 1200px;
    width: 100%;
    margin: 130px auto 30px auto; /* 130px spacing prevents header overlap */
    padding: 0 30px;
    text-align: center;
}

/* ==========================================================
   6. CARD & PLACEHOLDER STYLES
   Translucent dark panels matching the textured wavy background.
   ========================================================== */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(88, 216, 240, 0.3);
}

.card-header {
    margin-bottom: 18px;
    display: flex;
    justify-content: flex-start;
}

.card-badge {
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 50px;
}

.badge-silver {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-silver);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-dashed {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text {
    font-size: 16 px;
    color: var(--color-accent);
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-textsuper {
    font-size: 16 px;
    color: rgb(129, 152, 204);
    margin-bottom: 16px;
    line-height: 1.6;
}

.note-text {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent);
}

.center-align box {
	text-align: center;
	margin: 15px 0;
}
	
/* ==========================================================
   7. INTERACTIVE & UI COMPONENT STYLES
   Mock playback controls, image wrapping, lists, and empty states.
   ========================================================== */
.card-media-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 16/10;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .responsive-image {
    transform: scale(1.02);
}

/* Styled lists inside layout card */
.styled-list {
    list-style: none;
    margin-bottom: 20px;
}

.styled-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.section-subheading {
    font-size: 1rem;
    color: var(--text-main);
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Button UI Components */
.btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(88, 216, 240, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-actions {
    margin-top: auto;
    padding-top: 16px;
}

/* Media Mock Video Player */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #181c24, #2d3540);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-wrapper iframe {
    Width: 100%;
    height: 100%;
}

/* Empty Flex Box Styles */
.flex-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    text-align: center;
    height: 100%;
    min-height: 250px;
    transition: var(--transition-smooth);
}

.card:hover .flex-empty-state {
    border-color: rgba(88, 216, 240, 0.4);
    background: rgba(255, 255, 255, 0.01);
}

.empty-icon-wrapper {
    width: 45px;
    height: 45px;
    margin-bottom: 16px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.card:hover .empty-icon-wrapper {
    transform: rotate(90deg) scale(1.05);
    color: var(--color-accent);
    opacity: 0.8;
}

.empty-icon {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 100%;
}

.type-promo {
    font-size: .85rem;
    color: greenyellow;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-top: 12px;
}

a:link {
    color: green;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

a:visited {
color: green;
text-decoration: underline;
}

/* ==========================================================
   7a. Photo Gallery Container
   ========================================================== */
/* Ensure the grid is responsive */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure images fit their containers */
.gallery-container img {
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    object-fit: cover; /* This "contains" the image by cropping it to fill the box */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.05); /* Subtle zoom effect */
}

/* Use a more specific selector to ensure it overrides GLightbox defaults */
.gslide-image img {
    border: 5px solid white !important; /* !important forces the override */
    box-shadow: 0 0 20px rgba(0,0,0,0.5) !important;
    border-radius: 4px !important;
    max-height: 80% !important;
    max-width: 80% !important;
}

/* ==========================================================
   8. FOOTER STYLES
   Centers copyright details and includes subtle links.
   ========================================================== */
.main-footer {
    width: 100%;
    padding: 35px 20px;
    margin-top: auto; /* Pushes footer to bottom */
    background: rgba(30, 36, 46, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.footer-text {
    font-size: 0.88rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.footer-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.footer-divider {
    margin: 0 8px;
    opacity: 0.2;
}

/* ==========================================================
   9. RESPONSIVE WEB DESIGN (MEDIA QUERIES)
   Sets breakpoints and styles for mobile and tablet sizing.
   ========================================================== */

/* ------------------------------------------------------ */
/* MEDIUM / TABLET VIEWPORTS (Max-width: 1024px)          */
/* ------------------------------------------------------ */
@media screen and (max-width: 1024px) {
    /* Scale down layout spacing */
    .main-header {
        padding: 0 35px;
    }
    
    .grid-container {
        gap: 20px;
        padding: 0 20px 30px 20px;
    }
    
    .hero-section {
        margin-top: 120px;
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

/* ------------------------------------------------------ */
/* MOBILE VIEWPORTS (Max-width: 768px)                   */
/* ------------------------------------------------------ */
@media screen and (max-width: 768px) {
    /* Collapse grid to a single column list stack */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* -------------------------------------------------- */
    /* MOBILE HEADER STACKING                             */
    /* Centers the branding and links to fit mobile widths*/
    /* -------------------------------------------------- */
    .main-header {
        height: auto;
        flex-direction: column;
        justify-content: center;
        padding: 15px 20px;
        gap: 15px;
        position: absolute; /* Allows viewport sizing scroll flexibility */
    }
    
    .logo-img {
        height: 40px;
    }
    
    .title-img {
        height: 26px;
    }
    
    .nav-container {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; /* Wrap links if screen is extremely narrow */
        gap: 8px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .nav-link::after {
        left: 12px;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: calc(100% - 24px);
    }
    
    /* Push content further down since stacked header height is taller on mobile */
    .hero-section {
        margin-top: 175px;
        text-align: center;
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .card {
        padding: 20px;
    }
    
    /* Stack footer text nodes vertically on mobile */
    .footer-text {
        font-size: 0.78rem;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    
    .footer-divider {
        display: none;
    }
}

/* ------------------------------------------------------ */
/* SMALL MOBILE VIEWPORTS (Max-width: 480px)             */
/* ------------------------------------------------------ */
@media screen and (max-width: 480px) {
    .nav-container {
        gap: 4px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .nav-link::after {
        left: 8px;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: calc(100% - 16px);
    }
    
    .hero-section {
        margin-top: 190px;
    }
}

/* ==========================================================
   10. FULLSCREEN IMAGE OVERLAY (LIGHTBOX)
   ========================================================== */
.fullscreen-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95); /* Deep slate semi-transparent backdrop */
    z-index: 9999; /* Placed higher than the fixed header */
    justify-content: center;
    align-items: center;
}

/* Activated when the element ID is targeted in the URL hash (#fullscreen-view) */
.fullscreen-overlay:target {
    display: flex;
}

.fullscreen-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

.close-btn {
    position: absolute;
    top: -55px;
    right: -35px;
    color: var(--text-main);
    font-size: 3.5rem;
    text-decoration: none;
    font-weight: 300;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--color-accent);
}

/* Smooth zoom-in micro-animation */
@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* 1. The Overlay (Hidden by default) */
.modal-overlay {
    display: none; /* Hidden */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); /* Dark background */
    justify-content: center;
    align-items: center;
}

/* 2. The Magic: Show when targeted */
.modal-overlay:target {
    display: flex; /* Makes it visible */
}

/* 3. The Content Box */
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
}