/* ==========================================================================
   ==========================================================================
             ⭐⭐⭐ HOME / INDEX SAYFASINA AIT CSS KODLARI ⭐⭐⭐
   ==========================================================================
   ========================================================================== */

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-avatar-box {
    width: 170px;
    height: 170px;
    margin: 0 auto 30px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.4);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    }

    100% {
        box-shadow: 0 0 60px rgba(236, 72, 153, 0.6);
    }
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-body);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

    .hero h1 span {
        background: linear-gradient(to right, var(--primary), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- ABOUT LAYOUT --- */
.about-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.about-main {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-box {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    border-radius: 20px;
}

/* --- GITHUB GRAPH --- */
.github-graph {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
    justify-content: flex-start;
}

.gh-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

    .gh-box:hover {
        transform: scale(1.2);
    }

/* --- SKILLS --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skill-box {
    padding: 30px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

    .skill-tag:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(99, 102, 241, 0.1);
    }


/* ==========================================================================
   ⭐⭐⭐ EŞİTLENMİŞ PROJELER VE SERTİFİKALAR (YENİ SİSTEM) ⭐⭐⭐
   ========================================================================== */

/* PROJELER GRID YAPISI */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* PROJE KARTI (Sertifika ile Aynı Kavis ve Boyut) */
.modern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 100%;
}

    .modern-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    }

/* RESİM KAPSAYICI (Kenar Boşlukları Silindi) */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px; /* Sertifika ile birebir aynı */
    margin: 0;
    overflow: hidden;
}

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.modern-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* KART İÇERİĞİ */
.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 8px;
}

.modern-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tech-badge {
    background: rgba(255,255,255,0.05);
    color: #e4e4e7;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* PROJE FOOTER (BUTONLAR) */
.card-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.card-footer-links {
    display: flex;
    gap: 10px;
}

.btn-project-link {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-demo {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

    .btn-demo:hover {
        background: var(--primary);
        color: white;
    }

.btn-github {
    background: rgba(255,255,255,0.05);
    color: #e4e4e7;
    border: 1px solid rgba(255,255,255,0.1);
}

    .btn-github:hover {
        background: rgba(255,255,255,0.15);
        color: white;
    }

/* SERTİFİKALAR GRID */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.cert-item img {
    border-radius: 12px;
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.cert-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.cert-info {
    padding: 15px;
    text-align: center;
}

    .cert-info h4 {
        margin: 0;
        font-size: 1rem;
    }

    .cert-info span {
        font-size: 0.85rem;
        color: var(--primary);
    }

/* --- TIMELINE --- */
.edu-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--bg-body);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

/* --- BLOG & CONTACT --- */
.blog-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.read-more {
    margin-top: auto;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-main);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

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

/* --- OTHER ELEMENTS --- */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}

.workflow-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}

    .workflow-tag:hover {
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-2px);
    }

    .workflow-tag i {
        color: var(--secondary);
    }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .about-grid-layout {
        grid-template-columns: 1fr;
    }

    .about-side {
        flex-direction: row;
    }

    .side-box {
        flex: 1;
    }

    .edu-exp-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-side {
        flex-direction: column;
    }
}

/* --- 3D HERO CSS --- */
.hero-3d-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    padding-top: 60px;
}

.hero-bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    max-width: 1300px;
    width: 100%;
    padding: 0 30px;
    align-items: center;
    z-index: 2;
}

.hero-text h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .hero-text h2::before {
        content: '';
        width: 30px;
        height: 2px;
        background: var(--primary);
        display: block;
    }

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
}

.text-gradient {
    background: linear-gradient(120deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
}

.btn-3d {
    padding: 18px 40px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

    .btn-3d:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
        color: white;
    }

.tilt-card-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.tilt-card {
    width: 380px;
    height: 480px;
    background: rgba(20, 20, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-layer-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    transform: translateZ(-50px);
}

.card-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.8);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transform: translateZ(50px);
}

.card-badge {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    margin-top: 25px;
    transform: translateZ(30px);
    backdrop-filter: blur(5px);
}

.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #1e1e24;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.icon-1 {
    top: 40px;
    right: -20px;
    transform: translateZ(70px);
    color: #61dafb;
}

.icon-2 {
    bottom: 60px;
    left: -30px;
    transform: translateZ(80px);
    color: #a855f7;
}

.icon-3 {
    top: 180px;
    left: -40px;
    transform: translateZ(40px);
    color: #0078d4;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text h2 {
        justify-content: center;
    }

    .tilt-card-wrapper {
        margin-top: 50px;
        transform: none !important;
    }

    .tilt-card {
        transform: none !important;
    }
}

/* ==========================================================================
   ⭐⭐⭐ MODERN TAB SİSTEMİ (PROJELER & SERTİFİKALAR) ⭐⭐⭐
   ========================================================================== */
.tab-controls-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-controls {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .tab-btn:hover {
        color: var(--text-main);
    }

    .tab-btn.active {
        background: var(--primary);
        color: white;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }

.tab-content {
    display: none;
    animation: fadeInTab 0.5s ease-in-out;
}

    .tab-content.active-tab {
        display: block;
    }

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   💎 ULTRA-PROFESSIONAL LIGHT MODE (STRIPE / VERCEL ESTETİĞİ) 💎
   Tailwind uses class-based dark mode: <html class="dark">
   So light mode = html:not(.dark)
   ========================================================================== */

html:not(.dark) body {
    background: #f8fafc !important;
    background-image: radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.03) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.03) 0px, transparent 50%) !important;
}

html:not(.dark) .hero-bg-grid {
    background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px) !important;
    opacity: 0.5 !important;
}

html:not(.dark) .modern-card,
html:not(.dark) .spotlight-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) !important;
    backdrop-filter: none !important;
}

    html:not(.dark) .modern-card:hover,
    html:not(.dark) .spotlight-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
        border-color: #cbd5e1 !important;
    }

    html:not(.dark) .hero-text h1,
    html:not(.dark) .modern-card h3 {
        color: #0f172a !important;
        letter-spacing: -0.02em !important;
    }

html:not(.dark) .text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html:not(.dark) .project-desc {
    color: #475569 !important;
}

html:not(.dark) .btn-demo {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    border-radius: 8px !important;
}

    html:not(.dark) .btn-demo:hover {
        background: #1e293b !important;
        transform: none !important;
    }

html:not(.dark) .btn-github {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    border-radius: 8px !important;
}

    html:not(.dark) .btn-github:hover {
        background: #f8fafc !important;
        border-color: #94a3b8 !important;
        transform: none !important;
    }

html:not(.dark) .tab-controls {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 6px !important;
    box-shadow: none !important;
}

html:not(.dark) .tab-btn {
    border-radius: 8px !important;
    color: #475569 !important;
}

    html:not(.dark) .tab-btn.active {
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        border: 1px solid #e2e8f0 !important;
    }

html:not(.dark) .tech-badge {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 500 !important;
}

html:not(.dark) .card-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* --- Light Mode: GitHub Graph Boxes --- */
html:not(.dark) .gh-box {
    background: rgba(99, 102, 241, 0.08) !important;
}

/* --- Light Mode: Skill Tags (CSS-based ones) --- */
html:not(.dark) .skill-tag {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
    html:not(.dark) .skill-tag:hover {
        background: rgba(99, 102, 241, 0.08) !important;
        border-color: #6366f1 !important;
        color: #6366f1 !important;
    }

/* --- Light Mode: Workflow Tags --- */
html:not(.dark) .workflow-tag {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
    html:not(.dark) .workflow-tag:hover {
        border-color: #6366f1 !important;
        color: #6366f1 !important;
    }

/* --- Light Mode: Tilt Card (Hero 3D Card) --- */
html:not(.dark) .tilt-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

html:not(.dark) .card-badge {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

html:not(.dark) .float-icon {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* --- Light Mode: Progress Bar Container --- */
html:not(.dark) .progress-bar-container {
    background: #e2e8f0 !important;
}

/* --- Light Mode: Aurora Background Suppression --- */
html:not(.dark) .aurora-blob {
    opacity: 0.15 !important;
}

/* 📱 MOBİL UYUM (RESPONSIVENESS) DÜZELTMELERİ */
@media (max-width: 1024px) {
    .about-grid-layout {
        grid-template-columns: 1fr !important;
    }

    .about-side {
        flex-direction: row !important;
        gap: 15px;
    }

    .side-box {
        flex: 1;
    }

    .edu-exp-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .hero h1, .hero-text h1 {
        font-size: 2.8rem !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text h2 {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-3d {
        width: 100%;
        justify-content: center;
    }

    .tilt-card-wrapper {
        height: auto !important;
        margin-top: 40px;
    }

    .tilt-card {
        width: 100% !important;
        max-width: 350px;
    }

    .about-side {
        flex-direction: column !important;
    }

    .section-header h2 {
        font-size: 2.2rem !important;
    }

    .tab-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1, .hero-text h1 {
        font-size: 2.2rem !important;
    }

    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-btns {
        flex-direction: column;
    }
}