/* --- Global Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Theme Variables --- */
:root {
  --accent-dark: #1db954;
  --accent-dark-hover: #16a74a;
  --accent-dark-gradient: linear-gradient(135deg, #1db954, #16a74a);

  --accent-light: #0077cc;
  --accent-light-hover: #005fa3;
  --accent-light-gradient: linear-gradient(135deg, #0077cc, #005fa3);

  --border-radius: 15px;
  --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Body --- */
body {
  font-family: var(--font-family);
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.8;
  padding: 60px 20px;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: #f9f9fb;
  color: #333;
}

/* --- Container --- */
.container {
  max-width: 960px;
  margin: 0 auto;
}

/* --- Header --- */
header {
  text-align: center;
  margin-bottom: 70px;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

header p {
  font-size: 1.2rem;
  color: #aaa;
}

hr {
  width: 70px;
  height: 3px;
  background: var(--accent-dark);
  border: none;
  margin: 28px auto;
}

body.light-mode hr {
  background: var(--accent-light);
}

/* --- Sections --- */
section {
  margin-bottom: 80px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 6px solid var(--accent-dark);
}

body.light-mode section h2 {
  border-left-color: var(--accent-light);
}

/* --- Skills --- */
.skills ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skills li {
  background-color: var(--accent-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: 24px;
  font-weight: 500;
}

body.light-mode .skills li {
  background-color: var(--accent-light);
}

/* --- Case Studies --- */
.case-study {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

body.light-mode .case-study {
  background-color: #ffffff;
}

.case-study strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--accent-dark);
}

body.light-mode .case-study strong {
  color: var(--accent-light);
}

/* --- Contact --- */
.contact-box {
  background: var(--accent-dark-gradient);
  padding: 32px;
  border-radius: var(--border-radius);
  text-align: center;
}

body.light-mode .contact-box {
  background: var(--accent-light-gradient);
}

.contact-box p {
  color: #fff;
  font-size: 1.15rem;
  margin: 12px 0;
}

.contact-box a {
  color: #fff;
  font-weight: 600;
}

/* --- Footer --- */
footer {
  text-align: center;
  color: #888;
  margin-top: 60px;
}

/* --- Toggle Button --- */
.toggle-btn {
  position: fixed;
  top: 25px;
  right: 25px;
  background-color: var(--accent-dark);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

body.light-mode .toggle-btn {
  background-color: var(--accent-light);
}
