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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-light: #f5f5f5;
    --text-dark: #333;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f8f9fa;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio for height */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

/* Fallback for browsers that don't support iframe video backgrounds */
@supports not (object-fit: cover) {
    .hero-video {
        width: 100%;
        height: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Countdown Timer */
.countdown-container {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem 2.5rem;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.countdown-value {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    font-weight: 400;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(233, 69, 96, 0.1);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Map Section */
.map-section {
    background: white;
}

.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}

.eclipse-map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.map-info {
    margin-top: 3rem;
}

.map-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.location-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.location-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.location-card p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* Viewing Section */
.viewing-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.viewing-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.viewing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.viewing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.viewing-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    grid-column: 1 / -1;
}

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

.card-icon .card-image {
    font-size: 0;
    margin-bottom: 0;
}

.card-image {
    width: calc(100% + 5rem);
    max-width: calc(100% + 5rem);
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    display: block;
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
}

.viewing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.viewing-card.warning h3 {
    color: white;
}

.viewing-card p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.viewing-card.warning p {
    color: rgba(255, 255, 255, 0.95);
}

.calendar-download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.calendar-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Gear Section */
.gear-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.gear-featured {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.12) 0%, rgba(102, 126, 234, 0.12) 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(233, 69, 96, 0.35);
}

.gear-featured-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
}

.gear-featured-main {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    text-decoration: none;
    color: var(--text-dark);
}

.gear-featured-media {
    flex: 0 0 140px;
}

.gear-featured-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    object-fit: cover;
}

.gear-featured-content {
    display: flex;
    flex-direction: column;
}

.gear-featured-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gear-featured-text {
    font-size: 0.95rem;
    color: #444;
    max-width: 600px;
}

.gear-featured-cta {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

@media (max-width: 640px) {
    .gear-featured-main {
        flex-direction: column;
    }

    .gear-featured-media {
        flex: 0 0 auto;
        max-width: 200px;
    }
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.gear-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.gear-category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gear-category-icon {
    font-size: 1.75rem;
}

.gear-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gear-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.gear-item:hover {
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.15);
}

.gear-item-label {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
}

.gear-item-cta {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.gear-item:hover .gear-item-cta {
    transform: translateX(4px);
}

.gear-item {
    position: relative;
}

.gear-item-featured {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-color: rgba(233, 69, 96, 0.3);
    padding-top: 2rem;
}

.gear-item-featured:hover {
    border-color: var(--accent-color);
}

.gear-item-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .gear-item {
        flex-wrap: wrap;
    }
    .gear-item-cta {
        width: 100%;
        margin-top: 0.25rem;
    }
}

/* Science Section */
.science-section {
    background: white;
}

.science-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.eclipse-diagram-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.science-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.science-text h3:first-child {
    margin-top: 0;
}

.science-text p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.science-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.eclipse-diagram {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.eclipse-diagram .sun {
    font-size: 4rem;
    position: absolute;
    left: 10%;
    animation: pulse 3s infinite;
}

.eclipse-diagram .moon {
    font-size: 3.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.eclipse-diagram .earth {
    font-size: 3rem;
    position: absolute;
    right: 10%;
}

.shadow-path {
    position: absolute;
    left: 45%;
    top: 20%;
    bottom: 20%;
    width: 10%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
    border-radius: 5px;
}

.diagram-labels {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* History Section */
.history-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.history-section .section-title {
    color: white;
}

.history-timeline {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
    padding-left: 3rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    line-height: 1.8;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

.footer-note {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1.5rem 1.5rem;
        min-width: 100px;
    }
    
    .science-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .eclipse-diagram {
        height: 300px;
    }
    
    .history-timeline {
        padding-left: 2rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .sticky-nav {
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .nav-link {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 1rem 1rem;
        min-width: 80px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

