/* === Base Reset & Variables === */
:root {
    --primary: #2d5a27;
    --primary-light: #4a8c3f;
    --primary-dark: #1a3d17;
    --accent: #d4a843;
    --accent-light: #f0d080;
    --bg: #f8f6f0;
    --bg-dark: #1a1f16;
    --text: #2c2c2c;
    --text-light: #f5f5f5;
    --text-muted: #6b7280;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mosquito-low: #4ade80;
    --mosquito-medium: #facc15;
    --mosquito-high: #f97316;
    --mosquito-extreme: #ef4444;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3d17 0%, #2d5a27 30%, #4a8c3f 70%, #6ab05a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-btn {
    display: inline-block;
    margin-top: 50px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.scroll-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* === Navigation === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.main-nav.visible {
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

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

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-mosquito {
    background: linear-gradient(180deg, #f0f7ed 0%, #e8f4e5 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light h2 {
    color: var(--text-light);
}

.section-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-dark .section-tag {
    background: rgba(255,255,255,0.15);
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #444;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card strong {
    color: var(--primary);
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: var(--card-shadow-hover);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

.image-placeholder span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* === Weather Section === */
.weather-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 24px;
}

.weather-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(10px);
}

.time-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.time-display {
    text-align: center;
    margin-bottom: 24px;
}

.time {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Inter', monospace;
    color: var(--accent-light);
    letter-spacing: 2px;
}

.date {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 8px;
}

.time-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-label {
    opacity: 0.7;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
}

.main-weather {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-icon {
    font-size: 5rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.weather-temp {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}

.weather-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 12px 0 24px;
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    gap: 32px;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.detail-icon {
    font-size: 1.5rem;
}

.forecast-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.forecast-item:hover {
    background: rgba(255,255,255,0.1);
}

.forecast-day {
    font-weight: 500;
    width: 100px;
}

.forecast-icon {
    font-size: 1.5rem;
}

.forecast-temp {
    font-weight: 600;
    width: 60px;
    text-align: right;
}

/* === Nature Gallery === */
.nature-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.gallery-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e8f4e5, #d4e8d0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-card.large .gallery-placeholder {
    height: 100%;
    min-height: 300px;
}

.gallery-emoji {
    font-size: 4rem;
    margin-bottom: 8px;
}

.gallery-placeholder p {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.gallery-caption {
    padding: 20px;
}

.gallery-caption h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.gallery-caption p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === Mosquito Section === */
.mosquito-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.mosquito-status-card,
.mosquito-chart-card,
.mosquito-tips-card,
.mosquito-factors-card,
.mosquito-log-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.mosquito-status-card {
    grid-column: span 2;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.status-header h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--mosquito-medium);
    color: #1a1a1a;
    animation: pulse 2s ease-in-out infinite;
}

.status-badge.low { background: var(--mosquito-low); }
.status-badge.medium { background: var(--mosquito-medium); }
.status-badge.high { background: var(--mosquito-high); color: white; }
.status-badge.extreme { background: var(--mosquito-extreme); color: white; }

.status-meter {
    margin-bottom: 24px;
}

.meter-track {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, 
        var(--mosquito-low) 0%, 
        var(--mosquito-medium) 33%, 
        var(--mosquito-high) 66%, 
        var(--mosquito-extreme) 100%
    );
    border-radius: 6px;
    overflow: visible;
}

.meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.meter-marker {
    position: absolute;
    top: -8px;
    width: 28px;
    height: 28px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: left 0.5s ease;
    z-index: 2;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-icon {
    font-size: 1.2rem;
}

.mosquito-chart-card h3,
.mosquito-tips-card h3,
.mosquito-factors-card h3,
.mosquito-log-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

#mosquitoChart {
    width: 100%;
    height: 200px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.low { background: var(--mosquito-low); }
.legend-color.medium { background: var(--mosquito-medium); }
.legend-color.high { background: var(--mosquito-high); }

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tip-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f0f7ed;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tip-item:hover {
    background: #e4f0df;
    transform: translateX(4px);
}

.tip-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.tip-item strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
}

.tip-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.factor {
    text-align: center;
    padding: 16px;
    background: #f8f6f0;
    border-radius: var(--radius-sm);
}

.factor-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.factor-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.factor-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.factor-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.factor-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.log-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.log-form select,
.log-form input {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.log-form select:focus,
.log-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.log-entries {
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f6f0;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

.log-entry .intensity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.log-entry .intensity-dot.level-1 { background: var(--mosquito-low); }
.log-entry .intensity-dot.level-2 { background: #a3e635; }
.log-entry .intensity-dot.level-3 { background: var(--mosquito-medium); }
.log-entry .intensity-dot.level-4 { background: var(--mosquito-high); }
.log-entry .intensity-dot.level-5 { background: var(--mosquito-extreme); }

.log-entry .log-text {
    flex: 1;
    font-size: 0.9rem;
}

.log-entry .log-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Contacts === */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* === Animations === */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .weather-grid {
        grid-template-columns: 1fr;
    }
    
    .nature-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .mosquito-dashboard {
        grid-template-columns: 1fr;
    }
    
    .mosquito-status-card {
        grid-column: span 1;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .nature-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-card.large {
        grid-column: span 1;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .log-form {
        flex-direction: column;
    }
}