/* ==========================================================================
   1. MODERN CSS DEĞİŞKENLERİ (VARIABLES) & RESET
   ========================================================================== */
:root {
    /* Genel Renk Paleti */
    --primary-color: #0f172a;      /* Koyu Lacivert/Siyah tonu */
    --accent-color: #f59e0b;       /* İnşaat Vurgu Rengi (Amber) */
    --text-color: #334155;         /* Yumuşak Siyah Gövde Yazısı */
    --light-bg: #f8fafc;           /* Açık Gri Arka Plan */
    --white: #ffffff;
    
    /* Projects & Panel Bölümü Eşleşenleri */
    --primary: var(--accent-color);
    --bg-dark: #0f172a;
    --bg-card: #1e293b;            /* Koyu Kart Arka Planı */
    --text-main: #f8fafc;          /* Açık Renk Ana Yazı */
    --text-muted: #94a3b8;         /* Yumuşak Gri Yazı */
    --border-color: #334155;
    
    /* Animasyon & Geçişler */
    --transition: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==========================================================================
   2. GENEL BİLEŞENLER & DÜZEN (LAYOUT)
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
}

/* Buton Tasarımları */
.btn {
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ==========================================================================
   3. HEADER & NAVBAR BÖLÜMÜ
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.btn-nav {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition);
}

/* ==========================================================================
   4. GİRİŞ BÖLÜMÜ
   ========================================================================== */
.main-section {
    height: 100vh;
    background: url("Media/Images/0.jpg") no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.4));
}

.main-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.main-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.main-content h1 strong {
    color: var(--accent-color);
}

.main-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

.main-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   5. HİZMETLER BÖLÜMÜ
   ========================================================================== */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ==========================================================================
   6. PROJECTS BÖLÜMÜ
   ========================================================================== */
.projects-section {
    background-color: var(--bg-dark);
    position: relative;
}

.filter-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 0;
    flex-wrap: wrap;
    flex-grow: 1;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-info-item i {
    color: var(--primary);
}

.btn-view-details {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-view-details:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* ==========================================================================
   7. KURUMSAL (ABOUT US) BÖLÜMÜ
   ========================================================================== */
.about-section {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ==========================================================================
   8. DİNAMİK DETAY PANELİ (PROJECT DETAIL)
   ========================================================================== */
.project-detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #090d16;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    display: none;
    color: var(--text-main);
}

.project-detail-panel.open {
    transform: translateX(0);
    display: block;
}

.detail-navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1010;
    backdrop-filter: blur(10px);
}

.detail-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.btn-close-detail {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.btn-close-detail:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.detail-hero {
    position: relative;
    padding: 80px 0 40px;
}

.detail-title-area h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.hero-tag {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-box span.label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-box span.val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Medya Elementleri (Slider & Video) */
.detail-media-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin: 40px 0;
}

/* İlerletme çubuğu */
video::-webkit-media-controls-timeline {
    display: none !important;
}

/* Süre yazıları*/
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.slider-container {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.video-container {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
}

.video-overlay i {
    font-size: 4.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.video-overlay:hover i {
    transform: scale(1.15);
}

.video-overlay.playing {
    opacity: 0;
    pointer-events: none;
}

/* Teknik Detay Metinleri ve Tablo */
.detail-text-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 80px;
}

.detail-desc h3, .detail-specs-table h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.detail-desc p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td.label {
    font-weight: 600;
    color: var(--text-muted);
    width: 40%;
}

.specs-table td.value {
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
    background-color: #0b0f19;
    color: var(--text-muted);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info-list {
    display: grid;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* ==========================================================================
   10. RESPONSIVE TASARIM (MEDİA QUERİES)
   ========================================================================== */
@media (max-width: 992px) {
    .detail-media-section, 
    .detail-text-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .slider-container, .video-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: #0f172a;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .main-content h1 {
        font-size: 2.8rem;
    }

    .main-buttons {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}