/* ============================================
   RENEWABLE ENERGY — STYLE SYSTEM
   Premium dark theme with green/teal accents
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Base palette */
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #162032;
    --bg-surface: #0f1520;
    --bg-glass: rgba(17, 24, 39, 0.65);
    --bg-glass-border: rgba(56, 239, 176, 0.12);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38efb0;

    /* Accents */
    --accent-green: #38efb0;
    --accent-teal: #2dd4bf;
    --accent-cyan: #22d3ee;
    --accent-emerald: #34d399;
    --accent-lime: #a3e635;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #38efb0 0%, #22d3ee 50%, #818cf8 100%);
    --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(15, 21, 32, 0.95) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10, 14, 23, 0) 0%, rgba(10, 14, 23, 0.6) 50%, rgba(10, 14, 23, 1) 100%);

    /* Shadows & Glows */
    --glow-green: 0 0 30px rgba(56, 239, 176, 0.15);
    --glow-teal: 0 0 30px rgba(45, 212, 191, 0.15);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.4);

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-teal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

strong { color: var(--text-primary); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 239, 176, 0.08);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary) !important;
}

.logo-icon {
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 8px rgba(56, 239, 176, 0.5));
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-base);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-prefix, .stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(56, 239, 176, 0.3), transparent);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: #0a0e17 !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 0 30px rgba(56, 239, 176, 0.25);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(56, 239, 176, 0.35);
    color: #0a0e17 !important;
}

.hero-cta svg {
    animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Animate In (hero content) --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.2s; }
.animate-in:nth-child(2) { animation-delay: 0.4s; }
.animate-in:nth-child(3) { animation-delay: 0.6s; }
.animate-in:nth-child(4) { animation-delay: 0.8s; }
.animate-in:nth-child(5) { animation-delay: 1.0s; }

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

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Overview Section --- */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.overview-text .lead-text {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.overview-text p {
    margin-bottom: 16px;
}

.overview-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--gradient-card);
    border: 1px solid rgba(56, 239, 176, 0.08);
    border-radius: 16px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.highlight-card:hover {
    border-color: rgba(56, 239, 176, 0.2);
    box-shadow: var(--glow-green);
}

.highlight-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 239, 176, 0.08);
    border-radius: 12px;
}

.highlight-content h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.highlight-content p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Energy Types Section --- */
.section-types {
    background: var(--bg-surface);
}

.types-showcase-img {
    text-align: center;
    margin-bottom: 48px;
}

.types-icon-strip {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
}

.energy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.energy-card {
    position: relative;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid rgba(56, 239, 176, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.energy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(56, 239, 176, 0.15);
}

.card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.12;
    transition: opacity var(--transition-base);
}

.energy-card:hover .card-glow { opacity: 0.25; }

.card-glow-solar { background: #fbbf24; }
.card-glow-wind { background: #22d3ee; }
.card-glow-hydro { background: #3b82f6; }
.card-glow-geothermal { background: #ef4444; }
.card-glow-biomass { background: #34d399; }

.card-icon {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.energy-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(56, 239, 176, 0.06);
    border-radius: 10px;
    flex-wrap: wrap;
}

.card-stat-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
}

.card-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.energy-card p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-facts li {
    position: relative;
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-facts li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 600;
}

/* --- Global Impact Section --- */
.impact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
    align-items: center;
}

.impact-image {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.impact-metrics {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--gradient-card);
    border: 1px solid rgba(56, 239, 176, 0.06);
    border-radius: 16px;
    transition: border-color var(--transition-base);
}

.metric-card:hover {
    border-color: rgba(56, 239, 176, 0.15);
}

.metric-ring {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.metric-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.metric-bg {
    fill: none;
    stroke: rgba(56, 239, 176, 0.08);
    stroke-width: 6;
}

.metric-fill {
    fill: none;
    stroke: url(#metricGradient);
    stroke: var(--accent-green);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: calc(264 - (264 * var(--percent, 0)) / 100);
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.metric-card p {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Region Bars */
.impact-regions {
    padding: 48px;
    background: var(--gradient-card);
    border: 1px solid rgba(56, 239, 176, 0.06);
    border-radius: 20px;
}

.impact-regions-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-primary);
}

.region-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.region-bar {
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    align-items: center;
    gap: 16px;
}

.region-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.bar-track {
    height: 18px;
    background: rgba(56, 239, 176, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: var(--bar-color, var(--accent-green));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(90deg, var(--bar-color, var(--accent-green)), var(--accent-teal));
}

.bar-fill.animated {
    width: calc(var(--target-width, 0) * 1%);
}

.region-value {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* --- Benefits Section --- */
.section-benefits {
    background: var(--bg-surface);
}

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

.benefit-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid rgba(56, 239, 176, 0.06);
    border-radius: 20px;
    position: relative;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 239, 176, 0.15);
    box-shadow: var(--glow-green);
}

.benefit-icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 239, 176, 0.06);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: background var(--transition-base);
}

.benefit-card:hover .benefit-icon-wrap {
    background: rgba(56, 239, 176, 0.12);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.benefit-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-green);
    background: rgba(56, 239, 176, 0.08);
}

/* --- Innovation Section --- */
.innovation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.innovation-image {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 100px;
}

.innovation-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.innovation-card {
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid rgba(56, 239, 176, 0.06);
    border-radius: 16px;
    position: relative;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.innovation-card:hover {
    border-color: rgba(56, 239, 176, 0.15);
    box-shadow: var(--glow-green);
}

.innovation-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(56, 239, 176, 0.08);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.innovation-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.innovation-card p {
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- Action Section --- */
.section-action {
    background: var(--bg-surface);
}

.action-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.action-column {
    padding: 40px 36px;
    background: var(--bg-card);
    border: 1px solid rgba(56, 239, 176, 0.06);
    border-radius: 20px;
}

.action-column-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(56, 239, 176, 0.08);
}

.action-column-icon {
    display: flex;
    align-items: center;
}

.action-column h3 {
    font-size: 1.3rem;
}

.action-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-list li {
    display: flex;
    gap: 14px;
}

.action-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 239, 176, 0.1);
    color: var(--accent-green);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.action-list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.action-list p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    padding: 80px 0 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(56, 239, 176, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.7;
}

.footer-logo {
    margin-bottom: 4px;
}

.footer-links-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }

    .overview-grid,
    .impact-layout,
    .innovation-layout,
    .action-columns {
        grid-template-columns: 1fr;
    }

    .innovation-image {
        position: static;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 64px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 14, 23, 0.97);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(56, 239, 176, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .energy-cards {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .region-bar {
        grid-template-columns: 100px 1fr 80px;
        gap: 10px;
    }

    .region-label {
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .impact-regions {
        padding: 28px 20px;
    }

    .action-column {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .region-bar {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .region-label {
        text-align: left;
    }
}
