/* ===================================================
   ESSENCE PANAMÁ — Un viaje en el tiempo
   Premium Event UI · Stationery Aesthetic
   =================================================== */

:root {
    /* === Paleta Oficial === */
    --bg-color: #F7F2EC;
    --card-bg: #FDFAF6;
    --text-primary: #2B2318;
    --text-secondary: #8A7968;
    --border: #E4D9CE;

    --accent: #B8966E;
    --accent-hover: #996E4A;
    --accent-light: rgba(184, 150, 110, 0.15);
    --gold-glow: rgba(184, 150, 110, 0.4);

    --shadow: 0 8px 40px rgba(43, 35, 24, 0.06);
    --shadow-hover: 0 15px 50px rgba(43, 35, 24, 0.12);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background: linear-gradient(135deg, #F7F2EC 0%, #EFE8DE 40%, #F5EEE4 70%, #F7F2EC 100%);
    background-size: 300% 300%;
    animation: gradientFlow 24s ease infinite;
    color: var(--text-primary);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
    /* Prevents touch scrolling */
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ===================================================
   DECORATIVE ELEMENTS
   =================================================== */

.golden-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 1.5rem;
}

.event-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
}

/* ===================================================
   LOGO
   =================================================== */

.logo-img {
    max-width: 260px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: logoReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.logo-small-img {
    max-width: 120px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.logo-small-img:hover {
    opacity: 1;
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */

.intro-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================
   INPUTS — Minimalist Luxury
   =================================================== */

.input-group {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 1.5rem;
}

.input-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-align: center;
}

.text-input {
    width: 100%;
    padding: 1rem 0.5rem;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background-color: transparent;
    color: var(--text-primary);
    outline: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    letter-spacing: 1px;
}

.text-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
    font-style: italic;
}

.text-input:focus {
    border-bottom-color: var(--accent);
    box-shadow: 0 8px 20px -10px var(--accent-light);
}

/* ===================================================
   SECTIONS — Cinematic Transitions
   =================================================== */

.section-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    animation: cinematicEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#introSection {
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.intro-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.02);
    /* Prevent blur edges from showing background */
}

.intro-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(247, 242, 236, 0.85) 0%,
            rgba(239, 232, 222, 0.78) 50%,
            rgba(245, 238, 228, 0.90) 100%);
    z-index: 1;
}

.intro-foreground {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes cinematicEnter {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes cinematicExit {
    from {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(-15px);
        filter: blur(4px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes staggerReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   BUTTONS
   =================================================== */

.primary-button {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 1.2rem 3.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
    margin: 0 auto;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(43, 35, 24, 0.15);
    position: relative;
    overflow: hidden;
}

.primary-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.primary-button:hover::after {
    left: 100%;
}

.primary-button i {
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.primary-button:hover {
    background: var(--accent);
    box-shadow: 0 8px 30px var(--gold-glow);
    transform: translateY(-2px);
}

.primary-button:hover i {
    transform: translateX(4px);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    display: block;
    margin: 2.5rem auto 0;
    text-transform: uppercase;
}

.secondary-button:hover {
    border-color: var(--accent);
    color: var(--bg-color);
    background-color: var(--accent);
}

.icon-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-button:hover {
    background-color: var(--accent-light);
    color: var(--accent-hover);
}

/* ===================================================
   QUIZ UI
   =================================================== */

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

/* Step Counter */
.step-counter {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.step-counter .current-step {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
}

.step-counter .total-steps {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Progress Line */
.progress-line-container {
    width: 100%;
    height: 1px;
    background-color: var(--border);
    margin-bottom: 1rem;
    position: relative;
}

.progress-line {
    position: absolute;
    top: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    width: 0%;
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 12px var(--gold-glow);
}

.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-question-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.3px;
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 600px;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
    width: 100%;
    margin-bottom: 1rem;
}

/* Premium Image Cards */
.quiz-option-btn {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    overflow: hidden;
    min-height: 10vh;
    height: 90px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz-option-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
    filter: grayscale(15%) contrast(105%) brightness(95%);
}

.quiz-option-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(43, 35, 24, 0.88) 0%,
            rgba(43, 35, 24, 0.35) 50%,
            rgba(43, 35, 24, 0.05) 100%);
    z-index: 2;
    transition: background 0.5s ease;
}

.quiz-option-content {
    position: relative;
    z-index: 3;
    padding: 0.8rem 0.6rem;
    width: 100%;
    text-align: center;
}

.quiz-option-content span {
    display: block;
    color: #FAF5EE;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
    line-height: 1.25;
}

.quiz-option-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(43, 35, 24, 0.12);
    border-color: var(--accent);
}

.quiz-option-btn:hover .quiz-option-bg {
    transform: scale(1.06);
}

.quiz-option-btn:hover .quiz-option-overlay {
    background: linear-gradient(to top,
            rgba(43, 35, 24, 0.95) 0%,
            rgba(43, 35, 24, 0.5) 100%);
}

.quiz-option-btn.selected {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 30px var(--gold-glow);
    animation: goldenPulse 2s ease-in-out infinite;
}

@keyframes goldenPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px var(--accent-light);
    }

    50% {
        box-shadow: 0 8px 40px var(--gold-glow);
    }
}

.quiz-option-btn.selected .quiz-option-overlay {
    background: linear-gradient(to top,
            rgba(184, 150, 110, 0.85) 0%,
            rgba(43, 35, 24, 0.55) 100%);
}

.quiz-option-btn.selected .quiz-option-content span {
    color: #fff;
}

/* ===================================================
   RESULTS SECTION
   =================================================== */

.results-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.results-subtitle {
    font-family: var(--font-body);
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Premium Result Cards Slider */
.slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.perfume-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.perfume-grid::-webkit-scrollbar {
    display: none;
}

.slider-arrow {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slider-arrow:hover {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 8px 25px var(--gold-glow);
}

.slider-arrow.left-arrow {
    left: -20px;
}

.slider-arrow.right-arrow {
    right: -20px;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--accent);
    transform: scale(1.4);
}

/* Premium Result Cards */
.perfume-card {
    flex: 0 0 100%;
    /* Show one card at a time */
    scroll-snap-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.perfume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.perfume-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.perfume-card:hover::before {
    opacity: 1;
}

/* Top Pick highlight for first card */
.perfume-card.top-pick {
    border-color: var(--accent);
    border-width: 2px;
}

.perfume-card.top-pick::before {
    opacity: 1;
    height: 3px;
    background: var(--accent);
}

.top-pick-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.8rem;
    margin-bottom: 1rem;
}

.card-rank {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.35;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.card-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    opacity: 0.6;
}

.card-image-container {
    height: 180px;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-perfume-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s ease;
}

.perfume-card:hover .card-perfume-img {
    transform: scale(1.06) translateY(-5px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-brand {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}

.card-family-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    margin-top: 0.6rem;
}

.card-reason {
    margin-top: 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* ===================================================
   PREMIUM LOADER
   =================================================== */

.premium-loader {
    text-align: center;
    padding: 3rem 1rem;
    width: 100%;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 1.5em;
    transition: opacity 0.4s ease;
}

.loader-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 2px;
    background-color: var(--border);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Legacy loader (hidden) */
.loader {
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1.2s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================================================
   EVENT INVITATION — Book-style Quote
   =================================================== */

.event-invitation {
    background-color: var(--card-bg);
    border: none;
    border-left: 3px solid var(--accent);
    padding: 2.5rem 2.5rem 2.5rem 3rem;
    margin: 3rem auto 2rem;
    max-width: 700px;
    text-align: left;
    box-shadow: var(--shadow);
    animation: staggerReveal 0.8s ease forwards;
}

.event-invitation h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.event-invitation p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================================
   PROFILE SECTION
   =================================================== */

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
}

.profile-visual {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: staggerReveal 0.8s ease 0.2s both;
}

.profile-visual i {
    font-size: 3.5rem;
    color: var(--accent);
    opacity: 0.7;
}

/* Family-specific gradients */
.profile-visual.family-amaderado {
    background: radial-gradient(circle, #E6D2B5 0%, #D4B896 50%, #C4A577 100%);
}

.profile-visual.family-verde {
    background: radial-gradient(circle, #D4E2C8 0%, #B8CFA3 50%, #9AB884 100%);
}

.profile-visual.family-gourmand {
    background: radial-gradient(circle, #E8D5C4 0%, #D4B9A1 50%, #C4A088 100%);
}

.profile-visual.family-citrico {
    background: radial-gradient(circle, #F0E4C8 0%, #E4D4AA 50%, #D8C490 100%);
}

.profile-visual.family-floral {
    background: radial-gradient(circle, #E8D4DC 0%, #D8BCC6 50%, #CCA8B6 100%);
}

.profile-visual.family-almizclado {
    background: radial-gradient(circle, #DED4CC 0%, #CFC2B6 50%, #BFB0A0 100%);
}

.profile-visual.family-tropical {
    background: radial-gradient(circle, #E0DCC8 0%, #D0CBA8 50%, #C0BA90 100%);
}

.profile-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
}

.profile-details {
    text-align: center;
    width: 100%;
}

.profile-welcome {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    animation: staggerReveal 0.6s ease 0.3s both;
}

.profile-user-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    animation: staggerReveal 0.6s ease 0.45s both;
}

.profile-title-large {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: 1px;
    animation: staggerReveal 0.6s ease 0.5s both;
}

.profile-description-refined {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    animation: staggerReveal 0.6s ease 0.7s both;
}

.profile-badges-overlay {
    position: absolute;
    bottom: -15px;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
}

.profile-badge-micro {
    background-color: var(--card-bg);
    color: var(--accent-hover);
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(43, 35, 24, 0.08);
}

.profile-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    animation: staggerReveal 0.6s ease 0.6s both;
}

.profile-family-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-weight: 600;
    animation: staggerReveal 0.6s ease 0.7s both;
}

.profile-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    animation: staggerReveal 0.6s ease 0.8s both;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: staggerReveal 0.6s ease 0.9s both;
}

.profile-badge {
    background-color: transparent;
    color: var(--accent-hover);
    padding: 0.45rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dark-button {
    background: var(--text-primary);
    color: var(--bg-color);
    width: 100%;
    max-width: 320px;
    padding: 1.1rem;
    letter-spacing: 2px;
    animation: staggerReveal 0.6s ease 1s both;
}

.dark-button:hover {
    background: var(--accent);
}

/* ===================================================
   RESPONSIVE — Mobile First
   =================================================== */

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1.2rem;
    }

    .logo-img {
        max-width: 200px;
    }

    .section-container {
        margin: auto 0;
    }

    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: auto;
        display: block;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    .quiz-question-text {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .quiz-options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quiz-option-btn {
        min-height: 160px;
    }

    .perfume-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .profile-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-visual {
        width: 150px;
        height: 150px;
    }

    .profile-title {
        font-size: 1.5rem;
    }

    .profile-family-name {
        font-size: 1.6rem;
    }

    .primary-button {
        padding: 1.1rem 2.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 350px;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .event-invitation {
        padding: 2rem 1.5rem 2rem 2rem;
    }

    .card-rank {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .logo-img {
        max-width: 170px;
    }

    .intro-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .quiz-question-text {
        font-size: 1.25rem;
    }

    .quiz-option-btn {
        min-height: 140px;
    }

    .step-counter .current-step {
        font-size: 1.3rem;
    }
}