/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color scheme */
:root {
    --primary-blue: #4A90E2;
    --secondary-blue: #7BB3F0;
    --accent-teal: #50C9C3;
    --warm-orange: #F5A623;
    --soft-purple: #9B59B6;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --white: #FFFFFF;
    --success-green: #28A745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

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

/* Landing page styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-gray) 0%, #E3F2FD 100%);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

.hero-image .banner-emoji {
    font-size: 4rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.main-content {
    padding: 60px 0;
}

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

.description-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.description-section p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0 auto;
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.tool-card.coming-soon {
    opacity: 0.7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-card p {
    color: var(--medium-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--warm-orange);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* About section styles */
.about-section {
    background: var(--light-gray);
    padding: 60px 0;
    margin-top: 60px;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.photo-placeholder {
    font-size: 3rem;
    color: var(--white);
}

.team-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.team-card p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Trip progress page styles */
.trip-progress-page {
    background: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.subpage-header {
    width: 100%;
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.subpage-header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-teal);
}

.trip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.time-display {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#timeRemaining {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.road {
    position: relative;
    width: 80%;
    height: 20px;
    background-color: #969696;
    margin: 50px 0;
    border-radius: 5px;
}

.road-marks {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 100%;
    height: 10%;
    background-image: repeating-linear-gradient(to right, rgb(215, 215, 27) 0 20px, transparent 20px 40px);
    pointer-events: none;
}

.car {
    position: absolute;
    top: -50px;
    left: -80px;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    transform: scaleX(-1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.car:hover {
    transform: scaleX(-1) scale(1.1);
}

.destination {
    position: absolute;
    top: -60px;
    right: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.destination:hover {
    transform: scale(1.1);
}

/* Selection menu styles */
.selection-menu {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    min-width: 200px;
}

.selection-menu.show {
    display: block;
}

.selection-menu h3 {
    margin: 0 0 15px 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
    text-align: center;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.selection-item {
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.selection-item:hover {
    border-color: var(--primary-blue);
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.selection-item.active {
    border-color: var(--accent-teal);
    background: rgba(80, 201, 195, 0.2);
}

.selection-item span {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.close-menu {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    color: var(--primary-blue);
}

/* Time selector styles */
.time-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.time-selector.show {
    display: flex;
}

.time-selector-content {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.time-selector-content h3 {
    margin: 0 0 20px 0;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.time-display-large {
    font-size: 3rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.time-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.time-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.time-slider-container {
    flex: 1;
    position: relative;
}

#timeSlider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--light-gray);
    outline: none;
    appearance: none;
}

#timeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

#timeSlider::-webkit-slider-thumb:hover {
    background: var(--accent-teal);
    transform: scale(1.2);
}

#timeSlider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
}

.time-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.time-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 16px;
    border: 2px solid var(--secondary-blue);
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.preset-btn:hover {
    background: var(--secondary-blue);
    color: var(--white);
}

.start-trip-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-trip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.controls input {
    width: 300px;
    padding: 12px 15px;
    margin-right: 10px;
    border: 2px solid var(--secondary-blue);
    border-radius: 8px;
    font-size: 16px;
}

.controls button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Language switcher styles */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Add padding to account for fixed language switcher */
    .main-content,
    .container {
        padding-top: 60px;
    }
    
    /* Reduce header heights on mobile */
    .hero-section {
        padding: 15px 0; /* Keep some padding but account for language switcher */
        padding-top: 20px; /* Add top padding for language switcher */
    }
    
    .subpage-header {
        padding: 5px 0;
        margin-bottom: 10px;
    }
    
    .hero-banner {
        gap: 0px; /* Reduced from 20px to 15px */
        padding: 0 0px; /* Reduced from 15px to 10px */
    }
    
    .hero-content h1.hero-title {
        font-size: 2.5rem;
        margin-top: 25px;
        margin-bottom: 5px; /* Reduced from 10px to 5px */
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 5px; /* Add smaller margin */
    }
    
    .description-section h2,
    .tools-section h2 {
        font-size: 2rem;
        margin-top: -60px; /* Reduce top margin */
        margin-bottom: 20px; /* Reduce bottom margin */
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-banner {
        padding: 40px 20px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .controls {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
    
    .controls input {
        width: 100%;
        max-width: 300px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .controls button {
        flex: 1;
        max-width: 120px;
        min-width: 80px;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    /* Mobile-specific selection menu styles */
    .selection-menu {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 90vw;
        max-height: 90vh;
        overflow-y: auto;
        right: auto !important;
    }
    
    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selection-item {
        font-size: 1.5rem;
        padding: 15px 10px;
    }
    
    /* Mobile time selector styles */
    .time-selector-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .time-display-large {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .time-controls {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .time-slider-container {
        width: 100%;
    }
    
    #timeSlider {
        height: 12px;
        border-radius: 6px;
    }
    
    #timeSlider::-webkit-slider-thumb {
        width: 35px;
        height: 35px;
    }
    
    #timeSlider::-moz-range-thumb {
        width: 35px;
        height: 35px;
    }
    
    .time-btn {
        display: none;
    }
    
    .time-presets {
        gap: 8px;
        margin-top: 10px;
    }
    
    .preset-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .language-switcher {
        position: fixed;
        top: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 70%;
        max-width: 300px;
        margin: 0;
        justify-content: center;
        z-index: 1000;
    }
    
    .subpage-header .language-switcher {
        position: fixed;
        top: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 70%;
        max-width: 300px;
        margin: 0;
        justify-content: center;
        z-index: 1000;
    }
    
    /* About section mobile styles */
    .about-section {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .team-card {
        padding: 30px 20px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .photo-placeholder {
        font-size: 2.5rem;
    }
    
    .team-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .team-card p {
        font-size: 0.95rem;
    }
}
