/* CSS Variables for Easy Customization */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-secondary: #888888;
    --color-accent: #ffffff;
    --color-nav-bg: rgba(10, 10, 10, 0.8);

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading-weight: 800;
    --font-body-weight: 300;

    /* Spacing */
    --spacing-container: 120px;
    --spacing-md: 2rem;
    --spacing-sm: 1rem;

    /* Layout */
    --header-height: 80px;
    --grid-gap: 2rem;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: var(--color-nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-logo {
    height: 24px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 32px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.hero-brand-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo a {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.main-nav ul {
    display: none;
    /* Hide inline nav globally */
}

.main-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-icon {
    display: block;
    /* Always show menu icon */
    cursor: pointer;
    z-index: 2000;
    width: 30px;
    height: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.menu-icon span:first-child {
    top: 0;
}

.menu-icon span:last-child {
    bottom: 0;
}

/* Menu Active State (X icon) */
.menu-icon.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-icon.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Popup Menu */
.overlay-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 300px;
    height: auto;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s ease;
    border-left: 1px solid #333;
    border-bottom: 1px solid #333;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.overlay-menu ul {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.overlay-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.overlay-menu a:hover {
    color: var(--color-text-secondary);
    padding-left: 10px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .overlay-menu {
        width: 100%;
        border-left: none;
    }
}

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

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Slightly dim for text readability */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-main {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-solid {
    background: white;
    color: black;
    border: 1px solid white;
}

.btn-solid:hover {
    background: transparent;
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 40px;
    }

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

/* Collection Section */
.collection-section {
    padding: 100px 40px;
    background-color: var(--color-bg);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: #111;
    transition: transform 0.4s ease;
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    /* White bg for products */
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 90%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-shop {
    padding: 12px 30px;
    background: white;
    color: black;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-info .price {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    padding: 60px 40px;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-brand {
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.copyright {
    color: #444;
    font-size: 0.8rem;
}

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

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

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

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

/* Scroll Reveal Class (handled by JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

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

    .main-nav {
        display: none;
    }

    /* Mobile menu simplified */
    .menu-icon {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .menu-icon span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .menu-icon span:first-child {
        top: 0;
    }

    .menu-icon span:last-child {
        bottom: 0;
    }

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

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

/* Product Detail Page Styles */
.product-detail-page {
    padding-top: var(--header-height);
    min-height: 100vh;
    background-color: var(--color-bg);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-height));
}

.product-detail-image {
    position: relative;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Sticker Effect for Image */
.product-detail-image img {
    width: 80%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.product-detail-image:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.product-detail-info {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #222;
}

.product-brand-tag {
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.product-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--color-accent);
    /* White */
    margin-bottom: 3rem;
    font-weight: 300;
}

.product-description {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 500px;
}

.product-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
    padding: 20px 50px;
    background-color: white;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
}

.btn-secondary {
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-bottom-color: white;
}

/* Responsive for Detail Page */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        padding: 60px 20px;
        min-height: 50vh;
    }

    .product-detail-info {
        padding: 60px 30px;
        border-left: none;
        border-top: 1px solid #222;
    }

    .product-title {
        font-size: 3rem;
    }
}

/* About Page Styles */
.about-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/images/hero_about.png') no-repeat center 30%/cover;
    margin-bottom: 80px;
}

.about-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

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

.about-section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.sub-title {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
}

/* Mission Box */
.mission-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: #111;
    padding: 60px;
    border: 1px solid #222;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-image: url('assets/images/companyPic.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mission-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.mission-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mission-desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-item {
    background-color: #111;
    border: 1px solid #222;
    padding: 40px 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.process-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    transition: background 0.3s ease;
}

.process-item:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.step-planning {
    background-image: url('assets/images/기획.png');
}

.step-branding {
    background-image: url('assets/images/브랜딩.png');
}

.step-design {
    background-image: url('assets/images/디자인.png');
}

.step-production {
    background-image: url('assets/images/제조생산.png');
}

.process-item:hover {
    transform: translateY(-10px);
    border-color: #444;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.step-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Gallery - Reusing product grid or similar, but simpler */
/* Post-Gallery Spacer */
.about-gallery {
    padding: 0;
    margin-bottom: 0px;
    background: #111;
}

/* 
.gallery-item styles removed as they are replaced by portfolio-container 
*/

/* Career Timeline & Portfolio */
.careers-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Adjust ratio as needed */
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.career-list {
    border-left: 1px solid #333;
    padding-left: 40px;
}

.career-item {
    margin-bottom: 50px;
    position: relative;
}

.career-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.career-year {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.career-company {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.career-image {
    position: sticky;
    top: 100px;
    /* Sticky scroll effect */
}

.career-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Portfolio Gallery */
.portfolio-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.portfolio-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-image:hover {
    transform: scale(1.01);
}

@media (max-width: 900px) {
    .careers-content-wrapper {
        grid-template-columns: 1fr;
    }

    .career-image {
        position: static;
        margin-top: 40px;
    }
}

/* Profile Header (Director) */
.profile-header {
    background-image: url('assets/images/ceoPic.png');
    background-size: cover;
    background-position: center top;
    /* Aligns to top to keep face visible on resize */
    background-repeat: no-repeat;
    padding: 100px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    /* Darker at bottom for text */
    z-index: 1;
}

.profile-header .section-title,
.profile-header .sub-title {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.profile-header .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profile-header .sub-title {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Contact Grid */
.contact-section {
    background: #111;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 1px solid #333;
    display: inline-block;
    padding-bottom: 10px;
}

.contact-box p {
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.contact-main {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* Responsive for About */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

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

/* Portfolio Page Styles (Glasses) */
.portfolio-list {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.portfolio-project {
    margin-bottom: 160px;
}

.project-info {
    margin-bottom: 40px;
    padding-left: 0;
    /* Removed border for cleaner, cynical look */
    text-align: left;
}

.project-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--color-text-main);
}

.project-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 600px;
    font-weight: 300;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    /* Minimal gap for 'glitch' or 'tight' feel */
    width: 100%;
    /* Full width of container */
    max-width: 100%;
}

.project-img {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    /* Square thumbnails */
    background: #222;
}

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

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

@media (max-width: 900px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    z-index: 2000;
    /* Highest z-index */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 20px;
    /* Increase touch area */
    line-height: 1;
    z-index: 2001;
    /* Ensure it's above image */
}

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

/* Add pointer cursor to project images to indicate clickability */
.project-img img {
    cursor: pointer;
}

/* Resume About Page Responsive styles */
@media (max-width: 768px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }

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


    .mission-box {
        padding: 30px;
    }

    .career-list {
        padding-left: 20px;
        border-left: none;
    }

    .career-item::before {
        display: none;
    }
}