@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #05050a;
    --bg-card: rgba(12, 12, 30, 0.6);
    --bg-card-hover: rgba(20, 20, 45, 0.8);
    --border-color: rgba(124, 58, 237, 0.15);
    --border-hover: rgba(6, 182, 212, 0.4);
    
    --color-violet: #7c3aed;
    --color-teal: #06b6d4;
    --color-green: #10b981;
    --color-pink: #ec4899;
    
    --text-primary: #f9fafb;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glow-violet: 0 0 20px rgba(124, 58, 237, 0.3);
    --glow-teal: 0 0 20px rgba(6, 182, 212, 0.3);
    --glow-green: 0 0 25px rgba(16, 185, 129, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background elements */
.radial-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: radial-gradient(circle at 50% 50%, #0d0c26 0%, #05050a 100%);
}

.aurora-glow-1 {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -9;
}

.aurora-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -9;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    font-weight: 300;
}

.text-gradient-violet {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-teal {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-rainbow {
    background: linear-gradient(135deg, #22d3ee 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

section {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-teal);
    border-radius: 50%;
    box-shadow: var(--glow-teal);
    animation: pulse-glow 2s infinite alternate;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Glassmorphism Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-green);
    color: #05050a;
    border: none;
    box-shadow: var(--glow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: var(--glow-teal);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Interactive Network in Hero */
.hero-canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

.hero-static-art {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.core-sphere {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #a78bfa 0%, #7c3aed 100%);
    border-radius: 50%;
    box-shadow: var(--glow-violet), inset -10px -10px 20px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.outer-ring-1 {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px dashed rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.outer-ring-2 {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 50%;
    animation: rotate-reverse 25s linear infinite;
}

.orbit-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
}

.dot-teal {
    background: var(--color-teal);
    box-shadow: var(--glow-teal);
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dot-pink {
    background: var(--color-pink);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
    bottom: 40px;
    right: 30px;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.problem-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.problem-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.problem-chart-container {
    height: 350px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.chart-area {
    flex-grow: 1;
    position: relative;
    border-left: 2px solid rgba(255,255,255,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-end;
}

.chart-axis-y {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-axis-x {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Theory Section */
.theory-header {
    text-align: center;
    margin-bottom: 5rem;
}

.theory-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.theory-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.theory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.theory-card {
    padding: 3rem 2rem;
    text-align: center;
}

.theory-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--color-violet);
    font-size: 2rem;
}

.theory-card:nth-child(2) .theory-icon {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-teal);
}

.theory-card:nth-child(3) .theory-icon {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--color-pink);
}

.theory-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.theory-card p {
    font-size: 0.95rem;
}

/* Experiment Section */
.exp-grid {
    display: grid;
    grid-template-columns: 0.90fr 1.10fr;
    gap: 4rem;
    align-items: center;
}

.exp-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.exp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
}

.exp-map {
    position: relative;
    height: 400px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg {
    width: 85%;
    height: 85%;
    opacity: 0.2;
}

.map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--color-teal);
    border-radius: 50%;
    cursor: pointer;
}

.map-marker::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-teal);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.marker-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5,5,10,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-marker:hover .marker-label {
    opacity: 1;
}

/* Interactive Simulator (IEP) */
#simulator {
    background: linear-gradient(180deg, rgba(5,5,10,0) 0%, rgba(12, 12, 30, 0.4) 50%, rgba(5,5,10,0) 100%);
}

.sim-container {
    max-width: 800px;
    margin: 0 auto;
}

.sim-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sim-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sim-card {
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.sim-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-violet) 0%, var(--color-teal) 100%);
    width: 0%;
    transition: width 0.4s ease;
}

.sim-step {
    display: none;
}

.sim-step.active {
    display: block;
    animation: fade-in 0.4s ease;
}

.question-num {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.sim-question {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.35;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-align: left;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.3);
    padding-left: 2.5rem;
}

.option-btn.selected {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--color-violet);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.results-left {
    text-align: center;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
}

.score-circle-svg {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}

.score-circle-svg circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 546;
    stroke-dashoffset: 546;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.results-right h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.results-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Funding Milestones Section */
.milestones-container {
    margin-top: 5rem;
    position: relative;
}

.milestones-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    transform: translateY(-50%);
}

.milestones-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-violet) 0%, var(--color-teal) 50%, var(--color-green) 100%);
    width: 25%;
    z-index: 2;
    transform: translateY(-50%);
    transition: width 1s ease;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 3;
}

.milestone-node {
    background: #05050a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.milestone-node.completed {
    border-color: var(--color-violet);
}

.milestone-node.active {
    border-color: var(--color-teal);
    box-shadow: var(--glow-teal);
}

.node-bullet {
    width: 24px;
    height: 24px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.milestone-node.completed .node-bullet {
    border-color: var(--color-violet);
    background: var(--color-violet);
}

.milestone-node.active .node-bullet {
    border-color: var(--color-teal);
    background: var(--color-teal);
}

.milestone-node.completed .node-bullet::after,
.milestone-node.active .node-bullet::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.node-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.node-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.node-desc {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Donation Widget Section */
.donation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.donation-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.donation-progress-panel {
    margin: 2.5rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-violet) 0%, var(--color-teal) 100%);
    width: 22.5%; /* $45,000 / $200,000 */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(6,182,212,0.3);
}

.progress-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.donation-widget {
    padding: 3rem;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Slider Design */
.slider-container {
    margin-bottom: 2.5rem;
}

.donation-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.donation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: var(--glow-teal);
    border: 2px solid #fff;
    transition: transform 0.1s ease;
}

.donation-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.amount-display {
    text-align: center;
    margin-bottom: 2rem;
}

.amount-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-teal);
    text-shadow: var(--glow-teal);
}

.impact-display {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 120px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.impact-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Credibility & ESG Section */
.credibility-header {
    text-align: center;
    margin-bottom: 5rem;
}

.credibility-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.credibility-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: flex-start;
}

.esg-panel {
    padding: 3rem;
}

.esg-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.esg-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.esg-item {
    display: flex;
    gap: 1.5rem;
}

.esg-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    flex-shrink: 0;
}

.esg-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.board-panel {
    padding: 3rem;
}

.board-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.board-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.board-member {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-violet) 0%, var(--color-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: var(--glow-violet);
}

.member-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.member-info p {
    font-size: 0.85rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    background: #0d0c1e;
    border: 1px solid var(--color-violet);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8), var(--glow-violet);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.form-control {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-teal);
    background: rgba(6, 182, 212, 0.05);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Success State in Modal */
.modal-success {
    display: none;
    text-align: center;
    animation: fade-in 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-green);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: var(--glow-green);
    position: relative;
}

.modal-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Confetti effect */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confetti-fall 2s linear infinite;
    pointer-events: none;
    top: -10px;
}

/* Footer */
footer {
    background: #020205;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    }
    100% {
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.8);
    }
}

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

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(350px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Web Design */
@media (max-width: 992px) {
    .hero-grid, .problem-grid, .donation-grid, .credibility-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .theory-grid {
        grid-template-columns: 1fr;
    }
    
    .milestones-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .milestones-line, .milestones-progress {
        display: none;
    }
    
    section {
        padding: 5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .milestones-grid {
        grid-template-columns: 1fr;
    }
    
    .sim-card {
        padding: 2rem 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-widget {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
