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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    color: #1E293B;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 50;
    background: transparent; transition: all 0.3s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
    max-width: 1140px; margin: 0 auto; padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { text-decoration: none; }
.nav-logo-text { font-weight: 700; font-size: 1.25rem; color: white; }
.nav-logo-img { height: 36px; }
.navbar.scrolled .nav-logo-text { color: #5e2bff; }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.875rem;
    position: relative; padding-bottom: 2px; transition: color 0.3s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: white; transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.navbar.scrolled .nav-link { color: #1E293B; }
.navbar.scrolled .nav-link::after { background: #5e2bff; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; cursor: pointer; }
.navbar.scrolled .mobile-menu-btn { color: #1E293B; }
.mobile-menu {
    background: white; padding: 1rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.mobile-menu a { color: #1E293B; text-decoration: none; padding: 0.5rem 0; }
.mobile-menu a:hover { color: #5e2bff; }
.hidden { display: none !important; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ===== HERO ===== */
.hero-section {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #5e2bff 0%, #c04cfd 100%);
    animation: heroShift 12s ease-in-out infinite alternate;
}
@keyframes heroShift { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
.hero-content {
    position: relative; text-align: center; color: white;
    padding: 2rem 1.5rem;
}
.hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-alt { background: #f3fae1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
    text-align: center; font-size: 2rem; font-weight: 700;
    color: #1E293B; margin-bottom: 3rem;
}
.section-subtitle { text-align: center; color: #6B7280; margin-bottom: 2rem; margin-top: -2rem; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block; padding: 0.875rem 2.5rem;
    background: #5e2bff; color: white;
    font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em;
    border-radius: 9999px; border: none; cursor: pointer;
    text-decoration: none; transition: all 0.3s; text-align: center;
}
.btn-primary:hover {
    background: #c04cfd; transform: translateY(-2px);
    box-shadow: 0 8px 25px #5e2bff44;
}

/* ===== SERVICE / FEATURE CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card, .feature-card {
    background: white; border-radius: 1rem; padding: 2rem;
    text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s; border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover, .feature-card:hover {
    transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.service-icon-wrap {
    width: 4rem; height: 4rem; margin: 0 auto 1.25rem;
    border-radius: 50%; background: #f3fae1;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #5e2bff; transition: all 0.3s;
}
.service-card:hover .service-icon-wrap {
    background: #5e2bff; color: white;
}
.feature-card h5 { color: #5e2bff; margin: 0; }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    border-radius: 1rem; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.gallery-item img {
    width: 100%; height: 250px; object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===== CONTACT FORM ===== */
.contact-container { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.form-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.contact-input {
    width: 100%; padding: 0.75rem 1rem; background: white;
    border: 1px solid #E2E8F0; border-radius: 0.75rem;
    font-size: 0.875rem; color: #333; transition: all 0.3s; outline: none;
    box-sizing: border-box;
}
.contact-input:focus { border-color: #5e2bff; box-shadow: 0 0 0 3px #5e2bff22; }
.contact-input::placeholder { color: #bbb; }
.form-actions { text-align: center; }

/* ===== FOOTER ===== */
.site-footer { background: #1E293B; color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.footer-contact p { margin: 0.25rem 0; }
.footer-contact i { margin-right: 0.5rem; }
.footer-hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0; }
.footer-copy { text-align: center; font-size: 0.875rem; }
