/* Modern Homepage Styles */

:root {
    --primary-color: #198754; /* Bootstrap Success */
    --secondary-color: #0d6efd; /* Bootstrap Primary */
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --hero-overlay: rgba(33, 37, 41, 0.7);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    color: var(--dark-color);
    padding: 100px 0;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #198754 0%, #20c997 50%, #0d6efd 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out, gradientText 4s ease infinite;
    text-shadow: 0 4px 20px rgba(25, 135, 84, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(25, 135, 84, 0.3);
}

.hero-btn > * {
    position: relative;
    z-index: 1;
}

.hero-btn.btn-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border: none;
}

.hero-btn.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--primary-color);
}

.hero-btn.btn-light {
    background: white;
    color: var(--primary-color) !important;
    border: none;
}

.hero-btn.btn-light:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section .hero-btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Stats Section */
.stats-section {
    background-color: white;
    padding: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    margin-top: -30px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 15px;
}

/* Content Tabs */
.content-tabs-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.nav-pills .nav-link {
    color: #6c757d;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: white;
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(0,0,0,0.05);
    color: var(--dark-color);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-body {
    padding-top: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #adb5bd 0%, #dee2e6 100%);
    color: #495057;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    z-index: 998;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(173, 181, 189, 0.40);
    transition: all 0.3s ease;
    opacity: 0.92;
}

#scrollTopBtn:hover {
    background: linear-gradient(135deg, #ced4da 0%, #adb5bd 100%);
    color: #212529;
    opacity: 1;
    box-shadow: 0 12px 35px rgba(173, 181, 189, 0.25);
}

@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 16px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 26px;
        box-shadow: 0 6px 20px rgba(173, 181, 189, 0.40);
    }
}

/* Location Modal */
.bg-gradient-success-light {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e9 100%);
}

.location-modal-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.location-modal-icon i {
    font-size: 20px;
    color: white;
}

.modern-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modern-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.1);
}

.modern-select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Floating Action Buttons */
.fab-group {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 999;
    align-items: flex-end;
}

.report-issue-fab,
.profile-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: pulse 2s infinite;
    position: relative;
}

.report-issue-fab {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.40);
}

.profile-fab {
    background: linear-gradient(135deg, #0d6efd 0%, #6c63ff 100%);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
}

.report-issue-fab:hover {
    width: 180px;
    border-radius: 30px;
    color: white;
    box-shadow: 0 12px 35px rgba(25, 135, 84, 0.45);
    background: linear-gradient(135deg, #20c997 0%, #198754 100%);
    transform: translateY(-3px);
}

.profile-fab:hover {
    width: 180px;
    border-radius: 30px;
    color: white;
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.35);
    background: linear-gradient(135deg, #6c63ff 0%, #0d6efd 100%);
    transform: translateY(-3px);
}

.report-issue-fab i,
.profile-fab i {
    transition: all 0.3s ease;
}

.report-issue-fab:hover i,
.profile-fab:hover i {
    font-size: 22px;
    margin-right: 8px;
}

.fab-text {
    opacity: 0;
    max-width: 0;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.report-issue-fab:hover .fab-text,
.profile-fab:hover .fab-text {
    opacity: 1;
    max-width: 150px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .fab-group {
        right: 20px;
        bottom: 90px;
        gap: 12px;
    }
    .report-issue-fab {
        width: 56px;
        height: 56px;
        font-size: 26px;
        box-shadow: 0 6px 20px rgba(25, 135, 84, 0.40);
    }
    .profile-fab {
        width: 56px;
        height: 56px;
        font-size: 26px;
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.25);
    }
    .report-issue-fab:hover,
    .profile-fab:hover {
        width: 56px;
        border-radius: 50%;
        transform: none;
    }
    .report-issue-fab:hover i,
    .profile-fab:hover i {
        font-size: 26px;
        margin-right: 0;
    }
    .report-issue-fab:hover .fab-text,
    .profile-fab:hover .fab-text {
        opacity: 0;
        max-width: 0;
    }
}

.category-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
}
.category-menu {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
}
.category-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 15px;
    width: 140px;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0 5px;
}
.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: white;
}
.category-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease, color 0.3s ease;
}
.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}
.arrow-left {
    left: 0;
}
.arrow-right {
    right: 0;
}
