/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #2d6a4f;       /* Deep Forest Green */
    --primary-dark: #1b4332;  /* Darker Green for hovers */
    --accent: #d4a373;        /* Bamboo Tan */
    --bg-light: #f0f4f3;      /* Very light grey-green background */
    --text-dark: #1f2d3d;     /* Dark Blue-Grey text */
    --glass: rgba(255, 255, 255, 0.95); /* For Navbar */
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    /* IMPORTANT: Padding top so content doesn't hide behind the fixed navbar */
    padding-top: 80px; 
    overflow-x: hidden; /* Prevents horizontal scrollbars */
}

/* =========================================
   2. GLASS NAVIGATION BAR
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--glass);
    backdrop-filter: blur(12px); /* Frosted glass blur */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    z-index: 1000; /* Keeps nav on top of everything */
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

/* Hover & Active States */
.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

/* =========================================
   3. HERO SECTION (Home Page)
   ========================================= */
.hero {
    /* Modern Green Gradient - No Image needed */
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px; /* Curved bottom edge */
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(45, 106, 79, 0.3);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* =========================================
   4. LAYOUT & CARDS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
}

/* Standard 3-Column Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent; /* Invisible border for hover effect */
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px); /* Lifts up */
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-bottom-color: var(--accent);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* =========================================
   5. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #b58350; /* Darker tan */
    transform: translateY(-3px);
}

/* =========================================
   6. TEAM PAGE STYLES
   ========================================= */
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Perfect Circle */
    object-fit: cover;  /* Prevents image stretching */
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 20px auto;
    display: block;
}

/* =========================================
   7. ARCHIVE PAGE (Docs, Gallery, Video)
   ========================================= */
/* Large PDF Viewer */
.pdf-container {
    width: 100%;
    height: 500px; /* Tall height for readability */
    background-color: #525659; /* Dark grey like Adobe Reader */
    border-radius: 12px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.pdf-object {
    width: 100%;
    height: 100%;
    display: block;
}

.fallback-msg {
    text-align: center;
    color: white;
    padding: 20px;
}

/* Side-by-Side Layout for Video/Gallery */
.media-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 30px;
    margin-top: 20px;
}

/* Photo Gallery Grid (Inside the card) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05); /* Zoom effect */
}

/* Video Player */
video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    background: black;
    max-height: 400px;
}

/* =========================================
   8. 3D PAGE STYLES
   ========================================= */
#canvas-wrapper {
    position: relative;
    height: 90vh; /* Full screen height minus header */
    background: radial-gradient(circle at center, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    cursor: grab; /* Hand icon */
}

#canvas-wrapper:active {
    cursor: grabbing; /* Closed hand when clicking */
}

/* =========================================
   9. ANIMATIONS & FOOTER
   ========================================= */
/* Fade In Up Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

/* =========================================
   10. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .media-row {
        grid-template-columns: 1fr; /* Stack video under gallery on phone */
    }
    
    .nav-links {
        /* Simple spacing fix for mobile nav */
        display: none; /* In a real project, you'd add a hamburger menu here */
    }
    
    /* Show links on mobile just stacked for this project simplicity */
    nav {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    
    .nav-links a {
        margin: 5px 10px;
        margin-left: 0;
    }
    
    body { padding-top: 120px; } /* More space for stacked nav */
}