/* --- CSS Variables --- */
:root {
    --bg-primary: #FDFBF7; /* Sıcak ivory / Kırık beyaz */
    --bg-secondary: #F3EFEA; /* Açık krem / Sıcak bej */
    --text-main: #2C2C2C; /* Koyu charcoal */
    --text-muted: #5A5A5A;
    --accent-bordeaux: #8B1E28; /* Logodan gelen vurgu rengi */

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, .serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

.serif-title.large {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.mb-large { margin-bottom: 4rem; }
.mb-medium { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* --- Brand & Logo Sizing --- */
.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo Sayfa En Üstteyken Beyaz */
.brand-logo-svg {
    color: #ffffff;
    transition: var(--transition-smooth);
}

.nav-logo {
    height: 45px;
    width: 45px;
    flex-shrink: 0;
}

/* Logo Kaydırınca Bordo Olur */
header.scrolled .brand-logo-svg {
    color: var(--accent-bordeaux);
}

header.scrolled .nav-logo {
    height: 35px;
    width: 35px;
}

/* Metin Sayfa En Üstteyken Beyaz */
.brand-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

/* Metin Kaydırınca Koyu Gri Olur */
header.scrolled .brand-text {
    color: var(--text-main);
    font-size: 1rem;
}

.footer-logo {
    height: 60px;
    width: 60px;
    margin-bottom: 1rem;
}

/* Footer'daki Logo Her Zaman Bordo Kalır */
footer .brand-logo-svg {
    color: var(--accent-bordeaux);
}

/* --- Başlık İkonları --- */
.title-with-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.heading-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-bordeaux);
    flex-shrink: 0;
}

/* --- Layout Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

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

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

header.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

.logo img {
    height: 50px;
    transition: var(--transition-smooth);
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

/* Linkler Sayfa En Üstteyken Beyaz */
.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Linkler Kaydırınca Koyu Gri Olur */
header.scrolled .nav-links a {
    color: var(--text-main);
}

header.scrolled .nav-links a:hover {
    color: var(--accent-bordeaux);
}

.hamburger {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('assets/images/header.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-bordeaux);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #6a161e;
}

/* --- Decorators --- */
.decorative-line {
    width: 60px;
    height: 1px;
    background-color: var(--accent-bordeaux);
    margin: 2rem auto;
}

/* --- Portfolio (Asymmetric Grid) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 2rem;
    margin-top: 4rem;
}

.portfolio-item.span-2 {
    grid-column: span 2;
}

.img-wrapper {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

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

.portfolio-info h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.portfolio-info p {
    font-family: var(--font-serif);
    color: var(--text-muted);
    font-style: italic;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.service-item {
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    padding-top: 1.5rem;
}

.service-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-bordeaux);
}

/* --- About & Stats --- */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.about-text, .about-image {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    padding-top: 4rem;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--accent-bordeaux);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-primary);
    padding: 6rem 0 2rem 0;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.footer-flex {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-muted);
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a:hover {
    color: var(--accent-bordeaux);
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    padding-top: 2rem;
}

/* --- Animations (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer Bottom (Legal & Copyright) --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.legal-links a {
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-bordeaux);
}

/* --- Alt Sayfalar İçin Kalıcı Koyu Header --- */
header.solid-nav {
    background-color: rgba(253, 251, 247, 0.95);
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    padding: 1rem 0;
}

header.solid-nav .brand-text,
header.solid-nav .nav-links a {
    color: var(--text-main);
}

header.solid-nav .brand-logo-svg {
    color: var(--accent-bordeaux);
}

header.solid-nav .hamburger span {
    background-color: var(--text-main);
}

header.solid-nav .nav-links a:hover {
    color: var(--accent-bordeaux);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item.span-2 {
        grid-column: span 1;
    }
    .footer-flex {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    
    /* Hamburger Menü Çizgileri Başlangıçta Beyaz */
    .hamburger span {
        width: 25px;
        height: 2px;
        background-color: #ffffff;
        transition: background-color 0.3s ease;
    }
    
    /* Kaydırınca Koyu Gri */
    header.scrolled .hamburger span {
        background-color: var(--text-main);
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .title-with-icon {
        flex-direction: column;
        gap: 10px;
        font-size: 2.2rem;
    }
    .heading-icon {
        width: 40px;
        height: 40px;
    }
    .brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
