:root {
    /* Palette */
    --color-primary-start: #F84F68;
    --color-primary-end: #FA9D4D;
    --gradient-primary: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));

    --color-bg-light: #FFFFFF;
    --color-bg-offset: #F5F5F7;

    --color-text-main: #333333;
    --color-text-secondary: #666666;

    /* Fonts */
    --font-heading: 'Nunito', 'Poppins', sans-serif;
    --font-body: 'Inter', 'Roboto', sans-serif;

    /* Spacing & Layout */
    --container-padding: 20px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-pill: 50px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
}

.container {
    padding: 0 var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.white-text {
    color: white !important;
}

.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius-pill);
    transition: background-color 0.2s;
}

.lang-btn:hover {
    background-color: var(--color-bg-offset);
}

.lang-btn svg {
    color: var(--color-text-secondary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    padding: 8px 0;
    min-width: 80px;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.language-selector:hover .lang-dropdown {
    display: flex;
}

.lang-option {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
}

.lang-option:hover {
    background-color: var(--color-bg-offset);
    color: var(--color-primary-start);
}

/* --- Placeholder System --- */
.placeholder-img {
    background-color: #e0e0e0;
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #666;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.placeholder-img::after {
    content: attr(data-label);
}

/* --- Hero Section Refactor --- */
.hero-section {
    position: relative;
    min-height: 80vh;
    /* Immersive height */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.footer-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    border: none;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #333;
    /* Fallback */
    object-fit: cover;
    border: none;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-visual {
    width: 100%;
    max-width: 650px;
}

.hero-phones-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

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

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

@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .hero-content {
        flex: 1;
        max-width: 45%;
    }

    .hero-subtitle {
        margin-left: 0;
    }

    .hero-cta-group {
        justify-content: flex-start;
    }

    .hero-visual {
        flex: 1.2;
        max-width: 55%;
    }
}

/* --- Modes Section (Z-Pattern) --- */
.modes-section-detailed {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
}

.z-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
    align-items: center;
}

.z-visual {
    width: 100%;
    max-width: 500px;
}

.z-img {
    width: 100%;
    /* Mobile: Full width */
    max-width: 320px;
    /* Limit width to resemble a phone */
    height: auto;
    /* maintain aspect ratio */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
    /* Center it */
    border: 8px solid white;
    /* Phone frame effect */
}

.z-content {
    text-align: center;
    max-width: 500px;
}

.z-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-primary-start);
}

.z-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

@media (min-width: 992px) {
    .z-block {
        flex-direction: row;
        justify-content: center;
        /* Center the pair */
        gap: 80px;
        text-align: left;
    }

    .z-content {
        text-align: left;
        flex: 1;
    }

    .z-visual {
        flex: 1;
    }

    /* Zig Zag Logic */
    .z-block:nth-child(even) {
        /* Even blocks (2, 4) are reversed */
        flex-direction: row-reverse;
    }

    /* Explicit reversal for specific requirement if needed, but nth-child handles it */
}

/* --- Community Section --- */
.community-section {
    padding: 80px 0;
    background-color: var(--color-bg-offset);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2x2 */
    gap: 15px;
    margin-bottom: 40px;
}

.comm-img {
    width: 100%;
    aspect-ratio: 4/5;
    /* Portrait */
    border-radius: var(--border-radius-md);
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: transparent;
}

.comm-img:hover {
    transform: scale(1.03);
}

.community-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--color-text-main);
}

@media (min-width: 768px) {
    .community-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Desktop: 4x1 or 4x2 */
        gap: 20px;
    }
}

/* --- Fitting Room (Warm) --- */
.fitting-room-warm {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.fitting-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #2c2c2c;
    /* Warm dark fallback */
    object-fit: cover;
    border: none;
}

/* Add a colored overlay for warmth */
.fitting-room-warm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    /* Darken */
    z-index: -1;
}

.fitting-container-warm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.fitting-content-warm {
    max-width: 600px;
}

.fitting-visual-warm {
    width: 100%;
    max-width: 800px;
}

.fitting-phones-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 7s ease-in-out infinite reverse;
    /* Reverse float for variety */
}

@media (min-width: 992px) {
    .fitting-container-warm {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }

    .fitting-content-warm {
        text-align: left;
    }
}

/* --- Testimonials --- */
.social-proof-section {
    padding: 80px 0;
    background-color: white;
}

.reviews-wrapper {
    overflow-x: auto;
}

.reviews-track {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.center-reviews {
    justify-content: center;
}

.review-card {
    background: var(--color-bg-offset);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

/* --- Footer CTA --- */
.footer-cta {
    position: relative;
    padding: 100px 0 40px;
    color: white;
    text-align: center;
}

.footer-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    border: none;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.footer-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-cta-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white !important;
}

.footer-cta-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white !important;
}

.footer-links-row {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link-light {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link-light:hover {
    color: white;
}

.footer-brand-light {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
}

.footer-logo-small {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
    margin-bottom: 10px;
}

.copyright-light {
    font-size: 0.8rem;
}

/* Store Badges */
.store-badge-link {
    display: inline-block;
    transition: transform 0.2s;
}

.store-badge-link:hover {
    transform: translateY(-2px);
}

.store-badge {
    height: 50px;
    width: auto;
}

/* Legal Pages Overrides if needed for navbar consistency */
.legal-section {
    padding-top: 100px;
    /* Space for fixed header */
}

.contact-section {
    padding-top: 100px;
}

/* --- Secondary Pages Styles --- */

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Footer (Secondary) */
.footer {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid #eaeaea;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-primary-start);
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    text-align: center;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 79, 104, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 79, 104, 0.4);
}

.btn-block {
    width: 100%;
}

.form-status {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    color: green;
}

.form-status.error {
    color: red;
}

.footer-logo-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}