/* GENEL AYARLAR */
:root {
    --primary: #00e5ff; /* Cyan - Ana Renk */
    --secondary: #9d00ff; /* Mor - İkinci Renk */
    --bg-dark: #0a0e17; /* Zemin Rengi */
    --text-light: #e0e0e0; /* Yazı Rengi */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 50px; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(10, 14, 23, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.navbar.scrolled {
    background: rgba(10, 14, 23, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}
.logo-text { font-size: 1.8rem; font-weight: 700; color: white; }
.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { list-style: none; display: flex; gap: 35px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-light); font-weight: 500;
    font-size: 0.95rem; transition: 0.3s; position: relative;
}
.nav-links a:hover { color: var(--primary); }
.btn-contact {
    border: 1px solid var(--primary); padding: 8px 24px; border-radius: 4px;
    color: var(--primary) !important; font-weight: 600; transition: 0.3s;
}
.btn-contact:hover {
    background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* HERO SECTION */
.hero {
    height: 100vh; display: flex; justify-content: center; align-items: center;
    text-align: center; position: relative;
    background: linear-gradient(rgba(10, 14, 23, 0.85), rgba(10, 14, 23, 0.95)), url('images/hero-bg.png');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-content { max-width: 800px; padding: 20px; }
.hero h1 { font-size: 4rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), #ffffff, var(--secondary));
    background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradient-move 5s ease infinite;
}
@keyframes gradient-move { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.cta-buttons { margin-top: 40px; }
.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white; padding: 14px 35px; text-decoration: none; border-radius: 50px;
    font-weight: 600; transition: 0.3s; border: none; cursor: pointer; margin-right: 15px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5); }
.btn-secondary {
    border: 2px solid rgba(255,255,255,0.2); color: white; padding: 12px 32px;
    text-decoration: none; border-radius: 50px; font-weight: 600; transition: 0.3s;
}
.btn-secondary:hover { border-color: white; background: white; color: var(--bg-dark); }

/* SECTIONS GENEL */
section { padding: 100px 50px; }
.section-title { font-size: 2.5rem; margin-bottom: 60px; text-align: center; font-weight: 700; }
.service-grid, .project-grid, .tech-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

/* --- KART TASARIMLARI (DÜZELTİLMİŞ) --- */
.card, .tech-card {
    background: #111620; 
    padding: 40px; 
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: all 0.3s ease;
    position: relative; 
    overflow: hidden;
}

/* HOVER OLUNCA BURASI ÇALIŞIR */
.card:hover, .tech-card:hover {
    /* Arka planı sakın var(--primary) yapma! Koyu kalmalı */
    background: #161b29 !important; 
    border-color: var(--primary); /* Kenarlık parlasın */
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15); /* Alttan mavi ışık */
}

/* İKON KUTULARI */
.card i, .tech-card .icon-box {
    font-size: 2.5rem; 
    color: var(--primary); 
    margin-bottom: 25px;
    background: rgba(0, 229, 255, 0.1); 
    padding: 15px; 
    border-radius: 10px; 
    display: inline-block;
    transition: 0.3s;
}

/* Hover olunca İKON parlasın */
.card:hover i, .tech-card:hover .icon-box {
    background: var(--primary);
    color: #000; /* İkon siyah olsun ki okunsun */
    box-shadow: 0 0 20px var(--primary);
}

.tech-card .icon-box i { font-size: 2rem; margin: 0; color: inherit; background: none; padding: 0; }

.card h3, .tech-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: white; transition: 0.3s; }
.card p, .tech-card p { color: #a0a0a0; font-size: 1rem; margin-bottom: 20px; }

/* Hover olunca başlık parlasın */
.card:hover h3, .tech-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* TIKLANABİLİR ETİKETLER (Tooltip) */
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.tag-link {
    position: relative; text-decoration: none; font-size: 0.85rem; padding: 8px 16px;
    border-radius: 8px; background: rgba(0, 229, 255, 0.05); color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.1); font-weight: 600; transition: all 0.3s ease;
    cursor: help;
}
.tag-link:hover {
    background: var(--primary); color: #000; transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

/* Tooltip Baloncuğu */
.tag-link::before {
    content: attr(data-desc); position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px); background: #fff; color: #000;
    padding: 8px 12px; border-radius: 6px; font-size: 0.75rem; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: 0.3s; pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); font-weight: bold; z-index: 10;
}
.tag-link::after {
    content: ''; position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px); border: 6px solid transparent;
    border-top-color: #fff; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 10;
}
.tag-link:hover::before, .tag-link:hover::after {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-5px);
}

/* PROJELER */
.project-card {
    background: #151a25; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
    height: 100%; display: flex; flex-direction: column;
}
.project-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}
.project-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.project-img::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, #151a25, transparent); opacity: 0.6;
}
.project-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.project-info h3 { color: white; margin-bottom: 10px; }
.btn-detail { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.btn-detail:hover { text-decoration: underline; }

/* İLETİŞİM */
.contact-section { background: #080b12; }
.contact-wrapper { display: flex; gap: 50px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.contact-info { flex: 1; color: #ccc; }
.contact-form { flex: 1.5; }
.input-group input, .input-group textarea {
    width: 100%; padding: 16px; background: #151a25; border: 1px solid #333;
    color: white; border-radius: 6px; margin-bottom: 20px; font-family: inherit; transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); outline: none; }
.success-msg { background: rgba(0, 255, 0, 0.1); color: #0f0; padding: 15px; margin-bottom: 20px; border-radius: 5px; }
.error-msg { background: rgba(255, 0, 0, 0.1); color: #f00; padding: 15px; margin-bottom: 20px; border-radius: 5px; }

/* FOOTER */
footer { text-align: center; padding: 40px; background: #05070c; color: #666; font-size: 0.9rem; border-top: 1px solid #111; }

/* PRELOADER */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0a0e17; z-index: 9999; display: flex; justify-content: center; align-items: center;
}
.loader-ring {
    width: 60px; height: 60px; border: 3px solid rgba(0,229,255,0.2);
    border-top-color: var(--primary); border-radius: 50%; animation: spin 1s infinite linear;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 15px; font-size: 0.9rem; gap: 20px; }
    .hero h1 { font-size: 2.5rem; }
}
/* --- MÜŞTERİ YORUMLARI (TESTIMONIALS) --- */
.testimonials-section {
    background: #0d121d;
    position: relative;
    overflow: hidden;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #111620;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(0, 229, 255, 0.2);
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    border: 1px solid var(--primary);
}

.client-details h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-details span {
    color: #888;
    font-size: 0.8rem;
}

/* --- WHATSAPP BUTONU --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: 0.3s;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20b857;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}