
/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
  transition: background-color 0.5s ease, color 0.3s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   THEME VARIABLES
========================= */
/* ===============================
   THEME TOGGLE (UPDATED + FIXED)
================================= */

.theme-toggle {
  position: fixed;
  top: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;

  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all 0.35s ease;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(12deg);
  box-shadow: 0 14px 45px var(--shadow-hover);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* wrapper */
.theme-icon {
  width: 26px;
  height: 26px;
  position: relative;
}

/* both svg icons */
.theme-icon svg {
  width: 26px;
  height: 26px;
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);
  transition: all 0.55s cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* IMPORTANT: make SVG work with stroke & fill */
  fill: none;
  stroke: currentColor;
}

/* -------------------------------
   SUN (Golden Yellow)
-------------------------------- */
.sun {
  color: #FFD700; /* Golden Yellow */
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* -------------------------------
   MOON (Soft White/Blue)
-------------------------------- */
.moon {
  color: #E6EEFF;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55) rotate(-90deg);

  /* moon uses fill in SVG path */
  fill: currentColor;
  stroke: none;
}

/* ✅ When DARK mode is ON -> show moon */
body.dark .sun {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55) rotate(90deg);
}

body.dark .moon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* ✅ Optional: glowing hover effect */
.theme-toggle:hover .sun {
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.55));
}

.theme-toggle:hover .moon {
  filter: drop-shadow(0 0 10px rgba(230, 238, 255, 0.55));
}


:root {
  /* Dark Theme (Default) */
  --bg-primary: radial-gradient(circle at top, #1f1f1f, #0b0b0b);
  --bg-secondary: rgba(255, 255, 255, 0.08);
  --bg-hover: rgba(255, 255, 255, 0.14);
  --text-primary: #eaeaea;
  --text-secondary: #cfcfcf;
  --text-tertiary: #d6d6d6;
  --accent-color: #ffbf00;
  --accent-gradient: linear-gradient(135deg, #ffbf00, #ff9f00);
  --shadow-color: rgba(0, 0, 0, 0.7);
  --shadow-hover: rgba(0, 0, 0, 0.9);
  --border-color: rgba(255, 255, 255, 0.1);
  --highlight-bg: linear-gradient(145deg, rgba(255, 191, 0, 0.14), transparent);
  --theme-icon: #ffbf00;
}

body.light-theme {
  /* Light Theme */
  --bg-primary: radial-gradient(circle at top, #f5f7fa, #e4e8f0);
  --bg-secondary: rgba(255, 255, 255, 0.85);
  --bg-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #222;
  --text-secondary: #555;
  --text-tertiary: #666;
  --accent-color: #ff9f00;
  --accent-gradient: linear-gradient(135deg, #ff9f00, #ff7f00);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --border-color: rgba(0, 0, 0, 0.1);
  --highlight-bg: linear-gradient(145deg, rgba(255, 159, 0, 0.12), transparent);
  --theme-icon: #ff9f00;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* =========================
   THEME TOGGLE BUTTON
========================= */
.theme-toggle {
  position: fixed;
  top: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  width: 26px;
  height: 26px;
  position: relative;
}

.sun,
.moon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  fill: var(--theme-icon);
}

.sun {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.moon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(-90deg);
}

body.light-theme .sun {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(90deg);
}

body.light-theme .moon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Star animation for moon */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--theme-icon);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:not(.light-theme) .star {
  animation: twinkle 2s infinite;
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 70%; animation-delay: 0.4s; }
.star:nth-child(3) { top: 70%; left: 40%; animation-delay: 0.8s; }
.star:nth-child(4) { top: 30%; left: 60%; animation-delay: 1.2s; }
.star:nth-child(5) { top: 60%; left: 20%; animation-delay: 1.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* =========================
   LAYOUT
========================= */
.app {
  display: flex;
  min-height: 100vh;
}

/* =========================
   GLASS BASE
========================= */
.glass {
  background: var(--bg-secondary);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 60px var(--shadow-color);
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 270px;
  padding: 30px 20px;
}

.profile {
  text-align: center;
  padding: 22px;
  border-radius: 28px;
  margin-bottom: 40px;
  overflow: visible;
}

.profile:hover {
  background: var(--bg-hover);
  box-shadow:
    0 0 35px rgba(220, 220, 220, 0.45),
    0 30px 80px var(--shadow-hover);
  transform: translateY(-6px);
}

.profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  background: #000;
  margin: 0 auto 15px;
  display: block;
  transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.profile:hover img {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(220, 220, 220, 0.6);
}

.profile h2 {
  margin-bottom: 6px;
}

.profile p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* NAV */
nav a {
  display: block;
  margin: 15px 0;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.4s ease, transform 0.3s ease;
  padding: 8px 0;
  border-radius: 8px;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* =========================
   MAIN CONTENT
========================= */
.main {
  flex: 1;
  padding: 50px;
}

.section {
  margin-bottom: 90px;
}

h1 {
  font-size: 2.8rem;
  transition: color 0.3s ease;
}

h1 span {
  color: var(--accent-color);
}

.subtitle {
  margin-top: 15px;
  max-width: 750px;
  color: var(--text-secondary);
}

.title {
  font-size: 2rem;
}

.line {
  width: 90px;
  height: 4px;
  background: var(--accent-color);
  margin: 12px 0 35px;
  border-radius: 20px;
  transition: width 0.6s ease;
}

.line:hover {
  width: 120px;
}

/* =========================
   SKILLS
========================= */
.skill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-wrap span {
  padding: 12px 20px;
  border-radius: 30px;
  background: var(--bg-secondary);
  box-shadow: 0 10px 25px var(--shadow-color);
  transition: all 0.4s ease;
}

.skill-wrap span:hover {
  background: var(--bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--shadow-hover);
}

/* =========================
   PROJECT DETAILS STYLING
========================= */
/* =========================
   PROJECT DETAILS STYLING (GOLDEN THEME)
========================= */

.project-card h4 {
  font-size: 13px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent-color);
}

.project-desc {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 10px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-features ul,
.project-learn ul {
  margin-top: 8px;
  padding-left: 18px;
}

.project-features li,
.project-learn li {
  font-size: 12.8px;
  margin-bottom: 6px;
  line-height: 1.6;
  opacity: 0.92;
  color: var(--text-tertiary);
}

/* ✅ Tech tags (Golden) */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tech-tags span {
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;

  background: rgba(255, 191, 0, 0.12);
  border: 1px solid rgba(255, 191, 0, 0.28);
  color: var(--text-primary);

  transition: 0.25s ease;
}

.tech-tags span:hover {
  transform: translateY(-2px);
  background: rgba(255, 191, 0, 0.22);
  border-color: rgba(255, 191, 0, 0.55);
}

/* ✅ Buttons (Golden) */
.project-links {
  margin-top: 14px;
}

.project-links .btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;

  border: 1px solid rgba(255, 191, 0, 0.35);
  background: rgba(255, 191, 0, 0.12);
  color: var(--text-primary);
}

.project-links .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 191, 0, 0.28);
  border-color: rgba(255, 191, 0, 0.7);
  background: rgba(255, 191, 0, 0.18);
}

.project-title-text {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
  position: relative;
  transition: 0.35s ease;

  /* ✅ Golden title color */
  color: var(--accent-color);

  /* ✅ Soft glow */
  text-shadow: 0 0 12px rgba(255, 191, 0, 0.35);
}

.project-title-link:hover .project-title-text {
  color: #ffd36a;
  text-shadow: 0 0 18px rgba(255, 191, 0, 0.65);
  transform: translateY(-1px);
}

/* ✅ Golden underline */
.project-title-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 0%;
  background: var(--accent-color);
  border-radius: 10px;
  transition: 0.35s ease;
}

.project-title-link:hover .project-title-text::after {
  width: 100%;
}


/* ===============================
   PROJECT TITLE LOGO + ANIMATION (GOLDEN)
================================ */

.project-title-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 14px;

  transition: 0.3s ease;
  border: 1px solid rgba(255, 191, 0, 0.22);
  background: rgba(255, 191, 0, 0.08);
}

.project-title-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 191, 0, 0.6);
  box-shadow: 0 10px 25px rgba(255, 191, 0, 0.25);
}

.project-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: 0.35s ease;
}

.project-title-link:hover .project-icon {
  transform: rotate(-8deg) scale(1.08);
}

.project-title-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  position: relative;
  transition: 0.3s ease;
}

.project-title-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 0%;
  background: var(--accent-color);
  border-radius: 10px;
  transition: 0.35s ease;
}

.project-title-link:hover .project-title-text::after {
  width: 100%;
}

/* =========================
   PROJECTS GRID + CARD (GOLDEN MATCH)
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  padding: 26px;
  border-radius: 26px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.card:hover {
  background: var(--bg-hover);
  transform: translateY(-14px);

  box-shadow:
    0 45px 95px var(--shadow-hover),
    0 0 0 1px rgba(255, 191, 0, 0.18);
}

/* =========================
   PROJECTS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  padding: 26px;
  border-radius: 26px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  background: var(--bg-hover);
  transform: translateY(-14px);
  box-shadow: 0 45px 95px var(--shadow-hover);
}

/* =========================
   EDUCATION
========================= */
.education-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.education-card {
  padding: 35px 30px;
  border-radius: 28px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-card:hover {
  background: var(--bg-hover);
  transform: translateY(-10px);
  box-shadow:
    0 30px 70px var(--shadow-hover),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.edu-year {
  position: absolute;
  top: -14px;
  right: 22px;
  background: var(--accent-gradient);
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(255, 191, 0, 0.45);
}

.edu-text {
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

/* ===============================
   PROJECT TITLE LOGO + ANIMATION
================================ */

.project-title-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 14px;
  transition: 0.3s ease;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.08);
}

.project-title-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.20);
}

.project-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: 0.35s ease;
}

.project-title-link:hover .project-icon {
  transform: rotate(-8deg) scale(1.08);
}

.project-title-text {
  font-size: 16px;
  font-weight: 800;
  color: inherit;
  letter-spacing: 0.2px;
  position: relative;
  transition: 0.3s ease;
}

.project-title-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 0%;
  background: #00d4ff;
  border-radius: 10px;
  transition: 0.35s ease;
}

.project-title-link:hover .project-title-text::after {
  width: 100%;
}


/* =========================
   WHY ME
========================= */
.highlight {
  background: var(--highlight-bg);
  padding: 45px;
  border-radius: 35px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.why-grid h4 {
  color: var(--accent-color);
  margin-bottom: 8px;
}

/* =========================
   CONTACT
========================= */
.links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.links a {
  padding: 10px 18px;
  border-radius: 25px;
  background: var(--bg-secondary);
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.4s ease;
}

.links a:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 191, 0, 0.4);
}

/* =========================
   ABOUT ME SECTION
========================= */

.about-section {
  margin-bottom: 90px;
  padding: 45px 40px;
  border-radius: 36px;

  /* Base background */
  background:
    linear-gradient(
      135deg,
      rgba(255, 191, 0, 0.12),
      rgba(220, 220, 220, 0.12)
    ),
    var(--bg-secondary);

  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 191, 0, 0.25);

  /* Soft premium shadow (default) */
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);

  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s ease,
    background 0.6s ease,
    border 0.6s ease;
}

.about-section {
  position: relative;
  overflow: hidden;
}


.about-section:hover {
  background:
    linear-gradient(
      135deg,
      rgba(255, 191, 0, 0.22),
      rgba(230, 230, 230, 0.22)
    ),
    var(--bg-hover);

  transform: translateY(-10px) scale(1.015);

  box-shadow:
    0 40px 90px rgba(255, 191, 0, 0.35),
    0 10px 40px rgba(200, 200, 200, 0.25),
    inset 0 0 0 1px rgba(255, 191, 0, 0.35);

  border: 1px solid rgba(255, 191, 0, 0.45);
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.about-section:hover::before {
  opacity: 1;
}

.about-section {
  transition: 
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s ease,
    background 0.6s ease;
}

.about-section:hover {
  background: var(--bg-hover);
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 191, 0, 0.15);
}


/* Heading */
.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.about-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

/* Paragraphs */
.about-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

/* Skill list */
.about-skills {
  margin: 18px 0 22px;
  padding-left: 0;
}

.about-skills li {
  list-style: none;
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-skills li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Goal highlight */
.about-section .goal {
  margin-top: 25px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--highlight-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px var(--border-color);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .about-section {
    padding: 30px 22px;
  }

  .about-section h2 {
    font-size: 1.7rem;
  }
}

.about-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 8px 20px rgba(255, 191, 0, 0.35);
  transition: all 0.3s ease;
}

.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 191, 0, 0.5);
}


/* =========================
   ACHIEVEMENTS LIST
========================= */
.list li {
  margin-bottom: 12px;
  list-style: none;
  position: relative;
  padding-left: 25px;
}

.list li:before {
  content: '✔';
  color: var(--accent-color);
  position: absolute;
  left: 0;
}



/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.98);
  filter: blur(2px);
} */


.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
/* =========================
   DESKTOP FIXED SIDEBAR
========================= */
@media (min-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
  }

  .main {
    margin-left: 270px; /* same as sidebar width */
  }
}

@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    text-align: center;
  }
  .main {
    padding: 30px 20px;
  }
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .title {
    font-size: 1.8rem;
  }
  .highlight {
    padding: 30px 20px;
  }
}
