:root {
    /* Renk Paleti: Mat ve Derin */
    --bg-main: #0b1120; /* Deep Slate */
    --bg-sec: #0f172a;
    --accent: #14b8a6; /* Mat Teal */
    --accent-glow: rgba(20, 184, 166, 0.4);
    --text-white: #f1f5f9;
    --text-gray: #94a3b8;
    
    /* Matte Glass Variables */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: 16px;
}

/* Temel Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* EKSİK OLAN KISIM BURASI */
#grid-canvas {
    position: fixed; /* Sayfada yer kaplamasın, ekrana yapışsın */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* En arkaya gönder */
    pointer-events: none; /* Tıklamaları engellemesin */
}

/* HERO bölümünü de biraz daha yukarı çekmek istersen padding'i azaltabiliriz */
.hero { 
    /* Eski değer: 9rem 0 6rem idi */
    padding: 7rem 0 5rem; /* Biraz daha yukarı aldık */
    position: relative; 
    overflow: hidden; 
    min-height: 100vh; /* Hero'nun tüm ekranı kaplamasını garanti eder */
    display: flex; /* İçeriği dikeyde ortalamak için */
    align-items: center;
}

/* Noise Overlay (Mat Doku) */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 999; opacity: 0.5;
}

/* Tipografi */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; color: var(--text-white); font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; display: inline-block;
}

/* Mat Glass Ortak Sınıfı */
.matte-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.matte-card:hover { border-color: var(--accent); transform: translateY(-5px); }

/* Navbar */
.navbar { position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--glass-border); }
.matte-glass { background: rgba(11, 17, 32, 0.8); backdrop-filter: blur(20px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.logo i { width: 32px; height: 32px; }
.logo-text { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.2rem; line-height: 1; color: white; }
.logo-text span { color: var(--accent); }
.logo-text small { display: block; font-size: 0.6rem; letter-spacing: 2px; color: var(--text-gray); font-family: 'Inter'; margin-top: 3px; }

.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-menu a { text-decoration: none; color: var(--text-gray); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-menu a:hover { color: var(--accent); }

/* Butonlar */
.btn-primary {
    background: var(--accent); color: var(--bg-main); padding: 0.8rem 1.5rem;
    border-radius: 6px; text-decoration: none; font-weight: 700; transition: 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}
.btn-primary:hover { background: #2dd4bf; box-shadow: 0 0 25px rgba(20, 184, 166, 0.4); }
.btn-secondary {
    background: transparent; border: 1px solid var(--text-gray); color: var(--text-white);
    padding: 0.8rem 1.5rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Hero Section */
.hero { padding: 9rem 0 6rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.status-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
    background: rgba(20, 184, 166, 0.1); border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 50px; color: var(--accent); font-size: 0.8rem; font-family: 'JetBrains Mono'; margin-bottom: 1.5rem;
}
.pulse-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 2.5rem; max-width: 500px; }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; align-items: center; border-top: 1px solid var(--glass-border); padding-top: 1.5rem; }
.stat-item strong { display: block; font-size: 1.5rem; color: white; }
.stat-item span { font-size: 0.8rem; color: var(--text-gray); text-transform: uppercase; }
.stat-separator { width: 1px; height: 40px; background: var(--glass-border); }

/* Terminal Window */
.terminal-window { overflow: hidden; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.terminal-header { background: rgba(0,0,0,0.3); padding: 10px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--glass-border); }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }
.title { color: #666; font-size: 0.75rem; }
.terminal-body { padding: 20px; color: #d4d4d4; min-height: 250px; }
.line { margin-bottom: 8px; }
.cmd { color: var(--accent); margin-right: 8px; }
.success { color: #27c93f; }
.warning { color: #ffbd2e; }
.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Tech Stack */
.tech-stack-section { padding: 2rem 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); }
.stack-label { text-align: center; color: var(--text-gray); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1.5rem; }
.stack-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.tech-item { display: flex; align-items: center; gap: 10px; color: var(--text-gray); font-weight: 500; font-size: 0.95rem; }
.tech-item i { color: var(--accent); width: 20px; }

/* Sections */
.section { padding: 7rem 0; }
.bg-darker { background: #080c17; }
.section-header { margin-bottom: 4rem; text-align: left; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-gray); max-width: 600px; }

/* Solutions Grid */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.solution-card { padding: 2.5rem; }
.icon-wrapper { width: 50px; height: 50px; background: rgba(20, 184, 166, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 1.5rem; }
.feature-list { list-style: none; margin-top: 1.5rem; border-top: 1px solid var(--glass-border); padding-top: 1rem; }
.feature-list li { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.feature-list li::before { content: '•'; color: var(--accent); }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); }
.timeline-item { display: flex; gap: 40px; margin-bottom: 4rem; position: relative; }
.timeline-number { width: 60px; height: 60px; background: var(--bg-main); border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); z-index: 2; flex-shrink: 0; }
.timeline-content h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-gray); font-size: 0.95rem; }

/* Project Showcase */
.project-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; margin-bottom: 5rem; align-items: center; }
.project-row.reverse { grid-template-columns: 1fr 1.2fr; direction: rtl; }
.project-row.reverse .project-details { direction: ltr; }
.project-img { position: relative; height: 400px; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border); }
.project-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%); transition: 0.5s; }
.project-row:hover img { filter: grayscale(0%); transform: scale(1.05); }
.img-badge { position: absolute; top: 20px; left: 20px; background: var(--bg-main); color: var(--accent); padding: 5px 15px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--accent); }
.project-details { padding: 3rem; background: var(--glass-bg); }
.project-details h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.project-details .desc { color: var(--text-gray); margin-bottom: 1.5rem; }
.tech-tags { display: flex; gap: 10px; margin-bottom: 2rem; }
.tech-tags span { font-size: 0.75rem; background: rgba(255,255,255,0.05); padding: 5px 10px; border-radius: 4px; color: var(--text-white); border: 1px solid var(--glass-border); }
.btn-link { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* FAQ */
.small-container { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 1.5rem; }
.faq-item h4 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 0.5rem; color: white; }
.faq-item h4 i { color: var(--accent); width: 20px; }
.faq-item p { color: var(--text-gray); font-size: 0.9rem; padding-left: 30px; }

/* Footer */
.footer { padding: 5rem 0 2rem; border-top: 1px solid var(--glass-border); margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-gray); font-size: 0.9rem; margin: 1rem 0; max-width: 300px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: var(--text-gray); transition: 0.3s; }
.social-links a:hover { color: var(--accent); }
.footer-col h4 { font-size: 1rem; margin-bottom: 1.5rem; }
.footer-col a { display: block; color: var(--text-gray); text-decoration: none; margin-bottom: 0.8rem; font-size: 0.9rem; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 2rem; color: #555; font-size: 0.85rem; display: flex; justify-content: space-between; }
.sign { font-family: 'Space Grotesk'; opacity: 0.5; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-interface { display: none; }
    .project-row, .project-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .project-row.reverse .project-details { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; }
}

/* --- MOBİL MENÜ (RESPONSIVE) STİLLERİ --- */

/* Başlangıçta hamburger butonu ve mobil menüyü gizle (Masaüstü için) */
.hamburger { display: none; cursor: pointer; color: var(--text-white); }
.mobile-menu { display: none; }

/* --- TELEFON VE TABLET EKRANLARI (768px altı) --- */
@media (max-width: 968px) {

    /* Masaüstü menüyü ve butonu gizle */
    .desktop-menu, .desktop-action {
        display: none !important; /* Kesinlikle gizle */
    }

    /* Hamburger ikonunu göster */
    .hamburger {
        display: block;
        z-index: 1002; /* Menünün üstünde kalsın */
    }
    .hamburger i {
        width: 32px; height: 32px;
        transition: transform 0.3s;
    }
    /* Hamburger'e tıklanınca ikon dönsün */
    .hamburger.active i {
        transform: rotate(90deg);
        color: var(--accent);
    }

    /* Mobil Menü Paneli (Gizli Durum) */
    .mobile-menu {
        display: flex; /* Flex ama görünmez */
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(11, 17, 32, 0.95); /* Çok koyu arka plan */
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        z-index: 1001; /* Navbar'ın hemen altında */
        flex-direction: column;
        justify-content: center; align-items: center;
        
        /* Animasyon Başlangıcı: Yukarıda ve Görünmez */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Mobil Menü Paneli (AÇIK DURUM) */
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Linklerin Stili */
    .mobile-links {
        list-style: none;
        text-align: center;
        display: flex; flex-direction: column; gap: 2rem;
    }

    .mobile-links a {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.5rem; /* Telefonda büyük font */
        color: var(--text-white);
        font-weight: 700;
        display: block;
    }

    .mobile-links a:hover {
        color: var(--accent);
        transform: scale(1.1);
    }

    /* Mobildeki Butonun Ayarı */
    .mobile-btn {
        margin-top: 1rem;
        background: var(--accent);
        color: var(--bg-main);
        justify-content: center;
    }
}