/* --- MODERN SCROLLBAR & SMOOTHING --- */
html {
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
background-color: #020617;
}

::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #020617;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(to bottom, #1e293b, #38bdf8);
border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
background: #7dd3fc;
}

/* --- ANA ANİMASYONLAR --- */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes avatarGlow {
0%, 100% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.6); }
}

@keyframes borderGlow {
0%, 100% { border-color: rgba(56, 189, 248, 1); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
50% { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 30px rgba(56, 189, 248, 0.4); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-up { animation: fadeInUp 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards; }

/* --- İSTATİSTİK KARTLARI (Görseldeki Haraketli Yapı) --- */
.stats-grid {
display: flex;
justify-content: center;
gap: 24px;
padding: 20px;
flex-wrap: wrap;
}

.stat-card {
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 20px;
padding: 24px 40px;
min-width: 200px;
text-align: center;
transition: all 0.4s ease;
animation: fadeInUp 0.6s ease-out backwards;
}

/* Orta karttaki mavi çerçeve ve parlama efekti */
.stat-card.featured {
border: 1px solid #38bdf8;
animation: fadeInUp 0.6s ease-out backwards, borderGlow 3s infinite ease-in-out;
}

.stat-card:hover {
transform: translateY(-8px);
background: rgba(30, 41, 59, 0.6);
}

.stat-value {
font-size: 2.25rem;
font-weight: 800;
color: #38bdf8;
margin-bottom: 4px;
display: block;
}

.stat-label {
font-size: 0.875rem;
color: rgba(255, 255, 255, 0.6);
font-weight: 500;
}

/* --- EKİP GRID --- */
.team-grid {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
width: 100%;
}

.member-card {
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 24px;
padding: 16px;
width: 160px;
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover {
transform: translateY(-5px);
background: rgba(30, 41, 59, 0.6);
border-color: rgba(56, 189, 248, 0.3);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.avatar-wrapper {
width: 60px;
height: 60px;
margin-bottom: 12px;
border-radius: 50%;
padding: 2px;
border: 2px solid rgba(56, 189, 248, 0.5);
box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.avatar-wrapper img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}

.member-name {
font-size: 0.95rem;
font-weight: 800;
color: #ffffff;
letter-spacing: -0.01em;
}

.role-badge {
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 4px 10px;
border-radius: 100px;
display: flex;
align-items: center;
gap: 6px;
margin-top: 4px;
}

.dot {
width: 6px;
height: 6px;
border-radius: 50%;
display: inline-block;
}

.role-text {
font-size: 0.6rem;
font-weight: 700;
color: rgba(255, 255, 255, 0.7);
text-transform: uppercase;
letter-spacing: 0.05em;
}

/* --- SAĞ MENÜ (DYNAMICS) --- */
#sideNav button {
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform: scale(0.9);
filter: grayscale(0.5);
opacity: 0.6;
}

#sideNav button:hover, #sideNav button.active {
transform: scale(1.1);
filter: grayscale(0);
opacity: 1;
}

#sideNav button.active {
background: linear-gradient(135deg, #38bdf8, #818cf8) !important;
box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- GENEL TASARIM ARAÇLARI --- */
.glass {
background: rgba(15, 23, 42, 0.75);
backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
background: linear-gradient(135deg, #fff 0%, #38bdf8 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

/* --- MOBİL OPTİMİZASYONU --- */
@media (max-width: 768px) {
.stats-grid { flex-direction: column; align-items: center; }
.stat-card { width: 100%; max-width: 300px; }
#sideNav span { display: none !important; }
.member-card { width: 140px; }
}

button:active, .member-card:active, .stat-card:active {
transform: scale(0.96);
}