* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0f172a;
  color: #e0e7ff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  padding-top: 56px;
  position: relative;
  overflow-x: hidden;
}

body.light-mode .slider::before {
  background-image: url('../assets/icons/sun.svg');
  background-color: #b4b4b4;
}

body.light-mode {
  background-color: #f0f4f8;
  color: #1e293b;
}

body.light-mode .sidebar {
  background-color: #e2e8f0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .sidebar-nav a {
  color: #334155;
  text-shadow: none;
}

body.light-mode .sidebar-nav a:hover,
body.light-mode .sidebar-nav a:focus {
  background-color: #2563eb;
  color: #fff;
}

body.light-mode .project-card,
body.light-mode .cert-item,
body.light-mode .ref-card,
body.light-mode .education-item {
  background-color: #f8fafc;
  box-shadow: 0 0 15px rgb(45, 45, 45);
  color: #1e293b;
}

body.light-mode, 
body.light-mode p, 
body.light-mode h1, 
body.light-mode h2, 
body.light-mode a {
  color: #1e293b;
}

body.light-mode .hero {
  background: linear-gradient(135deg, #93c5fd, #e0f2fe);
  box-shadow: 0 0 25px #3b82f6aa;
  color: #1e293b;
}

body.light-mode .hero::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

body.light-mode .hero h1 .ad,
body.light-mode .hero h1 .soyad {
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa, #3b82f6, #2563eb);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

body.light-mode .skill {
  background-color: #dbeafe;
  color: #2563eb;
  box-shadow: 0 0 10px #3b82f6aa;
}

body.light-mode footer {
  background-color: #e2e8f0;
  color: #64748b;
}

.carousel-btn img {
  filter: invert(0);
  transition: filter 0.3s ease;
}

body.light-mode .carousel-btn img {
  filter: invert(0);
}

body.light-mode .social-icons img {
  filter: brightness(0) invert(0.4);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background-color: #1e293b;
  padding: 10px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
  z-index: 100;
  overflow-y: auto;
  max-height: 100vh;
}

.profile-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 90px;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 1px solid #000;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  user-select: none;
  margin-bottom: 20px;
  position: relative;
  top: 15px;
  background-color: transparent;
}

.profile-img:hover {
  box-shadow: 0 0 25px #2563eb88;
  transform: scale(1.05);
}

.profile-quote {
  position: absolute;
  top: 235px;
  left: 50%;
  transform: translateX(-50%);
  color: #e0e7ff;
  background: #00000062;
  padding: 6px 7px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cv-download-btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
  border: 2px solid rgba(96, 165, 250, 0.3);
}

.cv-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(96, 165, 250, 0.6);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(96, 165, 250, 0.5);
}

body.light-mode .cv-download-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(37, 99, 235, 0.3);
}

body.light-mode .cv-download-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(37, 99, 235, 0.5);
}

@media (max-width: 768px) {
  .profile-container {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
  }
  .profile-img {
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
    top: 0;
  }
  .profile-quote {
    top: 130px;
    font-size: 0.9rem;
    padding: 4px 6px;
    margin-top: 6px;
  }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
  margin-bottom: 0;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

.sidebar-nav a {
  text-decoration: none;
  color: #94a3b8;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0 12px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
  text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background-color: #2563eb;
  color: #e0e7ff;
  outline: none;
}

.content {
  margin-left: 260px;
  padding: 60px 40px;
  flex: 1;
  overflow-y: auto;
  max-height: 100vh;
  position: relative;
  z-index: 1;
}

.hero {
  background: linear-gradient(135deg, #0284c7, #0f172a);
  padding: 80px 40px;
  border-radius: 12px;
  margin-bottom: 50px;
  box-shadow: 0 0 25px #2563eb44;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.hero h1 .ad,
.hero h1 .soyad {
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #93c5fd, #60a5fa, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

.section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 24px 24px 28px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.section:nth-of-type(even) {
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.99), rgba(15, 23, 42, 0.9));
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 25px;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 6px;
}

body.light-mode .section {
  background: radial-gradient(circle at top left, #ffffff, #e7f0ff);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.28);
  border-color: rgba(148, 163, 184, 0.4);
}

body.light-mode .section:nth-of-type(even) {
  background: radial-gradient(circle at top right, #f9fbff, #eaf3ff);
}

body.light-mode .section h2 {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skill {
  background-color: #1e293b;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  color: #60a5fa;
  box-shadow: 0 0 10px #2563eb44;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
  transition: left 0.5s ease;
}

.skill:hover {
  transform: scale(1.1) translateY(-3px);
  cursor: default;
  box-shadow: 0 5px 20px #2563eb88, 0 0 30px rgba(56, 189, 248, 0.4);
  color: #93c5fd;
}

.skill:hover::before {
  left: 100%;
}

.projects-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.projects-grid.show-all .project-fade {
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.project-fade {
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.projects-grid:not(.show-all) .project-fade[data-index="1"] {
  opacity: 1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
}

.projects-grid:not(.show-all) .project-fade[data-index="2"] {
  opacity: 1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
}

.projects-grid:not(.show-all) .project-fade[data-index="3"] {
  opacity: 1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
}

.projects-grid:not(.show-all) .project-fade[data-index="4"] {
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.projects-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  padding: 0 1rem 0.5rem 1rem;
}

.projects-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.projects-toggle-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.projects-toggle-btn svg {
  width: 20px;
  height: 20px;
}

body.light-mode .projects-toggle-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

body.light-mode .projects-toggle-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.project-card {
  background-color: #1e293b;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
  height: 100%;
  transform-style: preserve-3d;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4), 0 0 60px rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
}

.project-card:not(:hover) {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
  height: 4px;
  animation: shimmer 1.5s ease infinite;
}

.project-card:hover::after {
  opacity: 1;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.project-card h3 {
  color: #38bdf8;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(56, 189, 248, 0.2);
  height: 3.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  line-height: 1.2;
  word-break: break-word;
}

.project-card p {
  color: #cbd5e1;
  line-height: 1.6;
  flex-grow: 1;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.btn {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ref-card .project-buttons .btn {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.55);
  border-color: rgba(56, 189, 248, 0.5);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.9rem 1.8rem;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.75);
  color: #ffffff;
  text-decoration: none;
}

.ref-card .project-buttons .btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.8);
  text-decoration: none;
}

.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cert-item {
  background-color: transparent;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 0 12px #2563eb44;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  cursor: default;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.cert-item:hover {
  box-shadow: 0 0 25px #2563eb88;
  transform: translateY(-5px);
  background-color: rgba(15, 23, 42, 0.85);
}

.cert-item h4 {
  color: #38bdf8;
  margin-bottom: 8px;
}

.cert-with-thumb {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cert-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
}

.cert-content {
  flex: 1;
}

.question-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(37, 99, 235, 0.08));
  padding: 32px 28px;
  border-radius: 18px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  text-align: center;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
  transition: all 0.4s ease;
}

.question-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
}

.question-card h3 {
  font-size: 1.5rem;
  color: #38bdf8;
  margin-bottom: 8px;
}

.question-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.question-form {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.required-star {
  color: #ef4444;
  margin-left: 2px;
}

.question-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.question-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.question-input::placeholder {
  color: #64748b;
}

.question-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

body.light-mode .form-group label {
  color: #475569;
}

body.light-mode .question-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.3);
  color: #1e293b;
}

body.light-mode .question-input:focus {
  border-color: rgba(37, 99, 235, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.light-mode .question-input::placeholder {
  color: #94a3b8;
}

.question-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .question-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .question-options-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.question-option-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(37, 99, 235, 0.05));
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 160px;
}

.question-option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(37, 99, 235, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.question-option-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 
    0 12px 32px rgba(56, 189, 248, 0.3),
    0 0 0 4px rgba(56, 189, 248, 0.1);
}

.question-option-card:hover::before {
  opacity: 1;
}

.question-option-card:active {
  transform: translateY(-4px) scale(1.01);
}

.option-icon {
  font-size: 3rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.question-option-card:hover .option-icon {
  transform: scale(1.15) rotate(5deg);
}

.option-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #38bdf8;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.question-option-card:hover .option-title {
  color: #60a5fa;
}

.option-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.question-option-card:hover .option-desc {
  color: #cbd5e1;
}

.question-option-card.selected {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.12));
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 
    0 8px 24px rgba(56, 189, 248, 0.4),
    inset 0 0 20px rgba(56, 189, 248, 0.1);
}

.question-option-card.selected .option-title {
  color: #60a5fa;
}

.question-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.question-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.question-btn:hover::before {
  width: 300px;
  height: 300px;
}

.question-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.question-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.question-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.question-submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.question-submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.question-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.question-submit-btn:active {
  transform: translateY(-1px);
}

.question-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.question-submit-btn svg {
  transition: transform 0.3s ease;
}

.question-submit-btn:hover svg {
  transform: translateX(4px);
}

body.light-mode .question-submit-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

body.light-mode .question-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
}

.question-thanks {
  margin-top: 20px;
  padding: 16px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.question-thanks p {
  margin: 8px 0;
  color: #38bdf8;
  font-weight: 600;
}

.question-links {
  margin-top: 12px;
}

.question-links a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.question-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

body.light-mode .question-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

body.light-mode .question-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

body.light-mode .question-card h3 {
  color: #2563eb;
}

body.light-mode .question-subtitle {
  color: #64748b;
}

body.light-mode .question-option-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(59, 130, 246, 0.04));
  border-color: rgba(37, 99, 235, 0.25);
}

body.light-mode .question-option-card::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.06));
}

body.light-mode .question-option-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 
    0 12px 32px rgba(37, 99, 235, 0.25),
    0 0 0 4px rgba(37, 99, 235, 0.1);
}

body.light-mode .option-title {
  color: #2563eb;
}

body.light-mode .question-option-card:hover .option-title {
  color: #3b82f6;
}

body.light-mode .option-desc {
  color: #64748b;
}

body.light-mode .question-option-card:hover .option-desc {
  color: #475569;
}

body.light-mode .question-option-card.selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.1));
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 
    0 8px 24px rgba(37, 99, 235, 0.3),
    inset 0 0 20px rgba(37, 99, 235, 0.08);
}

body.light-mode .question-option-card.selected .option-title {
  color: #3b82f6;
}

body.light-mode .question-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

body.light-mode .question-btn:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

body.light-mode .question-thanks {
  background: rgba(37, 99, 235, 0.08);
}

body.light-mode .question-thanks p {
  color: #2563eb;
}

body.light-mode .question-links a {
  color: #3b82f6;
}

body.light-mode .question-links a:hover {
  color: #2563eb;
}

.ref-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.ref-card {
  background-color: #1e293b;
  padding: 25px 30px;
  border-left: 5px solid #38bdf8;
  border-radius: 12px;
  box-shadow: 0 0 25px #2563eb44;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
  color: #e2e8f0;
  width: 100%;
}

.ref-card:hover {
  box-shadow: 0 0 30px #2563eb88;
  transform: translateY(-6px);
}

.ref-card h4 {
  font-size: 1.3rem;
  color: #38bdf8;
  margin-bottom: 12px;
}

.ref-card p {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.ref-card em {
  color: #cbd5e1;
  font-style: normal;
  font-weight: 600;
}

.ref-card a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.ref-card a:hover {
  text-decoration: underline;
}

body.light-mode .ref-card a {
  color: #2563eb;
}

body.light-mode .ref-card a:hover {
  text-decoration: underline;
}

body.light-mode .cert-item:hover,
body.light-mode .education-item:hover,
body.light-mode .project-card:hover,
body.light-mode .ref-card:hover {
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.26), 0 0 40px rgba(96, 165, 250, 0.2);
  background-color: #f3f7ff;
  border-color: rgba(59, 130, 246, 0.3);
}

.education-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.education-item {
  background-color: #1e293b;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 0 25px #2563eb44;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  color: #e2e8f0;
  width: 100%;
}

.education-item:hover {
  box-shadow: 0 0 30px #2563eb88;
  transform: translateY(-6px);
}

.education-item h3 {
  margin-bottom: 8px;
  color: #38bdf8;
}

footer {
  background-color: #1e293b;
  color: #64748b;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    padding-top: 64px !important;
  }

  .sidebar,
  .header,
  .mobile-header {
    display: none !important;
  }
  .sidebar-title, .sidebar-header, .sidebar-top-text {
    display: none !important;
  }

  .content {
    margin-left: 0;
    padding: 20px 15px;
    max-height: none;
    margin-top: 10px !important;
    padding-top: 0 !important;
  }

  .hero {
    padding: 40px 20px;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
    max-width: 600px;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-image {
    height: 180px;
  }

  .project-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .projects-toggle-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .projects-toggle-btn svg {
    width: 18px;
    height: 18px;
  }

  .projects-grid:not(.show-all) .project-fade[data-index="1"] {
    opacity: 1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  }

  .projects-grid:not(.show-all) .project-fade[data-index="2"] {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .projects-grid:not(.show-all) .project-fade[data-index="3"] {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .projects-grid:not(.show-all) .project-fade[data-index="4"] {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

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

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 1rem;
  }

  .project-image {
    height: 160px;
  }

  .project-card h3 {
    font-size: 1.2rem;
    height: 2.4rem;
  }
}

.social-icons a {
  text-decoration: none;
  display: inline-block;
}

.social-icons img {
  width: 50px;
  height: 50px;
  filter: invert(1);
  margin-right: 15px;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.social-icons img:hover {
  filter: invert(0);
  transform: scale(1.4);
}

.switch {
  position: fixed;
  top: 20px;
  right: 50px;
  display: inline-block;
  width: 60px;
  height: 30px;
  z-index: 999;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #38bdf8;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  background-image: var(--switch-icon-bg, url('../assets/icons/moon.svg'));
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  transition: 0.4s, background-color 0.4s;
}

body.light-mode .slider {
  background-color: #b4b4b4;
  transition: background-color 0.4s;
}
body.light-mode .slider::before {
  background-color: #fff;
}

body:not(.light-mode) .slider {
  background-color: #38bdf8;
  transition: background-color 0.4s;
}
body:not(.light-mode) .slider::before {
  background-color: #fff;
}

input:checked + .slider {
  background-color: #0ea5e9;
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto 30px;
  overflow: visible;
  border-radius: 12px;
  text-align: center;
}

.carousel-img {
  width: 75%;
  display: none;
  border-radius: 12px;
  transition: opacity 0.7s ease, transform 0.5s ease;
  box-shadow: 0 0 15px #2563eb88;
  border: 3px solid #000;
  margin: 0 auto;
}

.carousel-img.active {
  display: block;
  opacity: 1;
}

.carousel-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px #2563eb88;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.carousel-btn img {
  width: 50px;
  height: 50px;
  filter: invert(1);
  transition: all 0.3s ease;
}

.carousel-btn img:hover,
.carousel-btn img.active {
  filter: invert(0);
  transform: scale(1.4);
}

.carousel-btn.prev {
  left: calc(12.5% - 80px);
}

.carousel-btn.next {
  right: calc(12.5% - 80px);
}

@media (max-width: 768px) {
  .carousel-btn img {
    width: 40px;
    height: 40px;
  }
  .carousel-btn.prev {
    left: calc(12.5% - 45px);
  }
  .carousel-btn.next {
    right: calc(12.5% - 45px);
  }
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.project-info-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.project-info-row .ref-card {
  flex: 1;
  min-width: 300px;
}

@media (max-width: 768px) {
  .cert-grid,
  .education-grid,
  .projects-grid,
  .ref-grid,
  .skills-grid {
    flex-direction: column;
    gap: 15px;
  }

  .cert-item,
  .education-item,
  .ref-card,
  .project-card,
  .skill {
    width: 100%;
  }

  .project-image {
    width: 100%;
    height: auto;
  }

  .sidebar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar-nav a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  .profile-container {
    display: none;
  }

  .sidebar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .project-buttons {
    flex-wrap: wrap;
  }

  .btn {
    flex: 1;
    text-align: center;
  }

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

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    width: 100%;
    height: 60px;
    padding: 0 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .profile-container {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 0;
  }

  .content {
    margin-left: 0;
    padding: 80px 15px 20px;
    max-height: none;
  }

  .hero {
    padding: 40px 20px;
  }
}

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

  .hero p {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    flex-direction: column;
    gap: 10px;
  }

  .skill {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .sidebar-nav a {
    font-size: 0.9rem;
    padding: 6px 8px;
  }
}

.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 10px 15px;
  color: #fff;
}

.mobile-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-header .profile-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid #fff;
  background-color: transparent;
}

.mobile-header .profile-quote {
  font-size: 13px;
  color: #ccc;
}

.mobile-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger-btn,
.theme-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    left: -260px;
  }

  .sidebar.show-sidebar {
    left: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
    max-width: 600px;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-image {
    height: 180px;
  }

  .project-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero {
    padding: 40px 20px;
  }

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

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 1rem;
  }

  .project-image {
    height: 160px;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.header {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }
  .header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    background: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0.5rem 0.5rem 0 0.5rem;
    gap: 0.5rem;
  }
  .header .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
  }
  .header .nav a {
    flex: 1 1 40%;
    min-width: 120px;
    text-align: center;
    padding: 0.5rem 0.25rem;
  }
  .header .switch {
    align-self: flex-end;
    margin: 0.5rem 0 0 0;
  }
}

@media (min-width: 769px) {
  body {
    padding-top: 0;
  }
}

.mobile-topbar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background: #1e293b;
    z-index: 1002;
    padding: 0 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    gap: 0;
  }
  
  .mobile-topbar .mobile-name {
    order: 2;
    font-size: 1.1rem;
    color: #e0e7ff;
    font-weight: 600;
    margin: 0 10px;
  }

  .mobile-topbar .switch {
    order: 3;
    margin-left: auto;
    margin-right: -35px;
    z-index: 1;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    background: #1e293b;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 0.5rem 0;
    animation: fadeInMenu 0.2s;
  }

  .mobile-menu a {
    color: #e0e7ff;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-bottom: 1px solid #334155;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    border-radius: 0;
    background: none;
    display: block;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus {
    background: #2563eb;
    color: #fff;
  }

  .mobile-menu.show {
    display: flex;
  }

  @media (orientation: landscape) {
    .mobile-menu {
      flex-direction: column;
      padding: 8px;
      max-height: none;
      overflow-y: visible;
    }
    
    .mobile-menu a {
      padding: 0.4rem 2rem;
      border-bottom: 1px solid #334155;
      text-align: left;
      font-size: 1rem;
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus {
      background: #2563eb;
      color: #fff;
    }
  }

  body {
    padding-top: 64px;
  }
}

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

@media (min-width: 769px) {
  .mobile-topbar,
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .menu-profile-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .menu-profile-group .hamburger-btn {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #38bdf8;
  }
  
  .menu-profile-group .profile-img {
    margin: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid #38bdf8;
    align-self: center;
    display: block;
    margin-top: -26px;
    background-color: transparent;
  }

  .menu-profile-group .mobile-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: #e0e7ff;
    margin: 0;
  }
}

body.light-mode .mobile-menu {
  background: #fff;
}
body.light-mode .mobile-menu a {
  color: #1e293b !important;
  background: #fff;
}
body.light-mode .mobile-menu a:hover,
body.light-mode .mobile-menu a:focus {
  background: #93c5fd;
  color: #2563eb !important;
}

.mobile-topbar .profile-img {
  width: 40px;
  height: 40px;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #2563eb, #60a5fa);
  z-index: 10000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.cert-item,
.education-item,
.ref-card,
.project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cert-item.visible,
.education-item.visible,
.ref-card.visible,
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.skill.visible {
  opacity: 1;
  transform: scale(1);
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #0b1120 0%, #020617 55%, #000 100%);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.98) translateY(10px);
}

.loader {
  position: relative;
  text-align: center;
  padding: 40px 46px 32px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(2,6,23,0.96));
  box-shadow:
    0 30px 90px rgba(15,23,42,0.9),
    0 0 40px rgba(56,189,248,0.45);
  border: 1px solid rgba(56,189,248,0.35);
  overflow: hidden;
  max-width: 480px;
  width: 92%;
  animation: loader-pop 0.7s ease-out;
}

.loader-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129,140,248,0.2), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.loader-avatar-wrapper {
  position: relative;
  margin: 10px auto 22px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.loader-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background:
    conic-gradient(from 180deg, #38bdf8, #6366f1, #22c55e, #f97316, #38bdf8);
  animation: spin 3.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(56,189,248,0.6));
}

.loader-avatar-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(circle, #020617 0%, #020617 55%, rgba(15,23,42,0.4) 100%);
}

.loader-avatar {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(15,23,42,0.9);
  box-shadow:
    0 0 8px rgba(56,189,248,0.6),
    0 0 12px rgba(59,130,246,0.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: none;
}

.loader-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.loader-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #93c5fd, #60a5fa, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

.loader-role {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loader-text {
  position: relative;
  z-index: 1;
  color: #e0f2fe;
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 18px;
  animation: pulse 2.2s ease-in-out infinite;
}

.loader-progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.loader-progress-bar {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(15,23,42,0.9) inset;
}

.loader-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background-image: linear-gradient(90deg, #22c55e, #38bdf8, #6366f1);
  box-shadow: 0 0 16px rgba(56,189,248,0.9);
  transition: width 0.25s ease-out;
}

.loader-percentage {
  min-width: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #bae6fd;
  text-align: right;
}

.loader-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.loader-dots span {
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.loader-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loader-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

body.light-mode .loading-screen {
  background: radial-gradient(circle at top, #eff6ff 0%, #e5edff 60%, #e0f2fe 100%);
}

body.light-mode .loader {
  background: radial-gradient(circle at top left, #ffffff, #e5edff);
  box-shadow:
    0 26px 60px rgba(148,163,184,0.45),
    0 0 30px rgba(96,165,250,0.6);
  border-color: rgba(148,163,184,0.6);
}

body.light-mode .loader-avatar-ring::after {
  background: radial-gradient(circle, #eff6ff 0%, #eff6ff 55%, rgba(191,219,254,0.7) 100%);
}

body.light-mode .loader-avatar {
  border-color: #e2e8f0;
  box-shadow:
    0 0 6px rgba(96,165,250,0.6),
    0 0 10px rgba(129,140,248,0.5);
}

body.light-mode .loader-name {
  color: #0f172a;
}

body.light-mode .loader-role {
  color: #64748b;
}

body.light-mode .loader-text {
  color: #1e293b;
}

body.light-mode .loader-dots span {
  background: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

body.light-mode .loader-progress-bar {
  background: #e5edff;
  box-shadow: 0 0 10px rgba(148,163,184,0.3) inset;
}

body.light-mode .loader-progress-fill {
  box-shadow: 0 0 14px rgba(59,130,246,0.8);
}

body.light-mode .loader-percentage {
  color: #1e293b;
}

@media (max-width: 480px) {
  .loader {
    padding: 26px 20px 24px;
    border-radius: 22px;
  }

  .loader-avatar-wrapper {
    width: 140px;
    height: 140px;
    margin: 4px auto 16px;
  }

  .loader-avatar {
    width: 115px;
    height: 115px;
  }

  .loader-name {
    font-size: 1.1rem;
  }

  .loader-text {
    font-size: 0.95rem;
  }

  .loader-progress {
    gap: 8px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

body.light-mode .back-to-top {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.typing-text {
  color: #38bdf8;
  font-weight: 600;
}

.typing-cursor {
  color: #38bdf8;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  position: relative;
  z-index: 1;
  margin-top: 15px;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  border: 2px solid rgba(56, 189, 248, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(56, 189, 248, 0.5);
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.parallax-element {
  transition: transform 0.3s ease-out;
}

.sidebar-nav a.active {
  background-color: #2563eb;
  color: #e0e7ff;
}

body.light-mode .sidebar-nav a.active {
  background-color: #2563eb;
  color: #fff;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-button,
  .cv-download-btn {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    padding: 12px 30px;
  }
}

.binary-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.binary-digit {
  position: absolute;
  color: rgba(56, 189, 248, 0.35);
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 22px;
  user-select: none;
  animation: binaryDrift 4.5s linear forwards;
  opacity: 0;
}

@keyframes binaryDrift {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    transform: translate(var(--dx, 80px), var(--dy, 40px));
    opacity: 0.35;
  }
  100% {
    transform: translate(var(--dx, 100px), var(--dy, 50px));
    opacity: 0;
  }
}

body.light-mode .binary-digit {
  color: rgba(59, 130, 246, 0.55);
}

@media (max-width: 768px) {
  .binary-digit {
    font-size: 16px;
    color: rgba(96, 165, 250, 0.4);
  }

  body.light-mode .binary-digit {
    color: rgba(59, 130, 246, 0.5);
  }

  .ref-card .project-buttons .btn {
    width: 100%;
    max-width: 320px;
    margin-top: 10px;
  }

  .question-options-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .question-option-card {
    min-height: 140px;
    padding: 20px 16px;
  }

  .option-icon {
    font-size: 2.5rem;
  }

  .option-title {
    font-size: 1rem;
  }

  .option-desc {
    font-size: 0.8rem;
  }

  .question-submit-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

.trail {
  position: fixed;
  pointer-events: none;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.85) 0%, rgba(59, 130, 246, 0.28) 35%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.08s ease-out, opacity 0.15s ease-out;
}

body.light-mode .trail {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(129, 140, 248, 0.18) 40%, transparent 70%);
  filter: blur(7px);
  opacity: 0.5;
}

/* Chatbase Chatbot Button - Move to left and make bigger with STRONG animations */
button[class*="chatbase"],
[class*="chatbase"] button,
[id*="chatbase"] button,
div[class*="chatbase"] > button,
div[id*="chatbase"] > button,
button[data-chatbase],
[data-chatbase] button,
body > div > button:last-child,
body button[style*="position: fixed"],
body button[style*="position:fixed"] {
  right: 50px !important;
  bottom: 30px !important;
  position: fixed !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  border: 3px solid #2563eb !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 99, 235, 0.5), 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
  transform: scale(1.1) !important;
  animation: chatbaseStrongPulse 1.5s ease-in-out infinite, chatbaseBounce 2s ease-in-out infinite, chatbaseGlow 2s ease-in-out infinite !important;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease, border 0.3s ease !important;
  cursor: pointer !important;
}

/* Hover effect for buttons in bottom right area (more specific) */
body button[style*="bottom"]:hover,
body button[style*="position: fixed"]:hover,
body button[style*="position:fixed"]:hover {
  transform: scale(1.4) !important;
  filter: brightness(1.2) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6), 0 0 0 10px rgba(37, 99, 235, 0.3) !important;
}

/* Strong Pulse animation - darker and more subtle */
@keyframes chatbaseStrongPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 99, 235, 0.5), 0 0 0 0 rgba(30, 58, 138, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(37, 99, 235, 0.2), 0 0 0 25px rgba(30, 58, 138, 0.1);
  }
}

/* Bounce animation - more noticeable movement */
@keyframes chatbaseBounce {
  0%, 100% {
    transform: scale(1.1) translateY(0);
  }
  25% {
    transform: scale(1.15) translateY(-12px);
  }
  50% {
    transform: scale(1.1) translateY(0);
  }
  75% {
    transform: scale(1.15) translateY(-8px);
  }
}

/* Glow animation - pulsing brightness */
@keyframes chatbaseGlow {
  0%, 100% {
    filter: brightness(1);
    opacity: 1;
  }
  50% {
    filter: brightness(1.3);
    opacity: 0.95;
  }
}

/* Hover effect - Daha kalın lacivert çerçeve */
button[class*="chatbase"]:hover,
[class*="chatbase"] button:hover,
[id*="chatbase"] button:hover,
div[class*="chatbase"] > button:hover,
div[id*="chatbase"] > button:hover,
button[data-chatbase]:hover,
[data-chatbase] button:hover,
body button[style*="position: fixed"]:hover,
body button[style*="position:fixed"]:hover,
body > div > button:last-child:hover,
button.chatbase-hover-enabled:hover {
  transform: scale(1.4) !important;
  border: 4px solid #1e3a8a !important;
  outline: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(30, 58, 138, 0.2) !important;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
  z-index: 10001 !important;
}

/* Target all fixed position buttons in bottom right area */
body button[style*="bottom"] {
  right: 50px !important;
}

/* Mobile responsive for Chatbase button - Mavi okun üzerinde */
@media (max-width: 768px) {
  button[class*="chatbase"],
  [class*="chatbase"] button,
  [id*="chatbase"] button,
  div[class*="chatbase"] > button,
  div[id*="chatbase"] > button,
  button[data-chatbase],
  [data-chatbase] button {
    right: 20px !important;
    bottom: 70px !important; /* Mavi okun üzerinde (mavi ok 40px + 20px bottom = 60px, üzerine 10px boşluk) */
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 2px solid #2563eb !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
    transform: scale(1) !important;
    z-index: 10001 !important; /* Mavi okun üzerinde olması için */
  }
  
  /* Mobile hover */
  button[class*="chatbase"]:hover,
  [class*="chatbase"] button:hover,
  [id*="chatbase"] button:hover,
  div[class*="chatbase"] > button:hover,
  div[id*="chatbase"] > button:hover,
  button[data-chatbase]:hover,
  [data-chatbase] button:hover {
    border: 3px solid #1e3a8a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(30, 58, 138, 0.2) !important;
  }
}

/* Chatbase Tooltip - Baloncuk */
.chatbase-tooltip {
  position: absolute !important;
  bottom: calc(100% + 10px) !important;
  right: 0 !important;
  background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  z-index: 10002 !important;
  transform: translateY(5px) !important;
  font-family: 'Inter', sans-serif !important;
}

.chatbase-tooltip::after {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  right: 20px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent !important;
  border-right: 6px solid transparent !important;
  border-top: 6px solid #1e3a8a !important;
}

button.chatbase-hover-enabled:hover .chatbase-tooltip,
[class*="chatbase"] button:hover .chatbase-tooltip,
button[class*="chatbase"]:hover .chatbase-tooltip,
button[style*="position: fixed"]:hover .chatbase-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Mobile tooltip */
@media (max-width: 768px) {
  .chatbase-tooltip {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    bottom: calc(100% + 8px) !important;
  }
  
  .chatbase-tooltip::after {
    right: 15px !important;
  }
}

/* Hide Chatbase default bubble/tooltip - Sadece tooltip/bubble'ları gizle, butonu değil */
body > div[class*="chatbase"] > div[class*="tooltip"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip),
body > div[class*="chatbase"] > div[class*="bubble"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip),
body > div[class*="chatbase"] > div[class*="message"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip),
body > div[class*="chatbase"] > div[class*="popup"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip),
body > div[class*="chatbase"] > div[class*="notification"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip),
[class*="chatbase"] [class*="tooltip"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip):not(button),
[class*="chatbase"] [class*="bubble"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip):not(button),
[class*="chatbase"] [class*="message"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip):not(button),
[class*="chatbase"] [class*="popup"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip):not(button),
[class*="chatbase"] [class*="notification"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip):not(button),
div[data-chatbase] > div[class*="tooltip"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip),
div[data-chatbase] > div[class*="bubble"]:not(.chatbase-auto-bubble):not(.chatbase-tooltip) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Chat widget messages will be hidden via JavaScript */

/* Chatbase Auto Bubble - Otomatik gösterilen baloncuk */
.chatbase-auto-bubble {
  position: fixed !important;
  background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
  color: white !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  white-space: normal !important;
  max-width: 280px !important;
  min-width: 200px !important;
  text-align: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  z-index: 99999 !important;
  transform: translateY(10px) scale(0.9) !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  display: block !important;
}

.chatbase-auto-bubble::after {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  right: 25px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 8px solid #1e3a8a !important;
}

.chatbase-auto-bubble[aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Mobile auto bubble */
@media (max-width: 768px) {
  .chatbase-auto-bubble {
    font-size: 0.85rem !important;
    padding: 10px 14px !important;
    max-width: 240px !important;
    bottom: calc(100% + 12px) !important;
  }
  
  .chatbase-auto-bubble::after {
    right: 20px !important;
    border-left-width: 6px !important;
    border-right-width: 6px !important;
    border-top-width: 6px !important;
  }
}

/* Chatbase butonunu yükleme ekranındayken gizle - JavaScript ile kontrol ediliyor */

/* Webkit Tarayıcılar - Sitenin Temasına Uygun Geniş ve Hareketli Scrollbar */
::-webkit-scrollbar {
  width: 22px;
  height: 22px;
}

::-webkit-scrollbar-track {
  background: 
    radial-gradient(circle at center, 
      rgba(15, 23, 42, 0.95) 0%, 
      rgba(30, 41, 59, 0.9) 50%,
      rgba(15, 23, 42, 0.95) 100%);
  border-radius: 15px;
  border: 3px solid rgba(56, 189, 248, 0.3);
  box-shadow: 
    inset 0 0 25px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(56, 189, 248, 0.25),
    inset 0 3px 6px rgba(56, 189, 248, 0.2),
    0 0 0 1px rgba(56, 189, 248, 0.15);
  position: relative;
  overflow: hidden;
}

::-webkit-scrollbar-track::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  animation: scrollbarRotate 25s linear infinite;
}

::-webkit-scrollbar-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(56, 189, 248, 0.2) 30%,
    rgba(96, 165, 250, 0.25) 50%,
    rgba(56, 189, 248, 0.2) 70%,
    transparent 100%);
  animation: trackShimmer 3.5s ease-in-out infinite;
}

::-webkit-scrollbar-thumb {
  background: 
    linear-gradient(135deg, 
      #38bdf8 0%, 
      #60a5fa 20%,
      #3b82f6 40%, 
      #2563eb 60%,
      #1d4ed8 80%,
      #3b82f6 100%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(147, 197, 253, 0.4) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 2px,
      rgba(56, 189, 248, 0.1) 2px,
      rgba(56, 189, 248, 0.1) 4px
    );
  background-size: 200% 200%, 100% 100%, 100% 100%, 8px 100%;
  background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  border-radius: 15px;
  border: 3px solid rgba(15, 23, 42, 0.85);
  box-shadow: 
    0 0 30px rgba(56, 189, 248, 0.95),
    0 0 50px rgba(96, 165, 250, 0.7),
    0 0 75px rgba(147, 197, 253, 0.5),
    0 0 100px rgba(59, 130, 246, 0.3),
    inset 0 0 20px rgba(147, 197, 253, 0.7),
    inset 0 3px 8px rgba(255, 255, 255, 0.5),
    0 5px 12px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(56, 189, 248, 0.5),
    0 0 0 4px rgba(96, 165, 250, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: scrollbarGradientMove 4s ease infinite, scrollbarPulse 3s ease-in-out infinite, scrollbarGlow 2.5s ease-in-out infinite, movingStripes 3s linear infinite;
  transform-style: preserve-3d;
  min-height: 50px;
  overflow: hidden;
}

::-webkit-scrollbar-thumb::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.2) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  animation: scrollbarRotate 15s linear infinite, particlesMove 8s ease-in-out infinite;
  z-index: 0;
}

::-webkit-scrollbar-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.7) 0%, 
      transparent 25%,
      transparent 50%,
      rgba(56, 189, 248, 0.6) 70%,
      transparent 85%,
      rgba(147, 197, 253, 0.5) 100%),
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 255, 255, 0.4) 45%,
      rgba(147, 197, 253, 0.8) 50%,
      rgba(255, 255, 255, 0.4) 55%,
      transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 8px,
      rgba(56, 189, 248, 0.2) 8px,
      rgba(56, 189, 248, 0.2) 10px
    );
  background-size: 100% 100%, 100% 4px, 100% 16px;
  background-position: 0% 0%, center, 0% 0%;
  background-repeat: no-repeat;
  border-radius: 15px;
  pointer-events: none;
  animation: thumbShine 2.5s ease-in-out infinite, centerGlow 2s ease-in-out infinite, verticalLines 4s linear infinite;
  z-index: 1;
  filter: blur(0.5px);
}

::-webkit-scrollbar-thumb:hover {
  background: 
    linear-gradient(135deg, 
      #22d3ee 0%, 
      #38bdf8 20%,
      #60a5fa 40%, 
      #3b82f6 60%,
      #2563eb 80%,
      #60a5fa 100%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(147, 197, 253, 0.6) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 2px,
      rgba(56, 189, 248, 0.2) 2px,
      rgba(56, 189, 248, 0.2) 4px
    );
  background-size: 200% 200%, 100% 100%, 100% 100%, 8px 100%;
  background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  box-shadow: 
    0 0 50px rgba(56, 189, 248, 1),
    0 0 80px rgba(96, 165, 250, 0.95),
    0 0 120px rgba(147, 197, 253, 0.8),
    0 0 160px rgba(59, 130, 246, 0.6),
    0 0 200px rgba(129, 140, 248, 0.4),
    inset 0 0 35px rgba(147, 197, 253, 0.9),
    inset 0 4px 10px rgba(255, 255, 255, 0.7),
    0 7px 18px rgba(0, 0, 0, 0.7),
    0 0 0 3px rgba(56, 189, 248, 0.9),
    0 0 0 6px rgba(96, 165, 250, 0.6),
    0 0 0 9px rgba(147, 197, 253, 0.3);
  transform: scaleX(1.15) scaleY(1.1);
  border-color: rgba(56, 189, 248, 1);
  border-width: 4px;
  animation: scrollbarGradientMove 1.5s ease infinite, scrollbarPulse 1.2s ease-in-out infinite, hoverGlow 0.8s ease-in-out infinite, movingStripes 2s linear infinite;
}

::-webkit-scrollbar-thumb:hover::before {
  animation: scrollbarRotate 12s linear infinite, particlesMove 6s ease-in-out infinite;
}

::-webkit-scrollbar-thumb:hover::after {
  animation: thumbShine 1.8s ease-in-out infinite, centerGlow 1.5s ease-in-out infinite, verticalLines 3s linear infinite;
}

::-webkit-scrollbar-thumb:active {
  background: 
    linear-gradient(135deg, 
      #06b6d4 0%, 
      #0891b2 20%,
      #0e7490 40%, 
      #2563eb 60%,
      #1d4ed8 80%,
      #2563eb 100%);
  background-size: 200% 200%;
  box-shadow: 
    0 0 70px rgba(37, 99, 235, 1),
    0 0 120px rgba(59, 130, 246, 1),
    0 0 170px rgba(96, 165, 250, 1),
    0 0 220px rgba(147, 197, 253, 0.9),
    0 0 270px rgba(129, 140, 248, 0.7),
    inset 0 0 45px rgba(147, 197, 253, 1),
    inset 0 5px 12px rgba(255, 255, 255, 0.8),
    0 9px 25px rgba(0, 0, 0, 0.8),
    0 0 0 4px rgba(37, 99, 235, 1),
    0 0 0 8px rgba(59, 130, 246, 0.8),
    0 0 0 12px rgba(96, 165, 250, 0.6),
    0 0 0 16px rgba(147, 197, 253, 0.4);
  transform: scaleX(1.2) scaleY(1.15);
  border-width: 5px;
  animation: scrollbarGradientMove 1s ease infinite, activePulse 0.8s ease-in-out infinite;
}

::-webkit-scrollbar-corner {
  background: 
    radial-gradient(circle at top left, 
      rgba(15, 23, 42, 0.98) 0%, 
      rgba(30, 41, 59, 0.95) 100%);
  border-radius: 12px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  box-shadow: 
    inset 0 0 15px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(56, 189, 248, 0.2);
}

/* Firefox için Özel Scrollbar - Daha Geniş ve Görsel */
* {
  scrollbar-width: auto;
  scrollbar-color: #2563eb #1e293b;
}

/* Firefox Scrollbar Hover Effect */
*:hover {
  scrollbar-color: #60a5fa #1e293b;
}

/* Light Mode Ultra Havalı Scrollbar Stilleri */
body.light-mode ::-webkit-scrollbar-track {
  background: 
    radial-gradient(circle at center, 
      rgba(240, 244, 248, 0.95) 0%, 
      rgba(226, 232, 240, 0.9) 50%,
      rgba(240, 244, 248, 0.95) 100%);
  border: 3px solid rgba(37, 99, 235, 0.35);
  box-shadow: 
    inset 0 0 25px rgba(148, 163, 184, 0.5),
    0 0 20px rgba(37, 99, 235, 0.3),
    inset 0 3px 6px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(37, 99, 235, 0.2);
}

body.light-mode ::-webkit-scrollbar-track::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  animation: scrollbarRotate 25s linear infinite;
}

body.light-mode ::-webkit-scrollbar-track::after {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(37, 99, 235, 0.25) 30%,
    rgba(59, 130, 246, 0.3) 50%,
    rgba(37, 99, 235, 0.25) 70%,
    transparent 100%);
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: 
    linear-gradient(135deg, 
      #3b82f6 0%, 
      #2563eb 20%,
      #1d4ed8 40%, 
      #1e40af 60%,
      #1e3a8a 80%,
      #2563eb 100%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.5) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 2px,
      rgba(37, 99, 235, 0.15) 2px,
      rgba(37, 99, 235, 0.15) 4px
    );
  background-size: 200% 200%, 100% 100%, 100% 100%, 8px 100%;
  background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 30px rgba(37, 99, 235, 0.8),
    0 0 50px rgba(59, 130, 246, 0.6),
    0 0 75px rgba(96, 165, 250, 0.4),
    0 0 100px rgba(129, 140, 248, 0.25),
    inset 0 0 20px rgba(96, 165, 250, 0.6),
    inset 0 3px 8px rgba(255, 255, 255, 0.7),
    0 5px 12px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(37, 99, 235, 0.6),
    0 0 0 4px rgba(59, 130, 246, 0.3);
  animation: scrollbarGradientMove 4s ease infinite, scrollbarPulse 3s ease-in-out infinite, scrollbarGlow 2.5s ease-in-out infinite, movingStripes 3s linear infinite;
  min-height: 50px;
  overflow: hidden;
}

body.light-mode ::-webkit-scrollbar-thumb::before {
  background: 
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.3) 0%, transparent 50%);
  animation: scrollbarRotate 15s linear infinite, particlesMove 8s ease-in-out infinite;
}

body.light-mode ::-webkit-scrollbar-thumb::after {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.8) 0%, 
      transparent 25%,
      transparent 50%,
      rgba(59, 130, 246, 0.7) 70%,
      transparent 85%,
      rgba(96, 165, 250, 0.6) 100%),
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 255, 255, 0.5) 45%,
      rgba(96, 165, 250, 0.9) 50%,
      rgba(255, 255, 255, 0.5) 55%,
      transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 8px,
      rgba(37, 99, 235, 0.25) 8px,
      rgba(37, 99, 235, 0.25) 10px
    );
  background-size: 100% 100%, 100% 4px, 100% 16px;
  background-position: 0% 0%, center, 0% 0%;
  animation: thumbShine 2.5s ease-in-out infinite, centerGlow 2s ease-in-out infinite, verticalLines 4s linear infinite;
}

body.light-mode ::-webkit-scrollbar-thumb::before {
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.6) 0%, 
      transparent 15%,
      transparent 50%,
      rgba(59, 130, 246, 0.5) 70%,
      transparent 85%,
      rgba(96, 165, 250, 0.4) 100%);
}

body.light-mode ::-webkit-scrollbar-thumb::after {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.9) 30%,
    rgba(96, 165, 250, 1) 50%,
    rgba(255, 255, 255, 0.9) 70%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.9);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: 
    linear-gradient(135deg, 
      #2563eb 0%, 
      #1d4ed8 20%,
      #1e40af 40%, 
      #1e3a8a 60%,
      #172554 80%,
      #2563eb 100%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.7) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 2px,
      rgba(37, 99, 235, 0.25) 2px,
      rgba(37, 99, 235, 0.25) 4px
    );
  background-size: 200% 200%, 100% 100%, 100% 100%, 8px 100%;
  background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  box-shadow: 
    0 0 50px rgba(37, 99, 235, 0.95),
    0 0 80px rgba(59, 130, 246, 0.85),
    0 0 120px rgba(96, 165, 250, 0.7),
    0 0 160px rgba(129, 140, 248, 0.5),
    0 0 200px rgba(147, 197, 253, 0.35),
    inset 0 0 35px rgba(96, 165, 250, 0.8),
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    0 7px 18px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(37, 99, 235, 0.85),
    0 0 0 6px rgba(59, 130, 246, 0.6),
    0 0 0 9px rgba(96, 165, 250, 0.4);
  transform: scaleX(1.15) scaleY(1.1);
  border-width: 4px;
  animation: scrollbarGradientMove 1.5s ease infinite, scrollbarPulse 1.2s ease-in-out infinite, hoverGlow 0.8s ease-in-out infinite, movingStripes 2s linear infinite;
}

body.light-mode ::-webkit-scrollbar-thumb:hover::before {
  animation: scrollbarRotate 12s linear infinite, particlesMove 6s ease-in-out infinite;
}

body.light-mode ::-webkit-scrollbar-thumb:hover::after {
  animation: thumbShine 1.8s ease-in-out infinite, centerGlow 1.5s ease-in-out infinite, verticalLines 3s linear infinite;
}

body.light-mode ::-webkit-scrollbar-thumb:active {
  background: 
    linear-gradient(135deg, 
      #1d4ed8 0%, 
      #1e40af 20%,
      #1e3a8a 40%, 
      #172554 60%,
      #1e3a8a 80%,
      #1d4ed8 100%);
  background-size: 200% 200%;
  box-shadow: 
    0 0 70px rgba(37, 99, 235, 1),
    0 0 120px rgba(59, 130, 246, 0.95),
    0 0 170px rgba(96, 165, 250, 0.85),
    0 0 220px rgba(129, 140, 248, 0.7),
    0 0 270px rgba(147, 197, 253, 0.55),
    inset 0 0 45px rgba(96, 165, 250, 0.95),
    inset 0 5px 12px rgba(255, 255, 255, 1),
    0 9px 25px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(37, 99, 235, 0.95),
    0 0 0 8px rgba(59, 130, 246, 0.75),
    0 0 0 12px rgba(96, 165, 250, 0.55),
    0 0 0 16px rgba(129, 140, 248, 0.35);
  transform: scaleX(1.2) scaleY(1.15);
  border-width: 5px;
  animation: scrollbarGradientMove 1s ease infinite, activePulse 0.8s ease-in-out infinite;
}

body.light-mode ::-webkit-scrollbar-corner {
  background: 
    radial-gradient(circle at top left, 
      rgba(240, 244, 248, 0.98) 0%, 
      rgba(226, 232, 240, 0.95) 100%);
  border: 2px solid rgba(37, 99, 235, 0.3);
  box-shadow: 
    inset 0 0 15px rgba(148, 163, 184, 0.4),
    0 0 10px rgba(37, 99, 235, 0.25);
}

/* Firefox Light Mode */
body.light-mode * {
  scrollbar-color: #2563eb #e2e8f0;
}

body.light-mode *:hover {
  scrollbar-color: #3b82f6 #e2e8f0;
}

/* Sidebar Scrollbar - Ultra Havalı İnce Versiyon */
.sidebar::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: 
    linear-gradient(180deg, 
      rgba(15, 23, 42, 0.6) 0%, 
      rgba(30, 41, 59, 0.55) 50%,
      rgba(15, 23, 42, 0.6) 100%);
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 
    inset 0 0 15px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(56, 189, 248, 0.15);
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    rgba(56, 189, 248, 0.8) 0%, 
    rgba(37, 99, 235, 0.85) 50%,
    rgba(59, 130, 246, 0.8) 100%);
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.6);
  box-shadow: 
    0 0 15px rgba(56, 189, 248, 0.6),
    inset 0 0 8px rgba(96, 165, 250, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  animation: scrollbarPulse 4s ease-in-out infinite;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, 
    rgba(96, 165, 250, 0.95) 0%, 
    rgba(59, 130, 246, 0.98) 50%,
    rgba(37, 99, 235, 0.95) 100%);
  box-shadow: 
    0 0 25px rgba(56, 189, 248, 0.9),
    0 0 40px rgba(96, 165, 250, 0.6),
    inset 0 0 12px rgba(147, 197, 253, 0.7),
    0 3px 6px rgba(0, 0, 0, 0.5);
  transform: scaleX(1.1);
  border-color: rgba(56, 189, 248, 0.8);
}

body.light-mode .sidebar::-webkit-scrollbar-track {
  background: 
    linear-gradient(180deg, 
      rgba(226, 232, 240, 0.6) 0%, 
      rgba(241, 245, 249, 0.55) 50%,
      rgba(226, 232, 240, 0.6) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 
    inset 0 0 15px rgba(148, 163, 184, 0.3),
    0 0 8px rgba(37, 99, 235, 0.2);
}

body.light-mode .sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    rgba(59, 130, 246, 0.8) 0%, 
    rgba(37, 99, 235, 0.85) 50%,
    rgba(29, 78, 216, 0.8) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 0 15px rgba(37, 99, 235, 0.6),
    inset 0 0 8px rgba(96, 165, 250, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, 
    rgba(96, 165, 250, 0.95) 0%, 
    rgba(59, 130, 246, 0.98) 50%,
    rgba(37, 99, 235, 0.95) 100%);
  box-shadow: 
    0 0 25px rgba(37, 99, 235, 0.8),
    0 0 40px rgba(59, 130, 246, 0.6),
    inset 0 0 12px rgba(96, 165, 250, 0.6),
    0 3px 6px rgba(0, 0, 0, 0.3);
  border-color: rgba(37, 99, 235, 0.8);
}

/* Content Area Scrollbar */
.content::-webkit-scrollbar {
  width: 12px;
}

.content::-webkit-scrollbar-track {
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.8) 0%, 
    rgba(30, 41, 59, 0.7) 100%);
  border-radius: 10px;
  margin: 5px 0;
}

/* Ultra Havalı Scrollbar Animasyonları - Sitenin Temasına Uygun */
@keyframes scrollbarGradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes scrollbarGradientMove {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes scrollbarRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes movingStripes {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  100% {
    background-position: 200% 200%, 0% 0%, 0% 0%, 16px 0%;
  }
}

@keyframes particlesMove {
  0% {
    transform: rotate(0deg) translate(0, 0);
    opacity: 0.6;
  }
  25% {
    transform: rotate(90deg) translate(10px, -10px);
    opacity: 0.9;
  }
  50% {
    transform: rotate(180deg) translate(0, 0);
    opacity: 0.7;
  }
  75% {
    transform: rotate(270deg) translate(-10px, 10px);
    opacity: 0.9;
  }
  100% {
    transform: rotate(360deg) translate(0, 0);
    opacity: 0.6;
  }
}

@keyframes verticalLines {
  0% {
    background-position: 0% 0%, center, 0% 0%;
  }
  100% {
    background-position: 0% 0%, center, 0% 100%;
  }
}

@keyframes scrollbarGlow {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(56, 189, 248, 0.95),
      0 0 50px rgba(96, 165, 250, 0.7),
      0 0 75px rgba(147, 197, 253, 0.5),
      0 0 100px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(56, 189, 248, 1),
      0 0 65px rgba(96, 165, 250, 0.85),
      0 0 95px rgba(147, 197, 253, 0.65),
      0 0 130px rgba(59, 130, 246, 0.45);
  }
}

@keyframes scrollbarPulse {
  0%, 100% {
    box-shadow: 
      0 0 25px rgba(56, 189, 248, 0.9),
      0 0 45px rgba(96, 165, 250, 0.6),
      0 0 65px rgba(147, 197, 253, 0.4),
      inset 0 0 18px rgba(147, 197, 253, 0.6);
  }
  50% {
    box-shadow: 
      0 0 35px rgba(56, 189, 248, 1),
      0 0 60px rgba(96, 165, 250, 0.8),
      0 0 85px rgba(147, 197, 253, 0.6),
      inset 0 0 25px rgba(147, 197, 253, 0.8);
  }
}

@keyframes thumbShine {
  0% {
    opacity: 0.6;
    transform: translateY(-100%);
  }
  50% {
    opacity: 1;
    transform: translateY(0%);
  }
  100% {
    opacity: 0.6;
    transform: translateY(100%);
  }
}

@keyframes centerGlow {
  0%, 100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1.2);
  }
}

@keyframes trackShimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes hoverGlow {
  0%, 100% {
    box-shadow: 
      0 0 40px rgba(56, 189, 248, 1),
      0 0 70px rgba(96, 165, 250, 0.9),
      0 0 100px rgba(147, 197, 253, 0.7);
  }
  50% {
    box-shadow: 
      0 0 50px rgba(56, 189, 248, 1),
      0 0 85px rgba(96, 165, 250, 1),
      0 0 120px rgba(147, 197, 253, 0.9);
  }
}

@keyframes activePulse {
  0%, 100% {
    box-shadow: 
      0 0 60px rgba(37, 99, 235, 1),
      0 0 100px rgba(59, 130, 246, 1),
      0 0 140px rgba(96, 165, 250, 0.9);
  }
  50% {
    box-shadow: 
      0 0 80px rgba(37, 99, 235, 1),
      0 0 130px rgba(59, 130, 246, 1),
      0 0 180px rgba(96, 165, 250, 1);
  }
}

/* Mobil Cihazlar için Geniş ve Efektif Scrollbar */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 16px;
    height: 16px;
  }
  
  ::-webkit-scrollbar-track {
    border-width: 2.5px;
    box-shadow: 
      inset 0 0 20px rgba(0, 0, 0, 0.6),
      0 0 15px rgba(56, 189, 248, 0.2);
  }
  
  ::-webkit-scrollbar-thumb {
    border-width: 2.5px;
    min-height: 40px;
    box-shadow: 
      0 0 25px rgba(56, 189, 248, 0.8),
      0 0 40px rgba(96, 165, 250, 0.6),
      inset 0 0 15px rgba(147, 197, 253, 0.6),
      0 4px 8px rgba(0, 0, 0, 0.5);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    transform: scaleX(1.1) scaleY(1.08);
    box-shadow: 
      0 0 35px rgba(56, 189, 248, 0.95),
      0 0 60px rgba(96, 165, 250, 0.75),
      0 0 85px rgba(147, 197, 253, 0.55),
      inset 0 0 20px rgba(147, 197, 253, 0.8),
      0 5px 10px rgba(0, 0, 0, 0.6);
  }
  
  body.light-mode ::-webkit-scrollbar-thumb {
    box-shadow: 
      0 0 25px rgba(37, 99, 235, 0.7),
      0 0 40px rgba(59, 130, 246, 0.5),
      inset 0 0 15px rgba(96, 165, 250, 0.5),
      0 4px 8px rgba(0, 0, 0, 0.4);
  }
  
  body.light-mode ::-webkit-scrollbar-thumb:hover {
    box-shadow: 
      0 0 35px rgba(37, 99, 235, 0.9),
      0 0 60px rgba(59, 130, 246, 0.7),
      0 0 85px rgba(96, 165, 250, 0.55),
      inset 0 0 20px rgba(96, 165, 250, 0.7),
      0 5px 10px rgba(0, 0, 0, 0.5);
  }
}
