/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0078d4;
    --primary-dark: #005a9e;
    --secondary-color: #107c10;
    --accent-color: #ffc107;
    --purple: #7c5cbf;
    --purple-dark: #6040a0;
    --text-dark: #1f1f1f;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-calendar: #e8f0fe;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('images/hero-bg.png') center center / cover no-repeat;
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.cta-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.hour-card-purple .btn-outline {
    color: var(--text-dark);
    border-color: var(--text-dark);
    background-color: var(--bg-white);
}

.hour-card-purple .btn-outline:hover {
    background-color: var(--text-dark);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-calendar {
    margin-bottom: 1.5rem;
}

.btn-download {
    width: 100%;
    justify-content: center;
    border-radius: 25px;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   AZURE HOUR SECTION
   ============================================ */
.azure-hour {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.hour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.hour-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.hour-card > a:last-child,
.hour-card > .btn:last-child {
    margin-top: auto;
    align-self: flex-start;
}

.hour-card-purple {
    background: linear-gradient(135deg, #7c5cbf 0%, #9370db 100%);
    color: white;
}

.hour-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.hour-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hour-card-purple .hour-card-header i {
    color: white;
}

.hour-card-header h2,
.hour-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.hour-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.green-dot {
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
}

.hour-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.hour-card-purple p {
    color: rgba(255, 255, 255, 0.9);
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-note i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.info-note-purple {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.info-note-purple i {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   COMMUNITIES SECTION
   ============================================ */
.communities {
    padding: 80px 20px;
}

.communities h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Join Banner */
.why-join-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0091ea 100%);
    color: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.why-join-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.why-join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-join-item {
    text-align: center;
}

.why-join-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.why-join-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.why-join-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Communities subheading */
.communities-subheading {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.community-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.hour-card-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: block;
}

.hour-card-purple .hour-card-img {
    border-radius: 12px;
    opacity: 0.9;
}

.community-card h4 {
    font-size: 1.4rem;
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.audience {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.schedule-when {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.community-card .btn-calendar,
.community-card .btn-outline {
    margin: 0 1.5rem 1.5rem;
}

/* Upcoming Sessions */
.upcoming-sessions {
    padding: 0 1.5rem 1.5rem;
}

.upcoming-sessions h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.upcoming-sessions table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.upcoming-sessions thead th {
    background-color: var(--bg-light);
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.upcoming-sessions tbody td {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* Focus Hours */
.focus-hours {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0091ea 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: left;
}

.focus-hours-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.focus-hours-header i {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-hours h3 {
    font-size: 1.5rem;
}

.focus-hours p {
    opacity: 0.95;
    line-height: 1.8;
    max-width: 800px;
}

/* ============================================
   CREATORS SECTION
   ============================================ */
.creators-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.creators-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.creators-subheading {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 0 1.5rem;
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.creator-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.creator-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.creator-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.creator-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: block;
    margin: 0 auto 0.9rem;
    margin-bottom: 0.9rem;
}

.creator-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.creator-link:hover {
    color: var(--primary-dark);
}

.creator-role {
    display: inline-block;
    background-color: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 0.75rem;
}

.creator-bio {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.contributors-callout {
    margin-top: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.contributors-callout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.contributors-callout-header i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contributors-callout p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   CALENDAR SECTION
   ============================================ */
.calendar-section {
    background-color: var(--bg-calendar);
    padding: 80px 20px;
    text-align: center;
}

.calendar-header-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.calendar-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.calendar-item {
    background-color: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-item:hover {
    transform: translateY(-5px);
}

.calendar-emoji {
    font-size: 36px;
    margin-bottom: 1rem;
}

.calendar-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.calendar-item p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.download-help {
    margin-top: 2.5rem;
}

.download-help p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.btn-view-downloads {
    border-color: var(--text-light);
    color: var(--text-light);
    border-radius: 25px;
}

.btn-view-downloads:hover {
    background-color: var(--text-light);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .creators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hour-content {
        grid-template-columns: 1fr;
    }

    .communities h2,
    .communities-subheading {
        font-size: 1.8rem;
    }

    .why-join-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .communities-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .creators-grid {
        grid-template-columns: 1fr;
    }

    .creators-section h2 {
        font-size: 1.8rem;
    }

    .creators-subheading {
        font-size: 1.3rem;
    }

    .button-group {
        flex-direction: column;
        justify-content: center;
    }

    .button-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 350px;
        padding: 80px 15px;
    }

    .hour-card {
        padding: 1.5rem;
    }

    .why-join-banner {
        padding: 2rem 1.5rem;
    }

    .focus-hours {
        padding: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .communities h2,
    .azure-hour h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .hour-info h3 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

body.dark-mode .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================
   DARK MODE THEME
   ============================================ */
body.dark-mode {
    background: #0d1117;
    color: #e6edf3;
}

body.dark-mode h2 { color: #e6edf3; }
body.dark-mode h3 { color: #e6edf3; }
body.dark-mode h4 { color: #e6edf3; }
body.dark-mode h5 { color: #c9d1d9; }
body.dark-mode p { color: #8b949e; }
body.dark-mode strong { color: #c9d1d9; }
body.dark-mode .section-subtitle { color: #8b949e; }
body.dark-mode .schedule-when { color: #58a6ff; }
body.dark-mode .hour-badge { color: #8b949e; }
body.dark-mode .hero h1 { color: #fff; }
body.dark-mode .hero p { color: rgba(255, 255, 255, 0.9); }
body.dark-mode .btn-primary { color: #fff; }
body.dark-mode .btn-outline { color: #58a6ff; border-color: #30363d; }

body.dark-mode .navbar {
    background: #0d1117;
    border-bottom: 1px solid #21262d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-brand,
body.dark-mode .nav-brand h1 {
    color: #ffffff;
}

body.dark-mode .nav-menu a { color: #e6edf3; }
body.dark-mode .nav-menu a:hover { color: #58a6ff; }

body.dark-mode .azure-hour { background: #0d1117; }
body.dark-mode .communities-section { background: #161b22; }

body.dark-mode .community-card {
    background: #1c2128;
    border: 1px solid #30363d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .creators-section { background: #0d1117; }
body.dark-mode .creator-card {
    background: #1c2128;
    border: 1px solid #30363d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.dark-mode .creator-card h3 { color: #e6edf3; }
body.dark-mode .creator-photo { border-color: #30363d; }
body.dark-mode .creator-role {
    background: rgba(56, 139, 253, 0.2);
    color: #79c0ff;
}
body.dark-mode .creator-link { color: #79c0ff; }
body.dark-mode .creator-link:hover { color: #a5d6ff; }
body.dark-mode .creator-bio { color: #8b949e; }
body.dark-mode .contributors-callout {
    background: #1c2128;
    border: 1px solid #30363d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.dark-mode .contributors-callout-header i { color: #79c0ff; }
body.dark-mode .contributors-callout p { color: #8b949e; }

body.dark-mode .community-card table { border-color: #30363d; }
body.dark-mode .community-card th { background: #21262d; color: #8b949e; border-color: #30363d; }
body.dark-mode .community-card td { color: #c9d1d9; border-color: #30363d; }

body.dark-mode .hour-card {
    background: #1c2128;
    border: 1px solid #30363d;
    color: #e6edf3;
}

body.dark-mode .hour-card .info-note {
    background: rgba(56, 139, 253, 0.1);
    border-color: #1f6feb;
}

body.dark-mode .hour-card .info-note span { color: #8b949e; }
body.dark-mode .hour-card-purple { background: linear-gradient(135deg, #2d1b4e, #1c2128); }
body.dark-mode .why-join-banner { background: linear-gradient(135deg, #0d2137, #1a3a5c); }
body.dark-mode .calendar-section { background: #161b22; }
body.dark-mode .calendar-item { background: #1c2128; border: 1px solid #30363d; }
body.dark-mode .focus-hours { background: #1c2128; border: 1px solid #30363d; }
