/* ===== COLOR SYSTEM ===== */
:root {
  --bg-gradient: linear-gradient(135deg, #faf7ff, #f3f0ff);
  --card-bg: rgba(255, 255, 255, 0.85);
  --text: #2c2c2c;
  --accent: #7b6cff;
  --accent-soft: #ff8ba7;
}

html {
  scroll-behavior: smooth;
}

body.dark {
  --bg-gradient: linear-gradient(135deg, #141414, #24163a);
  --card-bg: rgba(30, 30, 40, 0.85);
  --text: #eeeeee;
  --accent: #a78bfa;
  --accent-soft: #ff9fb2;
}

/* ===== BASE ===== */
body {
  background: var(--bg-gradient);
  color: var(--text);
  font-family: "Inter", "Poppins", sans-serif;
  padding-top: 80px;
  transition: background 0.4s ease, color 0.4s ease;
  line-height: 1.7; /* adds space between lines for readability */
}

h1, h2, h3, p, li, span {
  color: var(--text);
  transition: color 0.3s;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3; /* a bit tighter for headings */
}

p, li {
  line-height: 1.8; /* more breathing room for body text */
}

.content-section {
  padding: 90px 0;
  line-height: 1.7; /* ensures content inside has good spacing */
}

/* ===== NAVBAR ===== */
.navbar {
  background: transparent;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.navbar-brand,
.nav-link,
.dropdown-toggle {
  color: var(--text);
  transition: color 0.3s;
}

.nav-link:hover,
.dropdown-item:hover {
  color: var(--accent) !important;
}

/* Active menu link */
.nav-link.active,
.dropdown-item.active {
  color: var(--accent) !important;  /* Highlight color */
  font-weight: 600;                  /* Slightly bolder */
  border-bottom: 2px solid var(--accent); /* Optional underline */
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
  background-color: var(--card-bg);
  border: none;
}

.dropdown-item {
  color: var(--text);
}

/* Dark mode dropdown */
body.dark .dropdown-menu {
  background-color: rgba(30, 30, 40, 0.95); /* darker menu */
}

body.dark .dropdown-item {
  color: #e6e6e6; /* light text for dark mode */
}

body.dark .dropdown-item:hover {
  color: var(--accent) !important;
}

/* ===== HERO ===== */
#typed-text {
  border-right: 2px solid var(--accent); /* cursor effect */
  padding-right: 3px;
  white-space: nowrap;
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== IMAGE ===== */
.profile-img {
  width: 280px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* ===== CONTENT ===== */
.content-section {
  padding: 90px 0;
}

/* ===== PROJECT CARD ===== */
.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 35px;
  margin-bottom: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover */
}

.project-card h3 {
  color: var(--accent);
}

.project-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 25px;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 35px;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ===== THEME SWITCH ===== */
.theme-switch {
  position: relative;
  margin-left: 20px;
}

.theme-switch input {
  display: none;
}

.theme-switch label {
  width: 64px;
  height: 32px;
  background: var(--card-bg);
  border-radius: 50px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.theme-switch .ball {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 4px;
  transition: 0.3s;
}

.theme-switch .icon {
  font-size: 14px;
  width: 50%;
  text-align: center;
  z-index: 1;
}

.theme-switch input:checked + label .ball {
  transform: translateX(32px);
}

/* ===== LINKS ===== */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
}


/* ===== POWER BI IFRAME ===== */
.powerbi-frame {
  width: 100%;
  max-width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.powerbi-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}
