/* --- Değişkenler --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #141414;
    --gold: #cfa85b; 
    --gold-hover: #e5c07b;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* --- Header (Koyu, Saydam ve Blurlu) --- */
.glass-header {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 0.8rem 5%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    
    background-color: rgba(5, 5, 5, 0.75); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.site-logo {
    height: 95px; 
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links { 
    display: flex; 
    gap: 3rem; 
    list-style: none; 
}

.nav-links li a {
    font-size: 0.9rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    position: relative; 
    transition: var(--transition);
    color: var(--text-main);
}

.nav-links li a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease;
}
.nav-links li a:hover::after { width: 100%; }
.nav-links li a:hover { color: var(--gold); }

/* --- Hero --- */
.hero {
    height: 100vh;
    background-image: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 100%), url('../temp/content/Merve Sitesi/mrv-1.png');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; padding: 0 5%;
}

.hero-content {
    max-width: 800px; opacity: 0; transform: translateY(50px);
    animation: fadeUp 1.5s forwards 0.5s;
}
.hero h1 { font-size: 4.5rem; font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 2px 4px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.1rem; font-weight: 300; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; line-height: 1.8; }

.btn-gold {
    padding: 1rem 3rem; border: 1px solid var(--gold); color: var(--gold);
    text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: 0.85rem;
    position: relative; overflow: hidden; display: inline-block; transition: var(--transition);
    background: transparent; cursor: pointer;
}
.btn-gold:hover { background: var(--gold); color: var(--bg-dark); box-shadow: 0 0 20px rgba(207, 168, 91, 0.4); }

/* --- Ortak Bölümler --- */
section { padding: 8rem 0; }
.features-section { background: var(--bg-panel); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-subtitle { color: var(--gold); text-transform: uppercase; font-weight: 600; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 1rem; display: block; }
.section-title { font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; }

/* --- Kartlar --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 3rem 2rem; border-radius: 4px; backdrop-filter: blur(10px);
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.feature-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.05); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; color: var(--gold); }
.feature-card p { color: var(--text-muted); font-weight: 300; font-size: 0.95rem; }

/* --- Projeler (3 Sütun Yapısı ve Alan Genişletme) --- */
section#projeler.container, section#devam-eden.container {
    max-width: 1600px; /* Büyük kart boyutunu korumak için sınır genişletildi */
    width: 95%;
}

.projects-wrapper { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Yan yana 3 proje düzeni */
    gap: 2rem; 
}

.project-item { position: relative; height: 500px; overflow: hidden; border-radius: 4px; cursor: pointer; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.project-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; opacity: 0.8; transition: var(--transition);
}
.project-item:hover .project-img { transform: scale(1.08); }
.project-item:hover .project-overlay { opacity: 1; }
.project-overlay h3 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 0.5rem; transform: translateY(20px); transition: var(--transition); }
.project-overlay p { color: var(--gold); font-weight: 600; letter-spacing: 2px; font-size: 0.80rem; transform: translateY(20px); transition: var(--transition); opacity: 0; }
.project-item:hover .project-overlay h3, .project-item:hover .project-overlay p { transform: translateY(0); opacity: 1; }

/* --- Sadece 2 Kartı Olan Bölümü Ortalamak İçin (Boyut Değişmeden) --- */
.projects-wrapper.center-cards {
    grid-template-columns: repeat(2, calc(33.333% - 1.33rem)); /* 3'lü kart ölçüsüyle birebir aynı tutar */
    justify-content: center; /* 2 kartı tam ortaya hizalar */
}

/* --- İletişim --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem; background: var(--bg-dark); border: 1px solid var(--glass-border);
    color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 1rem; border-radius: 4px;
    transition: var(--transition); outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 10px rgba(207, 168, 91, 0.2); }
.map-container { width: 100%; min-height: 350px; border-radius: 4px; overflow: hidden; border: 1px solid var(--glass-border); }

/* --- Footer --- */
footer { background: #050505; padding: 4rem 5%; text-align: center; border-top: 1px solid #1f1f1f; }
.footer-text { color: var(--text-muted); font-weight: 300; font-size: 0.9rem; }

/* --- Animasyonlar & Responsive --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; letter-spacing: -1px; }
    .projects-wrapper, .contact-grid, .projects-wrapper.center-cards { grid-template-columns: 1fr !important; }
    .nav-links { display: none; }
    .site-logo { height: 60px; } 
}

/* --- İletişim Kartları Düzeni --- */
.contact-info-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 1.5rem; 
    width: 100%;
}

.contact-info-card {
    background: #111111; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.03);
}

.contact-info-card h3 {
    color: var(--gold); 
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.contact-info-card p {
    color: #a3a3a3; 
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.2rem;
}

/* --- Gelişmiş Modal (Slider ve Harita) --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(5px);
    justify-content: center; align-items: center; padding: 20px;
}

.expanded-modal {
    max-width: 1200px;
    width: 95%;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2.5rem;
    background: var(--bg-panel);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    text-align: left;
    animation: zoomIn 0.4s ease;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.slider-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.modal-right {
    display: flex;
    flex-direction: column;
}

.modal-map {
    width: 100%;
    flex-grow: 1; 
    min-height: 300px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.modal-info { margin-top: 1.5rem; }
.modal-info h3 { color: var(--gold); font-size: 2rem; margin-bottom: 0.5rem; }
.modal-info p { color: var(--text-muted); line-height: 1.7; }

.close-modal {
    position: absolute; top: 30px; right: 40px; color: var(--text-main); font-size: 3rem; font-weight: bold;
    cursor: pointer; transition: color 0.3s;
}
.close-modal:hover { color: var(--gold); }

@media (max-width: 900px) {
    .expanded-modal {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .slider-container { height: 300px; }
    .modal-map { min-height: 250px; }
}