:root {
    --primary-color: #dc3545;
    --secondary-color: #212529;
    --accent-color: #055417eb;
    --light-color: #f8f9fa;
    --dark-color: #000000;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s;
    background-color: var(--secondary-color) !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-brand span {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 12px;
    margin-left: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.lang-switcher:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-decoration: none;
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 991px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-start;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/gallery/IMG_7751.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content {
    z-index: 2;
}

/* Mobile optimization for hero */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInDown 1s;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* Section Styling */
section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

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

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
}

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

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(220, 53, 69, 0.9), rgba(220, 53, 69, 0.9)), url('../img/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-box i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Section */
.team-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--primary-color);
}

.team-card h4 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-card p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

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

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 53, 69, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: white;
}

/* Results/Timeline Section */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 40px);
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content .date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Sponsors Section */
.sponsor-logo {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sponsor-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sponsor-logo img {
    max-width: 200px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.sponsor-logo:hover img {
    filter: grayscale(0%);
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info h4 {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-widget h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    transition: all 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: #aaa;
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-badge {
        left: 30px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================== */
/* Rental Popup Styles   */
/* ===================== */
.rental-popup-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.4s ease;
}

.rental-popup-overlay.active {
    display: flex !important;
}

.rental-popup {
    background: #fff;
    border-radius: 15px;
    max-width: 750px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.5s ease;
}

.rental-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s;
}

.rental-popup-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.rental-popup-img {
    width: 100%;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.rental-popup-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.rental-popup-content {
    padding: 30px;
}

.rental-popup-content h2 {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.rental-popup-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
}

.rental-popup-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.rental-popup-features li {
    padding: 8px 0;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
}

.rental-popup-features li:last-child {
    border-bottom: none;
}

.rental-popup-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.rental-popup-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rental-popup-buttons .btn {
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.rental-popup-buttons .btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

.rental-popup-buttons .btn-success:hover {
    background-color: #1da851;
    border-color: #1da851;
}

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

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Popup mobile responsiveness */
@media (max-width: 576px) {
    .rental-popup {
        width: 95%;
        border-radius: 10px;
    }

    .rental-popup-img {
        border-radius: 10px 10px 0 0;
    }

    .rental-popup-img img {
        height: 200px;
    }

    .rental-popup-content {
        padding: 20px;
    }

    .rental-popup-content h2 {
        font-size: 1.3rem;
    }

    .rental-popup-buttons {
        flex-direction: column;
    }

    .rental-popup-buttons .btn {
        width: 100%;
        text-align: center;
    }
}
