/* 
   Nia Mimarlık - Main Stylesheet (Revamped Light Theme)
   Theme: Modern, Clean, White/Light Grey, Copper Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-tertiary: #f4f4f4;
    
    --text-primary: #2d2d2d;
    --text-secondary: #666666;
    --text-light: #888888;
    
    --accent-color: #b88a44; /* Elegant Copper/Gold */
    --accent-hover: #9e7536;
    
    --border-color: #e5e5e5;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
    --section-spacing: 120px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
    color: #1a1a1a;
}

.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(184, 138, 68, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-primary); /* Changed to dark border for contrast */
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: #fff;
}

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

header .overlay-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s;
}

header.scrolled .overlay-bg {
    opacity: 0; /* Hide gradient when solid background takes over */
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff; /* Always white initially */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header.scrolled .logo-text, header.scrolled .logo span {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: relative;
    transition: color 0.3s;
}

header.scrolled .nav-links a {
    color: var(--text-primary);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Use a brighter, more architectural image */
    /*
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&q=80&w=1600'); 
    */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding-top: 80px;
    position: relative;
}

.hero .overlay-hero {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* Darker overlay for text pop */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 650px;
    margin: 0 auto 45px;
    font-weight: 300;
}

.hero .btn-outline {
    border-color: #fff;
    color: #fff;
}
.hero .btn-outline:hover {
    background-color: #fff;
    color: #000;
}

/* About Section */
.about {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #222;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Services Section */
.services {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: #fff;
    padding: 50px 40px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 138, 68, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

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

/* Projects Section */
.projects {
    padding: var(--section-spacing) 0;
    background-color: #fff;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid #e0e0e0;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

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

.project-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    transition: all 0.4s ease;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.project-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-desc-short {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.project-cat {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
    display: inline-block;
}

.project-item:hover .project-title,
.project-item:hover .project-desc-short,
.project-item:hover .project-cat {
    transform: translateY(0);
}

/* Make whole card clickable via anchor wrapper */
.project-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

/* Contact Section */
.contact {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-top: 60px;
    background: #fff;
    padding: 60px;
    box-shadow: var(--shadow-soft);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 25px;
    margin-top: 5px;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #222;
}

.contact-details p {
    color: var(--text-secondary);
}

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

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 18px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
}

/* Footer */
footer {
    padding: 30px 0 30px;
    background-color: #1a1a1a; /* Keep footer dark for contrast */
    color: #fff;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
    color: #fff;
}

.footer-logo span { color: var(--accent-color); }

.copyright {
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 30px;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Needs mobile menu JS */
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}
