/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0b0b0d;
    --bg-card: rgba(19, 19, 23, 0.7);
    --bg-input: rgba(25, 25, 34, 0.6);
    --accent: #ff8c00;
    --accent-hover: #e67e22;
    --accent-glow: rgba(255, 140, 0, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: rgba(255, 140, 0, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* New design system tokens */
    --accent-rgb: 255, 140, 0;
    --bg-card-glass: rgba(15, 15, 20, 0.75);
    --border-glow: rgba(255, 140, 0, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0b0d;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Glassmorphism General Style */
.glass-card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 12px 40px 0 rgba(var(--accent-rgb), 0.08);
}

/* 3D Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: auto; /* enable orbit controls rotation */
}

/* Typography & Layout Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bg-darker {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0) 0%, rgba(6, 6, 7, 0.85) 100%);
    backdrop-filter: blur(10px);
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(11, 11, 13, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    padding: 4px 10px;
    border-radius: 12px;
}

.lang-btn.active {
    color: var(--text-primary);
    background: var(--accent);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 150;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Drawer Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(11, 11, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 140;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 40px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
    opacity: 1;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    border-radius: 50px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* Showcase Section (Z-Layout) */
.showcase-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.section-title {
    font-size: 45px;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.showcase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 80px;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
    max-width: 550px;
}

.showcase-number {
    font-size: 60px;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(255, 140, 0, 0.08);
    line-height: 1;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.showcase-item:hover .showcase-number {
    color: rgba(255, 140, 0, 0.18);
}

.showcase-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.showcase-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

.showcase-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

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

.showcase-img-box {
    flex: 1;
    max-width: 600px;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(19, 19, 23, 0.4);
    backdrop-filter: blur(5px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.showcase-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: scale 0.5s ease, opacity 0.5s ease;
}

.showcase-item:hover .showcase-img-box {
    transform: translateY(-5px);
    border-color: rgba(255, 140, 0, 0.35);
}

.showcase-item:hover .showcase-img-box img {
    scale: 1.03;
    opacity: 1;
}

/* About Section & Stats */
.about-container {
    max-width: 1300px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-info h2 {
    font-size: 45px;
    margin-bottom: 30px;
}

.lead {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-color);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--accent-glow);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}



/* Contact Section & Form */
.contact-container {
    max-width: 1300px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-methods {
    margin-top: 50px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-method-item .icon {
    font-size: 28px;
    margin-right: 20px;
    background: rgba(255, 140, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.contact-method-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-method-item p a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(15px);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    background-color: rgba(25, 25, 34, 0.9);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.15);
}/* Route Planner Section */
.route-planner-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.planner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.map-container-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 520px;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 10;
}

.map-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    pointer-events: none;
    font-size: 13px;
    font-family: var(--font-heading);
}

.map-overlay-info span {
    color: var(--accent);
    font-weight: 700;
}

.planner-form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.route-summary-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 140, 0, 0.04);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 8px;
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.route-summary-box h4 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 8px;
}

.route-summary-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Leaflet Dark Mode Adjustment */
.leaflet-container {
    background: #09090b !important;
}

.leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) contrast(1.2) saturate(0.7) brightness(0.9);
}

.leaflet-bar {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    background-color: #131317 !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leaflet-bar a:hover {
    background-color: var(--accent) !important;
    color: var(--bg-color) !important;
}



/* FAQ Accordion Section */
.faq-section {
    padding: 100px 5%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(var(--accent-rgb), 0.2);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 17px;
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.4s ease;
    padding: 0 30px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active {
    background: rgba(19, 19, 23, 0.8);
    border-color: rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
}

.faq-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: rgba(15, 15, 20, 0.95);
    border-left: 4px solid var(--accent);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-body);
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    color: var(--accent);
    font-size: 18px;
}

/* Route Tracker Pulse Animation */
.custom-route-tracker {
    z-index: 1000 !important;
}

.tracker-pulse {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px var(--accent);
    position: relative;
}

.tracker-pulse::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulseWave 1.6s infinite;
    opacity: 0;
    box-sizing: border-box;
}

@keyframes pulseWave {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}


/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 5% 30px 5%;
    background: #060607;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 25px;
}

.brand-logo-footer {
    height: 55px;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 55px;
    }
    
    .showcase-item,
    .showcase-item.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .showcase-img-box {
        width: 100%;
        max-width: 100%;
    }
    
    .about-grid,
    .contact-grid,
    .planner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container-box {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 5%;
    }
    
    .brand-logo {
        height: 65px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 45px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .contact-form .form-row,
    .planner-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .planner-form-container,
    .contact-form-container {
        padding: 25px;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding-bottom: 18px;
    }
}
