/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

html, body {
  animation: fadeIn 0.8s ease-in-out;
  transition: background-color 0.3s ease, color 0.3s ease;
  color-scheme: light dark;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== THEME VARIABLES ===== */
:root {
  --bg: #0e0e0e;
  --surface: #151515;
  --border: #262626;

  --text: #eaeaea;
  --muted: #b0b0b0;

  --accent: #00bfff;
  --accent-soft: rgba(0, 191, 255, 0.15);

  --radius: 10px;
  --max-width: 900px;
}

:root[data-theme="light"] {
  
  --bg: #f8fafc;

  
  --surface: #ffffff;

  --border: #e2e8f0;


  --text: #0f172a;
  --muted: #475569;


  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
}


/* ===== BASE ===== */


h1, h2, h3 {
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  color: var(--text);
}

small,
.muted {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

section {
  margin-bottom: 3rem;
  
}

/* ===== NAV ===== */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--accent);
}

/* ===== PROJECT FILTERS (FIXED) ===== */
.project-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.project-filters .filter-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
}

.project-filters .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-filters .filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

.project-filters .filter-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ===== PROJECT CARDS ===== */
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(0,0,0,0)
  );
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--muted);
}

/* ===== PROJECT META ===== */
.project-meta {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

/* ===== STATUS BADGES ===== */
.status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.status.in-progress {
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== CONTACT FORM ===== */
.contact-section {
  max-width: 600px;
  margin: 3rem auto;
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.submit-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.submit-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

#theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

button {
  transition: all 0.25s ease;
}

button:hover {
  transform: scale(1.05);
}

button:active {
  transform: scale(0.96);
}

nav a {
  position: relative;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
