/* Global Styles */
:root {
    --primary-color: #000000;
    --accent-color: #333333;
    --bg-color: #FFFDD0;
    --text-color: #000000;
    --text-secondary: #333333;
    --white: #FFFDD0;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dark mode removed to enforce consistent light theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
    /* Main scroll handled by container */
    height: 100vh;
    width: 100%;
}

/* Real Map Background Container */
#map-bg {
    background-image: url('images/map_bg.png');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Cream Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 253, 208, 0.30);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: -1;
}

/* Header & Nav */
header {
    background: #EFEBD6;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    /* Increased to ensure it is above everything */
    border-bottom: 4px solid #000000 !important;
    /* Force black border */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    /* Ensure clicks are registered */
}

.logo {
    font-size: 2.25rem;
    /* Increased by 50% */
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    background-color: #000000;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Language Dropdown Styling */
#lang-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #000000;
    color: #FFFFFF;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
}

#lang-select:hover {
    transform: scale(1.05);
    background-color: #333333;
}

#lang-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.lang-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    transform: scale(1.05);
    background-color: #333333;
}

/* Scroll Snap Container */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    width: 100%;
}

/* Snap Sections */
.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 80px 20px 20px 20px;
    /* Top padding for header */
}

/* Hero Section Specifics */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Prevent overflow from large images */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1600px;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    /* Reduced width to fit flanked images */
    margin: 0;
    /* Margin handled by flex gap */
    z-index: 2;
}

.hero-device {
    height: auto;
    /* Shadow removed to fix "layer" look */
    z-index: 1;
}

.phone-img {
    max-height: 70vh;
    width: auto;
}

.watch-img {
    max-height: 45vh;
    /* Reduced by 10% (50vh -> 45vh) */
    width: auto;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.app-icon {
    width: 100px;
    /* Slightly smaller icon to balance */
    height: 100px;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #000000;
    margin-bottom: 2px;
    /* Very tight spacing */
}

.hero-app-name {
    font-size: 1rem;
    /* Smaller, like app label */
    font-weight: 500;
    /* Regular/Medium weight */
    margin-top: 0;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    /* Space before main title */
    color: #000;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #000000, #333333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Use Case Sections */
.use-case {
    /* Background removed as requested */
    background: transparent;
}

/* Content Wrapper for Use Cases to constrain width */
.use-case-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
    padding: 0 40px;
}

.use-case.reverse .use-case-content {
    flex-direction: row-reverse;
}

.use-case-text {
    flex: 1;
    text-align: left;
}

.use-case-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.use-case-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.use-case-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Placeholder styling for use cases (using phone frame or generic) */
.use-case-img {
    height: 500px;
    /* Premium Floating Card Style */
    height: auto;
    width: auto;
    max-width: 90%;
    /* Ensure it doesn't touch edges on small screens */
    max-height: 50vh;
    /* Limit height so text is visible */
    object-fit: cover;
    /* Ensure images fill the frame nicely */
    border-radius: 24px;
    border: 6px solid rgba(0, 0, 0, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}


/* Slider Section Adjustment for Snap */
.slider-section-snap {
    /* Background for footer readability since it's at the bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-container {
    position: relative;
    background: var(--card-bg);
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    padding: 100px 40px 40px 40px;
    min-height: 620px;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

/* Dynamic Island Style Title */
.dynamic-island-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    padding: 12px 30px;
    border-radius: 40px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.dynamic-island-title h2 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.slides-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 0 20px;
}

.slide-media {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.slide-img {
    height: 500px;
    width: auto;
    max-width: none;
    border: none;
    border-radius: 20px;
    box-shadow: none;
    object-fit: contain;
    margin-left: 120px;
    /* Increased from 100px to 120px as requested */
}

.slide-text {
    flex: 1;
    text-align: left;
    padding: 20px;
    padding-right: 40px;
    /* Added independent padding for right arrow gap */
}

.slide-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.slide-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Nav Buttons */
.nav-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #000;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background-color: #333;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    margin-bottom: 50px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 6px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active-dot,
.dot:hover {
    background-color: #000;
}

/* Footer */
footer {
    padding: 20px 20px;
    text-align: center;
    border-top: 4px solid #000000;
    background: #EFEBD6;
    margin-top: 0;
    /* Handled by container gap */
    width: 100%;
    max-width: 100%;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {

    /* Header/Nav Mobile */
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    /* Hero Section */
    .hero-container {
        flex-direction: column;
        gap: 30px;
        padding-top: 100px;
        /* Space for stacked nav */
    }

    .hero-content {
        order: 1;
        /* Content first */
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Smaller title on mobile */
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-device {
        display: none;
        /* Hide devices to focus on content */
    }

    /* Use Cases */
    .use-case-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .use-case.reverse .use-case-content {
        flex-direction: column;
    }

    .use-case-text {
        order: 2;
        /* Text below image on mobile usually looks better, or above? Let's keep text top? No, image is engaging. Let's do Text Top (default) but ensure image fits. */
        order: 1;
    }

    .use-case-img {
        order: 2;
        height: auto;
        max-height: 40vh;
        width: 100%;
        object-fit: contain;
        border-width: 3px;
    }

    .use-case-text h2 {
        font-size: 2rem;
    }

    .use-case-text p {
        font-size: 1rem;
    }

    /* Slider */
    .slider-container {
        margin: 0;
        padding: 80px 20px 40px 20px;
        min-height: auto;
    }

    .nav-btn {
        display: none;
        /* Swipe only or dots */
    }

    .slide {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .slide-media {
        justify-content: center;
    }

    .slide-img {
        margin-left: 0;
        height: 250px;
    }

    .slide-text {
        text-align: center;
        padding: 0;
    }

    .slide-text h3 {
        font-size: 1.8rem;
    }

    /* Privacy/Support Content */
    .privacy-content {
        margin: 180px 20px 40px 20px;
        /* Much smaller margins */
        padding: 30px;
    }

    .privacy-content h1 {
        font-size: 2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0 0 0;
    /* Remove horizontal padding so footer is full width */
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Changed from space-between to fix Safari gap */
    /* Allow growth */
    min-height: 100vh;
    height: auto;
    scroll-snap-align: start;
}

.section-title {
    font-size: 1.1rem;
    /* Matched to Discover RoadLog */
    color: #fff;
    margin-bottom: 3rem;
    font-weight: 600;
    /* Matched to dynamic-island-title */
    text-shadow: none;
    background: #000;
    padding: 12px 30px;
    /* Matched padding */
    border-radius: 40px;
    /* Matched radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    /* margin-top: 0 ensures fixed distance from title. margin-bottom: auto pushes footer down. */
    margin: 0 0 auto 0;
    padding: 0 20px 60px 20px;
    /* Added bottom padding to safe-guard footer overlap */
}

/* Testimonial Card Styles */
.testimonial-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 3px solid #000;
    /* Black Border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details .name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

.user-details .role {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.stars {
    color: #FFC107;
    /* Amber/Gold */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    font-style: normal;
}

/* Responsive Testimonials */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        gap: 15px;
    }

    .testimonial-card {
        min-width: 280px;
        scroll-snap-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Privacy Policy Page Styles */
.privacy-page-body {
    overflow-y: auto;
    /* Allow normal scrolling for this page */
    height: auto;
}

.privacy-content {
    margin: 140px 300px 60px 300px;
    /* 300px margins as requested, top margin for header */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #333;
}

.privacy-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.privacy-content .last-updated {
    color: #666;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 2px solid #EFEBD6;
    padding-bottom: 10px;
}

.privacy-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.privacy-content p,
.privacy-content ul {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-content ul {
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustment for Privacy Policy */
@media (max-width: 1200px) {
    .privacy-content {
        margin: 120px 100px 40px 100px;
    }
}

@media (max-width: 768px) {
    .privacy-content {
        margin: 100px 20px 40px 20px;
        padding: 30px;
    }

    .privacy-content h1 {
        font-size: 2.2rem;
    }
}