:root {
    --bg-color: #fcfdfe;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent: #0088cc;
    --accent-hover: #006eaa;
    --gold: #f59e0b;
    --telegram: #0088cc;
    --whatsapp: #25d366;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 16px;
}

/* ───────── RESET & BASE ───────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a, button, .detailed-card, .tech-card, .testimonial-card, .blog-card {
    transition: all 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ───────── TYPOGRAPHY & SECTIONS ───────── */
.section-intro {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.story-section {
    padding: 80px 0;
}

.story-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: var(--text-main);
}

.story-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

.story-section p, .story-section ul {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.story-section ul {
    padding-left: 20px;
}

.story-section li {
    margin-bottom: 10px;
}

/* ───────── NAV & LANG TOGGLE ───────── */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(252,253,254,0.88);
    border-bottom: 1px solid var(--border);
    margin: 0 -24px;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 1; /* Logonun gerekirse küçülmesine izin ver */
}

.logo:hover {
    transform: scale(1.03);
}

.logo-svg {
    height: 60px;
    max-width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

/* Sadece ana menü linklerini etkiler, dil seçici içindeki 'a' etiketlerini korur */
.nav-links > a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links > a:hover {
    color: var(--accent);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 4px;
    margin-left: 10px;
}

.lang-toggle a, .lang-toggle span {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    display: inline-block;
}

.lang-toggle span.active {
    background-color: #ffffff;
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang-toggle a { color: #64748b; }
.lang-toggle a:hover { color: #0f172a; }

/* ───────── HERO ───────── */
.hero {
    padding: 100px 0 60px;
    max-width: 900px;
    text-align: left;
}

.hero-tag {
    display: inline-block;
    background: #e0f2fe;
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--text-main);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(15,23,42,0.2);
    margin-top: 30px;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0,136,204,0.4);
}

/* ───────── GRIDS & CARDS ───────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tech-grid, .testimonials-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tg-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}

/* Card Styles */
.detailed-card, .tech-card, .testimonial-card, .blog-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: block;
}

.detailed-card {
    margin-bottom: 24px;
}

.tech-card {
    border-top: 4px solid var(--border);
}

.detailed-card:hover, .tech-card:hover, .testimonial-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.tech-icon-bg {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.tag-container, .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag, .tech-tags span {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.client-name { display: block; font-weight: 800; }
.client-role { display: block; font-size: 0.95rem; color: var(--text-muted); }

.blog-date {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: var(--accent);
}

.telegram-highlight {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

/* ───────── FLOATING BUTTONS ───────── */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2.5s infinite;
}

.floating-btn svg { width: 30px; height: 30px; fill: white; }
.btn-telegram { left: 30px; background-color: var(--telegram); }
.btn-whatsapp { right: 30px; background-color: var(--whatsapp); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.2); }
    70% { box-shadow: 0 0 0 15px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ───────── FOOTER ───────── */
footer {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-muted);
}

.footer-email {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 700;
}

.copyright {
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* ───────── RESPONSIVE: TABLET (≤1024px) ───────── */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .telegram-highlight { grid-template-columns: 1fr; gap: 20px; }
}

/* ───────── RESPONSIVE: MOBILE (≤768px) ───────── */
@media (max-width: 768px) {
    /* Mobilde ekran kenar boşluklarını biraz kısaltalım */
    .container {
        padding: 0 16px;
    }
    
    nav {
        margin: 0 -16px;
        padding: 0 16px;
    }

    /* LOGO BOYUTU DÜZELTİLDİ: Ekrana sığması için küçültüldü */
    .logo-svg { 
        height: 26px; 
    }

    /* Ana menü linklerini gizler, dil seçiciyi korur */
    .nav-links > a {
        display: none; 
    }
    
    .nav-links {
        gap: 0; 
    }
    
    .lang-toggle {
        padding: 3px;
        margin-left: 0;
    }

    .lang-toggle a, .lang-toggle span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .hero {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .hero-tag { margin: 0 auto 20px; }

    .tech-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
    
    .telegram-highlight { padding: 25px; }
    .tg-list { grid-template-columns: 1fr; }

    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
    }
    .floating-btn svg { width: 24px; height: 24px; }
    .btn-telegram { left: 15px; }
    .btn-whatsapp { right: 15px; }
    
    .story-section { padding: 50px 0; }
}

/* ───────── RESPONSIVE: SMALL MOBILE (≤480px) ───────── */
@media (max-width: 480px) {
    /* Çok küçük ekranlar için logoyu biraz daha küçültelim */
    .logo-svg { height: 22px; }

    .stats-grid { grid-template-columns: 1fr; text-align: center; }
    
    .hero h1 { font-size: 2rem; }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .lang-toggle {
        padding: 2px;
    }
    
    .lang-toggle a, .lang-toggle span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .detailed-card, .tech-card, .testimonial-card, .blog-card {
        padding: 20px;
    }
}