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

:root {
    --primary-color: #ffffff;
    --accent-color: #d4af37; /* Gold accent for premium feel */
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --nav-height: 80px;
    --transition-speed: 0.4s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* Header Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
    background-color: transparent;
    padding: 20px 0;
}

.main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-menu ul {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-speed) ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--bg-color);
}

.hero-bg-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}

.hero-bg-slider .slide.active {
    opacity: 1;
    animation: slowZoom 15s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-bg-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border-radius: 2px;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s 1.5s ease forwards;
}

.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Content Sections (Placeholders) */
.content-section {
    padding: 120px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-section.dark-bg {
    background-color: #0f0f0f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.section-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 60px;
}

.placeholder-box {
    width: 100%;
    min-height: 400px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Introduce Grid Layout */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #111;
}

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

.grid-item:hover video,
.grid-item:hover img {
    transform: scale(1.05);
}

.item-1 { grid-column: span 2; grid-row: span 1; }
.item-2 { grid-column: span 1; grid-row: span 1; }
.item-3 { grid-column: span 1; grid-row: span 2; }
.item-4 { 
    grid-column: span 2; 
    grid-row: span 2; 
}

@media (max-width: 900px) {
    .intro-grid {
        grid-auto-rows: 25vw;
        gap: 10px;
    }
}

/* Portfolio Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
    width: 100%;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #fff;
    text-align: center;
}

.portfolio-overlay h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 500;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .portfolio-grid {
        gap: 8px;
    }
    .portfolio-overlay h4 {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .portfolio-overlay p {
        font-size: 9px;
    }
    .content-section {
        padding: 60px 0;
    }
}

/* Portfolio Modal Layout */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.portfolio-modal.show {
    display: flex;
    opacity: 1;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.modal-images {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-images img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

.modal-images img.active {
    opacity: 1;
    pointer-events: auto;
    animation: zoomIn 0.4s ease;
}

/* Modal Navigation Buttons */
.modal-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1001;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

.modal-nav.prev {
    left: 20px;
    border-radius: 3px 0 0 3px;
}

.modal-nav.next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

/* Slide Indicators */
.modal-indicators {
    text-align: center;
    padding: 20px 0 0 0;
    position: relative;
    width: 100%;
    z-index: 1001;
}

.modal-dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.modal-dot.active, .modal-dot:hover {
    background-color: var(--accent-color);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bottom Menu Section */
.bottom-menu-section {
    padding: 60px 0;
    background-color: var(--bg-color); /* Match site background */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-menu-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.b-menu-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
    flex: 1;
    justify-content: center;
    gap: 20px;
}

.b-menu-item:hover {
    transform: translateY(-5px);
}

.b-menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.b-menu-icon svg {
    width: 100%;
    height: 100%;
}

.b-menu-text {
    display: flex;
    flex-direction: column;
}

.b-menu-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.b-menu-ko {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 2px 0;
    color: rgba(255, 255, 255, 0.8);
}

.b-menu-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.b-menu-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(20deg);
}

@media (max-width: 900px) {
    .bottom-menu-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .b-menu-divider {
        width: 60px;
        height: 1px;
        transform: rotate(0deg);
        margin: 0 auto;
    }
    
    .b-menu-item {
        width: 100%;
        justify-content: center;
        padding: 0 20px;
    }
}

/* Footer */
.main-footer {
    padding: 60px 0;
    text-align: center;
    background-color: #050505;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
}
