/* Tea Jay Han - Modern Artisan Design */

:root {
    /* Color Palette */
    --bg-body: #FDFCFB;
    /* Warm White */
    --bg-surface: #F4F2F0;
    /* Stone/Paper */
    --text-primary: #1A1A1A;
    /* Charcoal */
    --text-secondary: #595959;
    /* Medium Gray */
    --accent: #1A1A1A;
    /* Black Accent */
    --border: #E5E0DC;
    /* Warm Border */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Changed to sans-serif per user request */
    --font-body: 'Outfit', sans-serif;

    /* Layout */
    --max-width: 1600px;
    --header-height: 100px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth ease-out */
}

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

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-family: var(--font-body);
    /* Modern look for smaller headings */
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(253, 252, 251, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
    border-bottom: 1px solid transparent;
}

nav {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-image {
    height: 3.5rem;
    width: auto;
    transition: var(--transition);
}

.logo-text-image {
    height: 1.4rem;
    width: auto;
    margin-top: 5px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Start hidden, fade in with JS if we wanted, but for now just CSS */
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 252, 251, 0.85);
    /* Heavy fade to make text readable */
    background: linear-gradient(90deg, rgba(253, 252, 251, 0.95) 0%, rgba(253, 252, 251, 0.7) 50%, rgba(253, 252, 251, 0.2) 100%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

.hero-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.hero h1 {
    font-family: var(--font-body);
    /* Changed to sans-serif per feedback */
    font-weight: 400;
    /* Reduced from 500 per user feedback */
    margin-bottom: 2rem;
    line-height: 1;
    text-transform: uppercase;
    /* Optional: makes it look more "modern architectural" */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 500px;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--text-primary);
    color: var(--bg-body);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid var(--text-primary);
}

.cta-button:hover {
    background: transparent;
    color: var(--text-primary);
}

/* Sections General */
section {
    padding: 10rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
    font-size: 3rem;
}

/* About Section */
/* About Section - Premium Split Layout */
.about {
    background: var(--bg-surface);
    margin: 0;
    max-width: 100%;
    padding: 0;
    /* Remove vertical padding to allow full bleed */
}

.about-content {
    max-width: 100%;
    /* Full width */
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* No gap, sides touch */
    align-items: stretch;
    /* Full height */
    padding: 0;
}

.about-text {
    padding: 8rem 6rem;
    /* Large internal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    margin-bottom: 3rem;
    font-size: 3.5rem;
    /* Larger heading */
    line-height: 1.1;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    max-width: 600px;
    /* Readable line length */
}

.about-image {
    position: relative;
    height: 100%;
    min-height: 600px;
    /* Ensure height on mobile */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the space */
    display: block;
    opacity: 1;
    box-shadow: none;
    /* Remove shadow for full bleed */
    border-radius: 0;
}

/* Portfolio Grid - Preserving Structure */
.portfolio-section {
    padding-top: 8rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for larger images */
    gap: 4rem;
    /* Bigger gaps */
}

.portfolio-item {
    position: relative;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 600px;
    /* Taller images */
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(20%);
    /* Subtle artistic touch */
}

.portfolio-item:hover img {
    transform: scale(1.02);
    filter: grayscale(0%);
}

.portfolio-item-content {
    padding-top: 1.5rem;
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.service-item p {
    font-size: 1rem;
}

/* Contact */
.contact-section {
    background: var(--text-primary);
    color: var(--bg-body);
    max-width: 100%;
    padding: 12rem 3rem;
}

.contact {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    color: var(--bg-body);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    margin-bottom: 6rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item h4 {
    color: var(--bg-body);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    opacity: 0.5;
    text-transform: uppercase;
}

.contact-item p {
    font-size: 2rem;
    color: var(--bg-body);
    margin-bottom: 0;
    font-weight: 300;
}

/* Footer */
footer {
    background: var(--bg-body);
    padding: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* Modal - Compact Centered Layout with Sidebar */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 2002;
    background: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform 0.3s ease;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Product Layout in Modal - Horizontal with Scrollable Images */
.product-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    height: 100%;
    overflow: hidden;
}

.product-images {
    background: var(--bg-surface);
    padding: 3rem;
    overflow-y: auto;
    max-height: 90vh;
}

.product-image-container {
    margin-bottom: 3rem;
}

.product-image-container:last-child {
    margin-bottom: 0;
}

.product-images img {
    width: 100%;
    height: auto;
    display: block;
}

.image-section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 4rem 0 2rem 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 400;
}

.product-info {
    padding: 3rem;
    background: var(--bg-body);
    overflow-y: auto;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 3rem;
}

.detail-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Mobile Responsive */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

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

@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

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

    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
        max-width: 95vw;
    }

    .product-layout {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .product-images {
        padding: 2rem;
        max-height: none;
    }

    .product-info {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 0 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .about-text {
        padding: 4rem 1.5rem;
    }

    .about-image {
        min-height: 400px;
        order: -1;
        /* Image first on mobile */
    }

    .contact {
        text-align: center;
    }

    .contact h2 {
        font-size: 2.5rem;
    }

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

    .logo-image {
        height: 2.5rem;
    }

    .logo-text-image {
        height: 1rem;
    }
}