/* Global Styles */
:root {
    --primary-color: #0f172a; /* Dark Navy */
    --secondary-color: #d97706; /* Gold/Amber */
    --accent-color: #2563eb; /* Blue */
    --text-color: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-center { text-align: center; }
.text-gold { color: var(--secondary-color); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.btn:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero h1, .hero h2, .hero h3, .hero h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.1);
}

/* Profile Section */
.profile {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.profile-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-title {
    display: inline-block;
    background-color: #e2e8f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: #64748b;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-text {
    direction: ltr;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-text h3 {
    font-size: 2rem;
}

.feature-image img {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Offer Section */
.offer {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.offer h1, .offer h2, .offer h3, .offer h4 {
    color: var(--white);
}

.book-showcase {
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 50px;
    margin-top: 50px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.1);
}

.disclaimer-small {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 10px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background-color: #e2e8f0;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 0 100px; /* Extra padding for fixed button */
    font-size: 0.9rem;
}

footer h1, footer h2, footer h3, footer h4 {
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 30px;
}

.footer-links a {
    margin-right: 20px;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--white);
}

/* Fixed Bottom Button */
.fixed-bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.fixed-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
    border: 2px solid rgba(255,255,255,0.2);
    text-decoration: none;
}

.fixed-btn:hover {
    background-color: #b45309;
    transform: translateY(-2px);
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover {
    color: black;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-grid, .profile-content, .feature-row, .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-row.reverse { direction: ltr; }
    .section-header h2 { font-size: 2rem; }

    /* Center elements on mobile */
    .profile-content, .feature-text, .footer-content {
        text-align: center;
        justify-content: center;
    }
    
    .hero-text ul {
        display: inline-block;
        text-align: left;
    }

    .feature-text ul {
        display: inline-block;
        text-align: left;
        margin-top: 10px;
    }

    .feature-icon {
        margin: 0 auto 1.5rem;
    }

    .footer-links {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .footer-logo {
        width: 100%;
        text-align: center;
    }

    .profile-img, .feature-image, .hero-image {
        order: -1; /* Image first on mobile */
        display: flex;
        justify-content: center;
    }
    
    .hero-image img, .profile-img img, .feature-image img {
        margin: 0 auto;
    }
}

