/* -------------------------
   Universal Styles
------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

/* -------------------------
   Root Variables
------------------------- */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-color: white;
  --background-color: #f4f4f4;
  --secondary-bg-color: #0d1117;
}

/* -------------------------
   Body
------------------------- */
body {
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  background-color: black;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Outfit", sans-serif;
}
/* Center all section headings */
.heading,
.about-heading,
.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
}

/* -------------------------
   Header
------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: 0.5rem 8%;
  z-index: 1000;
}

.menu-icon {
  font-size: 1rem;
  display: none;
  color: var(--text-color);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease-in-out;
}

/* Gradient text */
span {
  background: linear-gradient(270deg, #3498db, #2ecc71);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------
   Navbar
------------------------- */
.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-left: 18rem;
  width: 100%;
  height: 100%;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar a {
  font-size: 1.4rem;
  margin-left: 1rem;
  transition: 0.2s ease-in-out;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  color: var(--text-color);
}

.navbar a:hover {
  border-bottom: 3px solid var(--primary-color);
  background: linear-gradient(270deg, #3498db, #2ecc71);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------
   Call-to-Action Button
------------------------- */
.cta-button {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  border-radius: 1000px;
  border: none;
  background: linear-gradient(270deg, #3498db, #2ecc71);
  color: white;
  cursor: pointer;
  margin-left: 7rem;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 1px;
  font-family: "Outfit", sans-serif;
  transition: 0.3s ease-in-out;
}

.cta-button:hover {
  box-shadow: 0 0 10px var(--primary-color), 0 0 15px var(--secondary-color),
    0 0 20px var(--primary-color);
}

/* -------------------------
   Section Layout
------------------------- */
section {
  min-height: 100vh;
  padding: 10rem 15%;
}

/* -------------------------
   Home Section
------------------------- */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6rem;
  scroll-margin-top: 75px;
}

.home-content {
  display: block;
  text-align: left;
}

.home-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content h3 {
  margin: 0.5rem 0;
  font-weight: 500;
  line-height: 1.8;
}

.home-content p {
  font-size: 18.8px;
  text-align: justify;
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* Home Image */
.home-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.home-image img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--primary-color);
  background-color: rgb(200, 21, 21);
  transition: transform 0.3s ease-in-out;
}

.home-image img:hover {
  box-shadow: 0 0 35px var(--primary-color), 0 0 50px var(--secondary-color),
    0 0 70px var(--primary-color);
}

.home-image img:active {
  transform: scale(0.95);
}

/* -------------------------
   Social Links
------------------------- */
.social-Links {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.social-Links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.5rem;
  padding: 0.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transition: 0.3s ease-in-out;
  margin: 1.5rem 1rem;
}

.social-Links a:hover {
  transform: scale(1.1) translateY(-5px);
  color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
}

/* -------------------------
   Buttons
------------------------- */
.btn-groups {
  display: flex;
  gap: 1.5rem;
  justify-content: start;
}

.btn {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 2rem;
  border-radius: 1000px;
  border: none;
  background: linear-gradient(270deg, #3498db, #2ecc71);
  box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--secondary-color),
    0 0 15px var(--primary-color);
  color: black;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
  font-family: "Outfit", sans-serif;
}

/* Button Hover */
.btn-groups a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--primary-color), 0 0 15px var(--secondary-color),
    0 0 20px var(--primary-color);
}

/* Secondary Button */
.btn-groups a:nth-of-type(2) {
  background: black;
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-groups a:nth-of-type(2):hover {
  background: linear-gradient(270deg, #3498db, #2ecc71);
  color: black;
  border: none;
  box-shadow: 0 0 10px var(--primary-color), 0 0 15px var(--secondary-color),
    0 0 20px var(--primary-color);
}

/* -------------------------
   About Section
------------------------- */
.about {
  background-color: var(--secondary-bg-color);
  scroll-margin-top: 70px;
  padding: 2rem 5%;
}

.about-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.9rem;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10rem;
  flex-wrap: wrap;
}

.about-image img {
  width: 17vw;
  max-width: 400px;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--primary-color);
  transition: 0.3s ease-in-out;
  display: block;
}

.about-image img:hover {
  box-shadow: 0 0 35px var(--primary-color), 0 0 50px var(--secondary-color),
    0 0 70px var(--primary-color);
}

.about-content {
  max-width: 750px;
}

.about-content p {
  font-size: 18.8px;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: justify;
}

.about-content h3 {
  margin-top: 1.2rem;
  font-size: 1.2rem;
}

.about-content ul {
  padding-left: 1.2rem;
}

.about-content ul li {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.about-content .btn {
  margin-top: 1rem;
}
.about-content .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--primary-color), 0 0 15px var(--secondary-color),
    0 0 20px var(--primary-color);
}

/* -------------------------
   Scrollbar Styling
------------------------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}
::-webkit-scrollbar-track {
  background: black;
}

/* -------------------------
   Projects Section
------------------------- */
.projects {
  background-color: black;
  padding-top: 3rem;
  scroll-margin-top: 70px;
}

.project-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  place-items: center;
  gap: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary-bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--secondary-color),
    0 0 15px var(--primary-color);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--primary-color), 0 0 25px var(--secondary-color),
    0 0 25px var(--primary-color);
}

.project-card img {
  max-width: 300px;
  border-radius: 1rem;
  object-fit: cover;
}

/* Hover effect on project image */
.project-card img:hover {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 1.2rem;
}

.project-card p {
  font-size: 0.9rem;
  margin: 0.5rem 0;
  line-height: 1.5;
  padding: 0 1rem;
}

/* -------------------------
   Contact Section
------------------------- */
.contact {
  background-color: var(--secondary-bg-color);
  scroll-margin-top: 70px;
  min-height: 80vh; 
  padding-bottom: 5rem; 
  margin-bottom: 0; 
}

.contact h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 0;
  width: 100%;
}

/* Contact Form Inputs + Textarea */
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: "Outfit", sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-bg-color);
  border-radius: 15px;
  border: 2px solid var(--primary-color);
  margin: 0.5rem 0;
  box-sizing: border-box;
}

/* Input groups alignment */
#contact-form .input-group,
#contact-form .input-group-2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;  /* consistent width */
  margin: 0 auto;
}

/* Textarea special styling */
#contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

/* Contact Button */
#contact-form .btn {
  margin-top: 0.6rem;
  background: linear-gradient(270deg, #3498db, #2ecc71);
  cursor: pointer;
  width: 100%;
}

#contact-form .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--primary-color),
              0 0 15px var(--secondary-color),
              0 0 20px var(--primary-color);
}

/* -------------------------
   Footer
------------------------- */
.footer {
  background-color: black;
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
  justify-content: center;
}

.footer p {
  margin: 0;
  font-size: 1rem;
}

#social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

#social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--primary-color);
  transition: 0.3s ease-in-out;
}

.footer ul {
  text-align: center;
  font-size: 1.5rem;
}

.footer ul li {
  display: inline-block;
  margin-left: 20px;
}

.footer ul li a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 2px solid var(--primary-color);
}

.footer-text {
  color: #8e8e8e;
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

/* -------------------------
   Responsive Breakpoints
------------------------- */

/* ≤400px */
@media (max-width: 400px) {
  .logo {
  font-size: 1rem;
  font-weight: bold;
}
  .home {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1rem;
  }
  .home-image {
    width: 55vw;
    max-width: 300px;
  }
  .home-content {
    text-align: center;
  }
  .btn-groups {
    font-size: 0.5rem;
    justify-content: center;
  }
  .btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
}
  .social-Links a {
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 0.8rem;
  padding: 0.3rem;
  margin: 0.8rem 0.8rem;
}
  .about-image img {
    width: 50vw;
    margin-top: 2rem;
    margin-bottom: 0;
  }
  
  .project-card img{
    max-width: 100%;
    border-radius: 0.8rem;
  }

  #contact-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    gap: 0.5rem;
  }
  .input-group .input-box{
    gap: 10rem;
  }
  #contact-form textarea {
    min-height: 120px;
  }
  .social-Links {
    justify-content: center;
    gap: 0.5rem;
  }
}
/* 401px - 497px fix for social links */
@media (min-width: 401px) and (max-width: 498px) {
  .social-Links {
    justify-content: center;
    gap: 0.5rem;
  }

  .social-Links a {
    font-size: 1.4rem;
    padding: 0.4rem;
    margin: 1rem 0.5rem;
  }
  .btn-groups {
    font-size: 1rem;
    justify-content: center;
  }
  .btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
}
}

/* ≤576px */
@media (max-width: 576px) {
  .logo {
  font-size: 1.6rem;
  font-weight: bold;
}
  .home {
    flex-direction: column-reverse;
    text-align: center;
  }
  .home-image {
    width: 55vw;
    max-width: 350px;
  }
  .home-content {
    text-align: center;
  }
  .btn-groups {
    justify-content: start;
  }
  .social-Links {
    justify-content: center;
    gap: 1rem;
  }
  .about-image img {
    width: 50vw;
    margin-top: 2rem;
  }
  .heading{
    text-align: center;
    margin-bottom: 1rem;
  }
  .project-card img{
    max-width: 100%;
    border-radius: 0.8rem;
  }
  #contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
  }
  #contact-form textarea {
    width: 100%;
    min-height: 140px;
  }
}

/* ≤768px */
@media (max-width: 768px) {
  .logo {
  font-size: 1.7rem;
  font-weight: bold;
}
  .home {
    flex-direction: column-reverse;
    text-align: center;
  }
  .home-image {
    width: 40vw;
    max-width: 300px;
  }
  .about-image img {
    width: 40vw;
  }
  .home-content {
    text-align: center;
  }
  .social-Links {
    justify-content: center;
    gap: 1rem;
  }
  .btn-groups {
    justify-content: center;
  }
  .headingp{
    text-align: center;
    margin-bottom: 1rem;
  }
  .project-card img{
    max-width: 100%;
    border-radius: 0.8rem;
  }
  #contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}
/* Medium screens (769px - 925px) */
@media (min-width: 769px) and (max-width: 926px) {
  .project-box {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem; /* optional, make spacing nicer */
  }

  .project-card img {
    max-width: 100%;
  }
}


/* Mobile / Tablet Nav (≤1022px) */
@media (max-width: 1022px) {
  /* Show menu icon */
  .menu-icon {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
  }

  /* Hide Resume button (optional on small screens) */
  .cta-button {
    display: none !important;
  }

  /* Dropdown Nav Box */
  .navbar {
    display: none;                /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 60px;                    
    right: 10px;                  
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    width: 200px;
    min-height: 180px;
    padding: 0.5rem;
    z-index: 999;
    backdrop-filter: blur(6px);
  }

  /* Show on click */
  .navbar.active {
    display: flex;
  }

  .navbar a {
    padding: 10px;
    color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar a:last-child {
    border-bottom: none;
  }
}

/* Desktop (>1022px) */
@media (min-width: 1023px) {
  .menu-icon {
    display: none;   /* hide hamburger */
  }

  .navbar {
    display: flex;   /* show full nav */
    position: static;
    flex-direction: row;
    background: transparent;
    width: auto;
    min-height: auto;
    padding: 0;
  }
}
