/* 🌌 GREENOVA PREMIUM WEB3 THEME */

:root {
    --bg-dark: #0B132B;
    --bg-panel: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #0B132B;
    --text-secondary: #475569;
    --primary-bg: #F5FBF8;
    --secondary-bg: #FFFFFF;
    --accent-green: #00C853;
    --accent-light-green: #00FF94;
    --accent-teal: #5BC0BE;
    --accent-glow: rgba(0, 200, 83, 0.4);
    --cyan-glow: rgba(91, 192, 190, 0.4);
    --danger: #ff3366;
    --success: #00ff88;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background: linear-gradient(135deg, #F6FBF8 0%, #EAF6F1 100%) !important;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* 🌿 NATURE THEMED BACKGROUND (FIXED LAYER) */
.nature-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.nature-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.nature-cloud {
    position: absolute;
    background: rgba(240, 245, 245, 0.8);
    border-radius: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02));
    animation-name: driftCloudsHorizontal;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.mountain-back {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35vh;
    opacity: 0.15;
    filter: blur(2px);
}

.mountain-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    opacity: 0.1;
    filter: blur(4px);
}

.trees-silhouettes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.tree {
    position: absolute;
    width: 2px;
    background: rgba(168, 213, 186, 0.4);
}

.tree::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 22px;
    height: 100%;
    background: rgba(168, 213, 186, 0.5);
    border-radius: 50% 50% 0 0;
}

.river {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    opacity: 0.6;
    animation: riverShimmer 10s ease-in-out infinite alternate;
}

.falling-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.leaf {
    position: absolute;
    top: -50px;
    width: 12px;
    height: 8px;
    background: rgba(168, 213, 186, 0.6);
    border-radius: 10px 0 10px 0;
    animation-name: driftLeaves;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

@keyframes driftCloudsHorizontal {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(120vw);
    }
}

@keyframes driftLeaves {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(80px, 100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes riverShimmer {
    0% {
        opacity: 0.7;
        transform: scaleY(1);
    }

    100% {
        opacity: 0.95;
        transform: scaleY(1.05);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 🌀 Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.glass-panel:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 255, 148, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 25px rgba(0, 255, 148, 0.15);
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(13, 22, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: toastSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transition: var(--transition);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast.toast-success {
    border-left: 3px solid var(--accent-green);
}

.toast.toast-error {
    border-left: 3px solid var(--danger);
}

.toast.toast-info {
    border-left: 3px solid var(--accent-cyan);
}

.toast.toast-warning {
    border-left: 3px solid #f59e0b;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════
   RESULT MODAL
   ═══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    max-width: 480px;
    width: 90%;
    padding: 2.5rem;
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.23, 1, 0.32, 1), successPulse 2s ease-in-out infinite alternate;
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15);
}

@keyframes successPulse {
    0% {
        box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15);
        border-color: rgba(0, 255, 136, 0.3);
    }

    100% {
        box-shadow: 0 10px 50px rgba(0, 255, 136, 0.3);
        border-color: rgba(0, 255, 136, 0.6);
    }
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.4));
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.result-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.result-value.accent {
    color: var(--accent-green);
}

.result-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 1rem 0;
}

.result-hash-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-hash {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.result-hash code {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.05);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    word-break: break-all;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.chain-badge {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chain-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
    padding: 0.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    z-index: 101;
}

.nav-logo span {
    filter: drop-shadow(0 0 10px var(--accent-green));
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: #0B132B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-green);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-green);
}

.nav-link:hover {
    color: var(--accent-green);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 🔌 Connect Wallet Button */
.btn-connect {
    background: linear-gradient(135deg, #00C853, #00FF94);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 255, 148, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-connect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-connect:hover {
    transform: translateY(-2px) scale(1.05);
    /* Premium popup effect */
    box-shadow: 0 8px 25px rgba(0, 255, 148, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-connect:hover::before {
    transform: translateX(100%);
}

.btn-connect.connected {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--accent-green);
    box-shadow: 0 0 15px var(--accent-glow);
    color: #000;
}

.btn-connect .status-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    z-index: 2;
}

.btn-connect.connected .status-dot {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
#home-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* ----------------------
   HERO SECTION
------------------------- */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 80px);
    /* Account for nav */
    z-index: 10;
    position: relative;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 148, 0.05), transparent 50%), radial-gradient(circle at 70% 30%, rgba(0, 200, 83, 0.05), transparent 50%);
}

.hero-left {
    flex: 1;
    max-width: 650px;
    text-align: left;
    z-index: 10;
    padding: 2rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: #0B132B;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 255, 148, 0.4));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 3rem;
    line-height: 1.7;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.4s;
}

.btn-neon {
    box-shadow: 0 0 20px rgba(0, 255, 148, 0.4);
    transition: all 0.3s ease;
}

.btn-neon:hover {
    box-shadow: 0 0 35px rgba(0, 255, 148, 0.7);
    transform: translateY(-3px);
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.eco-sphere-container {
    width: 450px;
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eco-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(0, 200, 83, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.eco-sphere {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5BC0BE 0%, #00C853 40%, #0B132B 90%);
    box-shadow:
        inset -20px -20px 40px rgba(0, 0, 0, 0.6),
        inset 10px 10px 30px rgba(255, 255, 255, 0.4),
        0 30px 60px rgba(0, 200, 83, 0.25);
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: floatingSphere 5s ease-in-out infinite alternate;
}

.sphere-texture {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle at 40% 40%, transparent 30%, rgba(255, 255, 255, 0.15) 40%, transparent 50%),
        radial-gradient(circle at 60% 60%, transparent 20%, rgba(0, 255, 148, 0.15) 30%, transparent 40%);
    background-size: 120px 120px;
    opacity: 0.8;
    animation: spinSphere 20s linear infinite;
}

.orbiting-particles {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 3;
    animation: orbitSpin 20s linear infinite;
    pointer-events: none;
}

.orbit-particle {
    position: absolute;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 200, 83, 0.4));
    animation: innerSpin 20s linear infinite reverse;
    /* Keep leaves upright */
}

.p-1 {
    top: 0;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
}

.p-2 {
    top: 50%;
    right: 0;
    margin-top: -12px;
    margin-right: -12px;
}

.p-3 {
    bottom: 0;
    left: 50%;
    margin-left: -12px;
    margin-bottom: -12px;
}

.p-4 {
    top: 50%;
    left: 0;
    margin-top: -12px;
    margin-left: -12px;
}

@keyframes spinSphere {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes innerSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes floatingSphere {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-20px);
    }
}

/* ----------------------
   TRUST STRIP
------------------------- */
.trust-strip {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
    background: transparent;
    border: none;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #0B132B;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 1.3rem;
    background: rgba(0, 200, 83, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-green);
}

.hero-mini-card {
    padding: 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-mini-card:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-mini-card:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-mini-card:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-mini-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-mini-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-mini-value {
    font-weight: 600;
}

/* Hero Button */
.btn-hero {
    padding: 1rem 3rem;
    background: var(--accent-green);
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6);
}

.btn-hero:hover::after {
    opacity: 0.2;
    transform: scale(1);
    transition: 0s;
}

/* Section Containers */
.section-container {
    max-width: 1000px;
    margin: 4rem auto;
    text-align: center;
}

.section-heading {
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* ✨ Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.feature-card {
    position: relative;
    perspective: 1000px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: 280px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 2.5rem;
    background: rgba(28, 37, 65, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card-front {
    transform: rotateY(0deg);
}

.feature-card-back {
    transform: rotateY(180deg);
    background: rgba(11, 19, 43, 0.95);
    border-color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-badge {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--accent-green);
}

/* How It Works Flow */
.how-it-works-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.how-it-works-flow .step-card {
    flex: 1;
    background: rgba(28, 37, 65, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-it-works-flow .step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 148, 0.4);
    box-shadow: 0 10px 30px rgba(0, 255, 148, 0.1);
}

.flow-line {
    flex: 0 0 50px;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 255, 148, 0.2) 0%, var(--accent-green) 50%, rgba(0, 255, 148, 0.2) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseGlow 2s infinite alternate;
}

@media (max-width: 900px) {
    .how-it-works-flow {
        flex-direction: column;
        gap: 2rem;
    }

    .flow-line {
        width: 4px;
        height: 50px;
        flex: 0 0 50px;
        background: linear-gradient(180deg, rgba(0, 255, 148, 0.2) 0%, var(--accent-green) 50%, rgba(0, 255, 148, 0.2) 100%);
    }

    .how-it-works-flow .step-card {
        width: 100%;
        height: auto;
    }
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 15px rgba(0, 255, 148, 0.4);
}

.how-it-works-flow .step-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.how-it-works-flow .step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Impact Section */
.impact-section {
    padding: 5rem 2rem;
    background: radial-gradient(circle at center, rgba(0, 255, 148, 0.08) 0%, transparent 70%);
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 148, 0.15);
    margin-top: 4rem;
    box-shadow: 0 0 40px rgba(0, 255, 148, 0.05);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

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

.impact-val {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 25px rgba(0, 255, 148, 0.3);
    line-height: 1;
}

.impact-label {
    color: var(--text-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* CTA Card */
.cta-card {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid rgba(0, 255, 148, 0.3) !important;
    background: rgba(8, 16, 33, 0.8) !important;
    box-shadow: 0 0 40px rgba(0, 255, 148, 0.1) !important;
}

.cta-heading {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.cta-subtext {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════ */
#login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05), transparent 60%);
    z-index: 1;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 3rem;
    text-align: center;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.demo-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-label {
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: #0B132B;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.3);
    background: rgba(255, 255, 255, 0.8);
    outline: none;
}

/* ═══════════════════════════════════════
   DASHBOARD & SIDEBAR
   ═══════════════════════════════════════ */
#dashboard-page {
    display: flex;
    height: 100vh;
    padding-top: 60px;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 50;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.03);
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.college-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.sidebar-college-name {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 255, 136, 0.2);
}

.sidebar-logout {
    margin-top: auto;
    color: var(--danger);
    background: transparent;
    text-align: left;
    padding: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-logout:hover {
    color: #fff;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 8px;
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(0, 255, 136, 0.03), transparent 40%);
}



/* Dashboard Header */
.overview-header-group {
    position: sticky;
    top: -2.5rem;
    /* Fix arrangement for sticky with padding */
    z-index: 90;
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.date-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-refresh-pill {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent-green);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh-pill:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

/* Summary Bar */
.summary-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    align-items: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.summary-item:first-child {
    padding-left: 0;
}

.summary-item:last-child {
    border-right: none;
}

.summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 255, 148, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 255, 148, 0.5);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-green), transparent);
    opacity: 0.5;
}

.stat-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00C853, #00FF94);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-unit {
    font-size: 0.85rem;
    color: var(--accent-green);
    opacity: 0.8;
    margin-top: 5px;
}

/* Circular Progress Ring */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.progress-ring circle {
    fill: transparent;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1.5s ease-in-out, stroke 0.5s ease;
}

.progress-ring .bg-ring {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-ring .progress-value-ring {
    stroke: var(--accent-green);
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    filter: drop-shadow(0 0 5px var(--accent-green));
}

.score-text {
    position: absolute;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

/* ═══════════════════════════════════════
   SUBMIT FORM
   ═══════════════════════════════════════ */
.submit-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.premium-form {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
}

.floating-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input {
    width: 100%;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: #0B132B;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.floating-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 148, 0.2);
    background: rgba(255, 255, 255, 0.8);
    outline: none;
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--accent-green);
    background: #0a0a0a;
}

.field-error {
    color: var(--danger);
    font-size: 0.8rem;
    display: none;
    margin-top: 5px;
}

.file-section-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.general-error {
    color: var(--danger);
    text-align: center;
    margin: 1rem 0;
    display: none;
}

.btn-submit {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    position: relative;
}

.btn-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Advanced Transaction Status UI */
.tx-status-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tx-status-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.tx-status-step.active {
    opacity: 1;
    color: #fff;
    font-weight: 600;
}

.tx-status-step.completed {
    opacity: 1;
    color: var(--accent-green);
}

.tx-status-step .step-icon {
    font-size: 1.2rem;
}

.loading-indicator {
    text-align: center;
    margin-top: 1rem;
    color: var(--accent-green);
}

.preview-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-item:last-of-type {
    border-bottom: none;
}

.preview-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ═══════════════════════════════════════
   LEADERBOARD
   ═══════════════════════════════════════ */
#leaderboard-page {
    padding: 120px 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rank-card {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    transition: var(--transition);
    border-radius: 16px;
}

.rank-card:hover {
    transform: translateX(5px);
    background: rgba(0, 200, 83, 0.05);
}

.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: rgba(0, 200, 83, 0.15);
    color: var(--accent-green);
}

.rank-card img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-weight: 600;
    font-size: 1rem;
}

.rank-score {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-green);
}

.btn-back {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-back:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 11, 20, 0.95);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);


}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-algo-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.algo-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff88;
}

/* ═══════════════════════════════════════
   BUTTONS SHARED
   ═══════════════════════════════════════ */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00C853, #00FF94);
    color: #fff;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1rem;
    box-shadow: 0 15px 40px rgba(0, 255, 148, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 148, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

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

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

/* 🌿 CO2 Floating Particles CSS Animation */
.co2-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.co2-bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatUp infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(0, 255, 136, 0.4);
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
    }
}

/* Floating Leaf */
.floating-leaf {
    position: absolute;
    animation: leafFloat 4s ease-in-out infinite alternate;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
}

@keyframes leafFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(10px, -15px) rotate(15deg);
    }
}

/* Upload Drop Box Glow */
.upload-drop-area {
    transition: var(--transition);
    border: 2px dashed rgba(0, 255, 136, 0.3) !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.upload-drop-area:hover {
    border-color: rgba(0, 255, 136, 0.8) !important;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2) !important;
    background: rgba(0, 255, 136, 0.08) !important;
}

.upload-drop-area input[type="file"] {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.upload-drop-area input[type="file"]::file-selector-button {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent-green);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-drop-area input[type="file"]::file-selector-button:hover {
    background: var(--accent-green);
    color: #000;
}

/* Smooth Fade In for cards */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 11, 20, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        border-left: 1px solid var(--glass-border);
        z-index: 100;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu .nav-link {
        display: block;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cards {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

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

    .submit-layout {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .summary-bar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .summary-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0;
        padding-left: 0;
    }

    .summary-item:last-child {
        border-bottom: none;
    }

    #toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    .modal-card {
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 900px) {
    #dashboard-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 1rem;
        align-items: center;
        gap: 1rem;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .sidebar-header {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 0;
    }

    .avatar-container {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }

    .sidebar-college-name {
        margin-top: 0;
        font-size: 0.9rem;
    }

    .sidebar nav {
        flex-direction: row !important;
        gap: 0.5rem !important;
        flex: none !important;
    }

    .sidebar-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .sidebar-logout {
        margin-top: 0;
        padding: 0.5rem;
        white-space: nowrap;
    }

    .main-content {
        padding: 1.5rem;
    }

    .overview-header-group {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
}

/* TECH FOOTER */
.tech-footer {
    background: linear-gradient(135deg, #0B132B, #1C2541);
    padding: 4rem 10% 2rem;
    color: #D6E2F0;
    border-top: 1px solid rgba(0, 255, 148, 0.1);
    margin-top: auto;
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    overflow: hidden;
    animation: fadeIn 0.8s ease-in-out;
}

.tech-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 148, 0.5), transparent);
    box-shadow: 0 0 20px rgba(0, 255, 148, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    color: #00FF94;
    text-shadow: 0 0 15px rgba(0, 255, 148, 0.6);
}

.footer-desc {
    color: #A0B0C0;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-middle h4,
.footer-right h4 {
    color: #5BC0BE;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-middle a,
.footer-right a {
    display: block;
    color: #A0B0C0;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.footer-middle a:hover,
.footer-right a:hover {
    color: #00FF94;
    text-shadow: 0 0 10px rgba(0, 255, 148, 0.4);
    transform: translateX(5px);
}

.contact-email {
    margin-bottom: 1.5rem !important;
    display: inline-block !important;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-email:hover {
    border-color: #00FF94;
    background: rgba(0, 255, 148, 0.05);
}

.social-links {
    display: flex;
    flex-direction: column;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 192, 190, 0.3), transparent);
    margin: 2rem auto;
    max-width: 1200px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
}

.secured-text {
    color: #00FF94;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 148, 0.3);
}

.copyright-text {
    color: #607080;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .footer-middle a:hover,
    .footer-right a:hover {
        transform: translateY(-2px);
    }
}