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

html {
    font-family: 'Core Sans C', sans-serif;
}

:root {
    --primary-color: #000000;
    --primary-dark: #1a1a1a;
    --secondary-color: #333333;
    --text-primary: #000000;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #000000;
    --border-color: #e0e0e0;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-accent: rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Core Sans C', sans-serif !important;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure font family is inherited by all elements */
body,
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body span, body div, body section, body article,
body a, body button, body input, body textarea, body select,
body label, body li, body ul, body ol, body table, body td, body th {
    font-family: 'Core Sans C', sans-serif !important;
}

body.menu-open {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.menu-open * {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Lazy Loading and Blur-up Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: var(--bg-secondary);
}

.lazy-image-placeholder {
    opacity: 0.3;
    filter: blur(10px);
    transform: scale(1.05);
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
}

.lazy-image-loading {
    opacity: 0.5;
    filter: blur(5px);
    transition: opacity 0.4s ease-in-out, filter 0.4s ease-in-out;
}

.lazy-image-loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition: opacity 0.5s ease-in-out, filter 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.lazy-image-error {
    opacity: 0.5;
    background-color: var(--bg-secondary);
}

/* Ensure images maintain aspect ratio during loading */
img.lazy-image,
img.lazy-image-placeholder,
img.lazy-image-loading {
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
}

.nav-menu.active ~ *,
.nav-menu.active + * {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
}

/* Navigation */
.navbar {
    position: relative;
    background: #ffffff !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 40px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0.25rem 1.5rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.2rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    line-height: 0;
    padding: 0;
}

.logo-bars {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 32px;
}

.logo-bar {
    width: 5px;
    height: 32px;
    background-color: #dc2626;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    justify-content: center;
}

.logo-text-main {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    text-transform: lowercase;
    letter-spacing: -0.02em;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-text-sub {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-primary);
    text-transform: lowercase;
    letter-spacing: -0.01em;
    display: block;
    margin-top: -2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-img {
    display: block !important;
    height: 80px;
    width: auto;
    max-width: 250px;
    min-width: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
    flex-shrink: 0;
    filter: brightness(1) contrast(1.1);
}

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

.logo-bars,
.logo-text-wrapper,
.logo-bar,
.logo-text-main,
.logo-text-sub {
    display: none;
}

.logo-text {
    display: none;
}

/* Responsive logo styles */
@media (max-width: 768px) {
    .logo-img {
        height: 70px;
        max-width: 220px;
        min-width: 110px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
        max-width: 180px;
        min-width: 100px;
    }
}

.nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    background: var(--bg-primary);
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    list-style: none;
    gap: 0;
    z-index: 1001;
    height: 100vh;
    overflow-y: auto;
    border-top: none;
}

.nav-menu.active {
    right: 0;
}

.nav-menu.active::after {
    display: none;
}

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

.nav-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: var(--text-secondary);
    background: transparent;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.menu-language-switcher .language-switcher {
    margin-right: 0;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    border-radius: 0;
}

@media (max-width: 1024px) {
    .banner-slider {
        height: 65vh;
        min-height: 450px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        height: 50vh;
        min-height: 350px;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 40vh;
        min-height: 280px;
        margin: 0;
        width: 100%;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .banner-video-container {
        width: 100%;
        height: 100%;
    }
    
    .banner-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .banner-video-container {
        width: 100%;
        height: 100%;
    }
    
    .banner-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.slide.prev,
.slide.next {
    opacity: 0;
    transform: scale(0.95);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) contrast(1.05);
    transition: filter 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    transform: scale(1);
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.slide img.loading {
    opacity: 0.7;
}

.slide.active img {
    filter: brightness(1) contrast(1.1);
    animation: subtleZoom 5s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.02);
    }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: var(--overlay-accent);
    padding: 2rem 3rem;
    border-radius: 1rem;
    max-width: 80%;
}

.slide-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--overlay-accent);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(142, 22, 22, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Home Hero Section */
.home-hero {
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    padding: 1.25rem 20px;
}

@media (max-width: 1024px) {
    .home-hero {
        padding: 1rem 20px;
        min-height: 20vh;
    }
}

.hero-navigation {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.hero-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 2rem;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    min-width: 280px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

.hero-nav-button * {
    pointer-events: none;
}

.hero-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: 0;
    opacity: 0;
}

.hero-nav-button:hover::before {
    opacity: 1;
}

.hero-nav-button:hover::before {
    left: 0;
}

.hero-nav-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero-nav-icon {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.hero-nav-button:hover .hero-nav-icon {
    transform: scale(1.1);
}

.hero-nav-text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    transition: color 0.3s ease;
    display: block;
    font-family: 'Core Sans C', sans-serif;
}

.hero-nav-button:hover .hero-nav-text {
    color: white;
}

@media (max-width: 768px) {
    .hero-navigation {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        padding: 0;
        max-width: 100%;
    }
    
    .hero-nav-button {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem 1.75rem;
        border-radius: 0.75rem;
        border-width: 1.5px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .hero-nav-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    }
    
    .hero-nav-icon {
        font-size: 2rem;
    }
    
    .hero-nav-text {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
        font-weight: 500;
    }
    
    .home-hero {
        padding: 1rem 1.5rem;
        min-height: auto;
        width: 100%;
    }
    
    .home-hero .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-navigation {
        gap: 1rem;
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-nav-button {
        padding: 1.35rem 1.25rem;
        border-radius: 0.625rem;
        border-width: 1px;
        width: 100%;
    }
    
    .hero-nav-icon {
        font-size: 1.75rem;
    }
    
    .hero-nav-text {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
    
    .home-hero {
        padding: 0.875rem 1rem;
        min-height: auto;
        width: 100%;
    }
    
    .home-hero .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* Philosophy Section */
.philosophy-section {
    padding: 100px 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.philosophy-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-weight: 300;
    font-style: normal;
}

.philosophy-text:last-child {
    margin-bottom: 0;
}

/* Featured Projects Section */
.featured-projects {
    background: var(--bg-primary);
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .showcase-item {
        grid-row: span 1 !important;
        min-height: auto !important;
    }
}

@media (max-width: 768px) {
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .featured-projects {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.75rem;
    }
}

.showcase-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .showcase-item {
        border-radius: 0.625rem;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
        aspect-ratio: 4 / 3;
        grid-row: span 1 !important;
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    .showcase-item {
        border-radius: 0.5rem;
        aspect-ratio: 4 / 3;
        grid-row: span 1 !important;
        min-height: auto !important;
    }
}
.showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.showcase-item:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

/* Varied heights for masonry effect */
.showcase-item:nth-child(1) {
    grid-row: span 2;
    min-height: 600px;
}

.showcase-item:nth-child(2) {
    min-height: 400px;
}

.showcase-item:nth-child(3) {
    min-height: 500px;
}

.showcase-item:nth-child(4) {
    grid-row: span 2;
    min-height: 600px;
}

.showcase-item:nth-child(5) {
    min-height: 450px;
}

.showcase-item:nth-child(6) {
    min-height: 400px;
}

.showcase-item:nth-child(7) {
    min-height: 500px;
}

.showcase-item:nth-child(8) {
    min-height: 450px;
}

.showcase-item:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.showcase-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.showcase-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.showcase-item:hover .showcase-info {
    opacity: 1;
}

.showcase-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.showcase-category {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
    display: block;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Section (old - keeping for compatibility) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {    flex: 1;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-philosophy {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    text-align: center;
}

.about-philosophy p {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.9;
    font-style: italic;
    margin: 0;
}

/* About Page Header */
.page-header {
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 16px 32px;
    }
}

/* About Gallery */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about-gallery {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

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

.about-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .services-grid {
        gap: 2rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 1.75rem;
        padding: 0 0.75rem;
    }
}

.service-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .service-card {
        border-radius: 0.75rem;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    .service-card {
        border-radius: 0.625rem;
    }
    
    .service-card .project-image {
        height: 250px;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

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

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

.service-card .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--overlay-dark), rgba(29, 22, 22, 0.7), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.service-card:hover .project-overlay {
    transform: translateY(0);
}

.service-card .project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-card .project-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Page Top Header */
.page-top-header {
    position: relative;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 1.5rem 0;
}

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

@media (max-width: 768px) {
    .page-header-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header-container {
        padding: 0 1rem;
    }
}

.page-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Core Sans C', sans-serif !important;
}

.page-social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.page-social-icons .social-icon {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-social-icons .social-icon:hover {
    opacity: 0.6;
}

/* Category Navigation */
.category-nav {
    position: relative;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 1.5rem 0 1rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.category-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .category-nav {
        padding: 1.25rem 0 0.875rem;
    }
    
    .category-nav-container {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
    
    .category-link {
        font-size: 0.85rem;
        padding-bottom: 0.625rem;
    }
}

@media (max-width: 480px) {
    .category-nav {
        padding: 1rem 0 0.75rem;
    }
    
    .category-nav-container {
        padding: 0 1rem;
        gap: 1.25rem;
    }
    
    .category-link {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }
}

.category-link {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Core Sans C', sans-serif;
}

.category-link:hover {
    color: var(--text-primary);
}

.category-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Projects Page Section */
.projects-page-section {
    padding: 40px 0 0;
    background: var(--bg-primary);
    min-height: 100vh;
    margin-top: 0;
}

@media (max-width: 768px) {
    .projects-page-section {
        padding: 30px 0 0;
    }
}

@media (max-width: 480px) {
    .projects-page-section {
        padding: 25px 0 0;
    }
}

/* Ensure category nav stays fixed on scroll */
body {
    position: relative;
}

/* Project/Service Detail Page Styles */
.project-detail-section {
    padding: 40px 0 80px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.detail-back-button {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: 'Core Sans C', sans-serif;
}

.back-link:hover {
    color: var(--text-primary);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.detail-image-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    justify-content: space-between;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Core Sans C', sans-serif;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.detail-specs {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-item strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 500;
}

.spec-item span {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 400;
}

.spec-divider {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.5;
    padding: 0 0.25rem;
}

.detail-full-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.detail-full-description p {
    margin: 0;
}

.detail-gallery-section {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.detail-gallery-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Core Sans C', sans-serif;
}

.detail-gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.detail-gallery-item {
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.detail-gallery-item:hover {
    transform: scale(1.05);
    border-color: #d0d0d0;
    opacity: 0.9;
}

.detail-gallery-item.active {
    border-color: #d0d0d0;
}

.detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

@media (max-width: 968px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-image-container {
        height: 400px;
    }
    
    .detail-title {
        font-size: 1.35rem;
    }
    
    .detail-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .spec-divider {
        display: none;
    }
    
    .detail-gallery {
        gap: 0.5rem;
    }
    
    .detail-gallery-item {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .project-detail-section {
        padding: 20px 0 40px;
    }
    
    .detail-content {
        gap: 1.5rem;
    }
    
    .detail-image-container {
        height: 300px;
    }
    
    .detail-title {
        font-size: 1.25rem;
    }
    
    .detail-gallery {
        gap: 0.5rem;
    }
    
    .detail-gallery-item {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .category-nav {
        padding: 1.5rem 0 0.75rem;
    }
    
    .category-nav-container {
        padding: 0 20px;
        gap: 1.5rem;
    }
    
    .category-link {
        font-size: 0.85rem;
    }
    
    .projects-page-section {
        padding: 45px 0 0;
    }
}

.projects-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Projects Grid - Modern Style */
.projects-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .projects-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .projects-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
}

.projects-grid-modern .project-card-modern {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 3/4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .projects-grid-modern .project-card-modern {
        border-radius: 0.625rem;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    .projects-grid-modern .project-card-modern {
        border-radius: 0.5rem;
        aspect-ratio: 4/5;
    }
}

.projects-grid-modern .project-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.projects-grid-modern .project-card-modern:hover::before {
    opacity: 1;
}

.projects-grid-modern .project-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.projects-grid-modern .project-image-modern {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.projects-grid-modern .project-image-modern img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.projects-grid-modern .project-card-modern:hover .project-image-modern img {
    transform: scale(1.05);
}

.projects-grid-modern .project-title-modern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.projects-grid-modern .project-card-modern:hover .project-title-modern {
    opacity: 1;
}

.projects-grid-modern .project-title-modern h3 {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .load-more-container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .load-more-container {
        padding: 2.5rem 1rem;
    }
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 1rem 3rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Core Sans C', sans-serif;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .load-more-btn {
        padding: 0.875rem 2.5rem;
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        border-radius: 0.625rem;
    }
}

@media (max-width: 480px) {
    .load-more-btn {
        padding: 0.75rem 2rem;
        font-size: 0.65rem;
        width: 100%;
        max-width: 280px;
    }
}

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

/* Legacy Projects Grid (keeping for compatibility) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--overlay-dark), rgba(29, 22, 22, 0.7), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Project Detail Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    overflow-y: auto;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 1rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2rem auto;
    box-shadow: var(--shadow-xl);
    z-index: 10001;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(142, 22, 22, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.detail-item span {
    color: var(--text-primary);
}

.modal-full-desc {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Modal Gallery Section */
.modal-gallery-section {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.modal-gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.modal-gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.modal-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .modal-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .modal-gallery-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-gallery {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10002;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Contact Offices */
.contact-offices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.office-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.office-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.02em;
}

.office-address {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.address-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.address-icon {
    display: none;
}

.address-text p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.8rem;
}

.address-text p:first-child {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.map-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
    margin-top: 0.75rem;
    transition: color 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.map-link:hover {
    color: var(--primary-dark);
}

/* Contact Info Section */
.contact-info-section {
    margin: 4rem 0 3rem 0;
    padding: 0;
    background: transparent;
    border: none;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    border: none;
}

.contact-info-item .contact-icon {
    display: none;
}

.contact-info-text {
    flex: 1;
}

.contact-info-text strong {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.contact-info-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.contact-info-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
    position: relative;
}

.contact-info-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-info-text a:hover {
    color: var(--primary-dark);
}

.contact-info-text a:hover::after {
    width: 100%;
}

/* Contact Form Section */
.contact-form-section {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: 'Core Sans C', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.contact-form .btn-primary {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-form .btn-primary:hover::before {
    left: 100%;
}

.contact-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-info {
    text-align: left;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}

.footer-social {
    text-align: right;
}

.footer-social h4 {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
}

.social-link:hover {
    color: var(--text-secondary);
    transform: none;
    border: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-link span {
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content {
        padding: 1.25rem 1.5rem;
        max-width: 85%;
        border-radius: 0.625rem;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .slide-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.75rem;
    }
    
    .slide-content p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .slider-btn {
        padding: 0.625rem 0.875rem;
        font-size: 1.25rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
    }

    .prev-btn {
        left: 0.75rem;
    }

    .next-btn {
        right: 0.75rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }

    .language-switcher {
        margin-right: 0.5rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        max-width: 100%;
    }

    .menu-language-switcher {
        padding: 1.5rem 0 !important;
        border-bottom: none !important;
    }

    .menu-language-switcher .language-switcher {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-image {
        height: 250px;
    }

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

    .service-card .project-image {
        height: 250px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .about-content {
        margin-bottom: 2rem;
    }

    .about-intro {
        font-size: 1.1rem;
    }

    .about-description {
        font-size: 1rem;
    }


    .brand-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .brand-subtitle {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .philosophy-section {
        padding: 60px 20px;
    }

    .philosophy-text {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 1.5rem;
    }

    .featured-projects {
        padding: 60px 20px;
    }

    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .showcase-info {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    }

    .showcase-title {
        font-size: 1.2rem;
    }

    .showcase-category {
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .footer-social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-philosophy {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .about-philosophy p {
        font-size: 1rem;
    }

    .page-header {
        padding: 100px 20px 40px;
    }

    .about-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-offices {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .contact-info-section {
        margin: 4rem 0;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form-section {
        margin-top: 4rem;
    }

    .form-section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .contact-form {
        gap: 1.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form .btn-primary {
        width: 100%;
        padding: 1rem 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

