@import url('https://fonts.googleapis.com/css2?family=Trocchi&family=Space+Mono:wght@400;700&display=swap');

html {
    scroll-snap-type: y mandatory;
}

:root {
    --bg-color: #0F0F0F;
    --text-color: #Eaeaea;
    --accent-color: #A59B6C;
    /* Default accent */
    --font-heading: 'Trocchi', serif;
    --font-mono: 'Space Mono', monospace;

    /* Section Colors */
    --color-collect: #C7C1A4;
    --color-capture: #40E3C8;
    --color-preserve: #99C2DE;
    --color-share: #E7C0CC;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 
   SCROLL EFFECT ARCHITECTURE
   We use a container with defined height to enable scrolling.
   The sections will be fixed position, and we will use JS to move them 
   to simulate the "swipe up to reveal" effect.
*/

.main-container {
    /* Height now provided by .snap-point children */
    position: relative;
    z-index: 1;
}

.snap-point {
    height: 100vh;
    scroll-snap-align: start;
}

.scroll-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Changed from center to allow varied spacing */
    text-align: center;
}

/* Z-Index Order: First section on top, stacking downwards */
#section-1 {
    z-index: 6;
}

#section-2 {
    z-index: 5;
}

#section-3 {
    z-index: 4;
}

#section-4 {
    z-index: 3;
}

#section-5 {
    z-index: 2;
}

#section-6 {
    z-index: 1;
}

/* Texture Overlay */
.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/noise_bg.png');
    background-repeat: repeat;
    pointer-events: none;
    z-index: 2;
}

.content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 21px 0 21px;
}

/* --- Section 1: Intro --- */
#section-1 {
    background-image: url('assets/Homepage_bg.jpg');
    background-size: cover;
    background-position: center;
}

#section-1 .texture-overlay {
    opacity: 1;
}

.logo-main {
    width: 240px;
    margin-top: 64px;
    margin-bottom: 2rem;
}

/* Hide desktop nav by default on mobile */
.desktop-nav,
.separator {
    display: none;
}

.intro-subtitle {
    font-family: var(--font-heading);
    font-size: 28px;
    width: 320px;
    color: #252525;
    margin-bottom: 3rem;
    line-height: 1.4;
}

.typing-container {
    font-family: var(--font-mono);
    font-size: 16px;
    color: #fff;
    min-height: 1.5em;
    margin-bottom: auto;
}

/* Base Button Style (Mobile/Default) */
.get-app-btn {
    position: absolute;
    bottom: 32px;
    left: 32px;
    margin: 0;
    background: #C7C1A4;
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}



/* Typewriter Effect CSS */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fff;
    width: 0;
    animation: typing 2.5s steps(30, end) forwards, blink .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #fff;
    }
}

/* --- Common Styles for Content Sections (2-5) --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-top: 5vh;
    margin-bottom: 1rem;
    color: #252525;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 24px;
    color: #252525;
    max-width: 300px;
    margin-bottom: 2rem;
}

.mockup-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Section 2: Collect */
#section-2 {
    background-color: var(--color-collect);
}

#section-2 .texture-overlay {
    opacity: 0.4;
}

/* Section 3: Capture */
#section-3 {
    background-color: var(--color-capture);
}

#section-3 .texture-overlay {
    opacity: 0.4;
}

/* Section 4: Preserve */
#section-4 {
    background-color: var(--color-preserve);
}

#section-4 .texture-overlay {
    opacity: 0.4;
}

/* Section 5: Share */
#section-5 {
    background-color: var(--color-share);
}

#section-5 .texture-overlay {
    opacity: 0.4;
}


/* --- Section 6: Footer --- */
#section-6 {
    background-image: url('assets/Footer_bg.jpg');
    background-size: cover;
    background-position: center bottom;
    color: #252525;
    justify-content: center;
    /* Center content vertically for footer */
}

#section-6 .texture-overlay {
    opacity: 0.4;
}

#section-6 .content-wrapper {
    justify-content: center;
    gap: 1rem;
}

.feather-icon {
    width: 156px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.8;
}

.footer-logo {
    width: 170px;
    margin-bottom: 1rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 30px;
    color: #252525;
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 320px;
}

.download-badge {
    height: 50px;
    width: auto;
    cursor: pointer;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 3rem;
}

.footer-links {
    position: absolute;
    bottom: 15vh;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
}

.footer-links a {
    color: #252525;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.footer-links a:hover,
.footer-links a:active {
    border-color: #252525;
    color: #252525;
}

/* Privacy Policy Page Styles & Our Story */
.privacy-body {
    overflow-y: auto;
    background: var(--bg-color);
    line-height: 1.6;
    color: var(--text-color);
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    text-align: left;
    /* Reverted to left alignment */
}

.privacy-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: none;
    text-align: left;
    /* Left align header */
}

.privacy-logo {
    width: 160px;
    /* Increased logo size */
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 1rem;
}

.privacy-logo:hover {
    opacity: 0.8;
}

.privacy-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    /* Larger title */
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: normal;
    text-align: left;
    /* Left align title */
}

.last-updated {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 3.5rem;
    display: block;
    text-align: left;
    /* Left align date */
}

.privacy-content section {
    margin-bottom: 3rem;
    text-align: left;
    /* Keep body text left aligned for readability */
}

/* Center text for "Our Story" specifically if needed, but keeping generally left for reading lists/clauses */
/* Special override for centered text pages if we want Our Story to be centered */
.privacy-body.centered-text .privacy-content {
    text-align: center;
}

.privacy-body.centered-text .privacy-content section {
    text-align: center;
}

.privacy-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: normal;
    border-left: none;
    /* Removed border */
    padding-left: 0;
    text-align: left;
    /* Left align sub-titles */
    color: var(--accent-color);
}

.privacy-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: normal;
}

.privacy-content p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #ccc;
    font-size: 1.1rem;
    /* Slightly larger text */
    line-height: 1.8;
}

.privacy-content strong {
    font-weight: 700;
    color: white;
}

.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #ccc;
    font-size: 1rem;
    list-style-position: inside;
    /* Helps with alignment */
}

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

.privacy-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(165, 155, 108, 0.3);
    transition: all 0.2s ease;
}

.privacy-content a:hover {
    color: white;
    border-color: white;
}

.privacy-footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

/* Feedback Page Styles */
.feedback-body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    min-height: 100vh;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    /* Allow normal scrolling for feedback */
}

.feedback-container {
    width: 100%;
    max-width: 600px;
    /* Increased width */
    display: flex;
    flex-direction: column;
}

.feedback-header {
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    width: fit-content;
    padding: 0.5rem;
    margin-left: -0.5rem;
    transition: opacity 0.2s;
}

.back-button:hover {
    opacity: 0.7;
}

.feedback-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Larger title */
    color: var(--accent-color);
    font-weight: normal;
    margin: 0;
}

.feedback-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    /* Larger subtitle */
    color: #999;
    margin-top: -0.5rem;
    line-height: 1.5;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* Increased spacing */
    flex-grow: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* Slightly larger label */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    /* Slightly reduced padding */
    background-color: #222;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.2s;
}

.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent-color);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-group textarea {
    resize: none;
    min-height: 200px;
    border-radius: 16px;
    line-height: 1.5;
}

.submit-btn {
    margin-top: auto;
    width: 100%;
    padding: 16px;
    background-color: var(--accent-color);
    color: #2b2715;
    border: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 2rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.feedback-footer {
    text-align: center;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.feedback-footer p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
}

.feedback-footer a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(165, 155, 108, 0.3);
    transition: all 0.2s ease;
}

.feedback-footer a:hover {
    color: white;
    border-color: white;
}

/* DESKTOP LAYOUT (min-width: 769px) */
@media screen and (min-width: 769px) {
    #section-1 {
        background-image: url('assets/homepage_bg_desktop.jpg');
    }

    /* Reset content wrapper to allow absolute positioning */
    #section-1 .content-wrapper {
        display: block;
        padding: 40px 60px;
        position: relative;
    }

    /* Logo: Top Left */
    .logo-main {
        width: 160px;
        position: absolute;
        top: 40px;
        left: 60px;
        margin: 0;
    }

    /* Nav: Top Center */
    .desktop-nav {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        /* Changed from center to accommodate different font rendering if needed, but flex-start is safer for text baselines often, keeping it simple though */
        align-items: center;
        gap: 12px;
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        font-family: var(--font-mono);
        font-size: 18px;
        color: #252525;
        z-index: 10;
    }

    .desktop-nav a {
        text-decoration: none;
        color: #252525;
        transition: opacity 0.2s;
    }

    .desktop-nav a:hover,
    #section-6 .footer-links a:hover {
        /* Underline only the word */
        text-decoration: underline;
        text-underline-offset: 4px;
        opacity: 1;
    }

    .desktop-nav .separator,
    #section-6 .footer-links .separator {
        opacity: 0.5;
        color: #252525;
        display: inline-block;
    }

    #section-6 .footer-links a {
        font-size: 18px;
        font-family: var(--font-mono);
        color: #252525;
        opacity: 0.8;
        border-bottom: none;
        /* Override mobile border */
    }

    .get-app-btn {
        position: absolute;
        top: 40px;
        right: 60px;
        left: auto;
        bottom: auto;
        margin: 0;
        background: #252525;
        color: #fff;
        font-size: 16px;
        font-family: var(--font-heading);
        padding: 12px 24px;
        border-radius: 8px;
    }

    .get-app-btn:hover {
        background: #000;
    }

    /* Subtitle: Bottom Left, Large */
    .intro-subtitle {
        position: absolute;
        bottom: 120px;
        left: 60px;
        width: 450px;
        font-size: 64px;
        line-height: 1.1;
        margin: 0;
        text-align: left;
        color: #581c26;
        /* Dark reddish brown from screenshot */
    }

    /* --- Sections 2-5 Desktop Layout (Side-by-Side) --- */
    #section-2 .content-wrapper,
    #section-3 .content-wrapper,
    #section-4 .content-wrapper,
    #section-5 .content-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6rem;
        padding: 0 8vw;
        text-align: left;
    }

    /* Text Container on Left */
    .text-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        /* Push title to top, subtitle to bottom */
        height: 55vh;
        /* Fixed height to create the vertical gap */
        max-width: 500px;
        margin-top: -5vh;
        /* Slight offset to align better with phone visual center */
    }

    .section-title {
        font-size: 48px;
        line-height: 1.1;
        margin-top: 0;
        margin-bottom: 0;
        color: #252525;
    }

    .section-subtitle {
        font-size: 20px;
        /* Adjusted to match the visual weight in the screenshot better */
        line-height: 1.6;
        max-width: 300px;
        /* Narrower to force the 3-line wrap */
        margin-bottom: 0;
        color: #333;
    }

    /* Image on Right */
    .mockup-img {
        flex: 1;
        max-width: 500px;
        max-height: 90vh;
        /* Ensure it fits vertically */
        width: auto;

        /* Align to bottom */
        align-self: flex-end;
        margin-top: auto;
        margin-bottom: -5vh;
        /* Pull down to touch bottom edge */

        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    }

    /* --- Footer Desktop Layout --- */
    #section-6 {
        background-image: url('assets/desktop_footer_bg.jpg');
        /* Override default alignment */
        align-items: flex-start;
    }

    #section-6 .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        padding-left: 10vw;
        /* Position content to the left */
        width: 100%;
        padding-bottom: 15vh;
        /* Shift content block up away from the ground */
    }

    #section-6 .feather-icon {
        width: 80px;
        margin-bottom: 1.5rem;
        align-self: flex-start;
        opacity: 0.9;
    }

    #section-6 .footer-logo {
        width: 120px;
        margin-bottom: 2rem;
        align-self: flex-start;
    }

    #section-6 .footer-title {
        font-size: 56px;
        /* Large desktop size */
        color: #581c26;
        /* Match other titles */
        line-height: 1.1;
        max-width: 450px;
        margin-bottom: 2.5rem;
        text-align: left;
    }

    #section-6 .download-badge {
        height: 56px;
        width: auto;
        margin-bottom: 0;
        align-self: flex-start;
    }

    #section-6 .footer-badges {
        align-items: flex-start;
    }

    #section-6 .footer-links {
        position: static;
        /* Remove absolute positioning */
        width: auto;
        display: flex;
        gap: 1.5rem;
        /* Gap between links */
        margin: 0;
        justify-content: flex-start;
    }

    #section-6 .footer-links a {
        font-size: 18px;
        font-family: var(--font-mono);
        color: #252525;
        opacity: 0.8;



    }

}

/* --- Mobile / Responsiveness Fixes --- */
@media screen and (max-width: 768px) {

    .scroll-section,
    .snap-point {
        /* Fallback for older browsers */
        height: 100vh;
        /* Dynamic Viewport Height (dvh) adjusts as address bar grows/shrinks */
        height: 100dvh;
    }

    .get-app-btn {
        /* Instead of absolute positioning which might get hidden */
        position: static;
        margin-top: auto;
        /* Push to bottom of flex container */
        margin-bottom: calc(24px + env(safe-area-inset-bottom));
        /* Add some extra space for aesthetic + safe area */
        align-self: center;
        /* Ensure it's centered */
    }
}

/* Very Small Devices (iPhone SE, etc.) */
@media screen and (max-width: 480px) {
    .section-title {
        font-size: 24px;
        margin-top: 3vh;
    }

    .section-subtitle {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 1.5rem;
    }

    .footer-title {
        font-size: 22px;
        max-width: 280px;
    }

    .download-badge {
        margin-bottom: 1.5rem;
    }

    .footer-links {
        position: static;
        width: auto;
        gap: 1rem;
        margin-top: 0;
        justify-content: center;
    }

    .footer-links a {
        font-size: 14px;
    }

    .logo-main {
        width: 180px;
        margin-top: 40px;
    }

    .feather-icon {
        width: 120px;
        margin-bottom: 16px;
    }
}