:root {
    --primary: #111111;
    --secondary: #666666;
    --accent: #2563EB; /* Royal Blue */
    --accent-dark: #1e40af;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --border: #E5E7EB;
    --text-main: #111111;
    --text-white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #FFFFFF;
    --secondary: #A1A1AA;
    --bg-light: #18181B; /* Zinc 900 */
    --bg-white: #09090B; /* Zinc 950 */
    --bg-nav: rgba(9, 9, 11, 0.95);
    --border: #27272A;
    --text-main: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--bg-white);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-gray { color: #9CA3AF; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: #111111; } /* Always dark for footer/process */
.mt-4 { margin-top: 1rem; }
.full-width { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-white);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Settings Buttons (Theme/Lang) */
.settings-nav {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-nav);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.nav-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    justify-self: start;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    justify-self: end;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, var(--bg-light) 0%, var(--bg-white) 50%);
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-break: keep-all;
}

.hero .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* PC: Single line, horizontal */
.hero-buttons .btn {
    flex-direction: row;
    padding: 0.8rem 1.5rem;
    height: auto;
    text-align: left;
    gap: 0.5rem;
}

.hero-buttons .btn i {
    font-size: 1rem;
    margin-bottom: 0;
    margin-right: 0;
}

/* Responsive Line Break */
.mobile-br {
    display: none;
}

/* Mobile: Two lines, vertical */
@media (max-width: 768px) {
    .hero-buttons {
        gap: 1.5rem;
    }

    .hero-buttons .btn {
        flex-direction: column;
        padding: 1.2rem 2.5rem;
        text-align: center;
        line-height: 1.3;
        gap: 0.5rem;
    }

    .hero-buttons .btn i {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .mobile-br {
        display: block;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

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

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Sections Base */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--secondary);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Services */
.service-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

.service-item:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.check-list {
    margin-top: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}

.check-list i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Portfolio */
.portfolio-tabs {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 99px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-main);
    color: var(--text-main);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

.portfolio-item {
    position: relative;
    cursor: pointer;
}

.portfolio-thumb {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.portfolio-thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-info {
    margin-top: 1rem;
}

.portfolio-info .badge {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Reviews */
.review-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border);
}

.review-card .stars {
    color: #FFC107;
    margin-bottom: 1rem;
}

.review-card p {
    font-style: italic;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.reviewer strong {
    display: block;
    font-size: 1rem;
}

.reviewer span {
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 0;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.step p {
    color: #9CA3AF;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Inquiry Form */
.inquiry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item i {
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.map-embed {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.inquiry-form-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-white);
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: #0f0f0f;
    color: #9CA3AF;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: #FFFFFF;
}

.social-links a:hover {
    background: var(--accent);
    color: white;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

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

/* FAB */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.fab-btn {
    min-width: 60px;
    height: 60px;
    padding: 0 1rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.fab-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.fab-btn.kakao { background-color: #FEE500; color: #3C1E1E; }
.fab-btn.phone { background-color: var(--accent); }

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

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

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.mobile-settings {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.mobile-settings .icon-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
    }
    
    .hero h1 { font-size: 2.8rem; }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inquiry-wrapper {
        grid-template-columns: 1fr;
    }
    
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero h1 { font-size: 2.2rem; }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .fab-btn span {
        display: none;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
    }
    
    .fab-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
}
