/* ===== Base Variables & Fonts ===== */
:root {
    --color-bg-dark: #070911;
    --color-bg-light: #12182b;
    --color-gold: #D4AF37;
    --color-gold-light: #F3E5AB;
    --color-gold-dark: #997A15;
    --color-text: #F8FAFC;
    --color-text-muted: #94A3B8;
    
    --font-serif: 'Playfair Display', 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-image: linear-gradient(rgba(7, 9, 17, 0.85), rgba(7, 9, 17, 0.85)), url('./assets/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Premium Background Orbs ===== */
.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(7, 9, 17, 0) 70%);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(18, 36, 86, 0.4) 0%, rgba(7, 9, 17, 0) 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    margin: 0;
    font-weight: 600;
}

p {
    line-height: 1.7;
    color: var(--color-text-muted);
}

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

.ko-title {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-gold);
    display: block;
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

/* ===== Glassmorphism Utilities ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

/* ===== Layout Containers ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 4rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 1.5rem auto 0;
}

.text-center {
    text-align: center;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 17, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    color: var(--color-gold);
    letter-spacing: 1px;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-gold);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--color-gold);
    margin: 0 auto 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.8;
}

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

/* ===== Lawyer Profiles ===== */
.lawyer-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.lawyer-card {
    display: flex;
    flex-direction: row-reverse;
    overflow: hidden;
    align-items: stretch;
}

.lawyer-img-wrapper {
    width: 450px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.lawyer-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 14, 23, 1), transparent);
}

.lawyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lawyer-card:hover .lawyer-img {
    transform: scale(1.05);
}

.lawyer-info {
    padding: 3rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lawyer-name {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 700;
}

.lawyer-name .title {
    font-size: 1.8rem;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 700;
}

.career-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.4;
}

.career-list li::before {
    content: '•';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

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

.service-card {
    padding: 3rem 2rem;
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ===== Fast Inquiry Banner ===== */
.inquiry-banner {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(18, 24, 43, 0.5));
}

.banner-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.btn-gold {
    background: linear-gradient(to right, var(--color-gold), var(--color-gold-dark));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ===== Floating Inquiry Buttons ===== */
.floating-inquiry {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-float:hover {
    transform: scale(1.1);
}

.btn-call {
    background: linear-gradient(135deg, #4ade80, #16a34a);
}

.btn-kakao {
    background: linear-gradient(135deg, #FEE500, #E5CE00);
    color: #391B1B;
}

.tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

/* ===== Location / Map Section ===== */
.map-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.map-details {
    display: flex;
    justify-content: space-between;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    gap: 2rem;
    flex-wrap: wrap;
}

.map-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-width: 250px;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-header i {
    font-size: 2.2rem;
    color: var(--color-gold);
}

.item-header h4 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 500;
}

.map-detail-item p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
    background: rgba(4, 6, 12, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    color: var(--color-gold);
    letter-spacing: 1px;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--color-gold);
    margin-top: 5px;
}

.contact-item p {
    margin: 0;
}

.contact-item a:hover {
    color: var(--color-gold);
}

.footer-heading {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-gold);
}

.mt-2 {
    margin-top: 1rem;
}

.blog-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.blog-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.naver-icon {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .lawyer-grid {
        gap: 3rem;
    }
    
    .lawyer-card {
        flex-direction: column;
    }
    
    .lawyer-img-wrapper {
        width: 100%;
        height: 400px;
    }
    
    .lawyer-info {
        padding: 2.5rem;
    }
    
    .lawyer-name {
        font-size: 2rem;
    }
    
    .lawyer-name .title {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .banner-content {
        padding: 2.5rem 1.5rem;
    }
    
    .banner-text h3 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .banner-text p {
        font-size: 1rem;
        line-height: 1.6;
        word-break: keep-all;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .map-image-container {
        height: 300px;
    }
    
    .map-image {
        object-position: 30% center;
    }
    
    .map-details {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem;
    }
    
    .career-list li {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }
    
    .floating-btns {
        bottom: 1rem;
        right: 1rem;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}
