/* ===== Section 1: Hero - Crossfade Slideshow ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

/* Stacked background slides */
.hero-bg-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* Dark gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 30, 0.6) 0%,
        rgba(26, 26, 60, 0.4) 50%,
        rgba(10, 10, 30, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero text - load animation (CSS-driven, no JS needed) */
.hero-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 22px;
    letter-spacing: 1px;
    animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-title {
    color: #fff;
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: 3px;
    animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s both;
}

.hero-line {
    width: 0;
    height: 3px;
    background: #fff;
    margin-bottom: 22px;
    animation: heroLineExpand 0.8s ease-out 0.9s both;
}

.hero-eng {
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 5px;
    animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s both;
}

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

@keyframes heroLineExpand {
    from { width: 0; opacity: 0; }
    to   { width: 50px; opacity: 1; }
}

/* Slide counter dots */
.hero-dots {
    position: absolute;
    bottom: 80px;
    right: 60px;
    z-index: 4;
    display: flex;
    gap: 8px;
    animation: heroFadeUp 0.9s ease 1.3s both;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: heroFadeUp 0.9s ease 1.5s both;
    cursor: pointer;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { opacity: 1; transform: translateY(0); }
    75%  { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(10px); }
}

.hero-scroll-indicator span {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 400;
}

/* ===== Section 2: Practice Areas ===== */
.practice-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.practice-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.practice-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practice-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(0,0,0,0.68) 0%,
        rgba(10,10,40,0.55) 60%,
        rgba(0,0,0,0.66) 100%
    );
}

.practice-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.practice-left {
    flex: 1;
}

.practice-left .deco-line {
    width: 50px;
    height: 4px;
    background: #fff;
    margin-bottom: 30px;
}

.practice-left h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.6;
}

.practice-right {
    flex: 1;
    max-width: 480px;
}

.practice-list {
    display: flex;
    flex-direction: column;
}

.practice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s, padding-left 0.35s;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.practice-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: rgba(255,255,255,0.1);
    transition: width 0.35s ease;
}

.practice-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px 4px 0 0;
}
.practice-item:last-child {
    border-radius: 0 0 4px 4px;
}

.practice-item:hover {
    background: rgba(255,255,255,0.14);
    padding-left: 38px;
}

.practice-item:hover::before {
    width: 3px;
    background: rgba(255,255,255,0.8);
}

.practice-item .arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.practice-item:hover .arrow {
    transform: translateX(6px);
}

/* ===== Section 3: Lawyer Intro ===== */
.lawyer-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.lawyer-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lawyer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: 600px;
}

.lawyer-text {
    flex: 1;
}

.lawyer-text .deco-line {
    width: 50px;
    height: 4px;
    background: var(--primary-dark);
    margin-bottom: 30px;
}

.lawyer-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    line-height: 1.6;
    margin-bottom: 22px;
}

.lawyer-text h2 .highlight {
    color: var(--primary-dark);
    font-weight: 800;
}

.lawyer-text .sub-text {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.6;
    margin-bottom: 10px;
}

.lawyer-text .sub-text .blue-bold {
    color: var(--primary-dark);
    font-weight: 800;
}

.lawyer-name {
    margin-top: 44px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.lawyer-name .name-kr {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: 15px;
}

.lawyer-name .name-title {
    font-size: 20px;
    font-weight: 600;
    color: #555;
}

.lawyer-photo {
    flex-shrink: 0;
    width: 360px;
    position: relative;
}

.lawyer-photo::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid var(--primary-dark);
    border-radius: 6px;
    opacity: 0.25;
    z-index: 0;
}

.lawyer-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ===== Section 4: 5 Principles Slider ===== */
.principles-section {
    background: #f5f5f7;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.principles-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #222;
    margin-bottom: 70px;
    letter-spacing: -0.5px;
}

.principles-title .highlight {
    color: var(--primary-dark);
    font-weight: 900;
}

.principles-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.principles-slider-side {
    flex-shrink: 0;
    width: 300px;
    height: 380px;
    overflow: hidden;
    border-radius: 10px;
    opacity: 0.35;
    transition: opacity 0.5s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.principles-slider-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principles-slider-side.left {
    margin-right: -30px;
    z-index: 1;
}

.principles-slider-side.right {
    margin-left: -30px;
    z-index: 1;
}

.principles-slider-center {
    position: relative;
    z-index: 5;
    width: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-card {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.slide-card-title {
    padding: 32px 40px 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 1px solid #f0f0f5;
}

.slide-card-title .num {
    color: #b0b0cc;
    margin-right: 8px;
    font-weight: 500;
}

.slide-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    padding: 20px 40px 0;
}

.slide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.slide-card-desc {
    padding: 22px 40px 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    color: #555;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 40px 36px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
    background: transparent;
    color: var(--primary-dark);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.05);
}

.slider-counter {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* ===== Section 5: Contact / Map ===== */
.contact-section {
    background: #fff;
    padding: 110px 60px;
}

.contact-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.contact-left {
    flex: 1;
}

.contact-left .deco-line {
    width: 50px;
    height: 4px;
    background: var(--primary-dark);
    margin-bottom: 30px;
}

.contact-left h2 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.7;
    margin-bottom: 44px;
}

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

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 15px;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
}

.contact-right {
    flex-shrink: 0;
    width: 700px;
}

.contact-right a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-right a:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.contact-right img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .principles-slider-side {
        width: 200px;
        height: 300px;
    }
    .principles-slider-center {
        width: 460px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        padding: 0 30px;
    }
    .hero-title {
        font-size: 42px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .hero-dots { right: 30px; }

    .practice-content {
        flex-direction: column;
        padding: 80px 30px;
        gap: 48px;
    }
    .practice-right {
        max-width: 100%;
        width: 100%;
    }

    .lawyer-content {
        flex-direction: column;
        padding: 80px 30px;
        gap: 50px;
    }
    .lawyer-photo {
        width: 300px;
        order: -1;
    }
    .lawyer-text {
        text-align: center;
    }
    .lawyer-text .deco-line {
        margin: 0 auto 30px;
    }
    .lawyer-name {
        justify-content: center;
        text-align: center;
    }

    .principles-slider-side {
        display: none;
    }
    .principles-slider-center {
        width: 100%;
        max-width: 520px;
    }
    .principles-section {
        padding: 80px 30px;
    }

    .contact-section {
        padding: 80px 30px;
    }
    .contact-inner {
        flex-direction: column;
        gap: 48px;
    }
    .contact-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
    }
    .hero-title {
        font-size: 34px;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-eng {
        font-size: 13px;
        letter-spacing: 4px;
    }
    .hero-dots { display: none; }

    .practice-left h2 {
        font-size: 26px;
    }

    .lawyer-text h2 {
        font-size: 24px;
    }
    .lawyer-text .sub-text {
        font-size: 20px;
    }
    .lawyer-name .name-kr {
        font-size: 36px;
        letter-spacing: 10px;
    }
    .lawyer-photo {
        width: 270px;
    }

    .principles-title {
        font-size: 26px;
        margin-bottom: 40px;
    }
    .slide-card-title {
        padding: 24px 24px 14px;
        font-size: 17px;
    }
    .slide-card-image {
        padding: 16px 24px 0;
        height: 220px;
    }
    .slide-card-desc {
        padding: 18px 24px 14px;
        font-size: 13px;
    }

    .contact-left h2 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .practice-left h2 {
        font-size: 22px;
    }
    .practice-item {
        padding: 18px 18px;
        font-size: 14px;
    }
    .lawyer-photo {
        width: 240px;
    }
    .lawyer-name .name-kr {
        font-size: 28px;
        letter-spacing: 8px;
    }
    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
