/* ===========================
   Name Interpretation Theme CSS
   Theme: Emerald/Green Traditional
   =========================== */

/* CSS Variables */
:root {
    /* Primary Colors - Emerald Green Theme */
    --primary-green: #065f46;
    --accent-green: #059669;
    --dark-green: #022c22;
    --light-green: #6ee7b7;
    --ultra-light-green: #ecfdf5;

    /* Secondary Colors */
    --gold: #F4D03F;
    --white: #ffffff;
    --green-gradient: linear-gradient(135deg, #022c22 0%, #065f46 50%, #059669 100%);

    /* Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;

    /* Typography */
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Pretendard', sans-serif;

    /* Effects */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(110, 231, 183, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-green);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Full Section Layout */
.full-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 120px;
}

/* ===========================
   Section 1: Hero Styles
   =========================== */
#section1 {
    background: var(--green-gradient);
    position: relative;
    overflow: hidden;
}

#section1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23ffffff' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Name Symbols Animation */
.name-symbols {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.symbol-char {
    font-size: 2.5rem;
    color: var(--light-green);
    font-family: serif;
    animation: floatSymbol 4s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(110, 231, 183, 0.3));
}

.symbol-char:nth-child(1) {
    animation-delay: 0s;
}

.symbol-char:nth-child(3) {
    animation-delay: 1s;
}

.symbol-main {
    font-size: 4rem;
    color: var(--gold);
    font-family: serif;
    animation: glowSymbol 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(244, 208, 63, 0.5));
}

@keyframes floatSymbol {

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

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

@keyframes glowSymbol {

    0%,
    100% {
        filter: drop-shadow(0 0 30px rgba(244, 208, 63, 0.5));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(244, 208, 63, 0.8));
        transform: scale(1.05);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-title .highlight {
    background: linear-gradient(45deg, var(--gold), #FFE082);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-description .lead {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--light-green);
    font-weight: 300;
}

.hero-highlight {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 1px;
}

.price-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #FFE082);
    color: var(--dark-green);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(244, 208, 63, 0.4);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 40px auto 80px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px solid rgba(110, 231, 183, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(244, 208, 63, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

/* ===========================
   Section 2: Form Styles
   =========================== */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

.form-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.fortune-form .form-control,
.fortune-form .form-select {
    border: 2px solid var(--light-green);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--white);
    height: auto;
}

.fortune-form .form-floating>.form-control,
.fortune-form .form-floating>.form-select {
    padding: 1.625rem 1.25rem 0.625rem;
    height: calc(3.5rem + 2px);
}

.fortune-form .form-floating>label {
    padding: 1rem 1.25rem;
    color: var(--text-light);
}

.fortune-form .form-control:focus,
.fortune-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(6, 95, 70, 0.25);
    background: var(--white);
}

.fortune-form .form-floating>.form-control:focus~label,
.fortune-form .form-floating>.form-select:focus~label,
.fortune-form .form-floating>.form-control:not(:placeholder-shown)~label,
.fortune-form .form-floating>.form-select:not(:placeholder-shown)~label {
    color: var(--accent-green);
}

/* Gender Selection */
.selection-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.gender-options {
    display: flex;
    gap: 15px;
}

.gender-option {
    flex: 1;
    background: var(--ultra-light-green);
    border: 2px solid var(--light-green);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gender-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.gender-option.selected {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--light-green) 0%, var(--ultra-light-green) 100%);
    box-shadow: 0 5px 15px rgba(6, 95, 70, 0.2);
}

.gender-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

.gender-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* Calendar Type Selection */
.calendar-options {
    display: flex;
    gap: 10px;
    height: calc(3.5rem + 4px);
}

.calendar-option {
    flex: 1;
    background: var(--ultra-light-green);
    border: 2px solid var(--light-green);
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-option:hover {
    border-color: var(--primary-green);
}

.calendar-option.selected {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
}

/* Time Selection */
.time-options {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.time-option {
    background: var(--ultra-light-green);
    border: 2px solid var(--light-green);
    border-radius: 10px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.75rem;
    font-weight: 600;
}

.time-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.time-option.selected {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--white);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.btn-submit::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: var(--transition-smooth);
}

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

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(6, 95, 70, 0.5);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-text {
    margin-right: 10px;
}

.btn-icon {
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

/* ===========================
   Scroll Indicator
   =========================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(6, 95, 70, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 208, 63, 0.3);
    animation: pulseIndicator 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    transform: translateY(5px) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(244, 208, 63, 0.4);
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.scroll-arrow {
    color: var(--gold);
    animation: bounce 2s infinite;
    font-size: 1rem;
}

@keyframes bounce {

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

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

@keyframes pulseIndicator {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(6, 95, 70, 0.3);
    }

    50% {
        box-shadow: 0 8px 35px rgba(244, 208, 63, 0.5);
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===========================
   Pricing Section
   =========================== */
#section_pricing {
    background: var(--green-gradient);
}

.pricing-card-single {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid var(--gold);
    border-radius: 25px;
    padding: 40px;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(244, 208, 63, 0.3);
    transition: var(--transition-smooth);
}

.pricing-card-single:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(244, 208, 63, 0.4);
}

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

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pricing-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 10px;
}

.pricing-price span {
    font-size: 1.2rem;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-green);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '📜';
}

/* ===========================
   Sample Preview Section
   =========================== */
#section_sample {
    background: linear-gradient(135deg, #022c22 0%, #065f46 100%);
    position: relative;
    overflow: hidden;
}

.sample-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.sample-text-area {
    text-align: center;
    margin-bottom: 40px;
}

.sample-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--gold), var(--white));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sample-subtitle {
    font-size: 1.2rem;
    color: var(--light-green);
    line-height: 1.6;
}

/* Name Preview */
.name-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.preview-item {
    width: 100px;
    height: 100px;
    background: linear-gradient(145deg, var(--primary-green), var(--dark-green));
    border-radius: 20px;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-family: serif;
    color: var(--gold);
    transition: var(--transition-smooth);
    animation: floatPreview 3s ease-in-out infinite;
}

.preview-item:nth-child(2) {
    animation-delay: 0.5s;
}

.preview-item:nth-child(3) {
    animation-delay: 1s;
}

@keyframes floatPreview {

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

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

.preview-item:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(244, 208, 63, 0.3);
}

/* ===========================
   Info Section (Name Types)
   =========================== */
.info-section {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    padding: 80px 0;
    min-height: auto;
}

.info-block {
    margin-bottom: 60px;
}

.info-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--gold), #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-subtitle {
    font-size: 1.1rem;
    color: var(--light-green);
    text-align: center;
    margin-bottom: 40px;
}

/* Name Type Grid */
.name-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.name-type-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 231, 183, 0.3);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.name-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(244, 208, 63, 0.2);
}

.name-type-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.name-type-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.name-type-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 992px) {
    .name-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .full-section {
        padding: 40px 15px 100px;
    }

    .form-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 100px;
    }

    .name-symbols {
        gap: 10px;
    }

    .symbol-char {
        font-size: 2rem;
    }

    .symbol-main {
        font-size: 3rem;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .name-preview {
        gap: 15px;
    }

    .preview-item {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .name-type-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .time-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .full-section {
        padding: 30px 15px 120px;
    }

    .form-wrapper {
        padding: 25px 15px;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .btn-submit {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .features-grid {
        margin-bottom: 120px;
    }

    .scroll-indicator {
        bottom: 40px;
    }

    .sample-title {
        font-size: 1.8rem;
    }

    .pricing-card-single {
        padding: 30px 20px;
    }

    .gender-options {
        flex-direction: row;
    }

    .info-section {
        padding: 60px 15px;
    }

    .info-title {
        font-size: 1.5rem;
    }

    .time-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-option {
        font-size: 0.7rem;
        padding: 8px 3px;
    }
}

/* ===========================
   Smooth Scrolling Enhancement
   =========================== */
html.smooth-scroll {
    scroll-behavior: smooth;
}

/* ===========================
   Loading State
   =========================== */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* ===========================
   Footer Styles
   =========================== */
footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 100%);
    padding: 25px 20px 15px;
    color: #fff;
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-info {
    text-align: center;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.footer-info p {
    margin: 3px 0;
    font-size: 0.8rem;
}

.footer-company {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 12px 0;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

/* ===========================
   KakaoTalk Floating Button
   =========================== */
.kakaoChat {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.kakaoChat:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2));
}

.fadeUp {
    animation: fadeUpAnimation 1s ease-out forwards;
}

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

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

/* ===========================
   Family Sites Section
   =========================== */
.family-sites-section {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    padding: 40px 20px;
}

.family-sites-title {
    text-align: center;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.family-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.family-site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(244, 208, 63, 0.3);
}

.family-site-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 208, 63, 0.3);
    border-color: var(--gold);
}

.family-site-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.family-site-name {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 576px) {
    .family-sites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .family-site-item {
        padding: 12px 8px;
    }

    .family-site-icon {
        font-size: 1.5rem;
    }

    .family-site-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .kakaoChat {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}