/* ===== Layout and containers ===== */
/* Navbar */
nav.navbar {
    background: var(--color-bg);
    box-shadow: 0 4px 0 rgba(248, 33, 112, 0.1),
                0 8px 32px rgba(36, 52, 60, 0.06);
    border-bottom: 2px solid transparent;
    background-clip: padding-box;
}

/* Prevent horizontal scroll caused by hero section */
body {
    overflow-x: hidden;
}

/* Main content container - flex for sticky footer support */
.container {
    flex: 1 0 auto;
}

/* Global content spacing */
.main-content-container {
    margin-top: 1.5rem;
}

.section-pb {
    padding-bottom: 3.5rem;
}

footer {
    flex-shrink: 0;
}

/* Social login/connection cards */
.social-connections-container,
.social-login-container {
    background: var(--color-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 450px;
    margin: 40px auto;
}

.social-connections-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md);
    max-width: 420px;
}

/* Home page hero - remove gap above */
.home-hero-wrapper {
    margin-top: -1.5rem;
}

/* ===== HERO SECTION ===== */

/* Full-width hero that breaks out of container */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    max-width: none;
}

/* Overlay for the hero image - brand gradient */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248,33,112,0.7) 0%, rgba(243,104,44,0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero text positioned above everything */
.hero-text {
    position: absolute;
    inset: 2rem;
    color: white;
    text-shadow: 0px 3px 20px rgba(84, 6, 35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-text .color-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
}

.hero-text .tagline {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
    color: #fff;
}

/* Hero CTA buttons */
.hero-cta-btn,
.hero-cta-btn.secondary {
    text-shadow: none;
}

.hero-cta-btn {
    background: #fff;
    border: 3px solid #fff;
    border-radius: 2.5rem;
    font-weight: 900;
    letter-spacing: 0em;
    padding: 0.5rem 2rem;
    font-size: 1.6rem;
    text-shadow: none;
    box-shadow: 0 2px 12px rgba(84, 6, 35, 0.316);
    transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
    background: #fff2ff;
    filter: brightness(0.92);
}

/* "Join the" part of CTA - dark, readable */
.cta-dark {
    color: var(--color-text, #24343c);
}

/* "mixx" part of CTA - matches logo gradient, bold and bigger */
.cta-gradient {
    background: linear-gradient(90deg, var(--color-primary-yellow, #F6EB61), var(--color-primary-orange, #F3682C) 7%, var(--color-primary-pink, #F82170) 84%, var(--color-primary-purple, #A45DBF));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.8rem;
}

/* Secondary CTA button */
.hero-cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero-cta-btn.secondary:hover,
.hero-cta-btn.secondary:focus {
    background: #fff;
    color: #24343c;
    border-color: #fff;
}

/* Down arrow at bottom of hero */
.hero-down-arrow {
    position: absolute;
    left: 50%;
    bottom: 6rem;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0.85;
    text-decoration: none;
    color: #fff;
    text-shadow: 0px 3px 20px rgba(84, 6, 35);
    font-size: 1.5rem;
    padding: 0;
}

.hero-down-arrow:hover,
.hero-down-arrow:focus {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* ===== WHY MODMIXX SECTION ===== */

.why-list {
    padding-left: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    width: 100%;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    background: rgba(248,33,112,0.04);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(36,52,60,0.04);
}

.why-icon {
    flex-shrink: 0;
    font-size: 1.5em;
    color: var(--color-primary-pink, #F82170);
    margin-top: 0.1em;
}

.why-strong {
    font-weight: 800;
    color: var(--color-primary-orange, #F3682C);
    margin-right: 0.4em;
    white-space: nowrap;
}

/* ===== MEDIA QUERIES ===== */

/* --- Small Mobile: Up to 499px --- */
@media (max-width: 499px) {
    nav.navbar {
        padding: 0.4rem 0;
    }
    nav.navbar .navbar-brand img {
        height: 36px;
    }
    .social-connections-container,
    .social-login-container {
        padding: var(--spacing-sm);
        margin: 10px;
        max-width: none;
    }
    body.home-page .main-content-container {
        margin-top: 0;
    }
    .why-list {
        max-width: 100%;
        font-size: 1rem;
    }
    .why-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.7rem 0.5rem;
        font-size: 1rem;
    }

}

/* --- Large Mobile, Tablets & Desktop: 500px and up --- */
@media (min-width: 500px) {
    nav.navbar {
        padding: 0.5rem 0;
    }
    nav.navbar .navbar-brand img {
        height: 40px;
    }
    .social-connections-container,
    .social-login-container {
        padding: var(--spacing-md) var(--spacing-sm);
        margin: 20px auto;
    }
    body.home-page .main-content-container {
        margin-top: 0;
    }
    /* Hero switches to image-left layout, text right */
    .hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .hero-img {
        max-width: 60%;
        height: 100vh;
        opacity: 0.90; /* Slightly more opaque on extra large screens */
    }
    .hero-gradient-overlay {
        background: linear-gradient(135deg, rgba(248,33,112,0.7) 0%, rgba(243,104,44,0.5) 100%);
    }
    .hero-text {
        position: static;
        flex: 1;
        max-width: 40%;
        margin-left: 1rem;
        margin-right: 1rem;
        text-align: center;
    }
    .hero-text .color-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    .hero-text .tagline {
        font-size: 1.6rem;
    }
}

@media (max-width: 700px) {
    .hero-text {
        padding-top: 4.5rem; /* extra space for navbar */
    }
    .hero-text .color-title {
        font-size: 2rem;
    }
    .hero-text .tagline {
        font-size: 1.1rem;
    }
    .hero-cta-btn,
    .btn-lg {
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
    }
    .cta-gradient {
        font-size: 1.2rem;
        white-space: nowrap;
    }
    .hero-cta-btn {
        white-space: nowrap;
    }
    .final-cta-container {
        max-width: 95vw;
    }
    .manifesto-section .container,
    .manifesto-section .col-lg-7 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .final-cta-section .btn,
    .hero-cta-btn,
    .btn-lg {
        font-size: 1.05rem;
        padding: 0.5rem 1.6rem;
        white-space: nowrap;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 0.7rem;
        display: inline-block;
    }
    .section-pb {
        padding-bottom: 0.5rem;
    }

    /* Profile Picture Clear Checkbox Accessibility Adjustments for smaller screens */
    form[enctype="multipart/form-data"] input[name="profile_picture-clear"] {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        margin-left: 12px;
    }

    /* Larger touch target for checkbox */
    form[enctype="multipart/form-data"] .form-check:has(input[name="profile_picture-clear"]) {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 8px 0;
    }

    /* Larger clickable area for label */
    form[enctype="multipart/form-data"] label[for*="profile_picture-clear"] {
        padding: 12px 8px;
        cursor: pointer;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Landscape on mobile devices*/
@media (max-width: 896px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        max-height: 100vh; /* Prevent overflow */
    }
    
    .hero-img {
        height: 100vh;
        max-height: 500px; /* Cap the image height */
        object-fit: cover;
        object-position: center;
    }
    
    .hero-text {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero-text .color-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
        line-height: 1;
    }
    
    .hero-text .tagline {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-cta-btn {
        font-size: 1.1rem;
        padding: 0.4rem 1.5rem;
    }
    
    .cta-gradient {
        font-size: 1.3rem;
    }
    
    /* reduce the down arrow on landscape mobile */
    .hero-down-arrow {
        bottom: 2rem;
        font-size: 1.2rem;
    }
}

/* small landscape phones */
@media (max-width: 668px) and (orientation: landscape) and (max-height: 376px) {
    .hero {
        max-height: 275px;
        justify-content: center;
    }
    
    .hero-text .color-title {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-text .tagline {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-cta-btn {
        font-size: 1rem;
        padding: 0.3rem 1.2rem;
    }
    
    .cta-gradient {
        font-size: 1.1rem;
    }
    
    .hero-down-arrow {
        bottom: 1rem;
        font-size: 1rem;
    }
}

/* Desktop and larger */
@media (min-width: 992px) {
    nav.navbar .navbar-brand img {
        height: 50px;
    }
    .home-hero-wrapper {
        margin-top: 0;
    }
    
    .hero-text .color-title {
        font-size: 3.5rem;
        margin-right: 4rem;
    }
    .hero-text .tagline {
        font-size: 1.8rem;
        margin-right: 4rem;
    }
    .why-list {
        max-width: 900px;
    }
    .hero-cta-btn {
        margin-left: -2.5rem; /* negative margin to pull button left! */
    }
}

/* Extra large screens - show more of hero image */
@media (min-width: 1200px) {
    .hero-img {
        width: 40%;
        object-fit: cover;
        object-position: center bottom;
    }
    .hero-text {
        max-width: 55vw;
        margin-left: 3vw;
    }
    .hero-cta-btn {
        margin-left: -4rem; /* negative margin to pull button left! */
    }
}