* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-buttons {
    display: flex;
    gap: 8px;
    height: 100%;
    position: relative;
    overflow-x: auto;
    padding: 0 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-buttons::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    background-color: transparent;
    border: none;
    color: #e0e0e0;
    padding: 0 16px;
    height: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
    border-radius: 0;
    letter-spacing: 0.3px;
    z-index: 1;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-btn i {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn:hover i {
    color: #4dabf7;
}

.active-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: #4dabf7;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.nav-btn.active {
    color: #fff;
    transition: color 0.3s ease 0.1s;
}

.nav-btn.active i {
    color: #4dabf7;
}

.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px;
    position: relative;
}

#home {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/lisbon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 100vh;
    padding-top: 70px;
}

@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
}

#home .content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

#home h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#home p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0 15px;
}

.cta-btn {
    background-color: #4dabf7;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    width: 100%;
    max-width: 280px;
}

.cta-btn:hover {
    background-color: #3a8bc8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

#tours {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('./assets/tours-image.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #333;
}

@media (max-width: 768px) {
    #tours {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

#tours h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 40px;
    color: #222;
    text-align: center;
    padding: 0 15px;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
}

.tour-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(77, 171, 247, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tour-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(77, 171, 247, 0.2);
}

.tour-card i {
    font-size: 2.5rem;
    color: #4dabf7;
    margin-bottom: 20px;
}

.tour-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
}

.tour-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

#about {
    background: linear-gradient(rgba(108, 117, 125, 0.9), rgba(108, 117, 125, 0.9)), url('./assets/about-image.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

@media (max-width: 768px) {
    #about {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

#about h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0 15px;
}

.about-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.about-text:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.about-text p {
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    height: fit-content;
}

@media (min-width: 480px) {
    .stats {
        gap: 30px;
    }
}

.stat {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    min-height: 150px;
}

@media (min-width: 768px) {
    .stat {
        min-height: 200px;
        padding: 40px 20px;
    }
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat h4 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 10px;
    color: #4dabf7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

@media (min-width: 768px) {
    .stat h4 {
        margin-bottom: 15px;
    }
}

.stat p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
    max-width: 90%;
}

#contact {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('./assets/contact-image.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

@media (max-width: 768px) {
    #contact {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

#contact h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .contact-grid {
        gap: 30px;
        margin-bottom: 60px;
    }
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .contact-card {
        padding: 40px 30px;
    }
}

.contact-card:hover {
    background: rgba(77, 171, 247, 0.2);
    transform: translateY(-5px);
    border-color: rgba(77, 171, 247, 0.5);
}

.contact-card i {
    font-size: 2.2rem;
    color: #4dabf7;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .contact-card i {
        font-size: 3rem;
        margin-bottom: 20px;
    }
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .contact-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

.contact-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 5px 0;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .contact-card p {
        font-size: 1rem;
    }
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-links {
        gap: 30px;
    }
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

@media (min-width: 768px) {
    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.social-links a:hover {
    background: #4dabf7;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(77, 171, 247, 0.4);
}

@media (max-width: 768px) {
    .section {
        background-attachment: scroll !important;
    }
    
    #home {
        background-position: center center;
        background-size: cover;
    }
    
    #tours, #about, #contact {
        background-position: center center;
        background-size: cover;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-content {
        gap: 30px;
    }
}