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

:root {
    --primary-color: #2c3e89;
    --secondary-color: #4a5fc1;
    --accent-color: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --gradient-primary: linear-gradient(135deg, #2c3e89 0%, #4a5fc1 100%);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 커스텀 포커스 스타일 (접근성) */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 키보드 사용자가 아닐 때는 아웃라인 숨기기 */
:focus:not(:focus-visible) {
    outline: none;
}

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1,
.nav-brand .nav-brand-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a.active {
    color: var(--secondary-color);
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Skip navigation link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Mobile menu backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.menu-backdrop.active {
    display: block;
}

/* Breadcrumb */
.breadcrumb {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumb-list li::before {
    content: '›';
    margin-right: 8px;
    color: #999;
}

.breadcrumb-list li:first-child::before {
    content: '';
    margin: 0;
}

.breadcrumb-list a {
    color: var(--primary-color, #2c3e89);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #666;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    background: linear-gradient(rgba(44, 62, 137, 0.5), rgba(74, 95, 193, 0.5)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?q=75&w=1280&auto=format&fit=crop&fm=webp') center center / cover no-repeat;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-wrap: balance;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5),
                 0 0 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5),
                 0 0 15px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--bg-light);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Animora Section */
.animora-section {
    background: white;
}

.animora-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

.animora-intro-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.animora-intro-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.animora-intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.animora-formula {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 2rem;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.formula-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.formula-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.formula-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.formula-plus,
.formula-equals {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.formula-result {
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
}

.formula-result .formula-desc {
    color: white;
}

.visual-card {
    background: var(--gradient-primary);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.visual-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.visual-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.country-grid span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.animal-types {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.type-badge {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.type-upper {
    background: rgba(255, 255, 255, 0.3);
}

.type-middle {
    background: rgba(255, 255, 255, 0.2);
}

.type-lower {
    background: rgba(255, 255, 255, 0.1);
}

/* 360 Types Calculation */
.types-calculation {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
}

.types-calculation h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.calc-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.calc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calc-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.calc-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.calc-multiply,
.calc-equals {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
}

.calc-result {
    background: var(--primary-color);
    color: white;
    padding: 30px 40px;
    border-radius: 15px;
}

.calc-result .calc-number {
    color: white;
}

.calc-result .calc-label {
    color: rgba(255, 255, 255, 0.9);
}

.calc-description {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Glass Room vs Mirror Room */
.glass-mirror-section {
    margin: 50px 0 30px;
    text-align: center;
}

.glass-mirror-section h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.glass-mirror-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.gm-card {
    flex: 1;
    max-width: 280px;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
}

.glass-room {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf9 100%);
    border: 2px solid #b3d9f2;
}

.mirror-room {
    background: linear-gradient(135deg, #fde8f0 0%, #f9d1e0 100%);
    border: 2px solid #f2b3c9;
}

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

.gm-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.gm-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.gm-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
    flex-shrink: 0;
}

.gm-description {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Interpretation Methods */
.interpret-section {
    margin: 60px 0;
}

.interpret-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.interpret-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.method-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.method-number {
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.method-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-weight: 700;
}

.method-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.example-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    line-height: 1.8;
}

.example-box strong {
    color: var(--primary-color);
}

/* Comparison Table */
.comparison-section {
    margin: 60px 0;
}

.comparison-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

/* President Section */
.president-section {
    background: var(--bg-light);
}

.president-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.president-photo {
    position: sticky;
    top: 100px;
}

.president-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: transform 0.3s ease;
}

.president-image:hover {
    transform: scale(1.02);
}

.president-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.president-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.president-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 3px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.detail-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}


.detail-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.detail-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.president-quote {
    background: var(--gradient-primary);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    margin: 2rem 0;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Types Section */
.types-section {
    background: white;
}

.animal-table-wrapper {
    margin: 60px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.animal-table-wrapper h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.animal-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 15px;
    overflow: hidden;
}

.animal-table th,
.animal-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.animal-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.animal-table tr:hover {
    background: var(--bg-light);
}

.month-countries {
    margin: 60px 0;
}

.month-countries h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.country-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.country-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.country-month {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.country-card h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.country-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Converter Section */
.converter-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.converter-container {
    max-width: 1000px;
    margin: 0 auto;
}

.converter-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.converter-input-section h3,
.converter-result-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.date-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-field label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-field input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.input-field input:focus {
    outline: 2px solid transparent;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 95, 193, 0.25);
}

.convert-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 137, 0.4);
}

.convert-btn:active {
    transform: translateY(0);
}

.converter-arrow {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
}

.lunar-result {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
}

.result-placeholder {
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.result-success {
    text-align: center;
    width: 100%;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solar-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.lunar-date {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.result-error {
    color: #e74c3c;
    text-align: center;
    font-weight: 500;
}

.animora-info {
    margin-top: 2rem;
    padding: 25px;
    background: var(--gradient-primary);
    border-radius: 15px;
    color: white;
}

.animora-info h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.animora-result {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.animora-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 10px;
}

.animora-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.animora-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.animora-buttons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.animora-analysis-btn,
.animora-ai-btn {
    flex: 1;
    min-width: 200px;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.animora-analysis-btn {
    background: var(--gradient-primary);
    color: white;
}

.animora-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44, 62, 137, 0.3);
}

.animora-ai-btn {
    background: white;
    color: var(--primary-color);
}

.animora-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: #f8f9fa;
}

.leap-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #f39c12;
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.converter-notice {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.converter-notice h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.converter-notice ul {
    list-style: none;
    padding: 0;
}

.converter-notice li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.converter-notice li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}


.contact-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-notice {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.contact-notice h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-notice p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.notice-small {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 1.5rem;
}

.copyright-notice {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a,
.footer-column a:visited {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .animora-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .president-content {
        grid-template-columns: 1fr;
    }

    .president-photo {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .interpret-methods {
        grid-template-columns: 1fr;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

    .calc-formula {
        flex-direction: column;
        gap: 20px;
    }

    .glass-mirror-cards {
        flex-direction: column;
    }

    .gm-card {
        max-width: 100%;
    }

    .gm-vs {
        transform: rotate(90deg);
    }

    .animora-formula {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .converter-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .converter-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
    }

    .date-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .calc-number {
        font-size: 3rem;
    }

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

    .converter-card {
        padding: 20px 15px;
    }

    .lunar-result {
        min-height: 120px;
        padding: 20px;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

/* Table mobile scroll hint */
.animal-table-wrapper,
.comparison-table,
.schedule-table {
    position: relative;
}

@media (max-width: 768px) {
    .comparison-table::after,
    .schedule-table::after {
        content: '← 좌우로 스크롤하세요 →';
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-light);
        padding: 8px 0;
        opacity: 0.7;
    }
}

/* ========== Hero Analyzer ========== */
.hero-analyzer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 35px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.analyzer-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.analyzer-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.analyzer-name-row {
    margin-bottom: 15px;
}

.hero-analyzer .input-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.hero-analyzer .input-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s ease;
}

.hero-analyzer .input-field input:focus {
    outline: 2px solid transparent;
    border-color: var(--secondary-color);
}

.analyzer-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analyzer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 137, 0.35);
}

/* ========== Home Result ========== */
.home-result {
    margin-top: 30px;
}

.home-result-header {
    text-align: center;
    margin-bottom: 20px;
}

.lunar-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    flex-wrap: wrap;
}

.lunar-label {
    font-weight: 600;
    color: var(--primary-color);
}

.lunar-arrow {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.home-result .result-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.home-result .result-header h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.home-result .profile-card {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin: 20px 0;
}

.home-result .profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.home-result .profile-birth {
    color: var(--text-light);
    margin: 5px 0 15px;
}

.home-result .animora-type h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.home-result .animora-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    margin: 4px;
    font-size: 0.95rem;
}

.home-result .analysis-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.home-result .analysis-section h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.home-result .analysis-content p {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.home-result .analysis-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.home-result .analysis-list li {
    padding: 4px 0;
    color: var(--text-dark);
}

.home-result .analysis-list li::before {
    content: '✓ ';
    color: var(--secondary-color);
    font-weight: 700;
}

.home-result .analysis-warning {
    color: #e84118;
    font-weight: 600;
}

.home-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.result-error {
    color: #e74c3c;
    background: #fef2f2;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    text-align: center;
}

/* ========== CTA Buttons ========== */
.section-cta {
    text-align: center;
    margin-top: 40px;
}

.cta-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 137, 0.3);
    color: white;
}

.cta-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ========== Sample Result Preview ========== */
.sample-section {
    background: var(--bg-light);
}

.sample-result-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

.sample-profile {
    text-align: center;
    margin-bottom: 25px;
}

.sample-badge-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
}

.sample-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
}

.country-badge {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    color: var(--primary-color);
}

.animal-badge {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.sample-type-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.sample-sections {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.sample-item {
    padding: 18px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.sample-item h4 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.sample-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sample-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sample-cta p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ========== Animal SVG Icons ========== */
.animora-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.country-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.country-icon .animora-icon {
    width: 28px;
    height: 28px;
}

.country-compact-card:hover .country-icon {
    color: var(--secondary-color);
}

/* ========== Compact Country Grid ========== */
.countries-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.country-compact-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.country-compact-card:hover {
    box-shadow: var(--shadow-md);
}

.country-compact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.country-emoji {
    font-size: 1.4rem;
}

.country-month {
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
    min-width: 32px;
    background: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    text-align: center;
}

.country-compact-header h4 {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.country-toggle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.country-compact-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 18px;
}

.country-compact-card.expanded .country-compact-body {
    max-height: 200px;
    padding: 0 18px 16px;
}

.country-keywords {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.country-compact-body > p:last-child {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .countries-compact-grid {
        grid-template-columns: 1fr;
    }

    .hero-analyzer {
        padding: 25px 20px;
    }

    .analyzer-inputs {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .sample-result-card {
        padding: 25px 20px;
    }

    .home-result .result-card {
        padding: 20px 15px;
    }
}

/* ── 인쇄 스타일 ────────────────────── */
@media print {
    .navbar, .hamburger, .menu-backdrop, .footer,
    .scroll-top-btn, .hero-overlay, .cta-btn,
    .home-result-actions, button {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    .result-card, .analysis-section {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
}
