/* ==============================
   RESET & BASE STYLING
============================== */

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0d1117; /* Dark background */
  color: white;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

/* ==============================
   NAVBAR
============================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #161b22;
  border-bottom: 1px solid #30363d;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f9826c;
}

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

.navbar a {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #f9826c;
}
/* New: Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
	display: none; /* Hidden by default */
	font-size: 1.5rem;
	cursor: pointer;
	color: white;
}

/* ==============================
   HERO SECTION
============================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5% 5%;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 500px;
}

.hero-text p {
  font-size: 1.2rem;
}

.hero-text .dot {
  color: #f9826c;
  font-size: 2rem;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin: 0.5rem 0;
}

.hero-text h2 {
  font-size: 2.5rem;
  min-width: 550px;
  color: #c9d1d9;
  margin-bottom: 1.5rem;
}

.buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.primary {
  background-color: #f9826c;
  color: white;
}

.primary:hover {
  background-color: #e66e59;
}

.secondary {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.secondary:hover {
  background-color: white;
  color: #0d1117;
}

.hero-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 5px solid #f9826c;
  object-fit: cover;
  /* background-color: #fff; */
  background-color: #161b22;
}

.typing-text {
  color: #f9826c;
  border-right: 2px solid #f9826c;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  line-height: 1; /* keeps vertical alignment */
  height: 1em; /* ensures equal text height */
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@media (max-width: 768px) {
  /* ... other mobile styles ... */
  .hero-text h2 {
    font-size: 20px;
    min-width: 300px; /* Adjust for smaller screens */
  }
  .hero-text h1{
    font-size: 30px;
  }
}


/* ==============================
   SKILLS SECTION
============================== */
.skills {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #161b22;
}

.skills span {
  display: inline-block;
  margin: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #30363d;
  border-radius: 20px;
  background-color: #21262d;
  color: #f9826c;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skills span:hover {
  background-color: #f9826c;
  color: white;
}

/* ==============================
   ABOUT SECTION
============================== */
.about {
  padding: 3rem 5%;
  background-color: #0d1117;
}

.about h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #f9826c;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.services {
  flex: 1;
}

.services p {
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #21262d;
  border-left: 4px solid #f9826c;
  color: white;
}

.about-content {
  flex: 2;
  max-width: 600px;
}

.about-content p {
  margin-bottom: 2rem;
  color: #c9d1d9;
}

.stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.stats div {
  text-align: center;
  min-width: 100px;
  margin: 1rem 0;
}

.stats strong {
  font-size: 1.5rem;
  color: #f9826c;
}

/* ==============================
   PROJECTS SECTION
============================== */
.projects {
  padding: 3rem 5%;
}

.projects h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #f9826c;
}

.project-list {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  scrollbar-width: none; /* Firefox */
}

.project-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.project-card {
  flex: 0 0 auto;
  background: #21262d;
  border-radius: 10px;
  padding: 15px;
  width: 400px;
  /* height: 400px; */
  display: flex;               /* Make card a flex container */
  flex-direction: column;      /* Stack content vertically */
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card a{
  display: inline-block;
  margin-top: auto;            /* Push button to bottom */
  margin-bottom: 0.5rem;       /* Add gap at bottom */
  padding: 0.6rem 1.2rem;
  background-color: #f9826c;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
}

.project-card a:hover{
  background-color: #e66e59;
  color: #fff;
}

.project-card a i{
  color: #0d1117;
}

.project-card img {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(249, 130, 108, 0.3);
}

.project-card h2 {
  margin-bottom: 10px;
  color: #f9826c;
}

.project-card p {
  font-size: 0.95rem;
  color: #aaa;
}

#live-btn{
  background-color: #1055C9;
}

#live-btn:hover {
  background-color: #05339C;
}

/* ====================
   Certificate section
========================*/
.certificate {
  padding: 3rem 5%;
}

.certificate h3{
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #f9826c;
}

.certificate-list {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  scrollbar-width: none; /* Firefox */
}

.certificate-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.certificate-card {
  flex: 0 0 auto;
  background: #21262d;
  border-radius: 10px;
  padding: 15px;
  width: 400px;
  /* height: 400px; */
  display: flex;               /* Make card a flex container */
  flex-direction: column;      /* Stack content vertically */
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card a{
  display: inline-block;
  margin-top: auto;            /* Push button to bottom */
  margin-bottom: 0.5rem;       /* Add gap at bottom */
  padding: 0.6rem 1.2rem;
  background-color: #f9826c;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
}

.certificate-card a:hover{
  background-color: #e66e59;
  color: #fff;
}

.certificate-card a i{
  color: #0d1117;
}

.certificate-card img {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(249, 130, 108, 0.3);
}

.certificate-card h2 {
  margin-bottom: 10px;
  color: #f9826c;
}

.certificate-card p {
  font-size: 0.95rem;
  color: #aaa;
}
/* ==============================
   CONTACT SECTION
============================== */
.contact {
  background-color: #161b22;
  padding: 4rem 5%;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f9826c;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 400px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  background-color: #21262d;
  color: #c9d1d9;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  width: 400px;
}

/* .contact-form button {
  background-color: #f9826c;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  margin-left: 10px;
  margin-right: 10px;
} */

.contact-form button:hover {
  background-color: #e05d4a;
}


.contact input::placeholder,
.contact textarea::placeholder {
  color: #999;
}

.contact button {
  padding: 1rem;
  background-color: #f9826c;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form textarea{
  padding: 40px;
}

.contact p{
  font-size: 1.5rem;
}

.contact button:hover {
  background-color: #e66e59;
}

/* ==============================
   SOCIAL ICONS
============================== */
.social-icons {
  /* display: flex; */
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

.social-icons a {
  padding: 5px;
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.icons{
  margin-top: 10px;
}

.social-icons a:hover {
  color: #f9826c;
}

.email-text{
  font-size: 0.5rem;
}



footer {
  padding: 20px;
  text-align: center;
  /* background: #000; */
  background-color: #161b22;
  color: #999;
}




.navbar a.active {
  color: #f9826c;
  font-weight: bold;
}



/* Responsive */
/* ==============================
   RESPONSIVE STYLES FOR MOBILE
============================== */
@media (max-width: 768px) {
  /* Navbar stacking */
  /* .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar ul {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
  } */

  .navbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	/* Show the hamburger menu toggle button */
	.menu-toggle {
		display: block;
	}

	/* Hide the navigation links by default on mobile */
	.navbar nav {
		display: none;
		position: absolute;
		top: 61px; /* Height of the navbar header (1rem padding + line-height) */
		left: 0;
		width: 100%;
		background-color: #161b22;
		z-index: 15; /* Above other content but below sticky nav */
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	}

	/* Show the navigation links when the 'nav-open' class is applied by JS */
	.navbar nav.nav-open {
		display: block;
	}

	.navbar ul {
		flex-direction: column;
		gap: 0;
		padding: 0;
	}

	.navbar ul li {
		text-align: center;
		padding: 0.8rem 0;
		border-bottom: 1px solid #30363d;
	}

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

  /* Hero section stacking */
  /* .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-image img {
    width: 180px;
    height: 180px;
    margin-top: 1.5rem;
  } */

  .hero {
		flex-direction: column;
		text-align: center;
	}
	.hero-text {
		max-width: 100%;
	}
	/* FIX: Ensure typing text is wide enough on mobile */
	.hero-text h2 {
		min-width: 300px;
	}
	.buttons {
		justify-content: center;
		flex-wrap: wrap;
	}
	.hero-image img {
		width: 180px;
		height: 180px;
		margin-top: 1.5rem;
	}

  /* About section stacking */
  .about-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .about-content {
    max-width: 100%;
  }

  .stats {
    /* flex-direction: column; */
    font-size: 10px;
    align-items: center;
    justify-content: space-between;
  }

  .stats strong {
  font-size: 1.1rem;
}

  /* Skills wrap better */
  .skills span {
    margin: 0.4rem;
    padding: 0.4rem 0.8rem;
  }

  /* Projects cards smaller on mobile */
  .project-card {
    width: 280px;
  }

  .certificate-card {
    width: 280px;
  }

  /* Contact text smaller */
  .contact p {
    font-size: 1rem;
  }
  .email-text {
    font-size: 0.9rem;
  }
}

@media (min-width: 769px) {
	.navbar nav {
		display: block !important;
	}
}

/* Contact form responsive */
@media (max-width: 768px) {
  /* CONTACT SECTION */
.contact-form {
  /* Set width to a percentage to be flexible */
  width: 90%; 
  /* Center the form */
  margin: auto; 
  /* Add padding for spacing on smaller screens */
  padding: 0 1rem;
}

.contact-form input,
.contact-form textarea {
  /* Use 100% width to make it fill its container */
  width: 100%; 
  /* Add some margin for better spacing between fields */
  margin-bottom: 10px; 
}

/* Ensure the button is also responsive */
.contact button {
  width: 100%;
}
}
