/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    header {
        padding: 1rem;
        padding-top: calc(70px + 1rem);
    }
    
    .moon-container {
        width: 80px;
        height: 80px;
        margin: 1rem auto;
    }
    
    .current-conditions {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .forecast-container {
        margin: 1rem auto;
    }
}

/* Meteor Impacts Page Styles */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
}

.stat-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: #4a9eff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.impact-map-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.impact-map-container h2 {
    color: #4a9eff;
    margin-bottom: 2rem;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
}

.impact-map {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.moon-surface {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #333, #111);
    position: relative;
}

.impact-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 20px #ff4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.impact-timeline {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.impact-timeline h2 {
    color: #4a9eff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 3px solid #4a9eff;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.08);
}

.timeline-time {
    color: #4a9eff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    color: #ccc;
}

/* Solar Winds Page Styles */
.solar-status {
    text-align: center;
    margin: 2rem auto;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.status-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a9eff;
    box-shadow: 0 0 20px #4a9eff;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.solar-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.metric-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
}

.metric-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #4a9eff;
    margin-bottom: 1rem;
}

.metric-graph {
    height: 60px;
    background: rgba(74,158,255,0.1);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.solar-forecast {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.solar-forecast h2 {
    color: #4a9eff;
    margin-bottom: 2rem;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
}

.forecast-chart {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.radiation-warning {
    max-width: 800px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: rgba(255,165,0,0.1);
    border: 1px solid rgba(255,165,0,0.3);
    border-radius: 15px;
    text-align: center;
}

.radiation-warning h3 {
    color: #ffa500;
    margin-bottom: 1rem;
}

.radiation-warning p {
    color: #ccc;
}

.radiation-warning.active {
    background: rgba(255,0,0,0.1);
    border-color: rgba(255,0,0,0.3);
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* About Page Styles */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

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

.about-section h2 {
    color: #4a9eff;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
}

.about-section p {
    color: #ccc;
    line-height: 1.8;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 1rem;
}

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

.feature-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 10px 30px rgba(74,158,255,0.2);
}

.feature-card h3 {
    color: #4a9eff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-list {
    list-style: none;
    margin-top: 1rem;
}

.tech-list li {
    color: #ccc;
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.tech-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-size: 1.2rem;
}

.contact {
    text-align: center;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-email {
    font-size: 1.2rem;
    color: #4a9eff;
    margin-top: 1rem;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .impact-stats,
    .solar-metrics {
        grid-template-columns: 1fr;
    }
    
    .impact-map {
        height: 250px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a9eff;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #4a9eff;
}

.nav-link.active {
    color: #4a9eff;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0,0,0,0.98);
        flex-direction: column;
        justify-content: start;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
}

/* Animated starfield background */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Header */
header {
    text-align: center;
    padding: 2rem 1rem;
    padding-top: calc(70px + 2rem); /* Account for fixed navbar */
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #4a9eff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px #4a9eff); }
    to { filter: drop-shadow(0 0 20px #00ffff); }
}

.subtitle {
    color: #aaa;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 1rem;
}

/* Moon phase display */
.moon-container {
    width: clamp(100px, 20vw, 150px);
    height: clamp(100px, 20vw, 150px);
    margin: 2rem auto;
    position: relative;
}

.moon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f0f0f0, #888);
    box-shadow: 0 0 50px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.moon-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    transition: transform 0.5s ease;
}

/* Current conditions */
.current-conditions {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
}

.current-conditions h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

.current-temp {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: bold;
    margin: 1rem 0;
    background: linear-gradient(180deg, #fff, #4a9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temp-range {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 5vw, 2rem);
    margin: 1rem 0;
    flex-wrap: wrap;
}

.temp-item {
    text-align: center;
    min-width: 80px;
}

.temp-label {
    color: #888;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.temp-value {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
}

#moonPhase {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #aaa;
}

/* Forecast grid */
.forecast-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.forecast-container h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    margin-bottom: 1.5rem;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-top: 2rem;
}

/* Mobile: 2 columns for very small screens */
@media (max-width: 360px) {
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 3-4 columns */
@media (min-width: 361px) and (max-width: 768px) {
    .forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

.forecast-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.forecast-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74,158,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forecast-card:hover,
.forecast-card:active {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 10px 30px rgba(74,158,255,0.3);
}

.forecast-card:hover::before,
.forecast-card:active::before {
    opacity: 1;
}

.day-name {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 0.5rem;
    color: #4a9eff;
}

.day-moon {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    margin: 0.5rem auto;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f0f0f0, #888);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    overflow: hidden;
}

.day-moon-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    transition: transform 0.5s ease;
}

.day-phase {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    color: #888;
    margin-bottom: 0.5rem;
}

.day-temp {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    margin: 0.5rem 0;
}

.day-range {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #888;
}

/* Info section */
.info-section {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    width: 90%;
}

.info-section h2 {
    color: #4a9eff;
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.info-section p {
    line-height: 1.6;
    color: #ccc;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Loading animation */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    margin-top: 1rem;
    color: #aaa;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .forecast-card:active {
        transform: scale(0.98);
    }
    
    .forecast-card::before {
        display: none;
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    header {
        padding: 1rem;
    }
    
    .moon-container {
        width: 80px;
        height: 80px;
        margin: 1rem auto;
    }
    
    .current-conditions {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .forecast-container {
        margin: 1rem auto;
    }
}