/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Green Palette */
    --primary-green: #10b981;
    --primary-green-light: #34d399;
    --primary-green-dark: #059669;
    --accent-green: #6ee7b7;
    --surface-green: rgba(16, 185, 129, 0.1);
    --surface-green-light: rgba(52, 211, 153, 0.15);
    
    /* Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(16, 185, 129, 0.3);
    
    /* Dark Variants */
    --dark-bg: #0f1419;
    --dark-surface: #1a2332;
    --dark-text: #e2e8f0;
    --dark-text-secondary: #94a3b8;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-green-light) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.orb-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.orb-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 40%;
    animation-delay: -15s;
}

.orb-5 {
    width: 100px;
    height: 100px;
    bottom: 40%;
    right: 60%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -30px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 50px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(-50px, -20px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Glass Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(15, 20, 25, 0.8);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

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

.logo-container {
    position: relative;
}

.logo-animation {
    position: relative;
    overflow: hidden;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 2px;
    animation: underlineExpand 2s ease-out forwards;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 5px var(--primary-green));
    }
    100% {
        filter: drop-shadow(0 0 20px var(--accent-green));
    }
}

@keyframes underlineExpand {
    0% { width: 0; }
    100% { width: 100%; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green-light);
    background: var(--surface-green);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

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

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--surface-green);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green-light);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--glass-shadow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px var(--glass-shadow);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: titleReveal 0.8s ease-out forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-accent {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--dark-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--dark-text);
    box-shadow: 0 10px 30px var(--glass-shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green-light);
    display: block;
    animation: countUp 2s ease-out 1.2s both;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-text-secondary);
    margin-top: 0.5rem;
}

@keyframes countUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out 0.4s both;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.impact-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-green) 0deg 280deg,
        var(--surface-green) 280deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: progressSpin 3s ease-out;
}

.circle-progress::before {
    content: '';
    width: 70%;
    height: 70%;
    background: var(--dark-surface);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circle-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green-light);
    display: block;
}

.circle-label {
    font-size: 0.8rem;
    color: var(--dark-text-secondary);
    margin-top: 0.5rem;
}

@keyframes progressSpin {
    0% {
        background: conic-gradient(
            var(--primary-green) 0deg 0deg,
            var(--surface-green) 0deg 360deg
        );
    }
    100% {
        background: conic-gradient(
            var(--primary-green) 0deg 280deg,
            var(--surface-green) 280deg 360deg
        );
    }
}

.action-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-green-light);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.action-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px var(--glass-shadow);
}

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

.action-text {
    color: var(--dark-text);
    font-weight: 500;
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mini-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px var(--glass-shadow);
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: -20%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -15%;
    animation-delay: -2s;
}

.card-3 {
    top: 50%;
    right: -10%;
    animation-delay: -4s;
}

.card-emoji {
    font-size: 1.2rem;
}

.card-text {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.9rem;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-green), transparent);
    margin: 0 auto 0.5rem;
    border-radius: 1px;
}

.scroll-text {
    color: var(--dark-text-secondary);
    font-size: 0.8rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mission Section */
.mission-section {
    padding: var(--section-padding);
    position: relative;
}

.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-text-secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px var(--glass-shadow);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--surface-green) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mission-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-green-light);
    position: relative;
    z-index: 1;
}

.card-description {
    color: var(--dark-text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Modal Base Styles */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.form-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-title {
    color: var(--dark-text);
    font-size: 1.8rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--dark-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.close-btn:hover {
    background: var(--surface-green);
    color: var(--primary-green);
}

/* Data Management Modal Styles */
.data-management-card {
    max-width: 800px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.data-management-form .form-section {
    margin-bottom: 2rem;
}

.data-management-form .form-section:last-of-type {
    margin-bottom: 0;
}

.data-management-form .section-title {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-management-form .section-title::before {
    content: "📊";
    font-size: 1rem;
}

.data-management-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.data-management-form .form-group {
    position: relative;
}

.data-management-form .form-label {
    display: block;
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.data-management-form .form-input {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: var(--dark-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.data-management-form .form-input:focus {
    border-bottom-color: var(--primary-green);
}

.data-management-form .form-input:focus + .input-underline {
    width: 100%;
}

.data-management-form .input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
    transition: width 0.3s ease;
}

.data-management-form {
    padding: 2rem;
}

.data-management-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

/* Animation for success notification */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments for data management modal */
@media (max-width: 768px) {
    .data-management-card {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .data-management-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .data-management-form .form-actions {
        flex-direction: column-reverse;
    }
    
    .data-management-form .form-actions .btn {
        width: 100%;
    }
}