/* ===================================================== */
/* 🌿 FONTS */
/* ===================================================== */

@font-face {
  font-family: 'FontWavy';
  src: url('fonts/font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===================================================== */
/* 🌿 COLOR SYSTEM */
/* ===================================================== */
:root {
  --purple-main: #6C63FF;
  --purple-dark: #3F3D9E;
  --purple-soft: #B3B0FF;

  --brown-main: #7B6D5D;

  --background: #F4F6FB;
  --card-bg: #FFFFFF;

  --text-main: #1E1E2A;
  --text-muted: #6A6A85;

  /* NEW: derived colors (no more random hex codes) */
  --border-subtle: rgba(63, 61, 158, 0.08);
  --shadow-soft: rgba(63, 61, 158, 0.12);
  --tag-bg: rgba(108, 99, 255, 0.12);
}

/* ===================================================== */
/* 🌿 GLOBAL */
/* ===================================================== */
body {
  background-color: var(--background);
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  margin: 0;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===================================================== */
/* 🌿 NAVBAR */
/* ===================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container-fluid {
  max-width: 900px;
  margin: auto;
}

.navbar-brand {
  font-weight: 600;
  color: var(--purple-dark) !important;
}

.navbar .nav-link {
  color: var(--text-main) !important;
  font-size: 0.9rem;
  margin-left: 15px;
  position: relative;
}

/* underline animation */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--purple-main);
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* ===================================================== */
/* 🌙 DARK MODE NAVBAR FIX */
/* ===================================================== */

body.dark-mode .navbar {
  background: rgba(10, 12, 20, 0.85) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* brand */
body.dark-mode .navbar-brand {
  color: var(--text-main) !important;
}

/* links */
body.dark-mode .navbar .nav-link {
  color: var(--text-main) !important;
  opacity: 0.9;
}

/* hover underline stays visible */
body.dark-mode .navbar .nav-link::after {
  background: var(--purple-soft);
}

/* hover state */
body.dark-mode .navbar .nav-link:hover {
  color: var(--purple-soft) !important;
}

/* active link */
body.dark-mode .navbar .nav-link.active {
  color: var(--purple-soft) !important;
  font-weight: 500;
}

/* ===================================================== */
/* 🌿 HERO */
/* ===================================================== */
.hero-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 60px 0;
}

.name {
  font-family: 'FontWavy', cursive;
  font-size: 3rem;
  color: var(--purple-dark);
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* remove default browser spacing */
.name {
  margin: 0;
  line-height: 1.05;
}

/* tighten tagline spacing under name */
.tagline {
  margin-top: 6px;
  margin-bottom: 0;
}

/* reduce vertical spacing of hero block */
.hero-split {
  margin: 40px 0; /* was 60px */
  gap: 20px;
}

/* ensure left column doesn't add extra spacing */
.hero-left h1,
.hero-left p {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* ===================================================== */
/* 🌿 ABOUT */
/* ===================================================== */
.about-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple-soft);
  box-shadow: 0 6px 16px var(--shadow-soft);
}

.about-text {
  max-width: 420px;
}

/* ===================================================== */
/* 🌿 TYPOGRAPHY */
/* ===================================================== */
h1, h2, h3 {
  color: var(--purple-main);
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

p {
  line-height: 1.5;
  margin: 8px 0;
}

/* ===================================================== */
/* 🌿 LINKS */
/* ===================================================== */
a {
  color: var(--purple-main);
  text-decoration: none;
}

a:hover {
  color: var(--brown-main);
}

/* ===================================================== */
/* 🌿 SOCIAL LINKS */
/* ===================================================== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.social-links a {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--tag-bg);
  color: var(--purple-dark);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--purple-main);
  color: white;
  transform: translateY(-2px);
}

/* ===================================================== */
/* 🌿 BUTTON */
/* ===================================================== */
.btn {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--purple-main);
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
}

.btn:hover {
  background-color: var(--brown-main);
}

/* ===================================================== */
/* 🌿 FEATURES */
/* ===================================================== */
.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
}

.feature.right {
  flex-direction: row-reverse;
}

.feature.left {
  flex-direction: row;
}

.feature-text {
  flex: 1;
  max-width: 420px;
}

.feature-image {
  flex: 1;
  text-align: center;
}

.feature-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
}

/* subtle divider */
.feature:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 30px;
}

/* ===================================================== */
/* 🌿 TAG LIST */
/* ===================================================== */
.feature ul {
  list-style: none;
  padding: 0;
}

.feature ul li {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--purple-dark);
  padding: 5px 10px;
  margin: 3px;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* ===================================================== */
/* 🌿 PROJECTS */
/* ===================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 50px 0;
}

.project-card {
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-soft);
  transition: 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--purple-main);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-tags span {
  background: var(--tag-bg);
  color: var(--purple-dark);
  padding: 4px 8px;
  margin: 3px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* ===================================================== */
/* 🌿 MOBILE */
/* ===================================================== */
@media (max-width: 768px) {

  .hero-split {
    flex-direction: column;
    text-align: center;
  }

  .about-row {
    flex-direction: column;
  }

  .feature,
  .feature.left,
  .feature.right {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================== */
/* 🌙 DARK MODE */
/* ===================================================== */
/* ===================================================== */
/* 🌙 THEME TOGGLE BUTTON */
/* ===================================================== */

.theme-toggle {
  position: fixed;
  top: 80px;
  right: 20px;

  z-index: 9999;
  background: var(--card-bg);
  color: var(--text-main);

  border: 1px solid var(--border-subtle);
  border-radius: 50%;

  width: 42px;
  height: 42px;

  font-size: 1.1rem;
  cursor: pointer;

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

  box-shadow: 0 4px 12px var(--shadow-soft);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* ===================================================== */
/* 🌙 DARK MODE (MANUAL) */
/* ===================================================== */

body.dark-mode {

  --purple-main: #8B85FF;
  --purple-dark: #C5C2FF;
  --purple-soft: #4B47B5;

  --brown-main: #A08F7A;

  --background: #0F111A;
  --card-bg: #1A1D2E;

  --text-main: #E6E8F2;
  --text-muted: #A0A3BD;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: rgba(0, 0, 0, 0.4);
  --tag-bg: rgba(139, 133, 255, 0.15);
}

.languages {
  margin-top: 12px;
}

.languages-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.languages-list span {
  background: var(--tag-bg);
  color: var(--purple-dark);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}