:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --danger: #ff6b6b;
    --warning: #feca57;
    --success: #48dbfb;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

#lightning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: opacity 0.1s ease;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-icon {
    font-size: 2rem;
    animation: pulse-glow 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 600px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

.btn.primary.glow {
    animation: btnGlow 2s ease-in-out infinite alternate;
}

.btn.secondary {
    background: var(--glass);
    color: white;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.alerts-demo {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.alerts-demo h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: white;
    font-weight: 700;
}

.alert-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alert-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: alertPulse 3s ease-in-out infinite;
}

.alert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.alert-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

.alert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.alert-emoji {
    font-size: 2rem;
}

.severity {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.severity.high {
    background: var(--danger);
    color: white;
    animation: pulse-danger 1.5s infinite;
}

.severity.medium {
    background: var(--warning);
    color: var(--dark);
}

.severity.low {
    background: var(--success);
    color: white;
}

.alert-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.alert-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.alert-time {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.features {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: white;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover .feature-bg {
    opacity: 0.1;
}

.download {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.1);
}

.download .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.phone-mockup {
    display: flex;
    justify-content: center;
}

.phone {
    width: 340px;
    height: 600px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: phoneFloat 4s ease-in-out infinite;
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    padding: 2rem 1.5rem;
    color: white;
}

.status-bar {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.app-header {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.weather-display {
    text-align: center;
}

.main-temp {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.weather-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.forecast-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.forecast-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.download-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.download-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.store-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.store-btn:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-btn img {
    width: 30px;
    height: 30px;
}

footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

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

/* Animations */
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px var(--accent); }
    50% { text-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent); }
}

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

@keyframes textGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

@keyframes btnGlow {
    0% { box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4); }
    100% { box-shadow: 0 15px 40px rgba(240, 147, 251, 0.8); }
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes shimmer {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .download .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .phone-mockup {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .alert-types {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .phone {
        width: 280px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}

/* Add these styles to your existing CSS */

.earthquake-app {
    padding: 1rem;
    font-size: 0.9rem;
    background: #1a1a1a;
    color: white;
    height: 100%;
    overflow-y: auto;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.settings-icon {
    font-size: 1.1rem;
}

.quick-stats h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
}

.blue { color: #4A90E2; }
.red { color: #E74C3C; }
.orange { color: #F39C12; }
.yellow { color: #F1C40F; }
.green { color: #27AE60; }

.last-updated {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.5rem;
}

.map-container {
    margin: 1rem 0;
    height: 200px;
    position: relative;
}

.map-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.magnitude-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.6rem;
    color: #333;
}

.legend-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.1rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.red { background: #E74C3C; }
.legend-dot.orange { background: #F39C12; }
.legend-dot.yellow { background: #F1C40F; }
.legend-dot.green { background: #27AE60; }

.earthquake-point {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnitude-marker {
    background: #F39C12;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    position: relative;
}

.ripple {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid #F39C12;
    border-radius: 50%;
    animation: ripple 2s infinite;
    opacity: 0.6;
}

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

.focused-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
}

.focused-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.focused-location {
    margin-bottom: 0.1rem;
}

.focused-coords {
    color: #888;
    font-size: 0.6rem;
}

.recent-section {
    margin-top: 1rem;
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.view-all {
    color: #4A90E2;
    font-size: 0.8rem;
}

.earthquake-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.earthquake-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.magnitude-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: #27AE60;
    flex-shrink: 0;
}

.earthquake-details {
    flex: 1;
}

.earthquake-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.earthquake-info {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.1rem;
}

.earthquake-type {
    font-size: 0.6rem;
    color: #27AE60;
}

.earthquake-menu {
    color: #888;
    font-size: 1rem;
    cursor: pointer;
}

/* Responsive adjustments for phone */
@media (max-width: 480px) {
    .phone {
        width: 250px;
        height: 500px;
    }
    
    .earthquake-app {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .map-container {
        height: 150px;
    }
}