/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #333;
}

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

.btn-outline:hover {
    background: #111;
    color: #fff;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 25px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    transition: color 0.4s ease;
}

header.scrolled .logo {
    color: #111;
}

.logo span {
    color: #aaa;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    color: #fff;
    transition: color 0.4s ease;
}

header.scrolled nav ul li a {
    color: #111;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

header.scrolled nav ul li a:after {
    background: #111;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.4s ease;
}

header.scrolled .mobile-menu-btn {
    color: #111;
}

/* Header for pages with dark backgrounds (like index.html) */
header.transparent-header {
    background: transparent;
    box-shadow: none;
}

header.transparent-header .logo {
    color: #fff;
}

header.transparent-header .logo span {
    color: #aaa;
}

header.transparent-header nav ul li a {
    color: #fff;
}

header.transparent-header .mobile-menu-btn {
    color: #fff;
}

/* When scrolled on dark background pages */
header.transparent-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header.transparent-header.scrolled .logo {
    color: #111;
}

header.transparent-header.scrolled .logo span {
    color: #666;
}

header.transparent-header.scrolled nav ul li a {
    color: #111;
}

header.transparent-header.scrolled .mobile-menu-btn {
    color: #111;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1759222196651-cac4bb9da047?q=80&w=1914&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    padding: 100px 0 80px;
    background: #111;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.8;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #111;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 400px;
}

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

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

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.project-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 14px;
    opacity: 0.8;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Studio Section */
.studio {
    background: #111;
    color: #fff;
}

.studio-content, .studio-about {
    display: flex;
    align-items: center;
    gap: 50px;
}

.studio-text, .studio-text-content {
    flex: 1;
}

.studio-text h2, .studio-text-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.studio-text p, .studio-text-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.studio-image, .studio-image-content {
    flex: 1;
    height: 500px;
}

.studio-image img, .studio-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Studio Stats */
.studio-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
}

.stat p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.philosophy-item {
    text-align: center;
    padding: 40px 20px;
}

.philosophy-item i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.philosophy-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.philosophy-item p {
    opacity: 0.8;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Project Detail */
.project-detail {
    padding: 20px 0 40px;
}

/* Project Detail Hero Image Fix */
.project-hero {
    margin-bottom: 60px;
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height */
    overflow: hidden;
}

.project-hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures image covers the container */
    object-position: center; /* Focus on center */
    display: block;
}

/* Blurred side overlays for portrait images */
.project-hero-image::before,
.project-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px; /* Width of blurred edges */
    z-index: 2;
    pointer-events: none;
}

.project-hero-image::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.7) 0%, 
        transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
}

.project-hero-image::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(0,0,0,0.7) 0%, 
        transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
}

/* Alternative: Gradient overlays (better browser support) */
/* Use this if backdrop-filter doesn't work well */
/*
.project-hero-image::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.4) 50%,
        transparent 100%);
}

.project-hero-image::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.4) 50%,
        transparent 100%);
}
*/

.project-hero-content {
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .project-hero {
        height: 400px; /* Smaller height on mobile */
    }
    
    .project-hero-image::before,
    .project-hero-image::after {
        width: 50px; /* Thinner blurred edges on mobile */
    }
    
    .project-hero-content h1 {
        font-size: 28px;
    }
    
    .project-hero-content .location {
        font-size: 16px;
    }
}

.project-hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.project-hero-content .location {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.project-hero-content {
    margin-top: 30px;
}

.project-hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.project-hero-content .location {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.project-description h3, .project-details h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* For Area, Capacity, Awards - FIXED */
.detail-item.full-width {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.detail-item.full-width .detail-label {
    width: 100%;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-item.full-width .detail-label + span {
    width: 100%;
    text-align: right;
    line-height: 1.6;
}

.detail-label {
    font-weight: 600;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    height: 400px;
    overflow: hidden;
}

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

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

.project-navigation {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr; /* Stack to single column */
        gap: 40px;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
    color: #666;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    margin-top: 5px;
    color: #111;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #111;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.map-container {
    text-align: center;
}

.map-container h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #111;
}

.map-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.map-embed, .interactive-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
    width: 100%;
    height: 400px;
}

@media (max-width: 768px) {
    .map-embed iframe {
        height: 300px; /* Smaller height on mobile */
    }
}

/* Ultra Slim Footer */
footer {
    background: #111;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-logo span {
    color: #888;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    color: #111;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .studio-content, .studio-about, .contact-content {
        flex-direction: column;
    }
    
    .studio-image, .studio-image-content {
        width: 100%;
    }

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #111;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .studio-stats {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: flex-start;
    }
}
