/* Parrot Project - Community Environmental IoT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --forest-dark: #0d1f0d;
    --forest-green: #1a472a;
    --leaf-green: #2d5a27;
    --accent-lime: #84cc16;
    --accent-teal: #14b8a6;
    --accent-orange: #f97316;
    --sky-blue: #0ea5e9;
    --earth-brown: #78716c;
    --text-light: #f0fdf4;
    --text-muted: #a3e635;
    --bg-card: rgba(26, 71, 42, 0.6);
    --glow-green: 0 0 30px rgba(132, 204, 22, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--forest-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated Background */
.parrot-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(45, 90, 39, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 184, 166, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(132, 204, 22, 0.1) 0%, transparent 70%),
        var(--forest-dark);
}

.floating-leaves {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--leaf-green);
    border-radius: 0 50% 50% 50%;
    opacity: 0.1;
    animation: fallLeaf 20s infinite linear;
}

@keyframes fallLeaf {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Navigation */
.parrot-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(13, 31, 13, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(132, 204, 22, 0.1);
}

.parrot-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.parrot-icon {
    width: 50px;
    height: 50px;
    position: relative;
}

.parrot-icon svg {
    width: 100%;
    height: 100%;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-lime);
}

.logo-content span {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent-lime);
}

.nav-join {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-teal));
    color: var(--forest-dark);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-join:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
}

/* Hero Section */
.hero-parrot {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 50px 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.hero-content h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(240, 253, 244, 0.8);
    margin-bottom: 35px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-teal));
    color: var(--forest-dark);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-green);
}

.btn-outline {
    padding: 16px 36px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(132, 204, 22, 0.3);
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent-lime);
    background: rgba(132, 204, 22, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.device-mockup {
    position: absolute;
    width: 280px;
    height: 380px;
    background: linear-gradient(145deg, #1e3a2e, #152a1f);
    border-radius: 25px;
    border: 3px solid rgba(132, 204, 22, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.device-mockup.main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.device-mockup.secondary {
    top: 10%;
    left: 10%;
    transform: scale(0.8);
    opacity: 0.6;
}

.device-screen {
    padding: 20px;
    height: 100%;
}

.device-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(132, 204, 22, 0.2);
}

.device-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-lime);
    animation: pulse 2s infinite;
}

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

.device-name {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.device-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.metric-icon {
    width: 30px;
    height: 30px;
    background: rgba(132, 204, 22, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-lime);
    fill: none;
}

.metric-value {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Mission Section */
.mission-section {
    padding: 100px 50px;
    background: linear-gradient(180deg, transparent, rgba(26, 71, 42, 0.3));
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: rgba(240, 253, 244, 0.7);
    max-width: 700px;
    margin: 0 auto 60px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(132, 204, 22, 0.1);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    border-color: rgba(132, 204, 22, 0.3);
    box-shadow: var(--glow-green);
}

.mission-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.2), rgba(20, 184, 166, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--accent-lime);
    fill: none;
}

.mission-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.mission-card p {
    font-size: 0.95rem;
    color: rgba(240, 253, 244, 0.7);
    line-height: 1.8;
}

/* Device Section */
.device-section {
    padding: 100px 50px;
}

.device-showcase {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.device-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.device-info > p {
    font-size: 1.05rem;
    color: rgba(240, 253, 244, 0.7);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(132, 204, 22, 0.1);
}

.feature-list li svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-lime);
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-list li strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.feature-list li span {
    font-size: 0.9rem;
    color: rgba(240, 253, 244, 0.6);
}

.device-diagram {
    background: linear-gradient(145deg, rgba(26, 71, 42, 0.6), rgba(13, 31, 13, 0.8));
    border-radius: 30px;
    padding: 50px;
    border: 1px solid rgba(132, 204, 22, 0.1);
    position: relative;
}

.device-diagram::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px dashed rgba(132, 204, 22, 0.2);
    border-radius: 20px;
    pointer-events: none;
}

.diagram-center {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1e3a2e, #152a1f);
    border-radius: 20px;
    border: 3px solid var(--accent-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--glow-green);
}

.diagram-center svg {
    width: 80px;
    height: 80px;
    stroke: var(--accent-lime);
    fill: none;
}

.sensor-ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sensor-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(132, 204, 22, 0.1);
    border: 2px solid var(--accent-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sensor-node svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-lime);
    fill: none;
}

.sensor-node.temp { top: -80px; left: 50%; transform: translateX(-50%); }
.sensor-node.humidity { bottom: -80px; left: 50%; transform: translateX(-50%); }
.sensor-node.air { left: -80px; top: 50%; transform: translateY(-50%); }
.sensor-node.solar { right: -80px; top: 50%; transform: translateY(-50%); }

/* Map Section */
.map-section {
    padding: 100px 50px;
    background: linear-gradient(180deg, transparent, rgba(26, 71, 42, 0.3));
}

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

.map-visual {
    background: linear-gradient(145deg, rgba(26, 71, 42, 0.4), rgba(13, 31, 13, 0.6));
    border-radius: 30px;
    padding: 40px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.australia-map {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.australia-outline {
    fill: rgba(132, 204, 22, 0.1);
    stroke: var(--accent-lime);
    stroke-width: 2;
}

.map-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-lime);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
}

.map-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-lime);
    border-radius: 50%;
    animation: mapRipple 2s infinite;
}

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

@keyframes mapRipple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(240, 253, 244, 0.7);
}

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

.legend-dot.active { background: var(--accent-lime); }
.legend-dot.planned { background: var(--accent-teal); }
.legend-dot.proposed { background: var(--accent-orange); }

/* Community Section */
.community-section {
    padding: 100px 50px;
}

.community-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.community-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(132, 204, 22, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    border-color: var(--accent-lime);
    transform: translateY(-5px);
}

.community-card .number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.community-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.community-card p {
    font-size: 0.9rem;
    color: rgba(240, 253, 244, 0.6);
}

/* CTA Section */
.cta-section {
    padding: 100px 50px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(132, 204, 22, 0.05));
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(240, 253, 244, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Footer */
.parrot-footer {
    padding: 60px 50px 30px;
    background: rgba(13, 31, 13, 0.95);
    border-top: 1px solid rgba(132, 204, 22, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-lime);
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(240, 253, 244, 0.6);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(240, 253, 244, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-lime);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(240, 253, 244, 0.4);
}

.footer-bottom a {
    color: var(--accent-lime);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .device-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .parrot-nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-parrot {
        padding: 140px 20px 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mission-section,
    .device-section,
    .map-section,
    .community-section,
    .cta-section {
        padding: 60px 20px;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .device-diagram {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}