:root {
    --bg-base: #0f172a;
    --bg-surface: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Noto Sans KR', sans-serif;
    --font-heading: 'Outfit', 'Noto Sans KR', sans-serif;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.glass-strong {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Utilities */
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; }
.max-w-none { max-width: none; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.text-gray-300 { color: #d1d5db; }
.text-white { color: #ffffff; }
.font-bold { font-weight: 700; }
.text-xl { font-size: 1.25rem; }

.list-decimal { list-style-type: decimal; }
.list-disc { list-style-type: disc; }
.pl-5 { padding-left: 1.25rem; }

/* Prose / Content Styling */
.prose {
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 0.75rem;
}

.prose h1, .prose h2, .prose h3 {
    color: white;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.space-y-8 > * + * { margin-top: 2.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

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

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 1rem 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.9);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-primary);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--text-primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease-out forwards;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: slideUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: rgba(15, 23, 42, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
}

/* Professionals Section */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .profile-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-image-wrap {
    flex: 0 0 350px;
    position: relative;
}

.profile-img {
    width: 100%;
    border-radius: 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    background: var(--accent-gradient);
    transform: translate(-50%, -50%);
    filter: blur(30px);
    opacity: 0.3;
    z-index: 1;
    border-radius: 2rem;
}

.profile-info {
    flex: 1;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.profile-name {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.name-eng {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.5rem;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.specialty-tags .tag {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #e2e8f0;
}

.career-timeline {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.career-list {
    position: relative;
    padding-left: 1.5rem;
}

.career-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.career-list li {
    position: relative;
    padding-bottom: 1rem;
    color: var(--text-secondary);
}

.career-list li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    transform: translateX(-3px);
}

.career-list li:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.career-list li:last-child::before {
    background: #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
}

.profile-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-primary);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Utilities for prose and spacing */
.prose {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.prose p {
    margin-bottom: 1rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.profile-info .prose {
    margin-bottom: 2rem;
}

/* Practice Grid */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.practice-item {
    padding: 2rem;
    border-top: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.practice-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.practice-item h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.practice-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Recent Items */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.recent-card {
    padding: 2rem;
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-header h3 {
    font-size: 1.25rem;
}

.view-all {
    font-size: 0.875rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all:hover {
    text-decoration: underline;
}

.recent-list li {
    margin-bottom: 0.5rem;
}

.recent-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.02);
    transition: all 0.2s ease;
}

.recent-list a:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}

.item-title {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
    flex: 1;
    min-width: 0;
}

.recent-list a:hover .item-title {
    color: var(--text-primary);
}

.item-arrow {
    color: var(--border-color);
    transition: color 0.2s ease;
}

.recent-list a:hover .item-arrow {
    color: var(--accent-primary);
}

.empty-state {
    color: var(--text-secondary);
    padding: 1rem;
    text-align: center;
    font-style: italic;
}

/* Footer */
.footer {
    background: #080f1e;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem !important;
}

/* Location Section */
.location-section {
    padding: 2rem;
    margin-top: 3rem;
}

.location-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.info-text h4 {
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.info-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.location-map {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.transparent-caption {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.desktop-only {
    display: inline-block;
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    text-align: center;
    width: 80%;
    max-width: 300px;
}

.mobile-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-consult-link {
    margin-top: 1rem;
    background: var(--accent-gradient) !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 950px) {
    .desktop-nav {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: 70vh;
        padding-top: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    .section-header {
        margin-bottom: 2rem;
    }

    .profile-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .profile-image-wrap {
        flex: 0 0 auto;
        max-width: 250px;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .name-eng {
        font-size: 1rem;
    }

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

    .practice-item {
        padding: 1.25rem;
    }

    .recent-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-section {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-info p {
        font-size: 0.8rem;
    }

    /* Navbar mobile padding */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-content {
        padding: 0 1rem;
    }
}
