/* --- GLOBAL STYLES & VARIABLES (UPDATED TO MATCH KTB APP) --- */
:root {
    --color-background-dark: #0a0a0a;
    /* App Deep Black */
    --color-text-light: #ededed;
    --color-text-dark: #0a0a0a;
    --color-primary: #ff006e;
    /* App Women's Pink */
    --color-secondary: #00d4ff;
    /* App Men's Cyan */
    --font-heading: 'Inter', sans-serif;
    --font-subheading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --easing-fluid: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background-dark);
    /* Subtle grid pattern instead of radial, matches app feel better */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 3rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.4s ease;
}

.page-header.scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(5px);
}

.logo {
    text-decoration: none;
    text-align: left;
    z-index: 101;
    /* Keep logo on top */
}

.logo-main {
    font-family: var(--font-subheading);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--color-text-light);
    display: block;
}

.logo-main strong {
    font-weight: 700;
    color: var(--color-primary);
}

.logo-sub {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* --- FULLSCREEN PANELS --- */
.fullscreen-panel {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow-x: hidden;
}

.panel-content {
    max-width: 900px;
    width: 100%;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1,
h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h1.hero-title {
    font-size: 5rem;
    min-height: 1.2em;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

h2 {
    font-size: 3rem;
}

.sub-headline {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* --- TYPING ANIMATION STYLES --- */
.hero-title::after {
    content: '|';
    display: inline-block;
    vertical-align: baseline;
    animation: blink 0.7s infinite;
    font-weight: 100;
    color: var(--color-primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- HERO SECTION & PERSPECTIVE BUTTONS --- */
.perspective-selector {
    margin-top: 3.5rem;
    text-align: center;
}

.perspective-selector p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.perspective-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.perspective-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* More modern, less pill-like */
    text-decoration: none;
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s var(--easing-fluid);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-him {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    border-color: rgba(0, 212, 255, 0.5);
    color: var(--color-secondary);
}

.btn-her {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(255, 77, 184, 0.1) 100%);
    border-color: rgba(255, 0, 110, 0.5);
    color: var(--color-primary);
}

.perspective-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.btn-him:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 153, 255, 0.2) 100%);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    color: #fff;
}

.btn-her:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2) 0%, rgba(255, 77, 184, 0.2) 100%);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
    color: #fff;
}

/* ADD THIS RULE */
.mobile-ask-cta {
    display: none;
}

/* --- GENERAL BUTTONS --- */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-subheading);
    font-weight: 700;
    transition: all 0.3s var(--easing-fluid);
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, #ff006e 0%, #ff4db8 100%);
    border: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.5);
}

.header-cta {
    padding: 0.5rem 1.5rem;
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.header-cta:hover {
    background-color: var(--color-text-light);
    color: var(--color-text-dark);
}

/* --- HOW IT WORKS SECTION (UPDATED) --- */
#how-it-works {
    background-color: #161616;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.step-card {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s var(--easing-fluid), box-shadow 0.3s var(--easing-fluid);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.step-card .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-family: var(--font-subheading);
    margin-bottom: 0.5rem;
}

/* --- TRENDING INSIGHT SECTION --- */
#data-explorer {
    background-color: #1a1a1a;
}

.chart-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 2rem auto;
    max-width: 600px;
    min-height: 2.5em;
    transition: opacity 0.5s var(--easing-fluid);
}

.trending-insight-container {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.insight-stat {
    margin-bottom: 2.5rem;
    transition: opacity 0.5s var(--easing-fluid);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-primary);
    line-height: 1;
}

.stat-caption {
    font-size: 1.2rem;
    max-width: 400px;
    margin: 0.5rem auto 0 auto;
    opacity: 0.9;
}

.fade-out {
    opacity: 0 !important;
    transform: translateY(-10px);
}

/* --- SUBMIT QUESTION SECTION --- */
#submit-question {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1534085633182-054454371452?q=80&w=2670&auto=format&fit=crop') center/cover;
}

.question-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-step {
    width: 100%;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.form-step:not(.active) {
    display: none;
}

.form-step.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.form-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.question-form textarea {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
}

.question-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.question-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 123, 84, 0.5);
}

.demographic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    opacity: 0.8;
}

.input-group input,
.input-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--color-text-light);
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.cta-button.secondary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

.cta-button.secondary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: scale(1.05);
}

/* --- VALUES SECTION --- */
#our-values {
    background-color: #161616;
}

.values-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-badge {
    transition: transform 0.3s var(--easing-fluid);
}

.value-badge:hover {
    transform: scale(1.05);
}

.value-badge .fas {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.value-badge:hover .fas {
    color: var(--color-primary);
}

.value-badge h3 {
    font-family: var(--font-subheading);
    color: var(--color-text-light);
}

/* --- GET INVOLVED SECTION --- */
#get-involved {
    background-color: #161616;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.support-card {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s var(--easing-fluid), box-shadow 0.3s var(--easing-fluid);
}

.support-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.support-card .fas {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.support-card p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.support-card .fa-hands-helping {
    color: var(--color-secondary);
}

.support-card .fa-heart {
    color: var(--color-primary);
}

.support-btn {
    padding: 0.8rem 2rem;
}

.btn-volunteer {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-volunteer:hover {
    background-color: transparent;
    color: var(--color-secondary);
    transform: scale(1.05);
}

.btn-donate {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-donate:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: scale(1.05);
}

/* --- FOOTER --- */
.page-footer {
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: #000;
    color: #aaa;
}

.page-footer h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-footer a {
    color: #fff;
    text-decoration: none;
}

.footer-credit {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-icons {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    color: #aaa;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a i {
    width: 2.5rem;
    text-align: center;
}

.social-icons a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}


/* --- SCROLL ANIMATIONS --- */
@keyframes fade-up-pop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--easing-fluid), transform 0.8s var(--easing-fluid);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    opacity: 0;
}

.animate-up.is-visible {
    animation: fade-up-pop 0.8s forwards var(--easing-fluid);
}

.step-card.animate-up:nth-child(2),
.value-badge.animate-up:nth-child(2),
.support-card.animate-up:nth-child(2) {
    animation-delay: 0.15s;
}

.step-card.animate-up:nth-child(3),
.value-badge.animate-up:nth-child(3) {
    animation-delay: 0.3s;
}

.value-badge.animate-up:nth-child(4) {
    animation-delay: 0.45s;
}


/* --- SCROLL INDICATOR --- */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(10px);
    }

    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: bounce 2.5s infinite ease-in-out;
    transition: opacity 0.4s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}


/* --- ADDED: MOBILE NAVIGATION STYLES --- */
.mobile-nav-toggle {
    display: none;
    /* Hidden by default, shown in media query */
    z-index: 101;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-toggle.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- END OF NEW STYLES --- */


/* --- RESPONSIVENESS --- */
@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Changed to 2 columns */
    .values-bar {
        grid-template-columns: 1fr 1fr;
    }

    h1.hero-title {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 600px) {

    /* CHANGED: Hide desktop nav and show mobile toggle */
    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* ADDED: Style the mobile menu overlay */
    .main-nav {
        display: flex;
        /* Re-enable for mobile view */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s var(--easing-fluid);
        z-index: 100;
    }

    .main-nav.mobile-nav-active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .main-nav ul a {
        font-size: 1.5rem;
    }

    /* END OF ADDED STYLES */

    /* Original mobile styles */
    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    h1.hero-title {
        font-size: 2.5rem;
        white-space: normal;
    }

    h2 {
        font-size: 2rem;
    }

    .sub-headline {
        font-size: 1rem;
    }

    .perspective-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* ADD THIS BLOCK FOR THE SUBTLE LINK */
    .mobile-ask-cta {
        display: block;
        margin-top: 2rem;
    }

    .mobile-ask-cta a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: underline;
        font-weight: 700;
        transition: color 0.3s ease;
    }

    .mobile-ask-cta a:hover {
        color: var(--color-primary);
    }

    /* END OF BLOCK */

    .steps-grid,
    .values-bar,
    .support-grid,
    .demographic-grid {
        grid-template-columns: 1fr;
    }

    .chart-title {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 4rem;
    }

    .stat-caption {
        font-size: 1rem;
    }

    .trending-insight-container {
        padding: 2rem;
    }
}