 /* Default = Dark theme */
:root {
  --bg-primary: #020617;      /* black */
  --bg-secondary: #0f172a;
  --section-bg: #111827;
  --text-primary: #ffffff;
  --accent: #60a5fa;
  --card-bg: rgba(255,255,255,0.08);
  --border-color: rgba(255,255,255,0.15);
}

body.light {
  --bg-primary: #7e22ce;
  --bg-secondary: #8b5cf6;
  --section-bg: rgb(137, 69, 201);
  --text-primary: #ffffff;
  --accent: #fde047;
  --card-bg: rgba(255,255,255,0.18);
  --border-color: rgba(255,255,255,0.3);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}


 /* Works even if JavaScript fails*/
 html {
  scroll-behavior: smooth;
}

main {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* now this WILL work in modern browsers */
}


a {
  color: yellow;
}

 header h1 {
  color: white;
  text-align: center;
  padding: 15rem;
  font-weight: 500;
  border-radius: 15rem;
 }

.head {
  position: relative;
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

 .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-sticker {
  width: 300px;     /* IMPORTANT */
  max-width: 100%;
  height: auto;
}


.projects:hover,
.about:hover,
.stack:hover,
.hero:hover,
.contact:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.hero {
  background: radial-gradient(
    circle at top left,
    var(--bg-secondary),
    var(--bg-primary)
  );
}

.hero-btn {
  background: var(--accent);
  color: #fff;
}


 .hero{
  display: flex;
  justify-content: center;
  font-weight: 300;
  padding: 3rem 4rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .about{
/*  background-color:rgb(137, 69, 201);*/
  color: white;
  padding: 4rem 5rem;
  gap: 20rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

 .stack{
/*  background-color:rgb(137, 69, 201);*/
  color: white;
  padding: 4rem 5rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-stack {
  background: rgba(255, 255, 255, 0.148);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.tech-stack img {
  width: 48px;
  margin-bottom: 0.8rem;
}

.tech-stack span {
  display: block;
  font-weight: 500;
}

.tech-stack:hover {
  transform: translateY(-8px);
}

  .projects{
/*  background-color:rgb(137, 69, 201);*/
  color: white;
  padding: 4rem 5rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

.contact{
/*background-color:rgb(136, 72, 196);*/
color: white;
margin-bottom: 20rem;
padding: 4rem 5rem;
border-radius: 20px;
box-shadow: 0 15px 30px rgba(0,0,0,0.25);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

footer{
  background-color: rgb(71, 6, 133);
}

/* Default nav for desktop */
nav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
  gap: 7rem; /* big gap for desktop */
}

/* Mobile styles */
@media (max-width: 480px) {
  nav ul {
    display: none; /* hide links */
    flex-direction: column;
    gap: 1rem;
  /*  background-color: rgb(137, 69, 201);*/
    position: absolute;
    top: 5rem;  /* below navbar */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
  }
}

  nav ul.active {
    display: flex; /* show links when hamburger clicked */
  }

  .hamburger {
    display: block; /* show hamburger */
  }

  nav {
    position: relative;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}



.reveal{
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.reveal.active{
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects only for devices that support hover */
@media (hover: hover) {
  .projects:hover,
  .about:hover,
  .stack:hover,
  .hero:hover,
  .contact:hover {
    transform: translateY(-10px);
  }
}


nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 5rem;
  background: var(--section-bg);
  color: var(--text-primary);
}

/* Desktop navbar */
nav ul {
  display: flex;
  gap: 7rem;
  list-style: none;
  padding: 0;
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: yellow;
}

/* Mobile navbar */
@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    padding: 0 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
/*    background-color: rgb(137, 69, 201);*/
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    z-index: 100;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

.linkedin {
    width: 30px;    /* change size as needed */
    height: 30px;   /* keeps it square */
    vertical-align: middle;  /* aligns with text nicely */
    margin-left: 5px;        /* optional spacing */
}

.github{
    width: 30px;    /* change size as needed */
    height: 30px;   /* keeps it square */
    vertical-align: middle;  /* aligns with text nicely */
    margin-left: 5px;        /* optional spacing */
}

.github-icon {
  font-size: 32px;
  color: #ffffff; /* white */
  transition: transform 0.3s ease, color 0.3s ease;
}

.project-links a:hover .github-icon {
  color: #00f5d4; /* optional hover color */
  transform: scale(1.1);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.project-links a:last-child {
  margin-left: auto; /* 👈 pushes GitHub to the right */
}



.netlify{
    width: 30px;    /* change size as needed */
    height: 30px;   /* keeps it square */
    vertical-align: middle;  /* aligns with text nicely */
    margin-left: 5px;        /* optional spacing */
}

.websiteimg {
  width: 100%;
  height: 180px;
  object-fit: cover;
}


.project-card {
  display: flex;
  flex-direction: column; /* 👈 key change */
  width: 380px;           /* narrower width */
  min-height: 520px;      /* taller height */
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1; /* pushes links to bottom */
}


.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* 🌈 Bright contrasting card */
.project-card-alt {
  background: linear-gradient(135deg, #00f5d4, #4cc9f0);
  color: #000;
}

.project-card-alt .project-links a {
  border-color: #000;
  color: #000;
}

.project-card-alt .project-links a:hover {
  background: #000;
  color: #00f5d4;
}

.projects-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero,
.about,
.stack,
.projects,
.contact {
  background: var(--section-bg);
  color: var(--text-primary);
}


.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease;
}

.theme-toggle:hover {
  background: var(--card-bg);
}

.contact-form {
  max-width: 500px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* Design of contact form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.contact-form input,
.contact-form textarea {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  resize: none;
   transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
}


.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.25); /* accent glow */
}

.contact-links {
  margin-top: 2rem;
}

.contact-card {
  max-width: 600px;
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form button {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent), #facc15);
  color: #000;
}
