/* Design Tokens */
:root {
    /* Colors */
    --color-primary: #ffc107;
    /* Amber/Gold */
    --color-primary-dark: #ffb300;
    /* Darker Amber */
    --color-secondary: #212529;
    /* Dark Charcoal */
    --color-accent: #ffe082;
    /* Light Amber */

    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-text-light: #999999;

    --color-bg-white: #ffffff;
    --color-bg-light: #fffcf5;
    /* Very light warm background */
    --color-bg-dark: #1a1a1a;

    --border-color: #eee0c9;
    /* Warm border */

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Fonts */
    --font-main: 'Noto Sans KR', sans-serif;
    --font-eng: 'Poppins', sans-serif;

    /* Transitions */
    --transition-base: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    font-size: 1.1rem;
    /* Increased from default */
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--color-primary);
}

.text-white {
    color: #fff;
}

.section {
    padding: 100px 0;
}

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

.section-subtitle {
    display: inline-block;
    font-family: var(--font-eng);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.75rem;
    /* 2.5rem * 1.1 */
    color: var(--color-secondary);
}

.section-desc {
    font-size: 1.2rem;
    /* 1.1rem * 1.1 ≈ 1.2rem */
    color: var(--color-text-sub);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: 1.1rem;
    /* 1rem * 1.1 */
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #212529;
    /* Dark text for contrast on yellow */
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    margin-left: 10px;
}

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-eng);
    font-size: 2rem;
    /* 1.8rem * 1.1 ≈ 2rem */
    font-weight: 800;
    color: var(--color-primary);
}

.gnb ul {
    display: flex;
    gap: 40px;
}

.gnb a {
    font-size: 1.15rem;
    /* 1.05rem * 1.1 ≈ 1.15rem */
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

.gnb a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-base);
}

.gnb a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('./hero_bg.png');
    /* Will be replaced with generated image */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero .eyebrow {
    display: block;
    font-family: var(--font-eng);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--color-accent);
}

.hero h1 {
    font-size: 3.85rem;
    /* 3.5rem * 1.1 ≈ 3.85rem */
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero h1 .text-primary {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.3rem;
    /* 1.2rem * 1.1 ≈ 1.3rem */
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.2);
    border-color: var(--color-primary);
}

.icon-box {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.company-info-box {
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid var(--color-primary);
}

.company-info-box dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 30px;
    align-items: center;
}

.company-info-box dt {
    font-weight: 700;
    color: var(--color-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    transition: var(--transition-base);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.service-item:hover .service-icon {
    background: var(--color-primary);
    color: #fff;
}

.service-item h3 {
    font-size: 1.55rem;
    /* 1.4rem * 1.1 ≈ 1.55rem */
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.service-list {
    margin-top: 20px;
    list-style: disc;
    padding-left: 20px;
    color: var(--color-text-sub);
}

/* Portfolio */
.portfolio-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    background: var(--color-bg-light);
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.portfolio-item:hover {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-item span {
    font-weight: 700;
    font-size: 1.2rem;
    /* 1.1rem * 1.1 ≈ 1.2rem */
    margin-bottom: 5px;
    color: var(--color-secondary);
    text-align: center;
}

.portfolio-item small {
    color: var(--color-text-sub);
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

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

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    /* 1.1rem * 1.1 ≈ 1.2rem */
}

.contact-form-box {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    color: var(--color-text-main);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
    /* 0.9rem * 1.1 ≈ 1rem */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Footer */
footer {
    background: #000;
    color: #999;
    padding: 60px 0 30px;
    font-size: 1rem;
    /* 0.9rem * 1.1 ≈ 1rem */
}

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

.footer-logo {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-eng);
}

.footer-menu a {
    margin-left: 20px;
    color: #ccc;
    transition: color 0.3s;
}

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

.footer-info p {
    margin-bottom: 10px;
}

/* Responseive */
@media (max-width: 900px) {

    .about-grid,
    .contact-wrapper,
    .portfolio-list {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .gnb {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
    }

    .gnb.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .gnb ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--color-text-main);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .contact-wrapper {
        flex-direction: column;
    }

    .company-info-box dl {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-content-wrapper {
        flex-direction: column;
    }

    .about-img,
    .about-text {
        width: 100%;
    }

    .about-img {
        margin-bottom: 20px;
    }
}