/* ==========================================================================
   ZAFER GÜVEN KİŞİSEL WEB SİTESİ - MODERN DARK MODE CSS
   ========================================================================== */

/* --- CSS DEĞİŞKENLERİ & TEMA --- */
:root {
    --bg-dark: #080b12;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 242, 254, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #9d4edd;
    
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-accent: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- SIFIRLAMA & TEMEL STİLLER --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Özel Kaydırma Çubuğu (Scrollbar) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- ANİMASYONLU ARKA PLAN EFEKTLERİ (GPU HIZLANDIRMALI & SIFIR KASMA) --- */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    contain: strict;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.35;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: floatOrb 24s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.45) 0%, rgba(0, 242, 254, 0.08) 50%, transparent 70%);
    top: -120px;
    left: -120px;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.4) 0%, rgba(157, 78, 221, 0.08) 50%, transparent 70%);
    bottom: -150px;
    right: -120px;
    animation-delay: -8s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.35) 0%, rgba(79, 172, 254, 0.06) 50%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
}

@keyframes floatOrb {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(60px, 45px, 0) scale(1.1);
    }
}

/* --- CAM EFEKTİ (GLASSMORPHISM OPTİMİZE) --- */
.glass-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    contain: paint;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-card);
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: translateY(-4px);
}

/* --- YAZI STİLLERİ & BUTONLAR --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #040914;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* --- ÜST MENÜ (HEADER & NAVBAR) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    background: rgba(8, 11, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    will-change: padding, background-color;
}

.site-header.scrolled {
    padding: 0.85rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Sol Logo ve Yazı */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-normal);
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-link:hover .logo-wrapper {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Orta Nav Menüsü */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Sağ Sosyal Medya İkonları */
.header-socials {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.social-icon-btn:hover {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

/* Mobil Hamburger Butonu */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* --- BÖLÜM YAPISI VE BAŞLIKLAR --- */
.section {
    padding: 7rem 0 4rem;
    position: relative;
}

.section-header {
    margin-bottom: 3.5rem;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 1rem auto 0;
    font-size: 1.05rem;
}

/* --- HERO SECTION (AÇILIŞ/KARŞILAMA EKRANI) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 1.25rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.hero-short-bio {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Quick Tech Bar */
.tech-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.tech-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.tech-item i {
    color: var(--accent-cyan);
}

/* --- HAKKIMDA SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    padding: 2.25rem;
}

.about-icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-icon-header i {
    font-size: 1.75rem;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.about-icon-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.skill-tag i {
    color: var(--accent-cyan);
}

.skill-tag:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    transform: translateY(-2px);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.75rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- SERTİFİKALARIM SECTION --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cert-card {
    background: rgba(11, 18, 30, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 20px;
    padding: 1.5rem 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.15);
}

.cert-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.cert-icon-box {
    width: 54px;
    height: 54px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cert-card:hover .cert-icon-box {
    transform: scale(1.05);
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.cert-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 2px;
}

.cert-year {
    font-size: 1.15rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.35;
    margin: 0;
}

.cert-desc {
    font-size: 0.98rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* İlk 3 sertifikadan sonrasını başlangıçta gizle */
.certs-grid .cert-card:nth-child(n+4) {
    display: none;
}

/* Yeni açılan kartlar için akıcı animasyon */
.certs-grid .cert-card.cert-animating {
    animation: fadeInCard 0.4s ease forwards;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sertifikaları Göster / Gizle Buton Alanı */
.certs-more-container {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.certs-toggle-btn,
.certs-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.certs-toggle-btn i {
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.certs-toggle-btn:hover {
    background: var(--gradient-primary);
    color: #040914;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
    transform: translateY(-3px);
}

.certs-toggle-btn:hover i {
    color: #040914;
}

.certs-reset-btn {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-secondary);
}

.certs-reset-btn i {
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.certs-reset-btn:hover {
    background: rgba(255, 77, 109, 0.15);
    border-color: rgba(255, 77, 109, 0.4);
    color: #ff4d6d;
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.25);
    transform: translateY(-3px);
}

.certs-reset-btn:hover i {
    color: #ff4d6d;
}

/* --- PROJELERİM & KATEGORİLER SECTION --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-img-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.category-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img {
    transform: scale(1.04);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 18, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.view-tag {
    background: var(--gradient-primary);
    color: #040914;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.category-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.category-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-count {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    font-family: var(--font-mono);
}

.category-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.category-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.link-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.category-card:hover .link-text {
    gap: 0.75rem;
}

/* --- FOOTER & SOSYAL MEDYA --- */
.site-footer {
    background: rgba(4, 7, 12, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-top {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-social-btn i {
    font-size: 1.1rem;
}

.footer-social-btn:hover {
    color: #fff;
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 1.75rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* --- MODAL / POPUP PENCERESİ STİLLERİ --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    will-change: opacity, visibility;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.glass-modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-backdrop.active .glass-modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.modal-category-badge {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: transparent;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: #040914;
    box-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Projects inside Modal */
.project-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: var(--transition-fast);
}

.project-item-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.04);
}

.project-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.project-item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.project-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.project-item-details {
    min-width: 0;
    flex: 1;
}

.project-item-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-item-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Görüntüle Butonu */
.btn-view-project {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-view-project:hover {
    background: var(--gradient-primary);
    color: #040914;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.btn-view-project.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Genişleyen Detay Alanı (Akordeon) */
.project-expand-area {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInDetail 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-expand-area.open {
    display: block;
}

@keyframes fadeInDetail {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-detail-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Proje Genişleme / Detay Görsel ve Video Bölümü */
.project-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.project-detail-img-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-detail-img-box img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-detail-img-box:hover img {
    transform: scale(1.03);
}

.project-video-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 242, 254, 0.25);
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* Grid içinde doğru yükseklik hesabı için */
    width: 100%;
    align-self: stretch;
}

.project-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-youtube-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    align-self: flex-start;
}

.btn-youtube-watch:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.35);
    transform: translateY(-2px);
}

/* Donanım ve Malzeme Kutusu */
.project-hardware-card {
    background: rgba(0, 242, 254, 0.04);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    margin: 0.85rem 0;
}

.project-hardware-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-hardware-text {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.project-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.project-tech-tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(0, 242, 254, 0.06);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-note code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-cyan);
}

/* Cert Modal Specific */
.cert-modal-box {
    max-width: 550px;
}

.cert-modal-icon {
    font-size: 3.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.cert-modal-issuer {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cert-modal-date {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.cert-modal-desc {
    color: var(--text-secondary);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
    .header-socials {
        display: none;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Genel ve Düzen */
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4.5rem 0 2.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    /* Üst Menü / Navbar */
    .header-socials {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(8, 11, 18, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }
    
    /* Hero / Karşılama Bölümü */
    .hero-section {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 3.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-short-bio {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
        margin-bottom: 2.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .tech-bar {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    /* Hakkımda Bölümü */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .skills-grid {
        gap: 0.5rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    /* Sertifikalarım Bölümü */
    .certs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-card {
        padding: 1.5rem;
    }

    /* Projelerim Bölümü */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-info {
        padding: 1rem;
    }

    /* Modallar */
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    /* Contact modal mobilde ortada açılsın (bottom-sheet değil) */
    .modal-backdrop:has(.contact-modal-box) {
        align-items: center;
        padding: 1rem;
    }

    .glass-modal {
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        width: 100%;
    }

    /* Contact modal köşelerinin tamamı yuvarlak */
    .contact-modal-box {
        border-radius: var(--radius-lg);
        max-height: 88vh;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-title {
        font-size: 1.15rem;
    }
    
    .modal-tabs {
        padding: 0.65rem 0.85rem;
    }

    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
        flex-wrap: nowrap;
    }

    .modal-note {
        font-size: 0.78rem;
    }

    .modal-footer .btn {
        width: auto;
        min-width: 90px;
        flex-shrink: 0;
    }
    
    /* Proje Listesi - Mobil */
    .project-item-card {
        padding: 1rem;
    }

    .project-item-top {
        flex-wrap: nowrap;
    }

    .project-item-details h4 {
        font-size: 0.9rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .project-item-details p {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .project-item-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-view-project {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    /* Proje Resim + Video - Alt Alta */
    .project-media-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-img-box img {
        max-height: 220px;
    }

    .contact-form-body {
        padding: 1.25rem;
    }

    /* Footer / Alt Bölüm */
    .footer-socials {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .footer-social-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skill-tag {
        font-size: 0.82rem;
        padding: 0.4rem 0.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Kategoriler 480px altında tek sütun */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Proje listesinde başlık taşmasın */
    .project-item-main {
        gap: 0.75rem;
    }

    .modal-footer .btn-primary {
        font-size: 0.9rem;
        padding: 0.7rem 1.25rem;
    }

    /* 480px altında da resim + video alt alta */
    .project-media-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-img-box img {
        max-height: 180px;
    }
}

/* --- İLETİŞİM FORMU MODALİ STİLLERİ --- */
.contact-modal-box {
    max-width: 580px;
}

.contact-form-body {
    padding: 1.75rem 2rem;
}

.contact-form-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.18);
    border-radius: var(--radius-md);
}

.contact-form-desc i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-form-desc strong {
    color: var(--accent-cyan);
}

/* Form Grupları */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.12);
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #ff4d6d;
    background: rgba(255, 77, 109, 0.05);
}

/* Form Uyarı Alanı */
.form-alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.form-alert.success {
    background: rgba(0, 242, 100, 0.1);
    border: 1px solid rgba(0, 242, 100, 0.3);
    color: #00f264;
}

.form-alert.error {
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    color: #ff4d6d;
}
