/* ==========================================
   1. CORE STYLE & FRUTIGER AERO BACKGROUND
   ========================================== */
html {
    /* Fixed extension to match your uploaded .jpg file */
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100%;
    background: transparent; 
}

/* Main Site Box Wrapper (The Glassmorphic box) */
#container {
    max-width: 900px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For iPad Safari support */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* ==========================================
   2. HEADER & GLOSSY NAVIGATION BAR
   ========================================== */
header {
    background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, rgba(0,174,239,0.1) 50.1%, rgba(0,174,239,0.3) 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 174, 239, 0.3);
}

header h1 {
    font-size: 2.5rem;
    color: #0054A6;
    margin: 0;
    text-shadow: 1px 1px 0px #fff, 0 0 10px rgba(0,174,239,0.5);
}

header p {
    margin: 5px 0 0 0;
    font-style: italic;
    color: #555;
}

nav {
    display: flex;
    background: linear-gradient(to bottom, #ffffff 0%, #e1e1e1 50%, #cccccc 51%, #f5f5f5 100%);
    border-bottom: 1px solid #999;
}

nav a {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-right: 1px solid #bbb;
    transition: all 0.2s ease;
}

nav a:last-child {
    border-right: none;
}

nav a:hover, nav a.active {
    background: linear-gradient(to bottom, #00AEEF 0%, #0054A6 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ==========================================
   3. STRUCTURAL FIXES FOR PAGES & CARDS
   ========================================== */
main {
    padding: 20px;
}

/* Core page switching rules */
.page-content {
    display: none; /* Hide pages when inactive */
    width: 100%;
}

/* Layout for home page split screen */
.page-content.active-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* For full width pages like Gallery, About, Links */
.page-content.active-page.full-width-layout {
    display: block;
}

/* Web 2.0 Content Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 0 #fff, 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card h2 {
    color: #339933;
    margin-top: 0;
    border-bottom: 2px solid #39B54A;
    padding-bottom: 5px;
}

/* ==========================================
   4. LAYOUT FEATURES (GALLERY & LINKS)
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    
    /* Stops items in the same row from stretching vertically */
    align-items: start;
}

.gallery-item {
    background: #fff;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    
    /* Forces the border card to wrap perfectly around its file height */
    height: fit-content;
    display: block;
}

/* Keeps native proportions clean for both videos and images */
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* If embedding standard video links or frames */
.gallery-item iframe {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 4px;
    display: block;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    max-width: 300px;
}

.aero-btn {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    color: white;
    border-radius: 50px;
    border: 1px solid #0054A6;
    background: linear-gradient(to bottom, #00AEEF 0%, #0054A6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.3);
}

/* Footer alignment */
footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    background: rgba(230, 230, 230, 0.5);
    border-top: 1px solid #ccc;
}
q