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

/* Visually hidden - for screen readers only (SEO/accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c4a035 #e8e4df;
}

/* Custom Scrollbar — Light pages */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e8e4df;
}

::-webkit-scrollbar-thumb {
    background: #c4a035;
    border-radius: 4px;
    border: 1px solid #e8e4df;
}

::-webkit-scrollbar-thumb:hover {
    background: #b5922e;
}

::-webkit-scrollbar-thumb:active {
    background: #a38428;
}

body {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #000;
}

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

/* Typography */
.section-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 40px;
    color: inherit;
}

/* Hero Section */
.hero {
    background-color: #D5D0CD;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 34px 60px 0 100px;
    position: relative;
    z-index: 10;
}

/* Navigation */
.nav {
    flex-shrink: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 128px;
}

.nav-list a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 300;
    transition: opacity 0.3s;
}

.nav-list a:hover {
    opacity: 0.7;
}

/* Logo */
.logo {
    flex-shrink: 0;
    position: relative;
    right: 7%;
    top: 40px;
}

.logo img {
    height: 120px;
    width: auto;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    padding: 140px 0 0 100px;
}

.hero-text {
    max-width: 650px;
}

.hero-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 14px;
    color: #000;
    letter-spacing: 0;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: #000;
}

/* Hero Illustration */
.hero-illustration {
    position: absolute;
    bottom: 0%;
    left: 0%;
    width: 100%;
    max-width: 1910px;
    z-index: 1;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Benefits Section (Block 13) */
.benefits {
    width: 100%;
    background: #D5D0CD;
    padding: 60px 40px 80px;
    box-sizing: border-box;
}

.benefits-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #000000;
    margin: 0 0 60px 80px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 24px;
}

.benefit-icon img {
    width: auto;
    height: 72px;
    max-width: 100%;
}

.benefit-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin: 0;
    max-width: 240px;
}

/* Projects Section (Block 14) */
.projects {
    width: 100%;
    background: #84878C;
    overflow: hidden;
}

.projects-header {
    background: #DBD5D2;
    padding: 18px 8.264%;
}

.projects-title {
    display: inline-block;
    max-width: 546px;
    padding: 10px 15px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 2.222vw, 32px);
    line-height: 1.375;
    color: #000000;
    margin: 0;
    /* border: 0.5px solid #000000; */
    box-sizing: border-box;
}

/* Project Row */
.project-row {
    position: relative;
    width: 100%;
    display: flex;
}

/* Project Images */
.project-image {
    width: 43.056%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #D9D9D9;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-row-1 .project-image img {
    object-position: left center;
}

/* Project Category Text */
.project-category {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 13.889vw;
    line-height: 0.71;
    color: #DBD5D2;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-wrap: break-word;
    min-width: 0;
    text-align: right;
}

.project-category-1 {
    text-align: left;
}

.project-category-2 {
    text-align: right;
}

.project-category-3 {
    text-align: right;
}

/* Project Category Links - Clickable Areas */
.project-category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: baseline;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    cursor: pointer;
}

/* Position adjustments for each row - percentage-based */
.project-row-1 .project-category-link {
    left: 43.82%;
}

.project-row-2 .project-category-link {
    left: 28.68%;
}

.project-row-3 .project-category-link {
    left: 44.58%;
}

/* Hover state - gentle color shift */
.project-category-link:hover .project-category {
    color: #FFFFFF;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Image zoom effect on hover */
.project-row:hover .project-image img {
    transform: scale(1.03);
}

/* Reviews Section (Block 10) */
.reviews {
    position: relative;
    width: 100%;
    height: 1095px;
    background: #E6E6E6;
    overflow: hidden;
}

.reviews-title {
    position: absolute;
    right: 120px;
    top: 150px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #000000;
    margin: 0;
}

.reviews-slider-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 234px;
    height: 750px;
    display: flex;
    align-items: flex-start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    color: #31373F;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.slider-btn-prev {
    left: 30px;
}

.slider-btn-next {
    right: 30px;
}

.reviews-slider {
    width: 100%;
    overflow: hidden;
    padding: 0 120px;
}

.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.review-card {
    flex-shrink: 0;
    width: 325px;
    background: #FFFFFF;
    padding: 25px;
    box-sizing: border-box;
}

.review-card-tall {
    height: 553px;
}

.review-card-short {
    height: 335px;
}

.review-card-extra-tall {
    height: 645px;
}

.review-card-mini {
    height: 291px;
}

.review-quote-box {
    width: 65px;
    height: 65px;
    background: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.review-quote {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 96px;
    line-height: 36px;
    color: #31373F;
    margin-top: 30px;
}

.review-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 21px;
    color: #000000;
    margin: 0;
}

.review-text strong {
    font-weight: 500;
    display: block;
    margin-top: 15px;
}

/* About Section (Block 9) */
.about {
    width: 100%;
    background-color: #84878C;
    display: grid;
    grid-template-columns: 1fr 36.67%;
    grid-template-rows: auto 1fr auto;
    padding: 90px 8.333%;
    gap: 0 40px;
}

.about-title {
    grid-column: 1;
    grid-row: 1;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #000000;
    margin: 0 0 30px 0;
}

.about-text {
    grid-column: 1;
    grid-row: 2;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 27px;
    color: #131212;
    margin: 0;
}

.about-photo {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
    margin-top: 120px;
    aspect-ratio: 440 / 590;
    overflow: hidden;
}

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

.about-contact {
    grid-column: 1;
    grid-row: 3;
    max-width: 611px;
    padding: 30px 33px;
    background: #B5B1AF;
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.about-contact-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    margin: 0;
}

.about-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #31373F;
    color: #FFFFFF;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-left: 20px;
}

.about-phone-btn svg {
    flex-shrink: 0;
}

.about-phone-btn:hover {
    background: #526275;
    box-shadow: 0 4px 20px rgba(49, 55, 63, 0.3);
}

.about-contact-text a {
    color: #000000;
    text-decoration: none;
}

.about-contact-text a:hover {
    text-decoration: underline;
}

/* Pricing Section (Block 11) */
.pricing {
    position: relative;
    width: 100%;
    height: 1150px;
    background: #526275;
    overflow: hidden;
}

.pricing-illustration {
    position: absolute;
    left: 75px;
    top: 120px;
    width: 460px;
}

.pricing-illustration img {
    width: 100%;
    height: auto;
}

.pricing-title {
    position: absolute;
    left: 120px;
    top: 70px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #FFFFFF;
    margin: 0;
}

.pricing-item {
    position: absolute;
    width: 320px;
    color: #FFFFFF;
}

.pricing-item-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.pricing-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 15px 0;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
}

.pricing-list li {
    margin-bottom: 2px;
    font-weight: 300;
}

.pricing-item-price {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    margin: 0 0 5px 0;
}

.pricing-small {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    opacity: 0.8;
    margin: 0;
}

/* Row 1: справа от иллюстрации */
.pricing-item-1 {
    left: 40%;
    top: 120px;
}

.pricing-item-2 {
    left: 75%;
    top: 120px;
}

/* Row 2: под иллюстрацией */
.pricing-item-3 {
    left: 10%;
    top: 420px;
}

.pricing-item-4 {
    left: 40%;
    top: 420px;
    width: 340px;
}

.pricing-item-5 {
    left: 75%;
    top: 420px;
}

.pricing-additional {
    position: absolute;
    left: 120px;
    top: 750px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin: 0;
}

.pricing-partners {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 820px;
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.pricing-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 260px;
    padding: 32px 24px;
    background: rgba(132, 135, 140, 0.12);
    border: 1px solid rgba(213, 208, 205, 0.25);
    text-decoration: none;
    color: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: partner-pulse 3s ease-in-out infinite;
}

.pricing-partner-card:hover {
    background: rgba(132, 135, 140, 0.3);
    border-color: rgba(213, 208, 205, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: none;
}

.partner-name {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.3;
}

.partner-detail {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.75;
    text-align: center;
}

@keyframes partner-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(213, 208, 205, 0);
        border-color: rgba(213, 208, 205, 0.25);
    }
    50% {
        box-shadow: 0 0 18px 3px rgba(213, 208, 205, 0.1);
        border-color: rgba(213, 208, 205, 0.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-partner-card {
        animation: none;
    }
}

/* ============================================
   PARTNER MODALS — Coming Soon
   ============================================ */

.partner-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-out,
                visibility 0.35s,
                background 0.35s ease-out,
                backdrop-filter 0.35s ease-out;
    padding: 24px;
}

.partner-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.partner-modal {
    position: relative;
    background: linear-gradient(145deg, #3d4148 0%, #33363c 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    max-width: 420px;
    width: 100%;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-modal-overlay.active .partner-modal {
    transform: translateY(0) scale(1);
}

/* Close button */
.partner-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    padding: 0;
}

.partner-modal-close svg {
    width: 16px;
    height: 16px;
}

.partner-modal-close:hover {
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
}

/* Icon */
.partner-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    color: #D4AF37;
    opacity: 0.7;
}

.partner-modal-icon svg {
    width: 100%;
    height: 100%;
}

/* Title */
.partner-modal-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0 0 20px;
}

/* Gold divider */
.partner-modal-divider {
    width: 40px;
    height: 1px;
    background: #D4AF37;
    margin: 0 auto 24px;
    opacity: 0.6;
}

/* Body text */
.partner-modal-text {
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 28px;
}

/* Status indicator */
.partner-modal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
}

.partner-modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4AF37;
    animation: modal-dot-pulse 2s ease-in-out infinite;
}

@keyframes modal-dot-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .partner-modal {
        transition: none;
    }
    .partner-modal-overlay {
        transition: opacity 0.15s, visibility 0.15s;
    }
    .partner-modal-dot {
        animation: none;
        opacity: 1;
    }
}

/* Modal responsive */
@media (max-width: 480px) {
    .partner-modal-overlay {
        padding: 16px;
    }
    .partner-modal {
        padding: 40px 24px 32px;
    }
    .partner-modal-title {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
    .partner-modal-text {
        font-size: 14px;
    }
    .partner-modal-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 24px;
    }
}

@media (max-width: 360px) {
    .partner-modal {
        padding: 36px 20px 28px;
    }
    .partner-modal-title {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .partner-modal-text {
        font-size: 13px;
    }
    .partner-modal-status {
        font-size: 12px;
    }
}

/* Contacts Section (Block 12) */
.contacts {
    position: relative;
    width: 100%;
    height: 510px;
    background: #B5B1AF;
}

.contacts-logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.contacts-logo img {
    width: 450px;
    height: auto;
    opacity: 0.15;
}

.contacts-box {
    position: absolute;
    width: 387px;
    height: 387px;
    right: 120px;
    top: 61px;
    background: #DBD5D2;
}

.contacts-title {
    position: absolute;
    right: 310px;
    top: 116px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #000000;
    margin: 0;
}

.contacts-info {
    position: absolute;
    right: 297px;
    top: 213px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 28px;
    color: #000000;
    margin: 0;
    text-align: left;
}

.contacts-info a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contacts-info a:hover {
    opacity: 0.7;
}

.contacts-social {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.contacts-social svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

/* Footer */
.footer {
    background: #31373F;
    padding: 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================
   PROJECT CATEGORY PAGES STYLES
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 34px 60px 34px 100px;
    background: #D5D0CD;
    position: relative;
    z-index: 10;
}

.page-header .logo {
    position: relative;
    right: auto;
    top: auto;
}

.page-header .logo img {
    height: 80px;
    width: auto;
    transition: opacity 0.3s;
}

.page-header .logo:hover img {
    opacity: 0.8;
}

/* Category Hero Section */
.category-hero {
    background: #84878C;
    padding: 80px 120px 100px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.category-hero-private-houses {
    background: linear-gradient(135deg, #84878C 0%, #6B7280 100%);
}

.category-hero-residential-interiors {
    background: linear-gradient(135deg, #84878C 0%, #526275 100%);
}

.category-hero-commercial {
    background: linear-gradient(135deg, #526275 0%, #31373F 100%);
}

.category-hero-content {
    max-width: 800px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #DBD5D2;
    text-decoration: none;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FFFFFF;
}

.back-link .back-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-5px);
}

/* Category Hero Title */
.category-hero-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1.1;
    color: #DBD5D2;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.category-hero-description {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.7;
    color: #FFFFFF;
    margin: 0;
    max-width: 600px;
}

/* Projects Grid Section */
.projects-grid-section {
    background: #E6E6E6;
    padding: 80px 120px;
    min-height: 600px;
}

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

/* Project Card */
.project-card {
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(49, 55, 63, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.project-card:hover .project-card-overlay {
    background: rgba(49, 55, 63, 0.4);
}

.project-card-view {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    padding: 12px 24px;
    border: 1px solid #FFFFFF;
}

.project-card:hover .project-card-view {
    opacity: 1;
    transform: translateY(0);
}

.project-card-content {
    padding: 30px;
}

.project-card-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 12px 0;
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.project-card-area,
.project-card-year {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #84878C;
}

.project-card-divider {
    color: #D5D0CD;
}

.project-card-description {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    color: #31373F;
    margin: 0;
}

/* Projects Empty State */
.projects-empty {
    text-align: center;
    padding: 100px 40px;
}

.projects-empty p {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #84878C;
}

/* Projects CTA Section */
.projects-cta {
    background: #B5B1AF;
    padding: 100px 120px;
}

.projects-cta-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.projects-cta-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 20px 0;
}

.projects-cta-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    color: #31373F;
    margin: 0 0 40px 0;
}

.projects-cta-phone {
    display: block;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #000000;
    text-decoration: none;
    margin-bottom: 25px;
    transition: opacity 0.3s;
}

.projects-cta-phone:hover {
    opacity: 0.7;
}

.projects-cta-telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #31373F;
    text-decoration: none;
    padding: 14px 28px;
    border: 1px solid #31373F;
    transition: all 0.3s ease;
}

.projects-cta-telegram:hover {
    background: #31373F;
    color: #FFFFFF;
}

.projects-cta-telegram svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive Styles for Project Pages */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .category-hero-title {
        font-size: 56px;
    }
}

@media (max-width: 900px) {
    .page-header {
        padding: 20px 30px;
    }

    .page-header .logo img {
        height: 60px;
    }

    .category-hero {
        padding: 60px 40px 80px;
        min-height: 300px;
    }

    .category-hero-title {
        font-size: 42px;
    }

    .category-hero-description {
        font-size: 16px;
    }

    .projects-grid-section {
        padding: 60px 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-cta {
        padding: 60px 40px;
    }

    .projects-cta-title {
        font-size: 26px;
    }

    .projects-cta-phone {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .page-header .nav-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-hero {
        padding: 40px 20px 60px;
    }

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

    .back-link {
        margin-bottom: 25px;
    }

    .projects-grid-section {
        padding: 40px 20px;
    }

    .project-card-image {
        height: 220px;
    }

    .project-card-content {
        padding: 20px;
    }

    .projects-cta {
        padding: 50px 20px;
    }
}

/* ============================================
   CONTACT WIDGET & SCROLL TO TOP
   ============================================ */

/* Contact Widget */
.contact-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.contact-widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #526275;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(82, 98, 117, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.contact-widget-btn:hover {
    background: #31373F;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(49, 55, 63, 0.5);
}

.contact-widget-btn svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.contact-widget-btn .contact-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.contact-widget.active .contact-widget-btn .contact-icon-default {
    opacity: 0;
    transform: rotate(90deg);
}

.contact-widget.active .contact-widget-btn .contact-icon-close {
    opacity: 1;
    transform: rotate(0);
}

.contact-widget-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.contact-widget.active .contact-widget-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #31373F;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.2s ease;
}

.contact-widget-item:hover {
    background: #F5F5F5;
    color: #526275;
}

.contact-widget-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #D5D0CD;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #31373F;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #B5B1AF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.scroll-to-top svg {
    width: 28px;
    height: 28px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .contact-widget {
        bottom: 20px;
        left: 20px;
    }

    .contact-widget-btn {
        width: 50px;
        height: 50px;
    }

    .contact-widget-btn svg {
        width: 22px;
        height: 22px;
    }

    .contact-widget-menu {
        min-width: 160px;
    }

    .contact-widget-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   RESPONSIVE STYLES FOR MAIN PAGE SECTIONS
   ============================================ */

/* Benefits Section - Responsive */
@media (max-width: 1200px) {
    .benefits-grid {
        gap: 24px;
    }

    .benefit-text {
        max-width: 220px;
    }
}

@media (max-width: 1000px) {
    .benefits {
        padding: 50px 30px 70px;
    }

    .benefits-title {
        margin: 0 0 50px 0;
        text-align: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        padding: 0;
    }

    .benefit-text {
        max-width: 260px;
    }
}

@media (max-width: 600px) {
    .benefits {
        padding: 40px 20px 60px;
    }

    .benefits-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 40px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .benefit-icon {
        height: 70px;
        margin-bottom: 20px;
    }

    .benefit-icon img {
        height: 64px;
    }

    .benefit-text {
        font-size: 15px;
        line-height: 23px;
        max-width: 280px;
    }
}

@media (max-width: 400px) {
    .benefits {
        padding: 32px 16px 50px;
    }

    .benefits-title {
        font-size: 22px;
        margin-bottom: 36px;
    }

    .benefits-grid {
        gap: 32px;
    }

    .benefit-icon {
        height: 64px;
        margin-bottom: 16px;
    }

    .benefit-icon img {
        height: 56px;
    }

    .benefit-text {
        font-size: 14px;
        line-height: 22px;
        max-width: 260px;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .benefits {
        padding: 24px 12px 40px;
    }

    .benefits-title {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 30px;
    }

    .benefits-grid {
        gap: 28px;
    }

    .benefit-icon {
        height: 56px;
        margin-bottom: 14px;
    }

    .benefit-icon img {
        height: 48px;
    }

    .benefit-text {
        font-size: 14px;
        line-height: 21px;
        max-width: 240px;
    }
}

/* ============================================
   BURGER MENU (hidden on desktop, visible on mobile)
   ============================================ */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #000;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.2s ease;
}

.burger-line:nth-child(1) {
    transform: translateY(-5px);
}

.burger-line:nth-child(3) {
    transform: translateY(5px);
}

/* Burger open state — X */
.burger.active .burger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(213, 208, 205, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Close button inside mobile menu */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    position: absolute;
    display: block;
    width: 28px;
    height: 2px;
    background: #000;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-nav {
    text-align: center;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px 0;
}

.mobile-menu-list li {
    margin-bottom: 8px;
}

.mobile-menu-list a {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    transition: color 0.25s ease;
}

.mobile-menu-list a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: #000;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-list a:hover::after {
    width: 100%;
}

.mobile-menu-list a:hover {
    color: #526275;
}

/* Staggered animation for menu items */
.mobile-menu.active .mobile-menu-list li {
    animation: menuItemSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.mobile-menu.active .mobile-menu-list li:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.active .mobile-menu-list li:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.active .mobile-menu-list li:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu.active .mobile-menu-list li:nth-child(4) { animation-delay: 0.26s; }

.mobile-menu.active .mobile-menu-contact {
    animation: menuItemSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.34s;
}

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

/* Contact block inside mobile menu */
.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-menu-phone {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}

.mobile-menu-phone:hover {
    color: #526275;
}

.mobile-menu-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #526275;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-menu-tg svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-tg:hover {
    color: #000;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   HEADER & HERO - RESPONSIVE
   ============================================ */

/* Laptop / 1366×768 */
@media (max-width: 1440px) {
    .header {
        padding: 28px 50px 0 60px;
    }

    .nav-list {
        gap: 80px;
    }

    .logo {
        right: 3%;
        top: 30px;
    }

    .logo img {
        height: 100px;
    }

    .hero-content {
        padding: 90px 0 0 60px;
    }

    .hero-text {
        max-width: 550px;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .header {
        padding: 28px 40px 0 40px;
    }

    .nav-list {
        gap: 48px;
    }

    .logo {
        right: 0;
        top: 20px;
    }

    .logo img {
        height: 90px;
    }

    .hero-content {
        padding: 100px 0 0 40px;
    }
}

/* Small tablet / large mobile */
@media (max-width: 900px) {
    .header {
        padding: 20px 24px 0;
        align-items: center;
    }

    .nav-list {
        gap: 32px;
    }

    .nav-list a {
        font-size: 15px;
    }

    .logo {
        right: 0;
        top: 0;
    }

    .logo img {
        height: 70px;
    }

    .hero-content {
        padding: 80px 0 0 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 22px;
    }

    .hero-text {
        max-width: 420px;
    }
}

/* Mobile — burger activated */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav {
        display: none;
    }

    .header {
        padding: 20px 20px 0;
        align-items: center;
    }

    .logo {
        right: 0;
        top: 0;
    }

    .logo img {
        height: 60px;
    }

    .hero-content {
        padding: 60px 0 0 20px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 22px;
    }

    .hero-text {
        max-width: 70%;
    }

    .hero {
        min-height: 100svh;
    }
}

/* Small mobile */
@media (max-width: 550px) {
    .header {
        padding: 16px 16px 0;
    }

    .logo img {
        height: 52px;
    }

    .hero-content {
        padding: 48px 0 0 16px;
    }
    .hero-illustration {
        scale: 2.4;
        bottom: 13%;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 21px;
    }

    .hero-text {
        max-width: 75%;
    }

    .mobile-menu-list a {
        font-size: 32px;
    }

    .mobile-menu-close {
        top: 16px;
        left: 16px;
    }
}

/* Extra small */
@media (max-width: 400px) {
    .header {
        padding: 14px 14px 0;
    }

    .logo img {
        height: 46px;
    }

    .hero-content {
        padding: 40px 0 0 14px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 20px;
    }

    .mobile-menu-list a {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .mobile-menu-phone {
        font-size: 18px;
    }

    .mobile-menu-tg {
        font-size: 15px;
    }

    .mobile-menu-close {
        top: 14px;
        left: 14px;
    }
}

@media (max-width: 320px) {
    .header {
        padding: 12px 12px 0;
    }

    .logo img {
        height: 40px;
    }

    .hero-content {
        padding: 32px 0 0 12px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 19px;
    }

    .hero-text {
        max-width: 80%;
    }

    .mobile-menu-list a {
        font-size: 24px;
    }

    .mobile-menu-phone {
        font-size: 16px;
    }

    .mobile-menu-close {
        top: 12px;
        left: 12px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .burger-line {
        transition: none;
    }

    .mobile-menu {
        transition: none;
    }

    .mobile-menu.active .mobile-menu-list li,
    .mobile-menu.active .mobile-menu-contact {
        animation: none;
    }
}

/* Projects Section - Responsive */

/* Mobile layout - stacked */
@media (max-width: 900px) {
    .projects-header {
        padding: 20px 24px;
    }

    .projects-title {
        font-size: 24px;
        line-height: 1.35;
        max-width: 100%;
    }

    .project-row {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .project-category-link {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        display: block;
        padding: 24px 30px;
    }

    .project-category {
        font-size: clamp(28px, 7vw, 56px);
        line-height: 1.1;
        text-align: center !important;
    }

    .project-category-3 br {
        display: none;
    }
}

@media (max-width: 550px) {
    .projects-header {
        padding: 16px 20px;
    }

    .projects-title {
        font-size: 20px;
        line-height: 1.4;
        padding: 8px 10px;
    }

    .project-image {
        aspect-ratio: 4 / 3;
    }

    .project-category-link {
        padding: 20px;
    }

    .project-category {
        font-size: clamp(22px, 7vw, 36px);
    }
}

@media (max-width: 400px) {
    .projects-header {
        padding: 14px 16px;
    }

    .projects-title {
        font-size: 18px;
        line-height: 1.4;
    }

    .project-category-link {
        padding: 16px;
    }

    .project-category {
        font-size: clamp(20px, 7vw, 28px);
    }
}

@media (max-width: 320px) {
    .projects-header {
        padding: 12px;
    }

    .projects-title {
        font-size: 16px;
        line-height: 1.4;
        padding: 6px 8px;
    }

    .project-category-link {
        padding: 12px;
    }

    .project-category {
        font-size: clamp(18px, 6.5vw, 22px);
    }
}

/* About Section - Responsive */
@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 60px 30px;
        gap: 30px;
    }

    .about-title {
        grid-column: 1;
        font-size: 28px;
    }

    .about-text {
        grid-column: 1;
        font-size: 16px;
        line-height: 26px;
    }

    .about-photo {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
        max-width: 500px;
        width: 100%;
    }

    .about-contact {
        grid-column: 1;
        grid-row: auto;
        max-width: 100%;
        margin-top: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .about-phone-btn {
        margin-left: 0;
    }
}

@media (max-width: 550px) {
    .about {
        padding: 40px 20px;
        gap: 24px;
    }

    .about-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .about-text {
        font-size: 15px;
        line-height: 24px;
    }

    .about-contact {
        padding: 24px 20px;
    }

    .about-contact-text {
        font-size: 15px;
        line-height: 28px;
    }

    .about-phone-btn {
        font-size: 16px;
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .about {
        padding: 32px 16px;
        gap: 20px;
    }

    .about-title {
        font-size: 22px;
    }

    .about-text {
        font-size: 14px;
        line-height: 22px;
    }

    .about-contact {
        padding: 20px 16px;
    }

    .about-contact-text {
        font-size: 14px;
        line-height: 24px;
    }

    .about-phone-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

@media (max-width: 320px) {
    .about {
        padding: 24px 12px;
        gap: 16px;
    }

    .about-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .about-text {
        font-size: 14px;
        line-height: 21px;
    }

    .about-contact {
        padding: 16px 12px;
    }

    .about-phone-btn {
        font-size: 14px;
        padding: 10px 16px;
        gap: 8px;
    }

    .about-contact-text {
        font-size: 13px;
        line-height: 22px;
    }
}

/* ============================================
   REVIEWS SECTION - RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .reviews {
        height: auto;
        padding: 60px 0 40px;
    }

    .reviews-title {
        position: relative;
        right: auto;
        top: auto;
        padding: 0 60px;
        margin-bottom: 40px;
    }

    .reviews-slider-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: auto;
    }

    .reviews-slider {
        padding: 0 60px;
    }

    .reviews-track {
        align-items: flex-start;
    }

    .review-card-tall,
    .review-card-short,
    .review-card-extra-tall,
    .review-card-mini {
        height: auto;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 48px 0 32px;
    }

    .reviews-title {
        padding: 0 24px;
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .reviews-slider {
        padding: 0 16px;
    }

    .reviews-track {
        gap: 16px;
    }

    .review-card {
        width: 280px;
        padding: 20px;
    }

    .review-quote-box {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }

    .review-quote {
        font-size: 72px;
        margin-top: 24px;
    }

    .review-text {
        font-size: 15px;
        line-height: 22px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 26px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

    .slider-btn-prev {
        left: 4px;
    }

    .slider-btn-next {
        right: 4px;
    }
}

@media (max-width: 550px) {
    .reviews {
        padding: 36px 0 24px;
    }

    .reviews-title {
        padding: 0 20px;
        font-size: 22px;
        margin-bottom: 24px;
    }

    .reviews-track {
        gap: 14px;
    }

    .review-card {
        width: clamp(220px, calc(100vw - 80px), 300px);
        padding: 18px;
    }

    .review-text {
        font-size: 14px;
        line-height: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .reviews {
        padding: 32px 0 20px;
    }

    .reviews-title {
        font-size: 20px;
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .reviews-slider {
        padding: 0 12px;
    }

    .reviews-track {
        gap: 12px;
    }

    .review-quote-box {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .review-quote {
        font-size: 56px;
        margin-top: 18px;
    }

    .review-text {
        font-size: 13px;
        line-height: 19px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .slider-btn-prev {
        left: 2px;
    }

    .slider-btn-next {
        right: 2px;
    }
}

@media (max-width: 320px) {
    .reviews-title {
        font-size: 18px;
        padding: 0 12px;
    }

    .reviews-slider {
        padding: 0 8px;
    }

    .review-card {
        width: calc(100vw - 48px);
        padding: 14px;
    }

    .review-text {
        font-size: 13px;
        line-height: 18px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* ============================================
   PRICING SECTION - RESPONSIVE
   ============================================ */

/* Laptop / fluid scaling down to 1100px */
@media (max-width: 1600px) {
    .pricing {
        height: 1000px;
    }

    .pricing-illustration {
        left: 4%;
        width: 27%;
        top: 110px;
    }

    .pricing-title {
        left: 6%;
        top: 60px;
        font-size: 28px;
    }

    .pricing-item {
        width: 23%;
    }

    .pricing-item-title {
        font-size: 15px;
        line-height: 20px;
    }

    .pricing-list {
        font-size: 15px;
        line-height: 20px;
    }

    .pricing-item-price {
        font-size: 15px;
    }

    .pricing-small {
        font-size: 14px;
        line-height: 19px;
    }

    .pricing-item-1 {
        left: 35%;
        top: 110px;
    }

    .pricing-item-2 {
        left: 66%;
        top: 110px;
    }

    .pricing-item-3 {
        left: 6%;
        top: 400px;
    }

    .pricing-item-4 {
        left: 35%;
        top: 400px;
        width: 24%;
    }

    .pricing-item-5 {
        left: 66%;
        top: 400px;
    }

    .pricing-additional {
        left: 6%;
        top: 700px;
        font-size: 15px;
    }

    .pricing-partners {
        top: 790px;
    }

    .pricing-partner-card {
        width: 220px;
        padding: 24px 18px;
    }
}

@media (max-width: 1100px) {
    .pricing {
        position: relative;
        height: auto;
        padding: 60px 40px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pricing-illustration {
        position: relative;
        left: auto;
        top: auto;
        width: 320px;
        max-width: 100%;
        margin: 0 auto 40px;
    }

    .pricing-title {
        position: relative;
        left: auto;
        top: auto;
        text-align: center;
        margin-bottom: 40px;
    }

    .pricing-item {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 100%;
        max-width: 600px;
        margin-bottom: 36px;
        text-align: center;
    }

    .pricing-item-title {
        font-size: 16px;
        line-height: 21px;
    }

    .pricing-list {
        display: inline-block;
        text-align: left;
        font-size: 16px;
        line-height: 21px;
    }

    .pricing-item-price {
        font-size: 16px;
    }

    .pricing-small {
        font-size: 16px;
        line-height: 21px;
    }

    .pricing-item-4 {
        width: 100%;
        max-width: 600px;
    }

    .pricing-additional {
        position: relative;
        left: auto;
        top: auto;
        text-align: center;
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .pricing-partners {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .pricing-partner-card {
        width: 240px;
        padding: 28px 20px;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 48px 24px;
    }

    .pricing-illustration {
        width: 260px;
        margin-bottom: 32px;
    }

    .pricing-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .pricing-item {
        margin-bottom: 32px;
    }

    .pricing-item-title {
        font-size: 15px;
    }

    .pricing-list {
        font-size: 15px;
    }

    .pricing-item-price {
        font-size: 15px;
    }

    .pricing-small {
        font-size: 14px;
    }

    .pricing-additional {
        font-size: 15px;
        line-height: 22px;
    }

    .pricing-additional br {
        display: none;
    }

    .pricing-partners {
        gap: 16px;
    }

    .pricing-partner-card {
        width: 220px;
        padding: 24px 18px;
    }

    .partner-name {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .partner-detail {
        font-size: 14px;
    }
}

@media (max-width: 550px) {
    .pricing {
        padding: 40px 20px;
    }

    .pricing-illustration {
        width: 220px;
    }

    .pricing-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .pricing-item-title {
        font-size: 15px;
    }

    .pricing-item-title br {
        display: none;
    }

    .pricing-small br {
        display: none;
    }

    .pricing-item-price br {
        display: none;
    }

    .pricing-partners {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .pricing-partner-card {
        width: 100%;
        max-width: 300px;
        padding: 24px 20px;
    }
}

@media (max-width: 400px) {
    .pricing {
        padding: 32px 16px;
    }

    .pricing-illustration {
        width: 200px;
    }

    .pricing-title {
        font-size: 22px;
    }

    .pricing-item-title {
        font-size: 14px;
    }

    .pricing-list {
        font-size: 14px;
    }

    .pricing-item-price {
        font-size: 14px;
    }

    .pricing-small {
        font-size: 13px;
    }

    .pricing-additional {
        font-size: 14px;
    }

    .partner-name {
        font-size: 14px;
    }

    .partner-detail {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .pricing {
        padding: 24px 12px;
    }

    .pricing-title {
        font-size: 20px;
    }

    .pricing-illustration {
        width: 180px;
    }
}

/* ============================================
   CONTACTS SECTION - RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .contacts {
        position: relative;
        height: auto;
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .contacts-logo {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .contacts-logo img {
        width: 220px;
    }

    .contacts-box {
        position: absolute;
        width: 300px;
        height: 230px;
        right: 20px;
        top: 30px;
    }

    .contacts-title {
        position: relative;
        right: 50px;
        top: auto;
        margin-bottom: 24px;
        z-index: 1;
    }

    .contacts-info {
        position: relative;
        right: 40px;
        top: auto;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .contacts {
        padding: 56px 24px;
        align-items: center;
    }

    .contacts-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 24px;
    }

    .contacts-logo img {
        width: 160px;
        opacity: 0.2;
    }

    .contacts-box {
        width: 320px;
        height: 330px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 50%;
        margin-top: -170px;
        opacity: 0.6;
    }

    .contacts-title {
        right: auto;
        font-size: 30px;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 22px;
    }

    .contacts-info {
        right: auto;
        text-align: center;
        font-size: 16px;
        line-height: 32px;
    }

    .contacts-social {
        justify-content: center;
        margin-top: 8px;
    }
}

@media (max-width: 550px) {
    .contacts {
        padding: 48px 20px;
    }

    .contacts-logo {
        margin-bottom: 20px;
    }

    .contacts-logo img {
        width: 130px;
    }

    .contacts-box {
        width: 280px;
        height: 280px;
        margin-top: -140px;
        opacity: 0.5;
    }

    .contacts-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .contacts-info {
        font-size: 15px;
        line-height: 30px;
    }
}

@media (max-width: 400px) {
    .contacts {
        padding: 40px 16px;
    }

    .contacts-logo {
        margin-bottom: 16px;
    }

    .contacts-logo img {
        width: 110px;
    }

    .contacts-box {
        width: 240px;
        height: 260px;
        margin-top: -130px;
        opacity: 0.45;
    }

    .contacts-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .contacts-info {
        font-size: 14px;
        line-height: 28px;
    }
}

@media (max-width: 320px) {
    .contacts {
        padding: 32px 12px;
    }

    .contacts-logo img {
        width: 90px;
    }

    .contacts-box {
        width: 200px;
        height: 210px;
        margin-top: -105px;
        opacity: 0.4;
    }

    .contacts-title {
        font-size: 22px;
    }

    .contacts-info {
        font-size: 13px;
        line-height: 26px;
    }
}

/* ============================================
   FOOTER - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .footer-content {
        padding: 0 24px;
    }
}

@media (max-width: 550px) {
    .footer {
        padding: 24px 0;
    }

    .footer-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .footer-content {
        padding: 0 16px;
    }

    .footer-copy {
        font-size: 13px;
    }

    .footer-link {
        font-size: 13px;
    }
}

/* ============================================
   DARK THEMED PROJECT PAGES
   (Category listing & Project detail)
   UI/UX Pro Max -- Exaggerated Minimalism + OLED
   ============================================ */

/* --- Keyframes --- */
@keyframes darkFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes darkFadeInSubtle {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Custom Scrollbar — Dark pages */
.dark-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.4) rgba(50, 53, 58, 0.6);
}

.dark-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dark-body::-webkit-scrollbar-track {
    background: rgba(50, 53, 58, 0.6);
}

.dark-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 4px;
    border: 1px solid rgba(50, 53, 58, 0.6);
}

.dark-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.55);
}

.dark-body::-webkit-scrollbar-thumb:active {
    background: rgba(212, 175, 55, 0.7);
}

/* --- Dark Body --- */
.dark-body {
    background-color: #3d4148;
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dark-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: darkFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* --- Dark Header --- */
.dark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 34px 60px;
    position: relative;
    z-index: 10;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.06); */
}

/* --- Back Link (dark theme) --- */
.dark-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
    cursor: pointer;
}

.dark-back-link:hover {
    color: #ffffff;
}

.dark-back-arrow {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-back-link:hover .dark-back-arrow {
    transform: translateX(-6px);
}

/* --- Logo Link (dark theme) --- */
.dark-logo-link {
    flex-shrink: 0;
    cursor: pointer;
}

.dark-logo-link img {
    height: 80px;
    width: auto;
    transition: opacity 0.3s ease, filter 0.4s ease;
    filter: brightness(0) invert(1);
}

.dark-logo-link:hover img {
    opacity: 0.85;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.dark-logo-link--small img {
    height: 60px;
}

/* ============================================
   CATEGORY PAGE - Dark Theme
   ============================================ */

.dark-categories-main {
    flex: 1;
    padding: 0 0 40px 0;
    animation: darkFadeInSubtle 0.5s ease both;
    animation-delay: 0.15s;
}

/* Category Section */
.dark-category-section {
    margin-bottom: 60px;
    padding-bottom: 48px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.04); */
}

.dark-category-section:last-child {
    border-bottom: none;
}

/* Category Heading */
.dark-category-heading {
    padding: 0 60px;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.expanded .dark-category-heading {
    margin-bottom: 30px;
}

.dark-category-title {
    font-family: 'Open Sans Condensed', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.dark-category-title--active {
    color: #ffffff;
}

/* Gold accent underline for active category */
.dark-category-title--active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #D4AF37;
    opacity: 0.7;
}

.dark-category-title-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

/* Subtle underline hover effect for category links */
.dark-category-title-link .dark-category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-category-title-link:hover .dark-category-title::after {
    width: 100%;
}

.dark-category-title-link:hover .dark-category-title {
    color: rgba(255, 255, 255, 0.8);
}

/* Active title link keeps gold underline */
.dark-category-title-link .dark-category-title--active::after {
    width: 100%;
    background: #D4AF37;
    opacity: 0.7;
}

/* --- Horizontal Scroll Wrapper --- */
.dark-projects-scroll-wrapper {
    position: relative;
    width: 100%;
}

.dark-projects-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 60px 20px 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.dark-projects-scroll::-webkit-scrollbar {
    height: 4px;
}

.dark-projects-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dark-projects-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.dark-projects-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.dark-projects-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* --- Project Card (dark horizontal) --- */
.dark-project-card {
    flex-shrink: 0;
    width: 340px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.dark-project-card:hover {
    transform: translateY(-4px);
}

.dark-project-card-img {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #2a2d32;
    border-radius: 8px;
}

.dark-project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-project-card:hover .dark-project-card-img img {
    transform: scale(1.04);
}

.dark-project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 65, 72, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
    border-radius: 8px;
}

.dark-project-card:hover .dark-project-card-overlay {
    background: rgba(42, 45, 50, 0.45);
}

.dark-project-card-view {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.dark-project-card:hover .dark-project-card-view {
    opacity: 1;
    transform: translateY(0);
}

.dark-project-card-info {
    padding: 16px 0;
}

.dark-project-card-title {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 6px 0;
    transition: color 0.25s ease;
}

.dark-project-card:hover .dark-project-card-title {
    color: rgba(255, 255, 255, 0.95);
}

.dark-project-card-subtitle {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-style: italic;
}

/* --- Empty state (dark) --- */
.dark-projects-empty {
    padding: 60px 60px;
    text-align: center;
}

.dark-projects-empty p {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
}

/* --- Category Accordion Toggle --- */
.dark-category-toggle {
    cursor: pointer;
    user-select: none;
}

.dark-category-toggle:hover .dark-category-title {
    color: rgba(255, 255, 255, 0.8);
}

.dark-category-toggle:hover .dark-category-title--active {
    color: #ffffff;
}

/* Chevron indicator */
.dark-category-chevron {
    display: inline-block;
    margin-left: 16px;
    font-size: 0.4em;
    vertical-align: middle;
    transition: transform 0.35s ease;
}

.dark-category-chevron::before {
    content: '▶';
}

.expanded .dark-category-chevron {
    transform: rotate(90deg);
}

/* Collapsible content */
.dark-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* --- Dark Footer --- */
.dark-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    background: rgba(0, 0, 0, 0.06);
}

.dark-footer a {
    transition: color 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
}

.dark-footer a:hover {
    opacity: 0.8;
}

/* ============================================
   PROJECT DETAIL PAGE - Dark Theme
   ============================================ */

.dark-project-detail {
    flex: 1;
    padding: 0 60px 60px;
    animation: darkFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.1s;
}

/* Project Title */
.dark-project-title {
    font-family: 'Open Sans Condensed', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 50px 0;
    text-transform: none;
    letter-spacing: -0.5px;
}

/* Hero Section: Image + Description */
.dark-project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-bottom: 70px;
    align-items: start;
}

.dark-project-hero-image {
    width: 100%;
    overflow: hidden;
    background: #2a2d32;
    border-radius: 4px;
}

.dark-project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-project-hero-image:hover img {
    transform: scale(1.015);
}

.dark-project-hero-info {
    padding-top: 10px;
}

.dark-project-subtitle {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px 0;
    font-style: italic;
}

.dark-project-description {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px 0;
}

.dark-project-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dark-project-meta-item {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.dark-project-meta-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-right: 10px;
    letter-spacing: 0.2px;
}

/* --- Gallery Section --- */
.dark-project-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.dark-gallery-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.dark-gallery-row--full {
    flex-direction: column;
}

.dark-gallery-row--half {
    flex-direction: row;
}

.dark-gallery-item {
    overflow: hidden;
    background: #2a2d32;
    border-radius: 4px;
}

.dark-gallery-item--full {
    width: 100%;
}

.dark-gallery-item--half {
    width: calc(50% - 8px);
    flex-shrink: 0;
}

.dark-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
    filter: brightness(1);
}

.dark-gallery-item--half img {
    max-height: 580px;
}

.dark-gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(1.06);
}

/* ============================================
   DARK THEME - IMAGE PROTECTION
   ============================================ */

.dark-gallery-item img,
.dark-project-hero-image img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.dark-gallery-item,
.dark-project-hero-image {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* ============================================
   DARK THEME - LIGHTBOX
   ============================================ */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    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-image-wrapper {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-image-wrapper img.loaded {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: background 0.2s ease;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
    background: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-nav--prev {
    left: 16px;
}

.lightbox-nav--next {
    right: 16px;
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-nav:hover svg {
    stroke: #fff;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    z-index: 10001;
}

/* Lightbox mobile */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav--prev {
        left: 8px;
    }

    .lightbox-nav--next {
        right: 8px;
    }

    .lightbox-nav svg {
        width: 16px;
        height: 16px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-counter {
        bottom: 14px;
        font-size: 13px;
    }

    .lightbox-image-wrapper img {
        max-width: 96vw;
        max-height: 85vh;
    }
}

/* ============================================
   DARK THEME - FOCUS & ACCESSIBILITY
   ============================================ */

/* Keyboard focus outlines */
.dark-back-link:focus-visible,
.dark-logo-link:focus-visible,
.dark-category-title-link:focus-visible,
.dark-project-card:focus-visible,
.dark-gallery-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Ensure sufficient contrast on interactive text */
.dark-back-link:focus-visible {
    color: #ffffff;
}

/* ============================================
   DARK THEME - HOVER-CAPABLE DEVICES ONLY
   ============================================ */

@media (hover: hover) and (pointer: fine) {
    .dark-project-card:hover {
        transform: translateY(-4px);
    }

    .dark-project-card:hover .dark-project-card-img img {
        transform: scale(1.04);
    }

    .dark-project-card:hover .dark-project-card-overlay {
        background: rgba(42, 45, 50, 0.45);
    }

    .dark-project-card:hover .dark-project-card-view {
        opacity: 1;
        transform: translateY(0);
    }

    .dark-gallery-item:hover img {
        transform: scale(1.02);
        filter: brightness(1.06);
    }

    .dark-project-hero-image:hover img {
        transform: scale(1.015);
    }

    .dark-logo-link:hover img {
        opacity: 0.85;
        filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    }

    .dark-category-title-link:hover .dark-category-title::after {
        width: 100%;
    }
}

/* Touch devices: disable hover transforms that feel unnatural */
@media (hover: none) {
    .dark-project-card:hover {
        transform: none;
    }

    .dark-project-card:hover .dark-project-card-img img {
        transform: none;
    }

    .dark-project-card:hover .dark-project-card-overlay {
        background: transparent;
    }

    .dark-project-card:hover .dark-project-card-view {
        opacity: 0;
    }

    .dark-gallery-item:hover img {
        transform: none;
        filter: brightness(1);
    }

    .dark-project-hero-image:hover img {
        transform: none;
    }
}

/* ============================================
   DARK THEME - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .dark-page,
    .dark-categories-main,
    .dark-project-detail {
        animation: none;
    }

    .dark-project-card,
    .dark-project-card-img img,
    .dark-project-card-overlay,
    .dark-project-card-view,
    .dark-gallery-item img,
    .dark-project-hero-image img,
    .dark-back-arrow,
    .dark-back-link,
    .dark-logo-link img,
    .dark-category-title,
    .dark-category-title-link .dark-category-title::after {
        transition: none;
    }
}

/* ============================================
   DARK THEME - RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .dark-header {
        padding: 28px 40px;
    }

    .dark-category-heading {
        padding: 0 40px;
    }

    .dark-category-title {
        font-size: 42px;
    }

    .dark-projects-scroll {
        padding: 0 40px 16px 40px;
        gap: 20px;
    }

    .dark-project-card {
        width: 300px;
    }

    .dark-project-card-img {
        height: 210px;
    }

    .dark-project-detail {
        padding: 0 40px 40px;
    }

    .dark-project-title {
        font-size: 44px;
        margin-bottom: 40px;
    }

    .dark-project-hero {
        gap: 40px;
    }

    .dark-footer {
        padding: 30px 40px;
    }

    .dark-category-section {
        padding-bottom: 40px;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    .dark-header {
        padding: 24px 24px;
    }

    .dark-logo-link img {
        height: 60px;
    }

    .dark-category-heading {
        padding: 0 24px;
        margin-bottom: 0;
    }

    .expanded .dark-category-heading {
        margin-bottom: 20px;
    }

    .dark-category-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .dark-projects-scroll {
        padding: 0 24px 14px 24px;
        gap: 16px;
    }

    .dark-project-card {
        width: 260px;
    }

    .dark-project-card-img {
        height: 180px;
    }

    .dark-project-card-title {
        font-size: 15px;
    }

    .dark-project-card-subtitle {
        font-size: 13px;
    }

    .dark-category-section {
        margin-bottom: 40px;
        padding-bottom: 32px;
    }

    /* Project Detail - stack hero on mobile */
    .dark-project-detail {
        padding: 0 24px 30px;
    }

    .dark-project-title {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .dark-project-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .dark-project-subtitle {
        font-size: 18px;
    }

    .dark-project-description {
        font-size: 15px;
    }

    .dark-gallery-row--half {
        flex-direction: column;
    }

    .dark-gallery-item--half {
        width: 100%;
    }

    .dark-gallery-item img {
        max-height: none;
    }

    .dark-gallery-item--half img {
        max-height: none;
    }

    .dark-gallery-row {
        gap: 12px;
    }

    .dark-project-gallery {
        gap: 12px;
    }

    .dark-footer {
        padding: 24px 24px;
    }

    .dark-logo-link--small img {
        height: 50px;
    }

    .dark-projects-empty {
        padding: 48px 24px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .dark-header {
        padding: 20px 16px;
    }

    .dark-back-link {
        font-size: 14px;
        gap: 8px;
    }

    .dark-logo-link img {
        height: 50px;
    }

    .dark-category-heading {
        padding: 0 16px;
        margin-bottom: 0;
    }

    .expanded .dark-category-heading {
        margin-bottom: 16px;
    }

    .dark-category-title {
        font-size: 26px;
    }

    .dark-projects-scroll {
        padding: 0 16px 12px 16px;
        gap: 14px;
    }

    .dark-project-card {
        width: 230px;
    }

    .dark-project-card-img {
        height: 160px;
        border-radius: 6px;
    }

    .dark-project-card-overlay {
        border-radius: 6px;
    }

    .dark-project-card-info {
        padding: 12px 0;
    }

    .dark-project-card-title {
        font-size: 14px;
    }

    .dark-project-card-subtitle {
        font-size: 12px;
    }

    .dark-category-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .dark-project-detail {
        padding: 0 16px 24px;
    }

    .dark-project-title {
        font-size: 28px;
        margin-bottom: 24px;
        letter-spacing: -0.3px;
    }

    .dark-project-hero {
        gap: 24px;
        margin-bottom: 30px;
    }

    .dark-project-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .dark-project-description {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    .dark-project-meta {
        padding-top: 20px;
        gap: 8px;
    }

    .dark-project-meta-item {
        font-size: 14px;
    }

    .dark-project-gallery {
        gap: 10px;
    }

    .dark-gallery-row {
        gap: 10px;
    }

    .dark-footer {
        padding: 20px 16px;
    }

    .dark-logo-link--small img {
        height: 40px;
    }

    .dark-projects-empty {
        padding: 40px 16px;
    }
}

/* Extra small */
@media (max-width: 360px) {
    .dark-category-title {
        font-size: 22px;
    }

    .dark-project-card {
        width: 200px;
    }

    .dark-project-card-img {
        height: 140px;
    }

    .dark-project-title {
        font-size: 24px;
    }
}

/* Preloader styles are inlined in <head> via partials/preloader-styles.blade.php */