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

:root {
    /* Color Palette */
    --primary-color: #4CAF50;
    --primary-dark: #2E7D32;
    --primary-light: #81C784;
    --secondary-color: #FF6B35;
    --secondary-dark: #E65100;
    --accent-color: #FFC107;
    --accent-dark: #FF8F00;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #9E9E9E;
    --dark-gray: #424242;
    --black: #212121;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.8rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    --border-radius: 12px;
    --card-radius: 16px;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-medium);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

.nav-logo-link{
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.nav-logo-link:hover{
    opacity: 0.85;
}

.nav-logo i {
    font-size: 1.8rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-medium);
}

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

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.role-switch {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: .25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.role-switch i { opacity: .9; }

.role-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.role-switch:focus-visible { outline: 3px solid rgba(255,255,255,0.6); outline-offset: 2px; }

.login-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-medium);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--black);
    transition: var(--transition-medium);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--hero-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

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

.hero-content {
    color: white;
}

.hero-title {
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInUp 1s ease forwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.hero-illustration {
    width: 300px;
    height: 300px;
    position: relative;
}

.plate {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-heavy);
    animation: float 6s ease-in-out infinite;
}

.food-items {
    position: relative;
    width: 80%;
    height: 80%;
}

.food-item {
    position: absolute;
    border-radius: 50%;
    animation: rotate 8s linear infinite;
}

.item-1 {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.item-2 {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    top: 50%;
    right: 20%;
    animation-delay: -2s;
}

.item-3 {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    bottom: 25%;
    left: 25%;
    animation-delay: -4s;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

.food-card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.food-card-2 {
    top: 60%;
    right: -15%;
    animation-delay: -1s;
}

.food-card-3 {
    bottom: 20%;
    left: -5%;
    animation-delay: -2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--light-gray);
}

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

.section-title {
    font-size: var(--h2-size);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
}

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

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transition: var(--transition-slow);
}

.feature-card:hover::before {
    left: 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.donor-icon {
    background: var(--primary-gradient);
}

.connector-icon {
    background: var(--secondary-gradient);
}

.collector-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.feature-card h3 {
    font-size: var(--h3-size);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black);
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.feature-step {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Listings Section */
.listings {
    padding: var(--section-padding);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--light-gray);
    background: transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-medium);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-medium);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.add-listing-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-listing-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.food-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    position: relative;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.food-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.food-details {
    padding: 1.5rem;
}

.food-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.food-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.food-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.quantity {
    color: var(--primary-color);
    font-weight: 600;
}

.freshness {
    color: var(--secondary-color);
    font-weight: 500;
}

.food-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.food-actions {
    display: flex;
    gap: 0.5rem;
}

.learn-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.learn-more-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.learn-more-btn:hover {
  background: var(--primary-gradient);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.learn-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.claim-btn {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-medium);
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-btn {
    background: var(--light-gray);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition-medium);
}

.contact-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--card-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInScale 0.3s ease;
}

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

.modal-header h3 {
    font-size: var(--h3-size);
    color: var(--black);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--black);
}
/* Multi-Step Form Progress Bar */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: var(--light-gray);
    margin: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    opacity: 0.5;
    transition: var(--transition-medium);
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-medium);
    z-index: 2;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed .step-circle::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.progress-step.completed .step-circle {
    font-size: 0;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--dark-gray);
}

.progress-line {
    height: 3px;
    background: var(--medium-gray);
    flex: 1;
    margin: 0 -1rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: var(--transition-medium);
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.progress-step.completed ~ .progress-line::after {
    width: 100%;
}

.form-step {
    display: none;
    animation: fadeInStep 0.4s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--black);
    font-weight: 600;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-upload-area {
    margin-top: 0.5rem;
    border: 3px dashed var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-medium);
    cursor: pointer;
    background: var(--light-gray);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
    transform: translateY(-2px);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
    border-style: solid;
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.file-upload-area span {
    display: block;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.file-upload-area small {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.image-preview {
    margin-top: 1rem;
    display: none;
    position: relative;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.image-preview .remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-medium);
}

.image-preview .remove-image:hover {
    background: var(--secondary-dark);
    transform: scale(1.1);
}

.form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.form-navigation .btn {
    min-width: 120px;
}

@media (max-width: 768px) {
    .form-progress {
        padding: 1.5rem 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .progress-line {
        margin: 0 -0.5rem;
    }
}

.listing-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-medium);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.file-upload-area {
    margin-top: 0.5rem;
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-medium);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
    color: var(--black);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.impact-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.impact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.impact-item strong {
    display: block;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.impact-item span {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-heavy);
}

.circle-stat {
    text-align: center;
    color: white;
}

.percentage {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 1rem;
    font-weight: 500;
}/* Footer */
.footer {
    background: var(--black);
    color: white;
    padding: 3rem 0 1rem;
}

/* Main Footer Layout */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: start;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

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

.footer-credit {
    color: var(--primary-light);
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
}

/* Section text styling */
.footer-section p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Links styling */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-gray);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition-medium);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 2rem;
    text-align: center;
    color: var(--medium-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Ensure the "Made with ❤️ by Angela Bera" is bold and green */
.footer-bottom .footer-credit,
.footer-bottom .footer-credit a {
    color: var(--primary-color);
    font-weight: bold;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    color: var(--medium-gray);
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --h1-size: 3rem;
        --h2-size: 2.2rem;
        --h3-size: 1.6rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.4rem;
        --section-padding: 3rem 0;
        --container-padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .search-box {
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.8rem;
        --h3-size: 1.2rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .hero-container {
        padding: 2rem 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .listing-form {
        padding: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
    }

    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

}

/* Dark Mode Styles */
:root.dark {
    --white: #121212;
    --light-gray: #1E1E1E;
    --medium-gray: #B0B0B0;
    --dark-gray: #E0E0E0;
    --black: #FAFAFA;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.6);
    --shadow-medium: 0 5px 25px rgba(0,0,0,0.7);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.8);
    --hero-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

:root.dark body {
    background: var(--white);
    color: var(--black);
}

:root.dark .navbar {
    background: rgba(18,18,18,0.9);
    border-bottom: 1px solid #2a2a2a;
}

:root.dark .nav-link { color: var(--medium-gray); }
:root.dark .nav-link:hover { color: var(--primary-light); }

.theme-toggle {
    background: var(--light-gray);
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-medium);
}
.theme-toggle:hover { background: var(--primary-light); color: #fff; }
:root.dark .theme-toggle { background: #2a2a2a; color: var(--accent-color); }
:root.dark .theme-toggle:hover { background: var(--secondary-color); }

:root.dark .feature-card,
:root.dark .food-card,
:root.dark .modal-content,
:root.dark .footer {
    background: #1E1E1E;
    color: var(--black);
}
:root.dark .footer { background: #0d0d0d; }

:root.dark .feature-card p,
:root.dark .food-description,
:root.dark .footer-section p,
:root.dark .food-location,
:root.dark .impact-item span { color: var(--medium-gray); }

:root.dark .food-image { background: #2a2a2a; }
:root.dark .modal { background: rgba(0,0,0,0.85); }
:root.dark .file-upload-area { border-color: #333; }
:root.dark .file-upload-area:hover { background: #222; }

:root.dark .search-box input { background: #1c1c1c; border-color: #333; color: var(--black); }
:root.dark .search-box input:focus { border-color: var(--primary-color); }

:root.dark .filter-btn { border-color: #2a2a2a; color: var(--medium-gray); }
:root.dark .filter-btn.active,
:root.dark .filter-btn:hover { color: #fff; }

:root.dark .add-listing-btn { box-shadow: none; }
:root.dark .claim-btn { box-shadow: none; }

:root.dark .stats-circle { box-shadow: var(--shadow-medium); }
:root.dark .social-links a { background: #222; }
:root.dark .social-links a:hover { background: var(--primary-color); }

:root.dark .loading-overlay { background: #121212; }
:root.dark .spinner { border: 4px solid #2a2a2a; border-top-color: var(--primary-color); }

:root.dark .food-category { background: var(--secondary-color); }

:root.dark .footer-bottom { border-top: 1px solid #222; }

/* Transition for theme switch */
html, body, .feature-card, .food-card, .navbar, .modal-content, .footer, .stats-circle, .search-box input {
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in-up {
    animation: slideInUp 0.5s ease;
}

.hero-title {
    opacity: 0;
    animation: slideInUp 1s ease 0.3s forwards;
}

.hero-description {
    opacity: 0;
    animation: slideInUp 1s ease 0.5s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: slideInUp 1s ease 0.7s forwards;
}

.hero-stats {
    opacity: 0;
    animation: slideInUp 1s ease 0.9s forwards;
}

/* Floating animations for hero cards */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

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

@keyframes floatFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

.floating-card.food-card-1 {
    animation: floatSlow 4s ease-in-out infinite;
}

.floating-card.food-card-2 {
    animation: floatMedium 5s ease-in-out infinite;
}

.floating-card.food-card-3 {
    animation: floatFast 3.5s ease-in-out infinite;
}

/* Plate rotation animation */
.plate {
    animation: float 6s ease-in-out infinite, subtleRotate 20s linear infinite;
}

@keyframes subtleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Food items orbital animation */
.food-item {
    animation: orbit 10s linear infinite;
}

.item-1 {
    animation: orbit 10s linear infinite, pulse 2s ease-in-out infinite;
}

.item-2 {
    animation: orbit 10s linear infinite 3.3s, pulse 2s ease-in-out infinite 0.5s;
}

.item-3 {
    animation: orbit 10s linear infinite 6.6s, pulse 2s ease-in-out infinite 1s;
}

@keyframes orbit {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(0, -40px) scale(1); }
    75% { transform: translate(-30px, -20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.feature-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpStagger 0.8s ease forwards;
}

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

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

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

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

.feature-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

.food-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.food-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.food-card:hover::before {
    left: 100%;
}

.food-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.food-card:hover .food-image {
    transform: scale(1.05);
}

.food-image {
    transition: transform 0.5s ease;
    overflow: hidden;
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.95);
}

.claim-btn {
    position: relative;
    overflow: hidden;
}

.claim-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.claim-btn:hover::after {
    width: 200%;
    height: 200%;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    }
}

.modal {
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.progress-step {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.progress-step.active .step-circle {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.file-upload-area {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.file-upload-area:hover {
    transform: translateY(-5px);
}

.file-upload-area i {
    transition: all 0.3s ease;
}

.file-upload-area:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-dark);
}

.image-preview {
    animation: zoomIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.remove-image {
    animation: rotateIn 0.3s ease;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.stats-circle {
    animation: float 6s ease-in-out infinite, rotate360 30s linear infinite;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.filter-btn {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.filter-btn:hover {
    transform: translateY(-3px);
}

.filter-btn.active {
    animation: buttonPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes buttonPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.spinner {
    animation: spin 1s linear infinite, colorShift 3s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% {
        border-top-color: var(--primary-color);
    }
    33% {
        border-top-color: var(--secondary-color);
    }
    66% {
        border-top-color: var(--accent-color);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.impact-item {
    opacity: 0;
    transform: translateX(-30px);
}

.impact-item.animate-in {
    animation: slideInLeft 0.6s ease forwards;
}

.impact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.impact-item:nth-child(2) {
    animation-delay: 0.3s;
}

.impact-item:nth-child(3) {
    animation-delay: 0.5s;
}

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

.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
}

.loading-overlay {
    animation: fadeIn 0.3s ease;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.feature-step {
    animation: gentleFloat 3s ease-in-out infinite;
}

.no-listings {
    animation: fadeInUp 0.6s ease;
}

.no-listings i {
    animation: gentleFloat 3s ease-in-out infinite;
}

.hero-buttons .btn-primary {
    animation: megaPulse 2s ease-in-out infinite;
}

@keyframes megaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
    }
}

.add-listing-btn {
    animation: shakeAttention 3s ease-in-out infinite;
}

@keyframes shakeAttention {
    0%, 90%, 100% { transform: translateX(0); }
    92%, 96% { transform: translateX(-3px); }
    94%, 98% { transform: translateX(3px); }
}

.food-card {
    position: relative;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.food-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.4),
                0 8px 25px rgba(76, 175, 80, 0.3),
                0 0 0 1px rgba(76, 175, 80, 0.1);
}

/* Add different colors for different categories */
.food-card[data-category="restaurant"]:hover {
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.4),
                0 8px 25px rgba(76, 175, 80, 0.3);
}

.food-card[data-category="bakery"]:hover {
    box-shadow: 0 15px 50px rgba(255, 193, 7, 0.4),
                0 8px 25px rgba(255, 193, 7, 0.3);
}

.food-card[data-category="household"]:hover {
    box-shadow: 0 15px 50px rgba(33, 150, 243, 0.4),
                0 8px 25px rgba(33, 150, 243, 0.3);
}

.food-card[data-category="event"]:hover {
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.4),
                0 8px 25px rgba(255, 107, 53, 0.3);
}

.stat-number {
    display: inline-block;
    animation: bounceNumbers 2s ease-in-out infinite;
}

.stat:nth-child(1) .stat-number {
    animation-delay: 0s;
}

.stat:nth-child(2) .stat-number {
    animation-delay: 0.3s;
}

.stat:nth-child(3) .stat-number {
    animation-delay: 0.6s;
}

@keyframes bounceNumbers {
    0%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-10px) scale(1.1); }
}

.feature-icon {
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 1),
                    0 0 50px rgba(76, 175, 80, 0.5);
    }
}

.scroll-indicator {
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-10deg); }
    75% { transform: translateX(-50%) rotate(10deg); }
}

.plate {
    animation: float 6s ease-in-out infinite;
}

.food-item {
    animation: gentleMove 4s ease-in-out infinite;
}

.item-1 {
    animation: gentleMove 4s ease-in-out infinite;
}

.item-2 {
    animation: gentleMove 4.5s ease-in-out infinite 0.5s;
}

.item-3 {
    animation: gentleMove 5s ease-in-out infinite 1s;
}

@keyframes gentleMove {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    25% { 
        transform: translate(15px, -15px) scale(1.1); 
    }
    50% { 
        transform: translate(-10px, -25px) scale(1.05); 
    }
    75% { 
        transform: translate(10px, -15px) scale(1.08); 
    }
}

.claim-btn {
    animation: claimPulse 1.5s ease-in-out infinite;
}

@keyframes claimPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 35px rgba(76, 175, 80, 0.6);
    }
}

.stats-circle {
    animation: float 6s ease-in-out infinite;
}

.section-title {
    animation: slideFromLeft 1s ease-out;
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.filter-btn {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.filter-btn:nth-child(1) { animation-delay: 0.1s; }
.filter-btn:nth-child(2) { animation-delay: 0.2s; }
.filter-btn:nth-child(3) { animation-delay: 0.3s; }
.filter-btn:nth-child(4) { animation-delay: 0.4s; }

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.social-links a {
    animation: socialDance 3s ease-in-out infinite;
}

.social-links a:nth-child(1) { animation-delay: 0s; }
.social-links a:nth-child(2) { animation-delay: 0.2s; }
.social-links a:nth-child(3) { animation-delay: 0.4s; }
.social-links a:nth-child(4) { animation-delay: 0.6s; }

@keyframes socialDance {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}




/* ..................................................................................... */

/* --- Contact Section --- */
.contact {
  padding: 5rem 2rem;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--black);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 3rem;
}

/* Outer Wrapper */
.contact-wrapper {
  background: var(--white);
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-heavy);
  max-width: 1200px;
  width: 100%;
}

/* Align Both Boxes in a Row */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* ensures same height visually */
  gap: 3rem;
}

/* --- Left Box (Form) --- */
.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-heavy);
  padding: 2rem 2.5rem;
}

.contact-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact form label {
  font-weight: 600;
  color: var(--black);
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: 1.5px solid var(--medium-gray);
  font-size: 1rem;
  color: var(--black);
  background: var(--light-gray);
  transition: 0.3s ease;
  resize: none;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.15);
  outline: none;
}

.contact form button {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.9rem 0;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact form button:hover {
  transform: translateY(-2px);
}

/* --- Right Box (Info) --- */
.contact-right {
  flex: 1;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-heavy);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-right h3 {
  color: var(--black);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-right p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item i {
  background: var(--primary-gradient);
  color: white;
  padding: 0.8rem;
  border-radius: 50%;
  font-size: 1.2rem;
}

.info-item strong {
  color: var(--black);
}

.info-item p {
  margin: 0.2rem 0 0;
  color: var(--medium-gray);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  background: var(--primary-gradient);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    max-width: 300px;
}

.divider-icon {
    margin: 0 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
    }
}

/* Dark mode support for divider */
body.dark-mode .divider-line {
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}

body.dark-mode .divider-icon {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

/* Notification Bell Styles */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    background: transparent;
    border: none;
    font-size: 1.2rem;
}

.notification-bell:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    transform: scale(1.1);
}

.notification-bell.active {
    color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-height: 450px;
    overflow: hidden;
    z-index: 1000;
    display: none;
    animation: slideInDown 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notification-panel.active {
    display: block;
}

.notification-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header::after {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f0f3';
    font-size: 1.1rem;
    opacity: 0.8;
}

.notification-content {
    max-height: 350px;
    overflow-y: auto;
}

.notification-content::-webkit-scrollbar {
    width: 4px;
}

.notification-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.notification-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.notification-item:hover {
    background: #f8fff9;
    transform: translateX(4px);
}

.notification-item:hover::before {
    transform: scaleY(1);
}

.notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.notification-item-header {
    display: flex;
    align-items: start;
    margin-bottom: 0.75rem;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.notification-item-content {
    flex: 1;
}

.notification-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.3;
}

.notification-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: #5a6c7d;
}

.notification-detail i {
    width: 16px;
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.notification-time {
    font-size: 0.75rem;
    color: #95a5a6;
}

.notification-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), #45a049);
    color: white;
    border-radius: 12px;
    font-weight: 500;
}

.no-notifications {
    padding: 3rem 2rem;
    text-align: center;
    color: #95a5a6;
}

.no-notifications i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

/* Remove the card-level claimed styling - only style the button */

.claim-btn.claimed {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    cursor: default !important;
    transform: none !important;
    position: relative;
    overflow: hidden;
}

.claim-btn.claimed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.claim-btn.claimed:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    transform: none !important;
}

.claim-btn.claimed:hover::before {
    left: 100%;
}

/* Dark mode support for notifications */
body.dark-mode .notification-panel {
    background: var(--card-bg-dark);
    border-color: var(--input-border-dark);
}

body.dark-mode .notification-header {
    background: var(--input-bg-dark);
    color: var(--text-color-dark);
    border-color: var(--input-border-dark);
}

body.dark-mode .notification-item {
    border-color: var(--input-border-dark);
}

body.dark-mode .notification-item:hover {
    background: var(--input-bg-dark);
}

body.dark-mode .notification-bell {
    color: var(--text-color-dark);
}

body.dark-mode .notification-bell:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }
}


/* ===== Scroll to Top Button ===== */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 45px;
  height: 45px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  outline: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Show state (added by JS) */
#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover animation */
#scrollToTopBtn:hover {
  background-color: #45a049;
  transform: scale(1.1);
}


  .section-divider {
    padding: 2rem 0;
    margin: 1rem 0;
  }
  
  .divider-line {
    max-width: 150px;
  }
  
  .divider-icon {
    width: 50px;
    height: 50px;
    margin: 0 1rem;
    font-size: 1.2rem;
  }
}

