:root {
    --grad-green: linear-gradient(135deg, #10b981 0%, #059669 50%, #064e3b 100%);
    --accent-green: #10b981;
    --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
html:not([data-bs-theme="dark"]), 
html[data-bs-theme="light"] {
    background-color: #f0fdf4 !important; /* Senin açık yeşil/beyaz light arka planın */
    color: #0f172a !important;
}

html:not([data-bs-theme="dark"]) body,
html[data-bs-theme="light"] body {
    background-color: #f0fdf4 !important;
    color: #0f172a !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0fdf4;
    color: #0f172a;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

[data-bs-theme="dark"] body { background-color: #020617; color: #f8fafc; }
[data-bs-theme="dark"] .navbar { background: rgba(2, 6, 23, 0.85) !important; }
[data-bs-theme="dark"] .glass-card { background: rgba(255,255,255,0.04); border-color: rgba(16, 185, 129, 0.15); }

h1, h2, h3, h4, .navbar-brand { font-family: 'Outfit', sans-serif; }

.navbar {
    backdrop-filter: blur(20px);
    background: rgba(240, 253, 244, 0.9) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    z-index: 1000;
}

.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index:1; cursor:grab;  touch-action: none;}
.hero-content { position: relative; z-index: 2; pointer-events: none; width: 100%; }
.hero-content a, .hero-content button, .hero-content .profile-card { pointer-events: auto; }


.profile-card {
    background: transparent;
    width: 220px;
    height: 220px;
    perspective: 1000px;
    margin: 0 auto 2rem;
}
.profile-card-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    transition: transform 0.8s; transform-style: preserve-3d;
 }
.profile-card.flipped .profile-card-inner { transform: rotateY(180deg); }
.profile-front, .profile-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 50%; padding: 6px; background: var(--grad-green); }
.profile-back { transform: rotateY(180deg); }

.profile-front img, .profile-back img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.profile-front img { object-position: center 22%; border: 4px solid #f0fdf4; background: white; }
.profile-back img { object-position: center 38%; border-color: rgba(16, 185, 129, 0.3); background: #020617; }
.profile-front { overflow: hidden !important; }

.profile-front .profile-img {
    width: 90%;          /* Resmi tam %100 yapmak yerine %90'a çekip hafif küçülttük */
    height: 90%;         /* Yüksekliği de %90 yaptık */
    margin: 5% auto;     /* Resmi çerçevenin tam ortasına eşitledik */
   object-position: center 50%; 
    border: 4px solid #f0fdf4;
}


.skill-category-wrapper {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
}
[data-bs-theme="dark"] .skill-category-wrapper { background: rgba(2, 6, 23, 0.4); border-color: rgba(16, 185, 129, 0.1); }
.category-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.35rem; color: #064e3b; border-bottom: 2px solid rgba(16, 185, 129, 0.2); padding-bottom: 0.5rem; display: inline-block; }
[data-bs-theme="dark"] .category-title { color: #10b981; }

.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 32px;
    padding: 2.5rem;
    transition: var(--transition);
}
.glass-card:hover { border-color: var(--accent-green); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15); }

.section-title { font-weight: 900; font-size: 2.8rem; margin-bottom: 3.5rem; background: var(--grad-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn-green { background: var(--grad-green); color: #fff !important; font-weight: 800; border-radius: 14px; padding: 12px 36px; border: none; transition: var(--transition); }
.btn-green:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }

.skill-item { text-align: center; padding: 1.2rem; border-radius: 16px; transition: transform 0.3s ease; }
.skill-item:hover { transform: translateY(-5px) scale(1.05); }
.skill-icon { font-size: 3.5rem; margin-bottom: 0.8rem; height: 70px; display: flex; align-items: center; justify-content: center; }

.project-badge { display: inline-block; background: rgba(16,185,129,0.1); color: #059669; border-radius: 8px; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5rem; border: 1px solid rgba(16,185,129,0.3); }
.project-lang-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }

@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
.btn-cv { animation: pulse-green 2s infinite; }
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad-green); z-index: 9999; width: 0%; }
.navbar-brand-gradient { background: var(--grad-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; font-weight: 900; }

.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { display: inline-block; height: 30px; position: relative; width: 60px; }
.theme-switch input { display: none; }
.slider { background-color: #ccc; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; display: flex; justify-content: space-between; align-items: center; padding: 0 5px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.slider:before { background-color: white; bottom: 3px; content: ""; height: 24px; left: 3px; position: absolute; transition: .4s; width: 24px; z-index: 2; }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
input:checked + .slider { background: var(--grad-green); }
input:checked + .slider:before { transform: translateX(30px); }
.slider .fas { font-size: 14px; transition: .4s; z-index: 1; }
.icon-sun { color: #15fa6d; opacity: 1; }
.icon-moon { color: #f8fafc; opacity: 0.3; }
input:checked + .slider .icon-sun { opacity: 0.3; }
input:checked + .slider .icon-moon { opacity: 1; }
[data-bs-theme="dark"] .slider { background-color: #1e293b; }

.cert-card-minimal { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 15px; overflow: hidden; transition: transform 0.4s ease, border-color 0.4s ease; cursor: pointer; height: 250px; display: flex; align-items: center; justify-content: center; padding: 0 !important; }
.cert-card-minimal:hover { transform: translateY(-5px); border-color: #10b981; }
.cert-img-only { width: 100%; height: 100%; object-fit: cover; display: block; }
#certifications { margin-top: 20px; padding-bottom: 60px; }
html, body { max-width: 100%; overflow-x: hidden; position: relative; }
img { max-width: 100%; height: auto; }


@media (max-width: 991px) {
    .hero-section { min-height: auto; padding-top: 140px; padding-bottom: 60px; }
    .hero-content { text-align: center; }
    .profile-card { width: 180px; height: 180px; margin-bottom: 1.5rem; }
    .navbar-collapse { background: rgba(240, 253, 244, 0.98); backdrop-filter: blur(15px); margin-top: 1rem; padding: 1.5rem; border-radius: 24px; border: 1px solid rgba(16, 185, 129, 0.2); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1); }
    [data-bs-theme="dark"] .navbar-collapse { background: rgba(2, 6, 23, 0.98); border-color: rgba(16, 185, 129, 0.15); }
    .w-100-mobile { width: 100% !important; margin: 0.5rem 0; }
    .skill-category-wrapper { padding: 1.2rem; }
    .category-title { font-size: 1.1rem; width: 100%; }
    #hero-canvas{
        pointer-events: none !important;
    }
    
}
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; margin-bottom: 2rem; }
    .display-1 { font-size: 2.5rem; }
    .glass-card { padding: 1.5rem; border-radius: 24px; }
    .cert-card-minimal { height: auto; aspect-ratio: 4/3; }
    .nav-link::after { display: none !important; }
}
@media (hover: none) {
    .glass-card:hover, .skill-item:hover { transform: none !important; box-shadow: none !important; }
}

.hero-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
   
    width: 175px !important; 
    height: 48px !important;  
    padding: 0 !important;    
    
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section .btn-green {
    background: var(--grad-green) !important;
    color: #fff !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important; 
}


.hero-section .btn-green:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35) !important;
    opacity: 0.95;
}


.hero-section .btn-outline-success {
    border: 2px solid #10b981 !important;
    color: #10b981 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-section .btn-outline-success:hover {
    background: var(--grad-green) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35) !important;
}