html {
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --tour-yellow: #FFD700;
    --giro-pink: #F5A9B8;
    --vuelta-red: #C60C30;
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-blue: #00bcd4;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

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



.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--tour-yellow);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517649763962-0c623066013b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    /* Improved line height */
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--tour-yellow);
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Tours Section */
.tours-section {
    padding: 5rem 2rem;
    max-width: 1000px;
    /* Reduced from 1200px */
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 1.5rem;
    /* Slightly reduced gap */
}

@media (max-width: 900px) {
    .tours-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.tour-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tour-card-header {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.tour-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-header img {
    transform: scale(1.1);
}

.tour-color-strip {
    height: 5px;
    width: 100%;
    position: absolute;
    bottom: 0;
}

.tour-content {
    padding: 2rem;
}

.tour-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tour-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tour-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Curiosities Section */
.curiosities-section {
    background-color: #222;
    padding: 5rem 2rem;
}

.curiosity-container {
    max-width: 800px;
    /* Reduced from 1000px */
    margin: 0 auto;
}

.curiosity-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}


.curiosity-text {
    flex: 1;
}

.curiosity-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--tour-yellow);
}

.curiosity-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    order: -1;
    /* Move image to the left */
}

.curiosity-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: #111;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-logo-container {
    margin-bottom: 1.5rem;
}

.footer-logo {
    max-width: 60px;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 30px;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--tour-yellow);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .curiosity-item {
        flex-direction: column;
        text-align: center;
    }

    .curiosity-item:nth-child(even) {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        /* Adjust based on header height */
        right: 0;
        height: calc(100vh - 70px);
        background-color: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        padding-top: 2rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul.nav-active {
        transform: translateX(0%);
    }

    nav ul li {
        margin: 1.5rem 0;
    }
}

/* Large Curiosity Image */
.curiosity-image-large {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.curiosity-image-large img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.curiosity-image-large:hover img {
    transform: scale(1.03);
}

/* Classics Section */
.classics-section {
    padding: 5rem 2rem;
    max-width: 800px;
    /* Reduced from 1000px */
    margin: 0 auto;
}

.classics-content {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.classics-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--tour-yellow);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.classics-content h3:first-child {
    margin-top: 0;
}

.classics-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.classics-content ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.classics-content li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.classics-content li::before {
    content: "•";
    color: var(--tour-yellow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.classics-content strong {
    color: var(--text-light);
    font-weight: 700;
}

/* Tour de France Info Page Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
    background-color: var(--tour-yellow);
    color: var(--dark-bg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive Table */
@media (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Utility Classes */
.curiosity-item.block-layout {
    display: block;
}

.table-scroll {
    overflow-x: auto;
    width: 100%;
}

/* Feedback Section */
.feedback-section {
    padding: 5rem 2rem;
    background-color: #151515;
}

.feedback-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--tour-yellow);
    background-color: rgba(255, 255, 255, 0.1);
}

.feedback-form button:hover {
    background-color: #e6c200;
    /* Slightly darker yellow */
}
