/* RESET & BASE STYLES */
:root {
    /* Renk Paleti (Logodan Çekilen) */
    --bg-cream: #FDF4E3; /* Zemin - hafif krem mermer dokusu hissi */
    --bg-light: #ffffff;
    --accent-gold: #D4AF37; /* Ana Renk - Altın vurgu */
    --accent-gold-hover: #b5952f;
    --text-dark: #0A2540; /* Koyu Kontrast - Grafit grisi / Lacivert */
    --text-light: #ffffff;
    
    /* Tipografi */
    --font-heading: 'Playfair Display', serif; /* Zarif, sofistike başlıklar */
    --font-body: 'Montserrat', sans-serif; /* Modern, okunabilir gövde metni */
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    /* Hafif mermer hissi veren radyal gradyan */
    background-image: radial-gradient(circle at top right, #ffffff 0%, rgba(253, 244, 227, 0.8) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
}

p {
    font-size: 1rem;
    color: #334155;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-cream);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.preloader-logo svg {
    width: 100%;
    height: 100%;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 2s ease-in-out forwards;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(10px); }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--text-dark);
    padding: 15px 8%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo svg {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    letter-spacing: 2px;
    transition: var(--transition);
}

.navbar.scrolled .logo span {
    color: var(--accent-gold);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* HERO SECTION */
#hero {
    height: 100vh;
    /* Hero Görseli: Placeholder URL */
    background: linear-gradient(rgba(10, 37, 64, 0.6), rgba(10, 37, 64, 0.8)), url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-attachment: fixed; /* Parallax effect */
}

.hero-content {
    max-width: 900px;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid var(--accent-gold);
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

/* SECTIONS */
.section {
    padding: 120px 8%;
}

/* HAKKIMIZDA SECTION */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px; right: -20px; bottom: -20px;
    border: 2px solid var(--accent-gold);
    z-index: -1;
}

.about-text h2.section-title {
    margin-bottom: 30px;
}

.about-text h2.section-title::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* PROJELER SECTION */
#projeler {
    background-color: #f8fafc; /* Kontrast yaratmak için çok açık gri */
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 10px 15px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    color: var(--text-dark);
    border-bottom-color: var(--accent-gold);
}

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

.project-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: none; /* JS tarafından yönetilir */
    background: #fff;
    transition: var(--transition);
}

.project-card.show {
    display: block;
    animation: fadeIn 0.6s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

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

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 37, 64, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-overlay span {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    transform: translateY(20px);
    transition: var(--transition);
    letter-spacing: 1px;
}

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

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

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

.project-info {
    padding: 25px;
    border-bottom: 3px solid var(--accent-gold);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* İLETİŞİM SECTION */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    padding: 60px;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-gold);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

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

.info-text h4 {
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
}

.info-text p {
    margin-bottom: 0;
    color: #475569;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.submit-btn {
    margin-top: 15px;
    width: 100%;
}

/* FOOTER */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 80px 8% 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--text-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
    font-weight: bold;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #94a3b8;
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* RESPONSIVE DESIGN & MOBILE OPTIMIZATION */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    .about-container, .contact-container { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 40px; order: -1; }
    .about-image::before { display: none; }
}

@media (max-width: 768px) {
    /* Hamburger Menu Button */
    .menu-toggle { display: flex; z-index: 1001; }
    
    .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Mobile Navbar Overlay */
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--text-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1000;
    }
    
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.2rem; }
    
    .navbar { padding: 15px 5%; }
    .navbar.scrolled { padding: 12px 5%; }
    
    .logo svg { width: 35px; height: 35px; }
    .logo span { font-size: 1.5rem; color: var(--accent-gold); }
    
    /* Typography & Spacing */
    .hero-content { margin-top: 60px; }
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .hero-content p { font-size: 1rem; margin-bottom: 30px; }
    
    .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
    .section { padding: 80px 5%; }
    
    .about-text h2.section-title { font-size: 2rem; margin-bottom: 20px; text-align: center; }
    .about-text h2.section-title::after { left: 50%; transform: translateX(-50%); }
    .about-text p { font-size: 1rem; text-align: left; }
    
    /* Project Tabs */
    .project-tabs { flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
    .tab-btn { font-size: 1rem; padding: 8px 12px; }
    
    .projects-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-image { height: 250px; }
    
    /* Contact */
    .contact-container { padding: 30px 20px; border-top-width: 3px; gap: 40px; }
    .contact-info h3 { font-size: 1.5rem; }
    .contact-info p { font-size: 0.95rem; }
    .info-icon { font-size: 1.5rem; }
    .info-text h4 { font-size: 1rem; }
    
    /* Forms: Prevents iOS Zoom */
    .form-group input, .form-group textarea { font-size: 16px; padding: 14px; }
    
    /* Footer */
    footer { padding: 60px 5% 20px; }
    .footer-logo span { font-size: 1.5rem; }
}
