/* Base Reset & Variables */
:root {
    --primary-color: #5c4d3c;
    --accent-color: #d4af37;
    --dark-bg: #1a1a1a;
    --light-bg: #fdfaf6;
    --text-primary: #333333;
    --text-light: #f5f5f5;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-heading: 'Noto Serif KR', serif;
    --font-body: 'Pretendard', sans-serif;
    --hero-bg: url('images/hero_bg.png');
    --specialty-bg: url('images/specialty_bg.png');
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Glassmorphism Classes */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.navbar.scrolled .logo,
.navbar.scrolled nav ul li a {
    color: var(--primary-color);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled nav ul li a {
    text-shadow: none;
}

.navbar nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content .subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.hero-content .desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn:hover {
    background: #b8972f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.about-card {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color);
}

.about-text {
    padding-left: 20px;
}

.director-name {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.director-history {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 500;
}

.credentials {
    list-style: none;
    margin-bottom: 30px;
}

.credentials li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.credentials li span {
    font-size: 1.3rem;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    font-family: var(--font-heading);
}

/* Specialty Section */
.specialty {
    padding: 100px 0;
    /* We'll update this background URL via script or when the 2nd image is generated */
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), var(--specialty-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-bg);
}

.specialty .section-title {
    color: var(--light-bg);
}

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

.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover.hover-lift {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.card p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Location Section */
.location {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.location-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    font-size: 2rem;
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

/* Clinic Hours Section */
.clinic-hours {
    padding: 100px 0 50px 0;
    background-color: var(--light-bg);
}

.hours-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    min-width: 500px;
}

.hours-table th,
.hours-table td {
    padding: 18px 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hours-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.hours-table .time-label {
    background-color: rgba(92, 77, 60, 0.05);
    font-weight: 600;
    color: var(--primary-color);
    width: 25%;
}

.hours-table .time-label span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #777;
    display: block;
    margin-top: 5px;
}

.hours-table .circle.open {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.hours-table .closed-cell {
    background-color: rgba(0, 0, 0, 0.03);
    color: #999;
    font-weight: bold;
}

.hours-info {
    text-align: center;
    font-size: 1.05rem;
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
.fade-in {
    animation: fadeIn 1.5s ease-out;
}

.slide-up {
    animation: slideUp 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .subtitle {
        font-size: 1.4rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}