/* === COLOR VARIABLES === */

/* Default (Silky Black Theme) */
:root {
  --bg-body: #0a0a0a;         /* silky black */
  --bg-card: #1a1a1a;         /* slightly lighter for cards */
  --border: #333333;
  --text-main: #f5f5f5;       /* off-white for readability */
  --text-muted: #aaaaaa;
  --primary: #22c55e;         /* green accent */
  --primary-hover: #16a34a;
  --accent: #3b82f6;          /* blue for highlights */
  --accent-hover: #2563eb;
  --hero-gradient-start: #0a0a0a;
  --hero-gradient-end: #1a1a1a;
}

/* Light Theme Override (White & Silky Light) */
body.light-theme {
  --bg-body: #ffffff;
  --bg-card: #f9f9f9;
  --border: #e2e2e2;
  --text-main: #1f1f1f;
  --text-muted: #4a4a4a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #22c55e;
  --accent-hover: #15803d;
  --hero-gradient-start: #f3f3f3;
  --hero-gradient-end: #eaeaea;
}

/* === GLOBAL === */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Paragraph spacing */
p, ul, li {
  margin-bottom: 1rem;
  color: var(--text-main);
}

/* === HIDDEN UTILITY === */
.hidden {
  display: none;
}

/* === HEADINGS === */
h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary); }
h3 { font-size: 1.5rem; color: var(--text-muted); }

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: var(--bg-card);
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.navbar a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--accent);
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* === HERO === */
.hero {
  background: linear-gradient(to right, var(--hero-gradient-start), var(--hero-gradient-end));
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* === BUTTONS === */
button,
#hireMeBtn,
.btn-linkedin {
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

/* Primary CTA (Hire Me) */
#hireMeBtn {
  background: var(--accent);
  color: black;
}

#hireMeBtn:hover {
  background: var(--accent-hover);
}

/* LinkedIn button */
.btn-linkedin {
  background: var(--primary);
  color: white;
  text-decoration: none;
  display: inline-block;
}

.btn-linkedin:hover {
  background: var(--primary-hover);
}

/* Theme Toggle Button */
#themeToggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
  color: var(--primary);
}

#themeToggle:hover {
  transform: scale(1.2);
  color: var(--accent);
}

body.light-theme #themeToggle {
  color: #111827;
}

/* === CARDS (Projects, Skills, Education) === */
.card,
.project-card,
.education-card,
.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem auto;
  max-width: 900px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.project-card:hover,
.education-card:hover,
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.project-card h2,
.education-card h2,
.skill-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.project-card p,
.education-card p,
.skill-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* === BADGES === */
.badge {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  margin: 0.25rem 0.25rem 0 0;
  transition: background 0.3s;
}

.badge:hover {
  background-color: var(--primary-hover);
}

/* === PROFILE SECTION === */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  text-align: center;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 100%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 3px solid var(--primary);
}

.intro h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.intro p {
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  color: var(--text-muted);
}

/* === FOOTER === */
footer {
  background-color: var(--bg-card);
  color: var(--text-muted);
  text-align: center;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .navbar { flex-direction: column; gap: 1rem; }
  .profile-img { width: 120px; height: 120px; }
  .card, .project-card, .education-card, .skill-card { padding: 1.5rem; margin: 0.75rem; }
}

/* === NOTIFICATION === */
#notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: black;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
  pointer-events: none;
}

#notification.visible {
  opacity: 1;
  transform: translateY(0);
}
