:root {
    --primary-color: #051221;
    --accent-color: #D4AF37;
    --text-main: #f0f0f0;
    --text-sub: #b0b0b0;
    --bg-light: #121212;
    --bg-soft: #1a1a1a;
    --white: #ffffff;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.3);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-light);
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography Refinement - Modern Sans-serif */
h1, h2, h3 {
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-tag {
    display: block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

/* Header Redesign - No Logo/Title */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-flex-end {
    display: flex;
    justify-content: flex-end; /* Align nav to the right */
    align-items: center;
    gap: 30px;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

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

.lang-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 35px;
}

header nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

header nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.blog-link {
    background: var(--accent-color);
    color: #051221 !important; /* Fixed dark color for readability on gold */
    padding: 8px 22px;
    border-radius: 4px;
    font-weight: 700 !important;
    opacity: 1 !important;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(5, 18, 33, 0.8), rgba(5, 18, 33, 0.8)), 
                url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?q=80&w=2070&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
}

#hero .sub-title {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
}

#hero h2 {
    font-size: 4.2rem;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 800;
}

#hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: #051221;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: #051221;
}

/* About Section */
#about {
    padding: 120px 0;
}

.about-wrapper {
    display: flex;
    justify-content: center;
}

.about-text.full-width {
    max-width: 800px;
    text-align: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-sub);
}

.features {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    font-weight: 500;
}

.feature-item .check {
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: 700;
}

/* Services Section */
#services {
    padding: 120px 0;
    background-color: var(--bg-soft);
}

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

.section-header h2 {
    font-size: 2.5rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    background: #252525; /* Slightly lighter than bg for depth */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-15px);
}

.card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: brightness(0.8); /* Match dark theme */
}

.card-body {
    padding: 40px;
    text-align: center;
}

.card-body h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card-body p {
    color: var(--text-sub);
    font-size: 0.95rem;
}

/* Location Section */
#location {
    padding: 120px 0;
}

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.location-map img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: block;
}

.location-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.location-info .address {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.location-info .desc {
    margin-bottom: 30px;
    color: var(--text-sub);
}

/* Contact Section */
#contact {
    padding: 120px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-text h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.contact-info {
    margin-top: 40px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#contact form {
    background: #252525;
    padding: 50px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #f0f0f0;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

#contact button {
    background: var(--accent-color);
    color: #051221;
    border: none;
    padding: 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

#contact button:hover {
    background: var(--white);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: #051221;
    border-top: 1px solid #222;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-top h3 {
    font-size: 1.5rem;
}

.footer-top nav ul {
    list-style: none;
    display: flex;
}

.footer-top nav ul li {
    margin-left: 20px;
}

.footer-top nav a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-top nav a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-bottom .info p {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.copyright {
    font-size: 0.85rem;
    color: #666;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper, .location-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    #hero h2 {
        font-size: 2.8rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .header-flex-end {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 5px 0;
        gap: 20px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    .header-flex-end::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    .lang-switch {
        flex-shrink: 0;
    }

    header nav {
        margin-top: 0;
        flex-shrink: 0;
    }
    
    header nav ul {
        flex-wrap: nowrap;
    }

    header nav ul li {
        margin: 0 10px;
        flex-shrink: 0;
    }
    
    #hero {
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
