/* =====================
   GLOBAL STYLES
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: url("dsaProfileImg/bga.png") no-repeat center center fixed;
  background-size: cover;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #010605;
  position: relative;
  z-index: 1;
}

/* Light overlay */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: -1;
}
/* =====================
   NAVBAR – LIGHT / FLOATING / HIDDEN
===================== */
/* Logo image inside navbar */
/* Rounded logo inside navbar */
.nav-logo {
  height: 32px;
  width: auto;

  border-radius: 10px;
  /* 👈 rounded corners */
  padding: 4px;
  /* breathing space */
  background: rgba(255, 255, 255, 0.6);

  object-fit: contain;
  display: block;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle hover polish */
.nav-logo:hover {
  transform: scale(1.04);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Dark mode adjustment */
body.dark .nav-logo {
  background: rgba(0, 0, 0, 0.4);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.6);
}
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 60px);
  max-width: 1100px;
  height: 56px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 22px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08);

  z-index: 1000;
}

/* Logo — subtle highlight only */
.nav-title {
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;

  background: rgba(59, 130, 246, 0.12);
  color: #1e3a8a;
}

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons – very soft */
.nav-btn,
.theme-toggle {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;

  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover,
.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* =====================
   DARK MODE NAVBAR
===================== */
body.dark .navbar {
  background: rgba(15, 23, 42, 0.88);
}

body.dark .nav-title {
  background: linear-gradient(135deg,
      rgba(56, 189, 248, 0.2),
      rgba(99, 102, 241, 0.2));
  color: #e0f2fe;
}

body.dark .nav-btn,
body.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

body.dark .nav-btn:hover,
body.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Prevent navbar overlap */
.site-main {
  padding-top: 70px;
}

/* =====================
   ABOUT ME
===================== */
.aboutMe {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  background: #f1f5f9;
  transition: all 0.3s ease-in-out;
  animation: fadeIn 1s forwards;
}

.aboutMe:hover {
  transform: translateY(-5px);
  box-shadow:
    12px 12px 20px rgba(59, 130, 246, 0.18),
    -12px -12px 20px rgba(255, 255, 255, 0.9);
}

.myImg {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0e5ec;
  box-shadow:
    4px 4px 8px rgba(150, 150, 150, 0.2),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.aboutMe div:nth-child(2) {
  flex: 1;
  margin-left: 20px;
  color: #555;
  line-height: 1.5;
}

/* =====================
   DSA SECTION
===================== */
.dsa {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.dsaProfile {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dsaProfile:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Expanded card */
.expanded-card {
  display: none;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dsaProfile:hover .expanded-card,
.dsaProfile.expanded .expanded-card {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(20px);
}

/* =====================
   DARK MODE
===================== */
body.dark {
  color: #e5e7eb;
}

body.dark::before {
  background: rgba(0, 0, 0, 0.45);
}

body.dark .aboutMe {
  background: #243447;
}

body.dark .aboutMe div:nth-child(2) {
  color: #cbd5f5;
}

body.dark .dsaProfile {
  background: rgba(255, 255, 255, 0.12);
}

body.dark .myImg {
  border-color: #64748b;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.5),
    -4px -4px 10px rgba(255, 255, 255, 0.05);
}

body.dark .aboutMe:hover {
  box-shadow:
    12px 12px 20px rgba(0, 0, 0, 0.6),
    -12px -12px 20px rgba(255, 255, 255, 0.06);
}

/* Smooth transitions */
body,
.aboutMe,
.dsaProfile,
.quote-mark {
  transition: background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
body.dark .navbar {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

body.dark .nav-title {
  background: rgba(99, 102, 241, 0.2);
  color: #e0f2fe;
}

body.dark .nav-btn,
body.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

body.dark .nav-btn:hover,
body.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}
/* =====================
   MUSIC DISC (VINYL)
===================== */
.music-disc {
  position: fixed;
  left: -110px;
  bottom: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
      #f8fafc 18%,
      #cbd5e1 45%,
      #64748b 75%,
      #1e293b 100%);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.45),
    inset 0 0 18px rgba(255, 255, 255, 0.35);
  overflow: hidden;
  z-index: 999;
  animation: discRotate 22s linear infinite;
}

/* Disc image (YouTube cover) */

.disc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  position: absolute;
  bottom: 0;
  left: 0;

  border-radius: 0 0 50% 50%;
  z-index: 2;
}

/* Vinyl center hole */
.music-disc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: #111827;
  border-radius: 50%;
  z-index: 3;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.4);
}

/* Pause rotation on hover */
.music-disc:hover {
  animation-play-state: paused;
}

/* Rotation */
@keyframes discRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Hide disc on mobile */
@media (max-width: 768px) {
  .music-disc {
    display: none;
  }
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}