:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #81C784;
    --text-color: #ffffff;
    --light-text: #a0a0a0;
    --background-color: #1a1a1a;
    --card-background: #242424;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    
    /* AQI Colors */
    --aqi-good: #00e400;
    --aqi-moderate: #ffff00;
    --aqi-sensitive: #ff7e00;
    --aqi-unhealthy: #ff0000;
    --aqi-very-unhealthy: #8f3f97;
    --aqi-hazardous: #7e0023;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--card-background);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background-image: url('assets/hero-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(26, 26, 26, 0.85) 50%,
        rgba(26, 26, 26, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-image {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    animation: fadeIn 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color-light);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* Enhanced CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Features Section Animation */
.features {
    padding: 5rem 2rem;
    background-color: var(--card-background);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.features.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Add animation delays for staggered appearance */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 2rem;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* Dashboard Layout */
.dashboard-preview {
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    height: calc(100vh - 200px);
}

.dashboard-card {
    background: linear-gradient(145deg, #222222, #1d1d1d);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Main Panel (Left Side) */
.main-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Info Panel (Right Side) */
.info-panel {
    display: flex;
    flex-direction: column;
}

.info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-background);
}

/* AQI Display */
.aqi-display {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.aqi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff4d7c;
    font-size: 0.9rem;
    font-weight: 500;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #ff4d7c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 124, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 77, 124, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 124, 0);
    }
}

.aqi-status-container {
    text-align: right;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.aqi-status {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.3rem;
    color: #ff4d7c;
}

.aqi-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.aqi-value {
    font-size: 4rem;
    font-weight: 700;
    color: #ff4d7c;
    line-height: 1;
}

.pm-values {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pm-item {
    text-align: right;
    color: #a0a0a0;
}

.pm-label {
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.pm-value {
    color: #ffffff;
    font-weight: 500;
}

.aqi-scale-container {
    position: relative;
    padding-top: 1rem;
}

.aqi-gradient-bar {
    height: 8px;
    background: linear-gradient(to right,
        #00e400 0%,      /* Good */
        #ffff00 20%,     /* Moderate */
        #ff7e00 40%,     /* Poor */
        #ff0000 60%,     /* Unhealthy */
        #8f3f97 80%,     /* Severe */
        #7e0023 100%     /* Hazardous */
    );
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.aqi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-bottom: 0.3rem;
}

.aqi-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #ffffff;
}

/* Status Colors */
.status-good { color: #00e400; }
.status-moderate { color: #ffff00; }
.status-poor { color: #ff7e00; }
.status-unhealthy { color: #ff0000; }
.status-severe { color: #8f3f97; }
.status-hazardous { color: #7e0023; }

/* Value Colors */
.value-good { color: #00e400; }
.value-moderate { color: #ffff00; }
.value-poor { color: #ff7e00; }
.value-unhealthy { color: #ff0000; }
.value-severe { color: #8f3f97; }
.value-hazardous { color: #7e0023; }

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.metric-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.metric-label {
    color: #9e9e9e;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    line-height: 1;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.metric-value .number {
    color: #69f0ae;
    font-size: 2.4rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.metric-value .unit {
    color: #757575;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0.3rem;
    font-family: 'Poppins', sans-serif;
    text-transform: lowercase;
}

/* Regular cards specific styling */
.metric-card:not(.co-card):not(.co2-card) {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
}

.metric-card:not(.co-card):not(.co2-card) .metric-value .number {
    color: #69f0ae;
    font-size: 2.2rem;
}

.metric-card:not(.co-card):not(.co2-card):hover {
    background: linear-gradient(145deg, #2d2d2d, #222222);
}

/* CO and CO2 specific styling */
.co-card,
.co2-card {
    grid-column: span 1;
    background: linear-gradient(145deg, #1a2827, #162322);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.co-card .metric-label,
.co2-card .metric-label {
    color: #bdbdbd;
    font-weight: 600;
}

.co-card .metric-value .number,
.co2-card .metric-value .number {
    color: #64ffda;
    font-size: 2.6rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    letter-spacing: -1px;
}

.co-card .unit,
.co2-card .unit {
    color: #90a4ae;
    font-size: 1.1rem;
    font-weight: 500;
    margin-left: 0.4rem;
    opacity: 0.9;
}

.co-card:hover,
.co2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    background: linear-gradient(145deg, #1c2e2d, #182726);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .metric-value .number {
        font-size: 2rem;
    }

    .co-card .metric-value .number,
    .co2-card .metric-value .number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 1.5rem;
        min-height: 100px;
    }

    .co-card,
    .co2-card {
        grid-column: 1;
    }

    .metric-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .metric-value .number {
        font-size: 1.8rem;
    }

    .co-card .metric-value .number,
    .co2-card .metric-value .number {
        font-size: 2rem;
    }

    .metric-value .unit {
        font-size: 0.9rem;
    }
}

/* Recommendations Section */
.recommendations {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 12px;
    padding: 1.5rem;
}

.recommendations h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plant-card {
    background: linear-gradient(145deg, #1a1a1a, #242424);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.plant-card:hover {
    transform: translateY(-5px);
}

.plant-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.plant-details {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.plant-metrics {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--accent-color);
    display: flex;
    justify-content: space-between;
}

/* Prediction Info */
.prediction-info {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.prediction-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prediction-item {
    background: linear-gradient(145deg, #1a1a1a, #242424);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prediction-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.prediction-item .pollutant {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 1rem;
    min-width: 100px;
    font-size: 1.1rem;
}

.prediction-item .prediction-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.prediction-item .prediction-text strong {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.prediction-item .warning {
    color: #ff6b6b;
}

/* Add icons for different pollutants */
.prediction-item[data-pollutant="Alcohols"]::before {
    content: "🧪";
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.prediction-item[data-pollutant="Ammonia"]::before {
    content: "💨";
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.prediction-item[data-pollutant="Benzene"]::before {
    content: "⚗️";
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.prediction-item[data-pollutant="CO"]::before {
    content: "🌫️";
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.prediction-item[data-pollutant="CO2"]::before {
    content: "☁️";
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Scrollbar Styling */
.info-container::-webkit-scrollbar {
    width: 6px;
}

.info-container::-webkit-scrollbar-track {
    background: var(--card-background);
}

.info-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Buttons */
.cta-button,
.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover,
.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 80px 20px;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .feature-grid,
    .steps,
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .aqi-gauge {
        height: 200px;
    }
    
    .aqi-gauge-fill {
        width: 100%;
    }
    
    .aqi-value {
        font-size: 1.5rem;
    }

    .prediction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .prediction-item .pollutant {
        margin-right: 0;
        margin-bottom: 0.3rem;
    }

    .metric-card {
        padding: 1.5rem;
        min-height: 100px;
    }

    .co-card,
    .co2-card {
        grid-column: 1;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .metric-label {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .co-card .metric-value .number,
    .co2-card .metric-value .number {
        font-size: 2rem;
    }

    .co-card .unit,
    .co2-card .unit {
        font-size: 1rem;
    }
} 