/* Custom properties for Light and Dark modes */
:root {
    /* Brand Colors */
    --brand-yellow: #F2C94C;
    --brand-yellow-dark: #D4AF37;
    --brand-dark: #1A1A1A;
    --brand-light: #F8F9FA;
    
    /* Theme Colors (Light) */
    --bg-color: #F8F9FA;
    --text-primary: #333333;
    --text-secondary: #4A4A4A;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.3);
    --nav-bg: rgba(248, 249, 250, 0.85);
    --sidebar-bg: rgba(248, 249, 250, 0.98);
    
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    /* Theme Colors (Dark) */
    --bg-color: #121212;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --card-bg: rgba(30, 30, 30, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(18, 18, 18, 0.85);
    --sidebar-bg: rgba(18, 18, 18, 0.98);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--brand-yellow);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Glassmorphism utility */
.glassmorphism {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Button utility */
.cta-button {
    display: inline-block;
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(255, 213, 0, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--brand-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    transition: background var(--transition-speed);
}

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

.logo-img {
    height: 50px;
    transition: transform var(--transition-speed);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--brand-yellow);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s;
}

.theme-btn:hover {
    background: rgba(128, 128, 128, 0.1);
}

.theme-icon {
    width: 22px;
    height: 22px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    width: 26px;
    height: 26px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../wallpaper_principal.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white; /* Always white on the hero image */
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-title .highlight {
    color: var(--brand-yellow);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* TukTuk Animation */
.tuktuk-animation-container {
    position: absolute;
    bottom: 50px;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.tuktuk-animated {
    position: absolute;
    bottom: 0;
    height: 350px;
    /* initial state off-screen to the right */
    right: -400px;
    animation: driveIn 11s ease-in-out infinite;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.5));
}

@keyframes driveIn {
    0% {
        right: -450px;
        transform: translateY(0);
    }
    27% {
        right: 20%;
        transform: translateY(-5px);
    }
    54% {
        right: 20%;
        transform: translateY(0);
    }
    82% {
        right: 120%;
        transform: translateY(-2px); 
    }
    100% {
        right: 120%;
        transform: translateY(-2px);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

.about-card {
    padding: 50px;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
}

.about-text strong {
    color: var(--brand-yellow);
    font-style: normal;
}

/* Tours Section */
.tours {
    padding: 80px 0;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tour-card {
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-10px);
}

.tour-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}

.tour-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.tour-category {
    display: inline-block;
    background: rgba(255, 213, 0, 0.2);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tour-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tour-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.tour-duration {
    font-size: 1rem;
    color: var(--text-secondary);
}

.tour-price {
    color: var(--brand-yellow);
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

[data-theme="dark"] .tour-category {
    color: var(--brand-yellow);
}

.tours-disclaimer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--brand-dark);
    color: var(--brand-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #A0A0A0;
    font-size: 1.1rem;
}

.footer-links h4 {
    font-size: 1.3rem;
    color: var(--brand-yellow);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    color: #D0D0D0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-icon {
    width: 20px;
    height: 20px;
    color: var(--brand-yellow);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 28px;
    height: 28px;
    color: #D0D0D0;
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: var(--brand-yellow);
    transform: translateY(-3px);
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brand-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #808080;
    font-size: 0.9rem;
}

/* Email Page Styles */
.email-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.email-container {
    padding: 50px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.logo-img-large {
    height: 80px;
    margin-bottom: 30px;
}

.email-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.floating-theme {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--sidebar-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001; /* Keep icon above the menu */
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .tuktuk-animated {
        height: 350px; /* Matched the desktop size */
        animation: driveInMobile 11s ease-in-out infinite;
    }
}

@keyframes driveInMobile {
    0% {
        right: -450px;
        transform: translateY(0);
    }
    27% {
        right: -100px; /* Paragem antes da metade adaptada à tela pequena e ao tamanho maior do TukTuk */
        transform: translateY(-5px);
    }
    54% {
        right: -100px;
        transform: translateY(0);
    }
    82% {
        right: 120%;
        transform: translateY(-2px); 
    }
    100% {
        right: 120%;
        transform: translateY(-2px);
    }
}
