/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary: #023e8a;
    --primary-light: #0077b6;
    --secondary: #00b4d8;
    --accent: #90e0ef;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-light);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

nav a:hover {
    color: var(--primary-light);
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.3;
    filter: blur(60px);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--primary);
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--text-dark);
    max-width: 500px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.hero-video-wrapper {
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-video-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
}

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

/* ==========================================================================
   Project Description
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-desc {
    padding: 100px 0;
    background: var(--bg-white);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */
.timeline-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 4px;
    background: var(--border);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 4px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-light);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item.completed .timeline-marker {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.timeline-item.active .timeline-marker {
    border-color: var(--secondary);
    background: var(--bg-white);
    color: var(--secondary);
    box-shadow: 0 0 0 6px rgba(0, 180, 216, 0.2);
}

.timeline-content {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.timeline-item.active .timeline-content {
    border-left: 4px solid var(--secondary);
}

/* ==========================================================================
   Meetings Section
   ========================================================================== */
.meetings {
    padding: 100px 0;
    background: var(--bg-white);
}

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.meeting-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.meeting-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.meeting-gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.meeting-gallery a {
    flex: 1 1 45%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.meeting-gallery a:only-child {
    flex: 1 1 100%;
    height: 250px;
}

.gallery-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.meeting-img {
    height: 200px;
    width: 100%;
    flex-shrink: 0;
}

.meeting-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meeting-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.meeting-info h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meeting-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.clamp-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-chip {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-chip:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3);
}

.video-embed-container {
    transition: transform 0.3s ease;
}

.video-embed-container:hover {
    transform: scale(1.02);
}

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.download-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto; /* Aligns to bottom */
}

.download-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.footer-info h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 24px;
}

.footer-info p {
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 400px;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 16px;
}

.email-link:hover {
    color: white;
}

.footer-note {
    font-size: 0.9rem !important;
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #e2e8f0 !important;
}

.footer-links {
    margin-top: 32px;
}

.external-link {
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
}

.external-link:hover {
    border-color: white;
}

.footer-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.location-img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text, .footer-info {
        text-align: center;
    }
    
    .hero-text p, .footer-info p {
        margin: 0 auto 32px;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        display: none; /* simple mobile fallback, real implementation would need a hamburger menu */
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .project-grid, .meetings-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 2px;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
