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

:root {
    /* Nature-Inspired Color Palette */
    --forest-green: #1b4332;
    --sage-green: #40916c;
    --mint-green: #95d5b2;
    --pale-mint: #d8f3dc;
    --earth-brown: #6c584c;
    --sand-beige: #f8f9fa;
    
    --primary: var(--sage-green);
    --primary-dark: var(--forest-green);
    --primary-light: var(--mint-green);
    
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-white: #ffffff;
    
    --bg-main: #f0f2f5;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(27, 67, 50, 0.8);
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.12);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 100px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 0% 0%, var(--pale-mint) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, #e9ecef 0%, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Modern Header & Nav */
header {
    background: transparent;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 5px;
}

.navbar a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.navbar a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
}

.navbar a.active {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(64, 145, 108, 0.3);
}

/* Hero Section */
.hero {
    padding: 150px 20px;
    text-align: center;
    background: linear-gradient(rgba(240, 242, 245, 0.8), rgba(240, 242, 245, 0.95)), url('https://images.unsplash.com/photo-1473081556163-2a17de81fc97?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-dark);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
    animation: fadeInUp 1s ease-out;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--primary);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(64, 145, 108, 0.25);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(27, 67, 50, 0.3);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Modern Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(to right, var(--primary), var(--mint-green));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-light);
}

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

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.03);
}

.card h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Impact Section */
.impact-section {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 80px 20px;
    border-radius: var(--radius-lg);
    margin: 60px 0;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.impact-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--mint-green);
}

.impact-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sidebar Layout */
.flex-row {
    display: flex;
    gap: 40px;
}
/* Scroll Animations */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.main-content {
    flex: 2.5;
}

/* Game Area Redesign */
.game-area {
    background: var(--bg-glass);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.trash-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.trash {
    width: 180px;
    height: 220px;
    background: white;
    border: 3px dashed #e9ecef;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.trash.drag-over {
    border-color: var(--primary);
    background: var(--pale-mint);
    transform: scale(1.05);
}

.trash img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.waste-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    min-height: 150px;
    flex-wrap: wrap;
}

.waste {
    width: 100px;
    height: 100px;
    background: white;
    padding: 15px;
    border-radius: var(--radius-sm);
    cursor: grab;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.waste:active {
    cursor: grabbing;
    transform: scale(0.9);
}

#score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 30px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 80px 20px 40px;
    text-align: center;
    margin-top: 100px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--mint-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .flex-row { flex-direction: column; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .nav-container { flex-direction: column; gap: 20px; }
    .navbar { font-size: 0.85rem; padding: 5px; }
    .navbar a { padding: 8px 15px; }
}

/* Image Overlay (Lightbox) */
#overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#overlay.show { display: flex; }

#overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
}

.close-btn {
    position: absolute;
    top: 30px; right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
}

/* Awareness Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

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

.custom-modal {
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.custom-modal-overlay.active .custom-modal {
    transform: scale(1);
}

.custom-modal-close {
    position: absolute;
    top: 25px; right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.custom-modal-title {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.custom-modal-body {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
}
