/* ==========================================================================
   INTSAI'S INSIGHT - Premium CSS Stylesheet
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
    --bg-dark: #0B132B;
    --bg-card: #1C2541;
    --bg-light: #1F2E52;
    --accent: #04beb8;
    --accent-hover: #03a39e;
    --accent-glow: rgba(4, 190, 184, 0.35);
    
    --text-main: #F4F5F6;
    --text-sub: #A5ADBB;
    --text-muted: #6C7A89;
    
    --glass-bg: rgba(28, 37, 65, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(4, 190, 184, 0.4);
    --glass-glow: rgba(4, 190, 184, 0.05);

    --font-outfit: 'Outfit', sans-serif;
    --font-noto: 'Noto Sans KR', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-noto);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

li {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.section-padding {
    padding: 8rem 0;
}

.alt-bg {
    background: linear-gradient(rgba(19, 30, 61, 0.85), rgba(11, 19, 43, 0.9)), url('/MYHOME/static/images/expertise_bg.png') no-repeat center center/cover;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#about {
    background-color: #0A0B0D; /* 아주 깊고 어두운 숯빛 블랙 */
}

#insights {
    background-color: #0A0B0D; /* 숯빛 블랙으로 일관성 유지 */
}

#contact {
    background: linear-gradient(135deg, #152238 0%, #0A101A 100%); /* 확실히 대비되는 세련된 네이비/블루 그라데이션 */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 40px 0 rgba(4, 190, 184, 0.15);
    background: rgba(28, 37, 65, 0.8);
}

.text-gradient {
    background: linear-gradient(135deg, #FFF 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    border: 1px solid var(--accent);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-block {
    display: width;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(4, 190, 184, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-family: var(--font-outfit);
}

/* 2. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    padding: 1rem 0;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo-accent {
    color: var(--accent);
}

#desktop-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-sub);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-contact-nav {
    padding: 0.5rem 1.2rem !important;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent) !important;
    font-weight: 600;
}

.btn-contact-nav:hover {
    background: var(--accent);
    color: var(--bg-dark) !important;
}

.btn-contact-nav::after {
    display: none;
}

/* Hamburger Menu (식빵 메뉴) */
#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

#menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* 3. Mobile Navigation Drawer */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    z-index: 1005;
    transition: var(--transition-smooth);
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1008;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

#mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

#menu-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-sub);
    cursor: pointer;
}

#mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: auto;
}

.mobile-link {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-sub);
}

.mobile-link:hover {
    color: var(--accent);
}

.mobile-nav-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mobile-nav-footer .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--accent);
}

/* 4. Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: url('/MYHOME/static/images/hero_concept_bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 11, 13, 0.75) 0%, rgba(10, 16, 26, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-outfit);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    z-index: 10;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 14px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

/* 5. Sections Base Style */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-subtitle {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-sub);
    font-size: 1.1rem;
}

/* 6. About Me Grid & Timeline */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

.profile-card {
    padding: 3rem 2rem;
    text-align: center;
}

.profile-avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(4, 190, 184, 0.08);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 3.5rem;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(4, 190, 184, 0.2);
}

.profile-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.profile-title {
    color: var(--accent);
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.profile-meta-list {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

.profile-meta-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.profile-meta-list li i {
    color: var(--accent);
    width: 16px;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.8rem;
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-badge {
    position: absolute;
    left: calc(-2rem - 13px);
    width: 26px;
    height: 26px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.75rem;
    box-shadow: 0 0 10px rgba(4, 190, 184, 0.3);
}

.timeline-content {
    padding: 1.8rem;
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* 7. Core Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.expertise-card {
    padding: 3rem 2.5rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.expertise-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.card-subtitle {
    font-family: var(--font-outfit);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.card-text {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-features {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.card-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 800;
}

/* 8. Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.insight-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.insight-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.insight-card p {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    align-self: flex-start;
}

.btn-read-more:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
    gap: 0.8rem;
}

/* 9. Contact Section & Footer */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    color: var(--text-sub);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(4, 190, 184, 0.08);
    border: 1px solid rgba(4, 190, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
}

.contact-item div span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-outfit);
}

.contact-item div p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0;
}

.contact-form-wrapper {
    padding: 3rem 2.5rem;
}

.contact-form-wrapper h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-desc {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-sub);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(11, 19, 43, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(4, 190, 184, 0.15);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.footer-links a:hover {
    color: var(--accent);
}

/* 10. Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Up classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 11. Media Queries for Mobile Responsiveness */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    #desktop-nav {
        display: none;
    }
    
    #menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
