/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2E6ABF;
    --primary-dark: #1E4A8A;
    --primary-light: #E8F0FE;
    --accent: #00B4D8;
    --green: #10B981;
    --purple: #7C3AED;
    --orange: #F97316;
    --red: #EF4444;
    --text: #1A1A2E;
    --text-light: #4A4A6A;
    --text-muted: #8892A4;
    --bg: #FFFFFF;
    --bg-light: #F7F9FC;
    --border: #E2E8F0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
    color: var(--text);
}

.nav-scrolled .logo-img {
    filter: none;
}

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

.nav-logo { display: flex; align-items: center; }

.logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition);
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-scrolled .nav-toggle span {
    background: var(--text);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #162B50 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 60%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    max-width: 800px;
}

.hero-logo {
    height: 64px;
    width: auto;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.badge {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-white {
    background: #fff;
    color: var(--primary-dark);
    font-size: 17px;
    padding: 16px 36px;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Section Commons ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text);
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Business Cards ===== */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

.biz-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.biz-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.biz-card-top {
    height: 5px;
}

.biz-card[data-color="blue"] .biz-card-top { background: var(--primary); }
.biz-card[data-color="cyan"] .biz-card-top { background: var(--accent); }
.biz-card[data-color="green"] .biz-card-top { background: var(--green); }
.biz-card[data-color="purple"] .biz-card-top { background: var(--purple); }
.biz-card[data-color="orange"] .biz-card-top { background: var(--orange); }
.biz-card[data-color="red"] .biz-card-top { background: var(--red); }

.biz-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 28px 28px 20px;
}

.biz-card[data-color="blue"] .biz-card-icon {
    background: rgba(46, 106, 191, 0.1);
    color: var(--primary);
}
.biz-card[data-color="cyan"] .biz-card-icon {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent);
}
.biz-card[data-color="green"] .biz-card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}
.biz-card[data-color="purple"] .biz-card-icon {
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
}
.biz-card[data-color="orange"] .biz-card-icon {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
}
.biz-card[data-color="red"] .biz-card-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.biz-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 28px 4px;
}

.biz-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 28px 20px;
    letter-spacing: 0.5px;
}

.biz-card-body {
    padding: 0 28px;
    flex: 1;
}

.biz-item {
    margin-bottom: 16px;
}

.biz-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.biz-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.biz-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 4px;
    transition: color var(--transition);
}

.biz-link:hover {
    color: var(--primary-dark);
}

.biz-link i {
    font-size: 11px;
}

.biz-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 28px 28px;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* ===== Portfolio ===== */
.portfolio {
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portfolio-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px;
}

.portfolio-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.portfolio-type {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ===== Contact CTA ===== */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
}

.contact-content {
    text-align: center;
    color: #fff;
}

.contact-content h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-content p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 36px;
    font-weight: 300;
}

/* ===== Footer ===== */
.footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links li {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links a {
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

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

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

/* Stagger animation for grid items */
.biz-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.biz-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.biz-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.biz-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.1s; }
.biz-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.2s; }

.portfolio-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.portfolio-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.portfolio-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.portfolio-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .biz-grid {
        gap: 20px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--text);
        font-size: 18px;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section {
        padding: 72px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        gap: 8px;
    }

    .badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
