/* ========================================= */
/* 1. TEMEL AYARLAR VE DEĞİŞKENLER           */
/* ========================================= */

:root {
    /* Renk Paleti - Dark Navy Teması */
    --bg-body: #050d1f;       /* Çok koyu lacivert/siyah */
    --bg-card: #11223bc4;     /* Kartlar için yarı saydam lacivert */
    --primary: #4b4dc7;       /* İndigo mavisi */
    --primary-glow: #6c73ad;  /* Parlama efekti */
    --accent: #3151df;        /* Mor vurgu */
    --text-main: #dbe4ec;     /* Beyaz'a yakın metin */
    --text-muted: #94a3b8;    /* Sönük gri metin */
    
    /* Ayarlar */
    --radius: 12px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1400px; 

    /* OPTİMİZASYON: Tekrarlayan Sinematik Arkaplan Değişkeni */
    --bg-cinematic: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(77, 105, 231, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}


/* Genel Sıfırlama */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }


/* ========================================= */
/* 2. HEADER VE MENÜ                         */
/* ========================================= */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}
header .container {
    max-width: 1100px !important;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { 
    display: flex; 
    gap: 30px; 
    align-items: center; /* Bunu ekle ki yazılar ve buton aynı hizada olsun */
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    
}

.nav-links a:hover { color: var(--primary-glow); }

/* Aktif Sayfa Linki */
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.btn-nav:hover { background: var(--accent); }


/* ========================================= */
/* 3. HERO SECTION (SİNEMATİK)               */
/* ========================================= */
.hero {
    padding: 280px 0 330px;
    text-align: center;
    position: relative;
    background-color: transparent;
    
    /* Değişken kullanımı ile tekrar önlendi */
    background-image: var(--bg-cinematic);
    background-blend-mode: screen;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, #5a5a5a, #6d92c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px -10px var(--primary);
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px var(--primary);
}


/* ========================================= */
/* 4. ANA SAYFA HİZMETLER                    */
/* ========================================= */
.services { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.05); 
    box-shadow: 0 10px 30px rgba(4, 24, 88, 0.5);
    transition: 0.3s;
    overflow: hidden;
}

/* Kapsayıcıyı Flex Yapıyoruz */
.table-container {
    display: flex;             /* İçindekileri yan yana dizer */
    justify-content: center;   /* Ortalar */
    gap: 20px;                 /* Kartlar arası boşluk */
    flex-wrap: wrap;           /* Sığmazsa (mobilde) alt satıra geçsin */
    margin-top: 20px;
    padding: 20px 20px 20px 20px;
    width: 100%;
}

/* Kartların Tasarımı */
.card-otomasyonCard {
    flex: 1;                   /* Mevcut alanı eşit şekilde paylaşırlar (ÖNEMLİ OLAN BU) */
    min-width: 280px;          /* Çok küçülürse alta kaysın */
    background-color: rgba(255, 255, 255, 0.05); /* Hafif şeffaf arka plan */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
    color: #dbe4ec;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hover Efekti */
.card-otomasyonCard:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Başlık ve Fiyat Stilleri (İçerik için) */
.card-otomasyonCard h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.card-otomasyonCard .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ade80; /* Yeşil fiyat */
    margin-bottom: 15px;
    display: block;
}

.card-otomasyonCard ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
}

.card-otomasyonCard li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}
.card-otomasyonCard a {
    text-decoration: none;
    color: inherit; /* Rengi babasından (div'den) miras al, mavi yapma */
    display: block; /* Linkin tüm kutuyu kaplamasını sağlar */
    height: 100%;   /* Kartın boyu kadar uzar */
}

.card-otomasyonCard img {
    max-width: 250px;
    max-height: 250px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #152269;
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-glow);
}

.card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }


/* ========================================= */
/* 5. ALT SAYFALAR (HİZMETLER, PROJELER)     */
/* ========================================= */
.page-header {
    padding: 280px 0 330px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.15), transparent 70%);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-header .container .gradient-text {
    position: relative;
    top: -15px;
    display: inline-block;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.service-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(4, 24, 88, 0.5);
}

.service-item:hover {
    background: #152269;
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.s-icon {
    font-size: 2.5rem;
    background: rgba(255,255,255,0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.s-content h3 { color: var(--text-main); margin-bottom: 10px; font-size: 1.5rem; }
.s-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1rem; }

.s-features li {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
    list-style: none;
}


/* ========================================= */
/* 6. SÜREÇ (PROCESS) BÖLÜMÜ                 */
/* ========================================= */
.process-section {
    padding: 100px 0;
    background: #08132b;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 220px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.2rem;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.step h4 { color: var(--text-main); margin-bottom: 15px; font-size: 1.2rem; }


/* ========================================= */
/* 7. FOOTER                                 */
/* ========================================= */
footer {
    background: #020617;
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 100px;
    text-align: center;
    color: var(--text-muted);
}


/* ========================================= */
/* 8. FORM VE AUTH SAYFALARI                 */
/* ========================================= */
.auth-wrapper {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 250px 200px 250px;
}

.auth-page {
    background-image: 
        radial-gradient(circle at 90% 80%, rgba(38, 25, 155, 0.541) 0%, transparent 40%),
        radial-gradient(circle at 10% 20%, rgba(36, 69, 214, 0.603) 0%, transparent 40%);
    background-blend-mode: screen;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: rgba(21, 33, 66, 0.7); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;

    /* Tekrarlayan kod temizlendi, değişken kullanıldı */
    background-image: var(--bg-cinematic);
    background-blend-mode: screen;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(50deg, var(--primary), var(--accent));
}

.auth-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder { color: rgba(148, 163, 184, 0.5); }

.btn-auth {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.7);
    filter: brightness(1.1);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.auth-footer a {
    color: var(--primary-glow);
    font-weight: 600;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-glow);
    transition: width 0.3s;
}

.auth-footer a:hover::after { width: 100%; }


/* ========================================= */
/* 9. PROJELER SAYFASI                       */
/* ========================================= */
.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.card:hover .project-img { transform: scale(1.03); }

.badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a1a7db;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.btn-small:hover {
    color: var(--accent);
    transform: translateX(5px);
}


/* ========================================= */
/* 10. HATA SAYFALARI (ERROR PAGES)          */
/* ========================================= */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(75, 77, 199, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(49, 81, 223, 0.15) 0%, transparent 45%);
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-main);
    text-shadow: 0 0 30px rgba(75, 77, 199, 0.4);
    position: relative;
    display: inline-block;
}

.error-code::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: var(--primary);
    filter: blur(25px);
    opacity: 0.3;
    z-index: -1;
}

.error-title {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 800;
}

.error-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* ========================================= */
/* 11. MODAL (AÇILIR PENCERE)                */
/* ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: #0f1c35;
    border: 1px solid var(--primary);
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 50px rgba(75, 77, 199, 0.5);
    animation: scaleUp 0.3s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.clickable-card { cursor: pointer; position: relative; }

.clickable-card::after {
    content: 'Fiyatları Gör 👆';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* ========================================= */
/* 12. MOBİL MENÜ VE RESPONSIVE AYARLAR      */
/* ========================================= */

/* Hamburger Butonu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
    border-radius: 3px;
}

/* Mobil Menü Konteyner */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 13, 31, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease-in-out;
}

.mobile-nav.active { right: 0; }

.mobile-nav ul { text-align: center; }
.mobile-nav li { margin: 25px 0; }

.mobile-nav a {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
    display: block;
}

.mobile-nav a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Hamburger Animasyonu */
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary);
}


@media (max-width: 768px) {
    /* Layout Düzeltmeleri */
    .container { max-width: 100%; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    /* Header & Navigasyon */
    .nav-links { display: none; }
    .hamburger { display: block; }
    
    /* Hero ve Font Ayarları (Sadece değişen özellikler) */
    .hero h1 { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.5rem; }
    
    /* Error Page Font Ayarı */
    .error-code { font-size: 7rem; }
    .error-title { font-size: 1.8rem; }

    /* Süreç ve Hizmetler */
    .process-steps { flex-direction: column; gap: 40px; }
    .step:not(:last-child)::after { display: none; }
    .service-item { flex-direction: column; }
}