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

:root {
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #e8e8e8;
    --orange: #e85a1c;
    --light-gray: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--gray);
    color: var(--black);
    overflow-x: hidden;
}

/* Header - Fixed Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

/* Left Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: auto;
}

.nav-menu a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--orange);
    font-style: italic;
}

.nav-menu .sub-menu {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-menu .sub-menu a {
    font-size: 0.85rem;
    color: #666;
}

/* Right Logo */
.logo {
    background: transparent;
    padding: 8px 15px;
    pointer-events: auto;
    text-decoration: none;
    transition: all 0.3s;
}

.logo span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--white);
    letter-spacing: 0.3em;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Home Page Specific */
.home-page .nav-menu a {
    color: var(--white);
}

.home-page .logo {
    background: transparent;
}

/* Star Icon - Top Center */
/* Main Home Section */
.home-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer on Home */
.home-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    color: var(--white);
    font-size: 0.75rem;
    z-index: 100;
}

.home-footer a {
    color: var(--white);
    text-decoration: none;
}

.footer-left p,
.footer-center p {
    line-height: 1.6;
}

.footer-center {
    text-align: center;
}

.footer-center a {
    text-decoration: underline;
}

/* Page Sections */
.page-section {
    min-height: 100vh;
    background: var(--gray);
    padding: 120px 40px 80px 200px;
}

.section-title {
    background: var(--black);
    color: var(--white);
    display: inline-block;
    padding: 10px 25px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.section-desc {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 80px;
    max-width: 800px;
}

.section-desc strong {
    font-weight: 700;
}

/* Core Business */
.core-business {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 100px;
}

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

.business-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-icon svg {
    width: 50px;
    height: 50px;
}

.business-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.business-item h4 {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 20px;
}

.business-item p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #555;
}

.business-tags {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #888;
}

/* History Section */
.history-section {
    padding: 100px 0;
}

.history-section .section-title {
    display: block;
    text-align: center;
    margin: 0 auto 30px;
    width: fit-content;
}

.history-section .section-desc {
    text-align: center;
    max-width: none;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.history-year h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.history-year ul {
    list-style: none;
}

.history-year li {
    font-size: 0.8rem;
    line-height: 2;
    color: #555;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.gallery-item {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Numerical Data */
.numerical-data {
    padding: 100px 0;
    text-align: center;
}

.numerical-data .section-title {
    display: block;
    margin: 0 auto 30px;
    width: fit-content;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.data-item {
    position: relative;
}

.data-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: rgba(0,0,0,0.03);
    border-radius: 50%;
    z-index: -1;
}

.data-item span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.data-item strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 0.02em;
}

.data-item em {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Works Section */
.works-page .page-section {
    background: var(--light-gray);
}

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

.work-card {
    background: var(--white);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.work-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-content {
    padding: 25px;
}

.work-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.work-card p {
    font-size: 0.85rem;
    color: #666;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-filter button {
    padding: 10px 25px;
    border: 1px solid var(--black);
    background: transparent;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.category-filter button:hover,
.category-filter button.active {
    background: var(--black);
    color: var(--white);
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--black);
    background: transparent;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.download-btn:hover {
    background: var(--black);
    color: var(--white);
}

/* Contact Section */
.contact-page .page-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    padding-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    border-top: 1px solid #ccc;
    padding-top: 40px;
}

.contact-intro p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-intro strong {
    color: var(--orange);
}

.contact-links h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contact-links a:hover {
    color: var(--orange);
}

.contact-address {
    text-align: right;
}

.contact-address p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Modal for Portfolio Detail */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 2001;
}

.modal-title {
    color: var(--white);
    text-align: center;
    margin-top: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1200px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .page-section {
        padding-left: 40px;
    }

    .core-business,
    .data-grid {
        grid-template-columns: 1fr;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .home-footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .page-section {
        padding: 100px 20px 60px;
    }

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

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

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

/* Page Transitions */
.page-section {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
