/* ========== FONT FACE ========== */
@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Normal.ttf') format('truetype');
    font-weight: 450;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_DemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Italic variants */
@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Medium_Italic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'TT Commons Pro';
    src: url('../../fonts/TT_Commons_Pro_Trial_Bold_Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TT Commons Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #e8e4df;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background-color: #e8e4df;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 15px 80px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    text-decoration: none;
}

.logo img {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 70px;
}

nav {
    display: flex;
    gap: 60px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #8a8a8a;
}

nav a.lang-switch {
    padding: 4px 12px;
    border: 1px solid #4a4a4a;
    font-size: 11px;
    transition: all 0.3s ease;
}

nav a.lang-switch:hover {
    background-color: #4a4a4a;
    color: #e8e4df;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #4a4a4a;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 100px);
    gap: 4px;
    padding: 0 80px 80px;
}

.hero-grid .item {
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

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

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

/* Item overlay */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.item-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.item-category {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    letter-spacing: 1px;
}

/* Grid item positions */
.item-1 { grid-column: 1 / 6; grid-row: 1 / 5; }
.item-2 { grid-column: 6 / 13; grid-row: 1 / 3; }
.item-3 { grid-column: 6 / 9; grid-row: 3 / 5; }
.item-4 { grid-column: 9 / 13; grid-row: 3 / 5; }
.item-5 { grid-column: 1 / 3; grid-row: 5 / 7; }
.item-6 { grid-column: 3 / 6; grid-row: 5 / 7; }
.item-7 { grid-column: 6 / 9; grid-row: 5 / 7; }
.item-8 { grid-column: 9 / 13; grid-row: 5 / 7; }

/* About Section */
.about-section {
    padding: 100px 80px;
    background-color: #e8e4df;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 60px;
    color: #4a4a4a;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 120px);
    gap: 4px;
    margin-bottom: 60px;
}

.about-grid .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-item-1 { grid-column: 1 / 7; grid-row: 1 / 5; }
.about-item-2 { grid-column: 7 / 13; grid-row: 1 / 3; }
.about-item-3 { grid-column: 7 / 13; grid-row: 3 / 5; }

.about-text {
    max-width: 1200px;
    margin-top: 60px;
}

.about-text p {
    font-size: 13px;
    line-height: 2;
    color: #5a5a5a;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Project Section */
.project-section {
    padding: 100px 80px;
    background-color: #e8e4df;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 120px);
    gap: 4px;
}

.project-grid .item {
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

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

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

.project-item-1 { grid-column: 1 / 7; grid-row: 1 / 5; }
.project-item-2 { grid-column: 7 / 13; grid-row: 1 / 5; }
.project-item-3 { grid-column: 1 / 4; grid-row: 5 / 7; }
.project-item-4 { grid-column: 4 / 7; grid-row: 5 / 7; }

/* Service Section */
.service-section {
    padding: 100px 80px;
    background-color: #e8e4df;
}

.service-content {
    max-width: 1200px;
}

.service-intro {
    font-size: 13px;
    line-height: 2;
    color: #5a5a5a;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.service-item {
    margin-bottom: 30px;
}

.service-item h3 {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.service-item p {
    font-size: 13px;
    line-height: 2;
    color: #5a5a5a;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section {
    padding: 100px 80px;
    background-color: #e8e4df;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-item p {
    font-size: 13px;
    color: #6a6a6a;
    letter-spacing: 0.5px;
}

/* Placeholder */
.placeholder {
    background: linear-gradient(135deg, #d0ccc7 0%, #c5c1bc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
}

/* Footer */
footer {
    padding: 40px 80px;
    background-color: #e8e4df;
    border-top: 1px solid #d5d1cc;
    text-align: center;
}

footer p {
    font-size: 12px;
    color: #8a8a8a;
    letter-spacing: 1px;
}

/* ========== PROJECT DETAIL PAGE ========== */
.project-header {
    padding: 40px 80px 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #6a6a6a;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4a4a4a;
}

.project-intro {
    padding: 20px 80px 60px;
}

.project-intro h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
}

.project-meta-item .label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8a8a8a;
    margin-bottom: 4px;
}

.project-meta-item .value {
    font-size: 13px;
    letter-spacing: 1px;
    color: #4a4a4a;
}

.project-description {
    max-width: 800px;
    font-size: 14px;
    line-height: 2;
    color: #5a5a5a;
}

/* Project Gallery */
.project-gallery {
    padding: 0 80px 100px;
}

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

.gallery-grid .gallery-item {
    overflow: hidden;
}

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

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

.gallery-item.full-width {
    grid-column: 1 / -1;
}

.gallery-item.tall {
    grid-row: span 2;
}

/* Project Navigation */
.project-nav {
    display: flex;
    justify-content: space-between;
    padding: 40px 80px;
    border-top: 1px solid #d5d1cc;
}

.project-nav a {
    text-decoration: none;
    color: #6a6a6a;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.project-nav a:hover {
    color: #4a4a4a;
}

/* Responsive */
@media (max-width: 1024px) {
    header, .project-header, .project-intro, .project-gallery, .project-nav {
        padding-left: 40px;
        padding-right: 40px;
    }

    header.scrolled {
        padding-left: 40px;
        padding-right: 40px;
    }

    nav { gap: 40px; }

    .hero-grid, .about-section, .project-section, .service-section, .contact-section {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    header.scrolled {
        padding: 12px 20px;
    }

    .logo img {
        height: 60px;
    }

    header.scrolled .logo img {
        height: 50px;
    }

    /* Hamburger button visible on mobile */
    .menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #e8e4df;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 1001;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 18px;
        font-weight: 500;
        letter-spacing: 3px;
    }

    nav a.lang-switch {
        font-size: 14px;
        padding: 8px 20px;
        margin-top: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        padding: 0 20px 40px;
    }

    .hero-grid .item {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 200px;
    }

    .about-grid, .project-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .about-grid .item, .project-grid .item {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 250px;
    }

    .about-section, .project-section, .service-section, .contact-section {
        padding: 60px 20px;
    }

    .project-header, .project-intro, .project-gallery, .project-nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-intro h1 {
        font-size: 28px;
    }

    .project-meta {
        flex-direction: column;
        gap: 20px;
    }

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

    .gallery-item.full-width, .gallery-item.tall {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 10px;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10001;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 2px;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 15px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 12px;
    }
}
