:root {
    --primary-color: #FF8E8E;
    /* Warm Coral */
    --secondary-color: #FFC2C2;
    /* Soft Pink */
    --accent-color: #9BCDD2;
    /* Soft Sage Green */
    --bg-color: #FFF9F5;
    /* Cream/Beige */
    --text-main: #2D3436;
    --text-sub: #636E72;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

html,
body {
    font-family: 'Pretendard', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.lang-en {
    font-family: 'Outfit', 'Pretendard', sans-serif;
}

.page-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 249, 245, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
    display: block;
    margin-left: 0;
    /* Align left */
    margin-right: 0;
}

.footer-claim-img {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 32px auto 0;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* ... existing code ... */

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 142, 142, 0.4);
    color: white !important;
    /* Force text color to white on hover */
}

.btn-primary.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-sub);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--text-sub);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(255, 194, 194, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 16px;
}

/* Hero Image & Floating Cards */
.image-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    border-radius: 40px;
    overflow: visible;
    width: fit-content;
    /* Fit to video size */
    margin: 0 auto;
    /* Center in parent */
}

.image-wrapper img {
    width: 100%;
    border-radius: 40px;
    display: block;
    box-shadow: var(--shadow);
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 5%;
    left: -90px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 40%;
    right: -70px;
    animation-delay: 1.5s;
}

.floating-card .icon {
    font-size: 1.5rem;
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card .text strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.floating-card .text span {
    font-size: 0.8rem;
    color: var(--text-sub);
}

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

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

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

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 24px;
    background: var(--bg-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Emotional Section */
.emotional {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color) 0%, #FFF0F0 100%);
}

.emotional h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.emotional p {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 40px;
    /* Added spacing for button */
}

.emotional .cta-wrapper {
    margin-top: 20px;
}

/* Feature Sticky Scroll (Scrollytelling) */
.features {
    padding: 0;
    position: relative;
    background: #FFF9F5;
}

.sticky-container {
    display: flex;
    align-items: flex-start;
    /* Critical: Prevents sticky child from stretching to full height */
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left: Scrollable Text */
.scroll-content {
    width: 50%;
    padding: 100px 40px 100px 20px;
    position: relative;
    z-index: 2;
}

.step-text {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: 40px;
}

.step-text.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background: #FFFAFA;
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
    display: block;
}

.step-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.step-text p {
    font-size: 1.15rem;
    color: var(--text-sub);
    line-height: 1.8;
}

/* Right: Sticky Visual */
.sticky-visual {
    width: 50%;
    height: calc(100vh - 80px);
    /* Adjust height to fit below navbar */
    position: sticky;
    top: 80px;
    /* Offset for fixed navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.visual-image {
    position: absolute;
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    /* Ensure it fits vertically */
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Removed border, border-radius, and heavy shadow for "raw" look */
}

.visual-image.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

/* Responsive Fallback */
@media (max-width: 900px) {
    .sticky-container {
        flex-direction: column;
    }

    .scroll-content {
        width: 100%;
        padding: 60px 20px;
    }

    .sticky-visual {
        display: none;
    }

    .step-text {
        min-height: auto;
        opacity: 1;
        margin-bottom: 80px;
        text-align: center;
        padding: 0;
    }

    .feature-tags {
        justify-content: center;
    }

    /* Mobile Image Injection */
    .mobile-visual {
        display: block;
        margin: 40px auto 0;
        width: 100%;
        max-width: 280px;
        height: auto;
    }
}

@media (min-width: 901px) {
    .mobile-visual {
        display: none !important;
    }
}

/* Footer Container */
.footer {
    padding: 60px 0;
    background: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    /* Ensure left alignment */
}

.footer-logo {
    display: none;
    /* Hide text logo */
}

.footer-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    margin-bottom: 4px;
}

.copyright {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-left {
        align-items: center;
    }
}

/* Glassmorphism Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.lang-switch a {
    text-decoration: none;
    /* Remove underline */
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .navbar .container {
        flex-direction: row;
        /* Keep row layout */
        justify-content: space-between;
        /* Logo left, Button right */
        gap: 0;
    }

    .nav-links {
        gap: 15px;
        /* Add small gap instead of 0 */
        width: auto;
        justify-content: flex-end;
    }

    .lang-switch {
        gap: 8px;
        /* Tighten language switch */
    }

    .btn-primary.small {
        padding: 6px 12px;
        /* Compact button */
        font-size: 0.8rem;
    }

    .hero-logo {
        margin: 0 auto 24px auto;
        /* Center logo on mobile */
    }

    .hero {
        padding-top: 100px;
        /* Reduced padding since navbar is shorter */
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-group {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px;
    }

    .emotional {
        padding: 80px 0;
    }

    .emotional h2 {
        font-size: 2rem;
    }

    .emotional p {
        font-size: 1rem;
    }

    .card-1 {
        left: -20px;
        /* Reduced from -70px */
        top: 5%;
    }

    .card-2 {
        right: -20px;
        /* Reduced from -70px */
        bottom: 45%;
    }

    .floating-card {
        padding: 12px;
    }

    .floating-card .icon {
        font-size: 1.2rem;
    }

    .floating-card .text strong {
        font-size: 0.8rem;
    }

    .floating-card .text span {
        font-size: 0.7rem;
    }
}

/* Survey Page */
.survey-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-color) 0%, #FFF0F0 100%);
}

.hero-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(255, 142, 142, 0.2);
    /* Force Static - Kill all animations */
    transform: none !important;
    transition: none !important;
    object-fit: cover;
}

.survey-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    /* UI Stability Fix */
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.survey-header {
    text-align: center;
    margin-bottom: 40px;
}

.survey-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.survey-header p {
    color: var(--text-sub);
}

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

.question-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.options-group.vertical {
    flex-direction: column;
}

.options-group.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Custom Radio & Checkbox */
.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 0.95rem;
    color: var(--text-sub);
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--primary-color);
    background: #FFF5F5;
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--primary-color);
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
    background: #FFF0F0;
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* Form Inputs */
.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background: white;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 142, 142, 0.1);
}

.form-textarea {
    height: 100px;
    resize: vertical;
}

.form-input.indent {
    margin-top: 10px;
    margin-left: 10px;
    width: calc(100% - 10px);
}

.form-input.mt-2 {
    margin-top: 10px;
    position: relative;
    height: 20px;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Emotional Progress Bar */
.progress-container {
    width: 100%;
    height: 12px;
    background-color: #FFE5E5;
    /* Light pink background */
    border-radius: 10px;
    margin-bottom: 40px;
    position: relative;
    overflow: visible;
}



.progress-fill {
    height: 100%;
    background-color: #FF8E8E;
    /* Darker pink fill */
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-icon {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    transition: left 0.4s ease;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Stepped Interface */
.question-item {
    display: none;
    /* Hide all by default */
    animation: fadeIn 0.4s ease-in-out;
}

.question-item.active-step {
    display: block;
    /* Show only active */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    /* Left and Right alignment */
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    /* Optional: visual separation */
}

.btn-secondary {
    background-color: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 10px 24px;
    /* Smaller padding */
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 0 0 auto;
    /* Do not stretch */
}

.nav-buttons .btn-secondary {
    flex: 0 0 auto;
    /* Ensure it doesn't stretch in nav */
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ccc;
}



.nav-buttons .btn-primary {
    flex: 0 0 auto;
    /* Do not stretch */
    padding: 10px 30px;
    /* Smaller padding */
    font-size: 0.95rem;
    border-radius: 20px;
    margin-left: auto;
    /* Push to right if needed, but space-between handles it */
}

/* Likert Scale */
.likert-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.likert-row {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
}

.likert-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.likert-options {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.likert-options label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-sub);
    cursor: pointer;
    text-align: center;
}

.likert-options input {
    margin-bottom: 5px;
    accent-color: var(--primary-color);
}

@media (max-width: 768px) {
    .likert-options {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .likert-options label {
        font-size: 0.7rem;
    }
}

.full-width {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: none;
    /* Removed border */
    cursor: pointer;
    /* Added cursor pointer */
}

@media (max-width: 768px) {
    .survey-container {
        padding: 24px;
    }

    .options-group.grid-2 {
        grid-template-columns: 1fr 1fr;
        /* Changed to 2 columns */
        gap: 8px;
        /* Reduced gap for mobile */
    }

    .checkbox-option {
        padding: 8px 12px;
        /* Smaller padding for mobile */
        font-size: 0.85rem;
    }
}

/* Validation Styles */
.error-border {
    border: 2px solid #FF6B6B !important;
    background-color: #FFF0F0;
    padding: 10px;
    border-radius: 12px;
}

.required-input-style {
    border: 2px solid var(--primary-color);
    background-color: #FFF9F9;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.modal-content p {
    color: var(--text-sub);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 12px;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 600;
}

.input-divider {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin: 12px 0;
    position: relative;
}

.input-divider::before,
.input-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #E0E0E0;
}

.input-divider::before {
    left: 0;
}

.input-divider::after {
    right: 0;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-top: 12px;
    margin-bottom: 0 !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Success Screen */
.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.success-content {
    z-index: 3001;
    animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-content .icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.success-content p {
    font-size: 1.2rem;
    color: var(--text-sub);
}

#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes popUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Share Section */
.share-section {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE5E5 100%);
    border-radius: 24px;
    border: 2px solid #FFD0D0;
    box-shadow: 0 4px 16px rgba(255, 142, 142, 0.15);
}

.share-text {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.btn-share {
    background: linear-gradient(135deg, #FF8E8E 0%, #FFA5A5 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 142, 142, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-share:hover::before {
    left: 100%;
}

.btn-share:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 142, 142, 0.5);
}

.btn-share:active {
    transform: translateY(-1px) scale(0.98);
}

.share-icon {
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

/* ============================================
   ENHANCED LANDING PAGE ANIMATIONS & EFFECTS
   ============================================ */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ANIMATED BACKGROUND ELEMENTS ===== */
/* ===== ANIMATED BACKGROUND ELEMENTS ===== */
/* Removed .bg-decoration to fix blue glow issue */

/* Animated Blobs */
.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: blob-morph 20s ease-in-out infinite;
}

/* Blobs removed */

@keyframes blob-morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(30px, -30px) rotate(90deg);
    }

    50% {
        border-radius: 50% 60% 30% 60% / 50% 40% 60% 50%;
        transform: translate(-30px, 30px) rotate(180deg);
    }

    75% {
        border-radius: 30% 60% 60% 40% / 60% 40% 60% 40%;
        transform: translate(30px, 30px) rotate(270deg);
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    font-size: 2rem;
    animation: float-random 15s ease-in-out infinite;
    opacity: 0.4;
}

.shape-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 15%;
    animation-delay: -3s;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -6s;
}

.shape-4 {
    top: 60%;
    right: 10%;
    animation-delay: -9s;
}

.shape-5 {
    bottom: 30%;
    left: 50%;
    animation-delay: -12s;
}

@keyframes float-random {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-15px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(30px, 10px) rotate(3deg);
    }
}

/* ===== SLIDE IN ANIMATIONS ===== */
.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slide-up 0.8s ease-out forwards;
}

.slide-in-up.delay-1 {
    animation-delay: 0.1s;
}

.slide-in-up.delay-2 {
    animation-delay: 0.2s;
}

.slide-in-up.delay-3 {
    animation-delay: 0.3s;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BOUNCE IN ANIMATIONS ===== */
.bounce-in {
    opacity: 0;
    transform: scale(0.8);
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.bounce-in.delay-4 {
    animation-delay: 0.4s;
}

.bounce-in.delay-5 {
    animation-delay: 0.5s;
}

@keyframes bounce-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PULSE BUTTON EFFECT ===== */
.pulse-btn {
    position: relative;
    overflow: hidden;
}

.pulse-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pulse-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pulse-btn {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 142, 142, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(255, 142, 142, 0);
    }
}

/* ===== 3D TILT EFFECT ===== */
.tilt-effect {
    will-change: transform;
    transition: transform 0.3s ease;
}

/* ===== PARALLAX CONTAINER ===== */
.parallax-container {
    will-change: transform;
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* ===== FEATURE CARD ENHANCEMENTS ===== */
.feature-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 142, 142, 0.3);
}

/* Gradient Border Animation */
.gradient-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(45deg, #FF8E8E, #9BCDD2, #FFC2C2, #FF8E8E);
    background-size: 300% 300%;
    animation: gradient-border 3s ease infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .gradient-border {
    opacity: 0.6;
}

@keyframes gradient-border {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Bounce Icon Animation */
.bounce-icon {
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {

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

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

.feature-card:hover .bounce-icon {
    animation: bounce-icon 0.5s ease-in-out infinite;
}

/* ===== TEXT REVEAL EFFECT ===== */
.text-reveal {
    background: linear-gradient(90deg, #FF8E8E, #FFC2C2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

/* ===== ENHANCED HERO IMAGE ===== */
.hero-image-container {
    perspective: 1000px;
}

.hero-image {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .blob {
        filter: blur(40px);
    }

    .blob-1 {
        width: 250px;
        height: 250px;
    }

    .blob-2 {
        width: 300px;
        height: 300px;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
    }

    .shape {
        font-size: 1.5rem;
    }

    .feature-card:hover {
        transform: scale(1.02);
    }

    /* Reduce parallax on mobile */
    .parallax-container {
        transform: none !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:active {
        transform: scale(0.98);
    }

    .pulse-btn:active {
        transform: scale(0.95);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero-image,
.feature-card,
.parallax-container,
.tilt-effect {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hardware acceleration */
.fade-in-scroll,
.slide-in-up,
.bounce-in {
    will-change: opacity, transform;
}

/* After animations complete, remove will-change */
.fade-in-scroll.visible,
.slide-in-up.visible {
    will-change: auto;
}

/* ===== BUTTON RIPPLE EFFECT ===== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Policy Page Styles */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.policy-header h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.policy-meta {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.8;
}

.policy-section {
    margin-bottom: 50px;
}

.policy-section h2 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 24px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.policy-section h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: var(--primary-color);
    margin-right: 12px;
    border-radius: 3px;
}

.policy-subsection {
    margin-bottom: 30px;
    padding-left: 10px;
}

.policy-subsection h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 700;
}

.policy-sub-item {
    margin-bottom: 24px;
    padding-left: 15px;
    border-left: 2px solid #f0f0f0;
}

.policy-sub-item h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.policy-text {
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.policy-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.policy-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
}

.policy-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.policy-sub-list {
    padding-left: 20px;
    margin-top: 8px;
}

.policy-emphasis {
    color: var(--primary-color);
    font-weight: 600;
}

/* =========================================
   SURVEY PAGE STYLES (Restored)
   ========================================= */

.survey-section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.survey-header {
    text-align: center;
    margin-bottom: 40px;
}

.survey-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Progress Bar */
.progress-container {
    position: relative;
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 40px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-icon {
    position: absolute;
    top: -30px;
    left: 0;
    transform: translateX(-50%);
    font-size: 1.5rem;
    transition: left 0.4s ease;
}

/* Question Styles */
.question-item {
    display: none;
    /* Hidden by default */
    animation: fadeUp 0.5s ease;
}

.question-item.active-step {
    display: block;
}

.question-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    color: var(--text-main);
}

.options-group {
    display: flex;
    gap: 12px;
}

.options-group.vertical {
    flex-direction: column;
}

/* Inputs */
.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--secondary-color);
    background: #FFF9F9;
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.form-input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

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

/* Likert Scale */
.likert-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.likert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.likert-scale {
    display: flex;
    gap: 10px;
}

.likert-scale label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Utilities */
.hidden {
    display: none !important;
}

.error-border {
    border: 2px solid #FF6B6B !important;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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