/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --light-gray: #F7F7F7;
    --black: #333333;
    --blue: #0A66C2;
    --secondary-bg: #E5E5E5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
}

.subtitle {
    font-size: 14px;
    color: var(--blue);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--blue);
}

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

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--black);
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.8;
}

/* Countup Timer */
.countup-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.1);
    min-width: 120px;
    transition: var(--transition);
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.2);
}

.time-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 10px;
}

.time-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--black);
    margin-top: 10px;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--light-gray);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--black);
}

.section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--black);
    opacity: 0.8;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(10, 102, 194, 0.15);
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    background: var(--secondary-bg);
    display: block;
}

.card-content {
    padding: 25px;
}

.card-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.card-role {
    font-size: 15px;
    color: var(--blue);
    font-weight: 500;
}

.card-bio {
    font-size: 14px;
    color: var(--black);
    opacity: 0.7;
    margin-top: 10px;
    line-height: 1.5;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

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

.video-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
}

/* Map */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin: 10px 0;
    opacity: 0.9;
}

.footer-note {
    font-size: 14px;
}

/* Profile Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--blue);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    position: relative;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: var(--light-gray);
}

.modal-body {
    padding: 40px;
}

.modal-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}

.modal-role {
    font-size: 18px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 30px;
}

.modal-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 30px;
}

.contact-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--light-gray);
    border-radius: 50px;
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .countup-timer {
        gap: 15px;
    }

    .time-box {
        min-width: 90px;
        padding: 20px 15px;
    }

    .time-value {
        font-size: 36px;
    }

    .time-label {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 30px 20px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--blue);
    font-size: 18px;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ========================================
   DARK MODE STYLES
   ======================================== */

/* Dark mode toggle button */
.dark-mode-toggle {
    position: relative;
    background: var(--light-gray);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dark mode variables */
body.dark-mode {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --black: #e4e4e4;
    --secondary-bg: #3d3d3d;
    background-color: #1a1a1a;
    color: #e4e4e4;
}

/* Dark mode specific styles */
body.dark-mode .header {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

body.dark-mode .card {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card:hover {
    box-shadow: 0 12px 40px rgba(10, 102, 194, 0.3);
}

body.dark-mode .time-box {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.2);
}

body.dark-mode .video-card {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .modal-content {
    background: #2d2d2d;
    color: #e4e4e4;
}

body.dark-mode .modal-close {
    background: #3d3d3d;
    color: #e4e4e4;
}

body.dark-mode .modal-close:hover {
    background: var(--blue);
    color: var(--white);
}

body.dark-mode .contact-link {
    background: #3d3d3d;
    color: #e4e4e4;
}

body.dark-mode .contact-link:hover {
    background: var(--blue);
    color: var(--white);
}

body.dark-mode .footer {
    background: #0d0d0d;
    color: #e4e4e4;        
}

body.dark-mode .footer p {
    color: #e4e4e4;        
    opacity: 0.9;
}

body.dark-mode .section-alt {
    background: #2d2d2d;
}

body.dark-mode .nav a {
    color: #e4e4e4;
}

body.dark-mode .dark-mode-toggle {
    background: #3d3d3d;
}

/* Smooth transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header,
.card,
.time-box,
.video-card,
.modal-content,
.contact-link,
.section-alt {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
