/* Global CSS Variables */
:root {
    /* Colors */
    --color-primary: #6C5CE7;
    /* Premium Purple */
    --color-primary-dark: #5a4bd6;
    --color-secondary: #00CEC9;
    /* Vibrant Teal */
    --color-accent: #FD79A8;
    /* Soft Pink */
    --color-dark: #2D3436;
    --color-light: #F5F6FA;
    --color-white: #FFFFFF;
    --color-gray: #B2BEC3;
    --color-text-muted: #636e72;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Transitions */
    --transition-base: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.btn-primary,
.btn-hero-primary,
.btn-hero-secondary {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    line-height: 1.3;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 50px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
    /* Match button height approximately */
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.btn-primary,
.btn-submit,
.btn-theme-select {
    background: var(--color-primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover,
.btn-submit:hover,
.btn-theme-select:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Floating Button (Mobile) */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-accent);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(253, 121, 168, 0.4);
    z-index: 999;
    display: none;
    /* Desktop default hidden, shown via media query */
    transition: transform 0.3s;
}

.floating-btn:hover {
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.btn-hero-primary {
    background: var(--color-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--color-primary);
}

.hero-brief {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-brief i {
    color: var(--color-secondary);
    margin-right: 5px;
}

.hero-brief .divider {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .hero-brief .divider {
        display: none;
    }
}

.hero-brief .divider {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .hero-brief .divider {
        display: none;
    }
}

/* Summary 3-Sec Section */
.summary-3sec {
    background: white;
    padding: 60px 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.summary-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.summary-card h3 {
    color: var(--color-primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.summary-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    word-break: keep-all;
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Problem Section */
.problem {
    background: var(--color-light);
}

.info-box-problem {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: -30px auto 40px;
    /* Pull closer to title */
    line-height: 1.6;
}

.info-box-problem h4 {
    margin-bottom: 8px;
    font-weight: 700;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.problem-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.problem-item .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

/* Solution Section */
/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.solution-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-badge {
    background: #f0f0ff;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 800;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f1f2f6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b2bec3;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.genre-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.genre-card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.genre-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.genre-card .icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.photo-card-note {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 30px auto 0;
    max-width: 700px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Themes Section */
.themes {
    background: black;
    color: white;
}

.themes .section-title {
    color: white;
}

.theme-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.theme-common-cta {
    text-align: center;
    margin-top: 20px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.theme-option {
    flex: 1;
    background: #222;
    border-radius: 20px;
    overflow: hidden;
}

.theme-img {
    height: 250px;
    background: #333;
    /* Flex properties removed as we'll use block img */
    position: relative;
}

.theme-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-info {
    padding: 30px;
    text-align: center;
}

.theme-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.theme-desc {
    color: #aaa;
    margin-bottom: 0;
    /* Remove bottom margin as button is gone */
    font-size: 0.95rem;
}

/* Gallery Section */


/* Contact Section Styles Additions */
.contact-sub-note {
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin: -10px 0 10px;
}

/* Gallery Section */
.gallery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.gallery-video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.gallery-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    background: #ddd;
    border-radius: 10px;
    min-height: 120px;
    overflow: hidden;
    /* Ensure image respects border radius */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove bottom space */
}

/* Process Section */
.prep-box {
    background: var(--color-primary);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 50px;
}

.prep-box h3 {
    margin-bottom: 20px;
}

.prep-items {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.prep-item i {
    margin-right: 8px;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-arrow {
    color: #ddd;
    font-weight: 300;
}

.safety-note {
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--color-text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* Contact Section */
.contact {
    background: var(--color-light);
}

.contact-desc {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-muted);
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.required {
    color: var(--color-accent);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

.privacy-link {
    color: #999;
    text-decoration: underline;
    margin-left: 5px;
}

.btn-submit.full {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-btn {
        display: block;
    }

    /* Show on mobile */
    .header-btn {
        display: none;
    }

    /* Hide header btn on mobile */

    /* Hero Optimization */
    .hero-title {
        font-size: 1.8rem;
        /* Reduced from 2.2rem */
        word-break: keep-all;
        /* Prevent awkward breaks */
    }

    .hero-sub {
        font-size: 0.95rem;
        padding: 0 10px;
        /* Add padding for better reading */
        line-height: 1.5;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        /* Limit button width */
        margin: 0 auto 20px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    .hero-brief {
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        /* Stack items on mobile */
        gap: 5px;
    }

    .hero-brief br {
        display: none;
    }

    /* Global Section Adjustments */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .section-desc {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .solution-points,
    .solution-grid,
    .genre-cards,
    .gallery-wrapper,
    .gallery-grid,
    .theme-selection,
    .process-steps,
    .prep-items {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .prep-item {
        margin-bottom: 15px;
    }

    /* Prep Box Optimize */
    .prep-box {
        padding: 20px;
    }

    .prep-items {
        flex-direction: column;
        gap: 15px;
    }
}