:root {
  --primary-color: #334155;
  --accent-color: #f97316;
  --nav-bg: #334155;
  --nav-link: #ffffff;
  --nav-link-hover: #f97316;
  --body-bg: #ffffff;
  --text-main: #334155;
  --box-shadow: none;
  --font-title: 'JetBrains Mono', monospace;
  --font-body: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-body);
  background: var(--body-bg);
  color: var(--text-main);
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

nav {
  background: var(--nav-bg);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: var(--nav-link-hover);
  text-decoration: underline;
}

#themeToggle {
  background: none;
  border: none;
  color: #111;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

main {
  padding: 1.5rem;
  margin: 1rem auto;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  background: white;
  border-radius: 8px;
  text-align: left;
  flex-grow: 1;
  box-shadow: var(--box-shadow);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
  font-family: var(--font-title);
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--primary-color);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-family: var(--font-title);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-family: var(--font-title);
}

p,
.hero p,
.about-text {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

footer {
  background: #1f2937;
  color: #e0f2fe;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

footer a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  background: var(--body-bg);
  border-bottom: 2px solid var(--primary-color);
}

main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
}

/* Projects Section */
.projects {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  text-align: center;
   width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.button-list {
  padding: .75rem 1.5rem; 
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.button {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
   padding: .75rem 1.5rem; 
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}


.button:hover {
  background: var(--accent-color);
  color: #fff;
}

.logo-img {
  width: 100%;
  max-width: 400px; /* or whatever looks best */
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* Contact Page */
.contact-list {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list svg {
  width: 20px;
  height: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  align-items: center;
  padding: 0 1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background-color: #fff;
  color: var(--text-main);
  box-sizing: border-box;
}

/* About Page */
.profile-pic {
  max-width: 200px;
  border-radius: 50%;
  margin: 2rem auto;
  display: block;
}

.subtitle {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.about-text {
  font-size: .8rem;
  text-align: left;
  line-height: 1.6;
  margin: 2rem auto;
  padding: 0 8vw;
}

.about-text p {
  text-indent: 2em;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: inherit;
}

/* 🌌 Space Theme */
body[data-theme="space"] {
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --body-bg: #0d0d0d;
  --nav-bg: #111827;
  --box-bg: #1f2937;
  --text-main: #ffffff;
  --nav-link: #00ffff;
  --nav-link-hover: #facc15;
  --primary-color: #00ffff;
  --accent-color: #facc15;
  --box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
  background: var(--body-bg);
  font-family: var(--font-body);
}

body[data-theme="space"] main {
  background: var(--box-bg);
  color: var(--text-main);
  box-shadow: var(--box-shadow);
}

body[data-theme="space"] h1,
body[data-theme="space"] h2,
body[data-theme="space"] h3 {
  font-family: var(--font-title);
  color: var(--primary-color);
}

body[data-theme="space"] .button {
  color: #111; /* Black text on bright blue background */
}

body[data-theme="space"] p {
  font-family: var(--font-body);
}

.