* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin-top: 80px;
  font-family: "Inter", sans-serif;
  color: rgb(2, 10, 12);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", sans-serif;
}

/* NAVBAR WRAPPER */
.navbar {
  width: 100%;
  height: 90px;
  background: rgb(2, 10, 12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 200px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 999;
}

/* LEFT CIRCLE LOGO */
.logo-circle {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  overflow: hidden;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: 0.3s ease;
}

.logo-circle img:hover {
  transform: scale(1.1);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 200px;
}
/* CENTER LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #adadad7a;
}

.nav-links-projects a {
  color: #adadad7a;
}

/* RIGHT ICONS */
.social-icons {
  display: flex;
  gap: 25px;
}

.social-icons img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.social-icons img:hover {
  filter: brightness(0.5) saturate(0);
  opacity: 0.8;
}

/********************************************hero section********************/

#hero {
  display: flex;
  min-height: calc(100vh - 90px);
  width: 100%;
  overflow: hidden;
  background-color: #fff;
}

.hero-img {
  width: 56%;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 4rem;
  padding-right: 4rem;
  width: 44%;
}

.hero-content h1 {
  font-weight: 200;
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
}

.hero-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  max-width: 350px;
}

.developer h2 {
  font-weight: 600;
  color: #222;
}

.designer {
  margin-left: 20%;
  text-align: left;
  margin-top: 1rem;
}

.designer h2 {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;
  color: #464646;
}

.connector {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  width: 100%;
}

.line {
  height: 1px;
  background-color: #cacaca;
  width: 150px;
}

.ampersand {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 1.5rem;
  margin-left: 1rem;
  color: #333;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  padding: 12px 32px;
  border: 1px solid #333;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  width: fit-content;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: #333;
  color: #fff;
}
.cta-btn img {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  filter: invert(20%);
  transition: filter 0.3s ease;
  transform: rotate(-45deg);
}
.cta-btn:hover img {
  filter: invert(100%);
}

.cta-btn2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border: 1px solid #333;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  width: fit-content;
  transition: all 0.3s ease;
}

.cta-btn2:hover {
  background-color: #333;
  color: #fff;
}

.cta-btn2 img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  filter: invert(20%);
  transition: filter 0.3s ease;
  transform: rotate(225deg);
}

.cta-btn2:hover img {
  filter: invert(100%);
}

.view-all-projects .cta-btn {
  margin-top: 0;
}
/******************************************************* ABOUT SECTION *********/

#about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 85vh;
  padding: 75px 200px;
  background-color: #f7f7f7;
}

/* --- Image Section --- */
.about-img {
  width: 44%;
  max-width: 500px;
  margin-left: 5rem;
}

.about-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.about-content {
  width: 56%;
  max-width: 600px;
}

/* --- titles size here --------------------------------------- */
.section-title {
  font-weight: 200;
  font-size: 5rem;
  margin-bottom: 2rem;
}

.about-pr p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.skills-block {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  margin-left: 50%;
}

.skills-title {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  color: #464646;
  margin-bottom: 0.5rem;
  width: fit-content;
  text-align: left;
}

.skills-line {
  height: 1px;
  width: 400px;
  background-color: #cacaca;
  margin-bottom: 2rem;
}

.skills-icons {
  display: flex;
  gap: 30px;
  align-items: flex-start; /* Ensures skills line up */
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.skill img {
  width: 60px;
  height: 60px;
  filter: grayscale(50%);
  transition: all 0.3s ease;
}

.skill img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.skill span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

/************************************************* PROJECTS SECTION *********/

#projects {
  padding: 75px 200px;
  background-color: #ffffff;
}

#projects .section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 30px;
}

.project-card {
  display: block; /*  card clickable */
  text-decoration: none;
  color: #333;
  background-color: #ffffff;
  border: 1px solid #333;
  transition: all 0.3s ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.project-card:hover .project-image img {
  transform: scale(1.03);
}

/* --- Project Details (Text) --- */
.project-details {
  padding: 1.5rem;
  text-align: left;
}

.project-details h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #222;
}

.project-details p {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* View All Projects Button */
.view-all-projects {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/************************************************ ALL PROJECTS PAGE *********/

#all-projects {
  padding: 75px 200px;
  background-color: #ffffff;
  min-height: calc(100vh - 90px);
}

.projects-header {
  text-align: center;
  margin-bottom: 4rem;
}

.projects-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-top: -1rem;
}

.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 4rem;
}

/* Tech Stack Tags */
.project-tech {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.project-tech span {
  font-size: 0.75rem;
  padding: 4px 12px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Back to Home Button */
.back-home {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/************************************************ CONTACT SECTION *********/

#contact {
  padding: 75px 200px;
  background-color: #ffffff;
}

#contact .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.social-title,
.form-title {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 2rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  width: 100%;
}

.social-links-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  text-align: left;
}

.social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.social-link img {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  filter: grayscale(50%);
  transition: filter 0.3s ease;
}

.social-link:hover img {
  filter: grayscale(0%);
}

.social-link span {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  text-transform: capitalize;
}

.contact-form-container {
  width: 400px;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-top: 10px;
  margin-bottom: 5px;
  max-width: 400px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  background-color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #222;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
}

.contact-form .cta-btn {
  align-self: flex-start;
  margin-top: 10px;
}

/********************************************** FOOTER SECTION *********/

footer {
  width: 100%;
  padding: 20px 200px;
  background-color: rgb(2, 10, 12);
  color: #e5e5e5;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.copyright {
  margin: 0;
  font-weight: 300;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-contact a {
  text-decoration: none;
  color: #e5e5e5;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #707070;
}

.footer-contact span {
  color: #707070;
}

/**************** extra stuff********************************/

html {
  scroll-behavior: smooth;
}

.nav-links a.active {
  color: #adadad7a;
  font-weight: 600;
  padding-bottom: 3px;
}
.nav-links a.active:hover {
  color: #adadad7a;
}

/*======================== RESPONSIVE========================*/
/*======================== YOOOOOOOO ========================*/

/* --- Hamburger Menu Icon --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  width: 30px;
  height: 30px;
  position: relative;
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 3px;
  margin: 6px 0;
  background-color: #ffffff;
  transition: all 0.3s ease-in-out;
}

/* --- Media Query for Mobile/Tablet Sizes --- */
@media (max-width: 1200px) {
  .navbar {
    padding: 0 50px;
    height: 75px;
  }
  .logo-circle {
    width: 65px;
    height: 65px;
  }

  .nav-social {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    transform: translateX(100%);
    opacity: 0;
    transition:
      transform 0.4s ease-out,
      opacity 0.4s ease-out;
    background: rgb(2, 10, 12);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    z-index: 998;
    display: flex;
  }

  .hamburger {
    display: block;
  }

  /*  Open Menu Style */
  .nav-social.open {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  /* --- Hamburger Animation  --- */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* --------------- Hero Section Responsive Layout --- */
  /*----------------------------------------------------*/

  #hero {
    flex-direction: column;
    min-height: auto;
    padding: 50px 0;
  }

  .hero-img {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 30px auto;
  }

  .hero-content {
    width: 100%;
    padding: 0 50px;
    text-align: center;
    align-items: center;
  }

  .role-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .developer,
  .designer {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .developer h2,
  .designer h2 {
    font-size: 2rem;
  }

  .developer p,
  .designer p {
    max-width: none;
    margin: 0 auto;
  }

  .connector {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 35px;
  }

  .line {
    width: 20px;
  }

  .ampersand {
    margin: 0 1rem;
  }

  .cta-btn {
    margin-top: 2rem;
    width: 100%;
    max-width: 300px;
  }

  /* --------------- About Section Responsive Layout --- */
  /*----------------------------------------------------*/

  #about {
    flex-direction: column;
    padding: 50px;
    align-items: center;
    min-height: auto;
  }

  .about-content {
    width: 100%;
    max-width: 700px;
    margin-bottom: 30px;
  }

  .about-img {
    width: 90%;
    max-width: 450px;
    margin-left: 0;
  }

  #about .section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .about-pr p {
    max-width: 100%;
  }

  .skills-block {
    margin-top: 3rem;
    margin-left: 0;
    align-items: center;
    width: 100%;
  }

  .skills-title {
    text-align: center;
    width: 100%;
  }

  .skills-line {
    width: 100%;
    max-width: 300px;
  }

  .skills-icons {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* --------------- Projects Section Responsive Layout --- */
  /*----------------------------------------------------*/

  #projects,
  #all-projects {
    padding: 50px;
  }

  #projects .section-title,
  #all-projects .section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .all-projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-details h3 {
    font-size: 1.3rem;
  }

  .project-details p {
    font-size: 0.9rem;
  }

  /* --------------- Contact Section Responsive Layout --- */
  /*----------------------------------------------------*/

  #contact {
    padding: 50px;
  }

  #contact .section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }

  .contact-grid {
    flex-direction: column;
    gap: 50px;
    align-items: center;
  }

  .contact-social {
    width: 100%;
    max-width: 400px;
  }

  .social-title {
    text-align: center;
  }

  .social-links-container {
    justify-content: center;
  }

  .contact-form-container {
    width: 100%;
    max-width: 400px;
  }

  .form-title {
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    max-width: 100%;
  }

  .contact-form .cta-btn {
    align-self: center;
  }

  /* --------------- Footer Section Responsive Layout --- */
  /*----------------------------------------------------*/

  footer {
    padding: 20px 50px; /* Reduce padding */
  }

  .footer-content {
    flex-direction: column; /* Stack copyright and contact info */
    gap: 10px;
    text-align: center;
  }
}

/********************* phone size*********************/

@media (max-width: 700px) {
  .nav-social {
    top: 60px;
    height: calc(100vh - 60px);
  }
  .navbar {
    padding: 0 25px;
    height: 60px;
  }
  .logo-circle {
    width: 50px;
    height: 50px;
  }

  #about,
  #projects,
  #all-projects,
  #contact {
    padding-left: 25px;
    padding-right: 25px;
  }

  #about .section-title,
  #projects .section-title,
  #all-projects .section-title,
  #contact .section-title {
    font-size: 3rem;
  }

  /* --- Hero Section Adjustments --- */
  .hero-content h1 {
    font-size: 2rem;
  }

  .developer h2,
  .designer h2 {
    font-size: 1.5rem;
  }

  /* --- Projects Section (1 Column) --- */
  .projects-grid,
  .all-projects-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  /* --- Footer Section Adjustments (Contact Numbers) --- */
  footer {
    padding: 20px 25px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 5px;
  }

  .footer-contact span {
    display: none;
  }

  .footer-contact a {
    font-size: 0.85rem;
  }
}
