/* ===== VARIABLES & THEMES ===== */
:root {
    --bg-primary: #070814;
    --bg-secondary: #0b0c1e;
    --bg-card: #12142b;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8d;
    --accent: #00e5ff;
    --accent-rgb: 0, 229, 255;
    --accent-secondary: #7b2ff7;
    --gradient-1: linear-gradient(135deg, #00e5ff 0%, #7b2ff7 100%);
    --border-color: #1e1e38;
    --sidebar-width: 80px;
    --mobile-nav-height: 65px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    --bg-primary: #f4f6f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8b8b9d;
    --accent: #007bb5;
    --accent-rgb: 0, 123, 181;
    --border-color: #e1e4e8;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Poppins', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; transition: background-color 0.4s, color 0.4s; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Erişilebilirlik (A11y) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--accent); color: #000; padding: 8px; z-index: 99999; transition: top 0.3s; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ===== CUSTOM CURSOR (ÖZEL İMLEÇ) ===== */
@media (pointer: fine) {
    body, a, button, input, textarea, .gallery-item { cursor: none !important; }

    .cursor-dot {
        width: 6px;
        height: 6px;
        background: var(--accent);
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        transform: translate(-50%, -50%);
    }
    .cursor-outline {
        width: 30px;
        height: 30px;
        border: 1px solid rgba(var(--accent-rgb), 0.5);
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 999998;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }
    .cursor-hover .cursor-outline {
        width: 50px;
        height: 50px;
        background-color: rgba(var(--accent-rgb), 0.1);
        border-color: transparent;
    }
}

/* ===== PROGRESS & BACK TO TOP ===== */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; background: transparent; }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--gradient-1); }
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: var(--bg-card); color: var(--accent); border: 1px solid var(--border-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); z-index: 999; cursor: pointer; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--bg-primary); }

/* Top Controls */
.top-controls { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; gap: 10px; }
.control-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.control-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; border: none; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--gradient-1); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-icon { width: 48px; height: 48px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition); }
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.w-100 { width: 100%; }

/* Typography & Headers */
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { display: inline-block; padding: 4px 16px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.title-line { width: 50px; height: 3px; background: var(--accent); margin: 0 auto; border-radius: 2px; }

/* Desktop Sidebar Nav */
.sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-width); height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border-right: 1px solid var(--border-color); z-index: 1000; }
.sidebar-links { display: flex; flex-direction: column; gap: 15px; }
.nav-link { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--text-muted); font-size: 1.2rem; position: relative; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.nav-link.active::before { content: ''; position: absolute; left: -15px; height: 50%; width: 3px; background: var(--accent); border-radius: 2px; }
.nav-link::after { content: attr(data-tooltip); position: absolute; left: 60px; background: var(--bg-card); border: 1px solid var(--border-color); padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; opacity: 0; visibility: hidden; pointer-events: none; transition: var(--transition); transform: translateX(-10px); white-space: nowrap; }
.nav-link:hover::after { opacity: 1; visibility: visible; transform: translateX(0); }

/* Mobile Bottom Nav */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: var(--mobile-nav-height); background: var(--bg-card); border-top: 1px solid var(--border-color); z-index: 2000; padding-bottom: env(safe-area-inset-bottom); }
.mobile-nav-links { display: flex; justify-content: space-around; align-items: center; height: 100%; padding: 0 10px; }
.m-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 100%; color: var(--text-muted); font-size: 1.3rem; transition: var(--transition); }
.m-nav-link.active { color: var(--accent); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-left: var(--sidebar-width); }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-greeting { color: var(--accent); font-weight: 600; margin-bottom: 5px; }
.hero-name { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.hero-title { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 20px; font-weight: 400; }
.typing-text { color: var(--accent); font-weight: 600; }
.cursor { animation: blink 1s infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.hero-description { color: var(--text-muted); margin-bottom: 30px; font-size: 1rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.image-wrapper { width: 320px; height: 320px; border-radius: 50%; overflow: hidden; border: 3px solid var(--border-color); background: var(--bg-card); padding: 10px; }
.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ===== SKILLS ===== */
.skills-section { padding: 100px 0; padding-left: var(--sidebar-width); background: var(--bg-secondary); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 50px; }
.skill-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 15px; }
.skill-icon { width: 45px; height: 45px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.skill-info { flex: 1; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; font-weight: 600; }
.skill-bar { height: 6px; background: var(--bg-primary); border-radius: 3px; overflow: hidden; }
.skill-progress { height: 100%; background: var(--accent); width: 0; transition: width 1.5s ease; }
.github-chart-container { background: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; }
.github-chart-container h3 { margin-bottom: 20px; font-size: 1.1rem; }

/* ===== PORTFOLIO ===== */
.portfolio-section { padding: 100px 0; padding-left: var(--sidebar-width); }
.portfolio-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: 20px; font-size: 0.9rem; transition: var(--transition); cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.portfolio-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.portfolio-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-image-area { height: 180px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(var(--accent-rgb), 0.1); border-bottom: 1px solid var(--border-color); }
.card-content { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.card-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-content p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-pill { font-size: 0.75rem; padding: 4px 10px; border: 1px solid rgba(var(--accent-rgb), 0.3); color: var(--text-muted); border-radius: 4px; }
.card-actions { display: flex; gap: 10px; }
.btn-small { padding: 6px 14px; font-size: 0.85rem; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); border-radius: 6px; border: none; font-weight: 500; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-small:hover:not(.disabled) { background: var(--accent); color: var(--bg-primary); }
.btn-small.disabled { opacity: 0.6; background: var(--bg-secondary); color: var(--text-muted); cursor: not-allowed; }

/* ===== GALLERY ===== */
.gallery-section { padding: 100px 0; padding-left: var(--sidebar-width); background: var(--bg-primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-card); border: 1px solid var(--border-color); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay { position: absolute; inset: 0; background: rgba(7, 8, 20, 0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); backdrop-filter: blur(2px); color: #fff; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2.5rem; color: var(--accent); margin-bottom: 10px; transform: translateY(20px); transition: all 0.4s ease; }
.gallery-item:hover .gallery-overlay i { transform: translateY(0); }
.gallery-overlay h4 { font-size: 1rem; font-weight: 500; text-align: center; padding: 0 15px; transform: translateY(20px); transition: all 0.4s ease 0.1s; opacity: 0;}
.gallery-item:hover .gallery-overlay h4 { transform: translateY(0); opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: var(--text-secondary); cursor: pointer; transition: color 0.3s; z-index: 100000; }
.lightbox-close:hover { color: var(--accent); }
.lightbox-content { max-width: 90%; max-height: 85vh; width: auto; position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0, 229, 255, 0.15); object-fit: contain; }

/* ===== EDUCATION & EXPERIENCE ===== */
.education-section { padding: 100px 0; padding-left: var(--sidebar-width); background: var(--bg-secondary); }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.column-title { text-align: center; margin-bottom: 40px; }
.badge { font-size: 0.8rem; padding: 6px 15px; border: 1px solid var(--border-color); border-radius: 20px; color: var(--accent); background: var(--bg-card); letter-spacing: 1px; }
.timeline { border-left: 2px solid var(--border-color); padding-left: 30px; margin-left: 15px; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot { position: absolute; left: -36px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); outline: 4px solid var(--bg-secondary); }
.timeline-box { background: var(--bg-card); border: 1px solid var(--border-color); padding: 20px; border-radius: 12px; display: flex; gap: 15px; }
.timeline-icon { width: 40px; height: 40px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 1.2rem; flex-shrink: 0; }
.timeline-content h4 { font-size: 1.1rem; margin-bottom: 5px; }
.timeline-company { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 5px; }
.timeline-location { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px; }
.timeline-list { padding-left: 15px; list-style-type: disc; color: var(--text-secondary); font-size: 0.85rem; }

/* ===== CONTACT ===== */
.contact-section { padding: 100px 0; padding-left: var(--sidebar-width); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.clickable-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; transition: var(--transition); }
.clickable-card:hover { border-color: var(--accent); transform: translateX(5px); }
.contact-card.qr-card { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; }
.contact-icon { width: 45px; height: 45px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.2rem; flex-shrink: 0; }
.contact-details h4 { font-size: 1rem; margin-bottom: 2px; }
.contact-details p { font-size: 0.85rem; color: var(--text-secondary); }

.contact-form-wrapper { background: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-family: inherit; font-size: 0.9rem; transition: var(--transition); resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1); }
.form-status { margin-top: 15px; font-size: 0.9rem; text-align: center; display: none; padding: 10px; border-radius: 8px; }
.form-status.success { display: block; background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid #00ff88; }
.form-status.error { display: block; background: rgba(255, 45, 149, 0.1); color: #ff2d95; border: 1px solid #ff2d95; }


/* ===== ANIMATIONS & RESPONSIVE ===== */
.fade-in, .fade-in-left, .fade-in-right { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: translate(0); }

/* --- TABLET VE KÜÇÜK LAPTOPLAR (1024px ve altı) --- */
@media (max-width: 1024px) {
    .sidebar { display: none; } /* Masaüstü menüyü gizle */
    .mobile-nav {
        display: block;
        background: rgba(18, 20, 43, 0.85); /* Modern yarı şeffaf arka plan */
        backdrop-filter: blur(15px); /* Cam efekti */
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .gallery-section { padding-left: 0; }

    /* Mobil menü yüksekliği kadar alttan boşluk bırak ki içerikler menünün altında kalmasın */
    .hero-section, .skills-section, .portfolio-section, .education-section, .contact-section {
        padding-left: 0;
        padding-bottom: calc(var(--mobile-nav-height) + 50px);
    }

    .hero-container { flex-direction: column; text-align: center; justify-content: center; margin-top: 40px; }
    .hero-buttons { justify-content: center; }
    .education-grid { grid-template-columns: 1fr; }
    .top-controls { top: 15px; right: 15px; }
}

/* --- MOBİL TELEFONLAR (768px ve altı) --- */
@media (max-width: 768px) {
    /* Grid yapılarını tek kolona düşür */
    .contact-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } /* Mobilde yan yana 2 resim */

    /* Tipografi (Yazı Boyutları) Küçültmesi */
    .hero-name { font-size: 2.2rem; }
    .hero-title { font-size: 1.2rem; }
    .section-title { font-size: 1.8rem; }

    /* Görsel Boyutlandırmaları */
    .image-wrapper { width: 220px; height: 220px; margin: 0 auto; }
    .github-chart-img { min-width: 600px; } /* Github grafiği bozulmasın diye */
    .github-chart-container { overflow-x: auto; padding: 15px; } /* Yana kaydırılabilir yap */

    /* İletişim QR Kartı Mobilde Alt Alta Gelsin */
    .contact-card.qr-card { flex-direction: column; text-align: center; gap: 15px; }
    .contact-card.qr-card div { flex-direction: column; }
}

/* --- KÜÇÜK EKRANLI TELEFONLAR (480px ve altı) --- */
@media (max-width: 480px) {
    /* Ana Ekran Butonları Tam Genişlik Olsun */
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
    .hero-buttons .btn, .hero-buttons .btn-outline { width: 100%; justify-content: center; }

    /* GitHub ve LinkedIn butonlarını yan yana grupla */
    .hero-buttons .btn-icon { flex: 1; }
    .hero-buttons { display: grid; grid-template-columns: 1fr 1fr; }
    .hero-buttons .btn-primary { grid-column: 1 / -1; }
    .hero-buttons .btn-outline { grid-column: 1 / -1; }

    /* Timeline (Zaman Çizelgesi) Çizgilerini Mobilde Kaydır */
    .timeline { padding-left: 20px; margin-left: 5px; }
    .timeline-dot { left: -26px; }
    .timeline-box { padding: 15px; flex-direction: column; text-align: center; align-items: center; }
}

/* Reduced Motion Preference A11y */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ERROR HANDLING STYLES ===== */
.error-msg-container {
    grid-column: 1 / -1; text-align: center; padding: 40px 20px; background: rgba(255, 45, 149, 0.05); border: 1px dashed #ff2d95; border-radius: 16px; margin: 20px 0;
}
.error-icon { font-size: 3rem; color: #ff2d95; margin-bottom: 15px; display: block; }
.error-title { color: #fff; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.error-text { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.btn-retry { padding: 10px 20px; background: rgba(255, 45, 149, 0.1); color: #ff2d95; border: 1px solid #ff2d95; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-retry:hover { background: #ff2d95; color: #fff; }

/* ===== CLS ÖNLEMİ: ASPECT RATIO ===== */
.image-wrapper { aspect-ratio: 1 / 1; }
.card-image-area { aspect-ratio: 16 / 9; }
.gallery-item { aspect-ratio: 1 / 1; }
.timeline-img-logo, .logo-preview { aspect-ratio: 1 / 1; }

/* ===== SKELETON LOADER (HAYALET ŞABLON) ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, #1e1e38 50%, var(--bg-card) 75%);
    background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 8px; display: block;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { width: 100%; height: 350px; margin-bottom: 20px; }
.skeleton-text { width: 100%; height: 15px; margin-bottom: 10px; }
.skeleton-title { width: 60%; height: 25px; margin-bottom: 15px; }
.skeleton-icon { width: 45px; height: 45px; border-radius: 10px; }

/* =========================================
   YENİ EKLENEN MODÜLLER (HİZMETLER, BLOG, REFERANSLAR)
   ========================================= */

/* --- HİZMETLER (SERVICES) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}
.service-card h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- BLOG / MAKALELER --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}
.blog-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.1);
}
.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}
.blog-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}
.blog-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}
.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}
.blog-read-more {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.blog-read-more:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* --- REFERANSLAR (TESTIMONIALS) CSS KAYDIRMA --- */
.testimonials-wrapper {
    margin-top: 40px;
    width: 100%;
    overflow: hidden;
}
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Scrollbar gizleme */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}
.testimonials-slider::-webkit-scrollbar {
    height: 8px;
}
.testimonials-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.testimonial-card {
    min-width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    scroll-snap-align: center;
    position: relative;
    flex-shrink: 0;
}
.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(0, 229, 255, 0.05);
}
.test-text {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.test-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}
.test-info h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.test-info span {
    color: var(--primary-color);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
    }
}