/* ==================================================
   Yıldız Mimarlık - Stil Dosyası
   Modern, minimal, mimari tasarım anlayışı
   ================================================== */

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #c9a961;
    --color-secondary-dark: #a88a4a;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f6f1;
    --color-text: #333333;
    --color-text-light: #777777;
    --color-border: #e5e5e5;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* ============ HEADER ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 96px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo img {
    height: 76px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

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

.main-nav a.active {
    color: var(--color-secondary-dark);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.lang-switch a {
    color: var(--color-text-light);
    font-weight: 500;
}

.lang-switch a.active {
    color: var(--color-secondary-dark);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,20,30,0.75), rgba(40,40,50,0.65)),
                url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1920&q=80') center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 24px;
    animation: fadeUp 1s ease-out;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 24px;
    padding: 6px 18px;
    border: 1px solid var(--color-secondary);
    border-radius: 50px;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.92;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    background: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ SECTIONS ============ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, rgba(20,20,30,0.85), rgba(40,40,50,0.75)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    padding: 180px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 12px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
}

/* ============ ABOUT SUMMARY (home) ============ */
.about-summary {
    background: var(--color-bg-alt);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

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

/* ============ SERVICES ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-secondary-dark);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-secondary);
    color: white;
}

.service-card h3 {
    margin-bottom: 16px;
}

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

/* ============ VISION MISSION ============ */
.vision-mission {
    background: var(--color-bg-alt);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vm-card {
    background: white;
    padding: 48px 40px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}

.vm-card .vm-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.vm-card h3 {
    margin-bottom: 20px;
    font-size: 1.75rem;
}

/* ============ CTA ============ */
.cta-section {
    background: linear-gradient(135deg, rgba(20,20,30,0.92), rgba(40,40,50,0.88)),
                url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    margin-bottom: 32px;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ============ PROJECTS ============ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Projeler: kart başına özel genişlik/yükseklik için flex düzeni */
.projects-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.projects-flex .project-card {
    flex: 0 0 auto;
    max-width: 100%;
}

.project-card {
    cursor: pointer;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.project-img {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.project-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt, #f0f0f0);
    color: #c9a961;
    font-size: 3rem;
    opacity: 0.45;
}

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

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

/* Başlık alanı: fotoğrafın ALTINDA */
.project-caption {
    padding: 18px 20px;
    text-align: center;
}

.project-caption h3 {
    margin: 0 0 6px;
    color: var(--color-primary, #1a1a1a);
    font-size: 1.15rem;
}

.project-caption p {
    margin: 0;
    color: var(--color-secondary, #c9a961);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ===== Proje detay modalı ===== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal.open {
    display: flex;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.project-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: pmIn 0.25s ease;
}

@keyframes pmIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.project-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.project-modal-close:hover {
    background: var(--color-secondary, #c9a961);
    color: #fff;
    transform: rotate(90deg);
}

.project-modal-img {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: #f0f0f0;
}

.project-modal-img img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.project-modal-img .project-noimg {
    height: 280px;
}

.project-modal-body {
    padding: 28px 32px 34px;
}

.project-modal-cat {
    display: inline-block;
    color: var(--color-secondary, #c9a961);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-modal-body h2 {
    margin: 0 0 16px;
    color: var(--color-primary, #1a1a1a);
    font-size: 1.6rem;
}

.project-modal-desc {
    margin: 0;
    color: var(--color-text, #444);
    line-height: 1.7;
    white-space: pre-line;
}

.projects-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    border-radius: 4px;
}

.projects-empty i {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ============ CONTACT ============ */

/* Honeypot - spam tuzağı (kullanıcıdan gizli, sayfa taşırmayan güvenli yöntem) */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info-box {
    background: var(--color-primary);
    color: white;
    padding: 48px 40px;
}

.contact-info-box h3 {
    color: white;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-item i {
    width: 44px;
    height: 44px;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-item-text small {
    display: block;
    color: var(--color-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text span {
    color: white;
    font-size: 1rem;
}

.contact-item-text a:hover {
    color: var(--color-secondary);
}

.contact-form {
    background: white;
    padding: 48px 40px;
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background: #fdecea;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.footer-col i {
    margin-right: 8px;
    color: var(--color-secondary);
    width: 16px;
}

.footer-contact li {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .about-grid,
    .vm-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section { padding: 70px 0; }
    .page-header { padding: 140px 0 60px; }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero p { font-size: 1rem; }

    .logo img { height: 64px; }

    .contact-info-box,
    .contact-form {
        padding: 32px 24px;
    }
}
