@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: white;
  line-height: 1.6;
}

header {
  position: static;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: rosybrown;;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  z-index: 100;
}


.logo {
  font-size: 2.5rem;
  color: #b74b4b;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.5);
}

nav {
  display: flex;
  margin-left: 20px;
  max-width: 100%;
  gap: 3rem;
}

nav a {
  color: white;
  font-size: 1.8rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

section {
  min-height: 100vh;
  padding: 7rem 9% 5rem;
  overflow-x: hidden;
}

/* Home Section */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: black;
  flex-wrap: wrap;
}

.home .home-content h1 {
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.home-content h3 {
  font-size: 3.4rem;
  font-weight: 700;
}

.home-content p {
  font-size: 1.4rem;
  max-width: 450px;
}

span,
.section-title span {
  color: #b74b4b;
}

.home-img {
  border-radius: 50%;
  flex-shrink: 0;
}

.home-img img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 25px #b74b4b;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.home-img img:hover {
  transform: scale(1.05);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  color: #b74b4b;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: black;
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
  transform: scale(1.3) translateY(-5px);
}
span{
  color: aqua;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-weight: 600;
  font-size: 1.8rem;
  color: white;
  border: 0.2rem solid #b74b4b;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn:hover {
  background-color: #b74b4b;
  color: black;
}

/* About Section */
.about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20rem;
  flex-wrap: wrap;
  padding: 5rem 9%;
}

.img-about img {
  margin-top: 80px;
  margin-right: 30px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  box-shadow: 0 0 25px #060000;
}

.about-content {
  max-width: 700px;
  color: black;
  font-weight: bold;
}

.about-content h3,
.about-content h2 {
  color: #b74b4b;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 2rem;
  line-height: 1.8;
  margin-top: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.spans {
  color: aqua;
  font-weight: bold;
  font-size: 5rem;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Skills Section */
.skills {
  padding: 7rem 9%;
  background-color: black;
  text-align: center;
}

.section-title {
  font-size: 7.5rem;
  margin-bottom: 4rem;
  color: white;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.tech {
  font-size: 5rem;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
}

.skills-container {
  display: flex;
  gap: 3.1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-card {
  background-color: #1e1e1e;
  border: 2px solid #b74b4b;
  padding: 2rem;
  border-radius: 1.5rem;
  width: 300px;
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.3);
  transition: transform 1s ease;
}

.skill-card:hover {
  transform: scale(1.2);
}

.skill-card h3 {
  color: #b74b4b;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-card ul {
  list-style: none;
  font-size: 2rem;
  color: #ddd;
}

/* Education Section */
.education {
  padding: 7rem 9%;
  background-color: black;
  text-align: center;
}

.education-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.edu-img img {
  width: 550px;
  height: 350px;
  border-radius: 1.5rem;
  box-shadow: 0 0 25px #b74b4b;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.edu-img img:hover {
  transform: scale(1.3);
}

.edu-content {
  max-width: 600px;
  text-align: left;
}

.edu-content h3 {
  color: #b74b4b;
  font-size: 2.8rem;
}

.edu-content h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.edu-content p {
  font-size: 1.6rem;
  color: #ddd;
}

/* Projects Section */
.projects {
  padding: 7rem 9%;
  background-color: black;
  text-align: center;
}

.projects-container {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-card {
  background-color: #1a1a1a;
  border-radius: 1.5rem;
  box-shadow: 0 0 25px #b74b4b;
  max-width: 350px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 40px #b74b4b;
}

.project-card img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  color: #b74b4b;
  font-size: 2.4rem;
}

.project-card p {
  color: #ddd;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.8rem 2rem;
  border-radius: 4rem;
  font-weight: 600;
  margin: 10px;
  font-size: 1.6rem;
  border: 0.2rem solid #b74b4b;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #b74b4b;
  color: black;
}

.btn-primary:hover {
  background-color: black;
  color: #b74b4b;
}

.btn-secondary {
  background-color: transparent;
  color: #b74b4b;
}

.btn-secondary:hover {
  background-color: #b74b4b;
  color: black;
}

/* Contact Section */
.contact {
  padding: 7rem 9%;
  background-color: black;
  text-align: center;
}

.contact-container {
  display: flex;
  gap: 5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-form,
.contact-info {
  flex: 1 1 400px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.6rem;
  border: 0.2rem solid #b74b4b;
  border-radius: 0.8rem;
  background-color: transparent;
  color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}

.contact-form .btn {
  background-color: #b74b4b;
  color: black;
}

.contact-form .btn:hover {
  background-color: black;
  color: #b74b4b;
  border: 0.2rem solid #b74b4b;
}

.contact-info h3 {
  color: #b74b4b;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.6rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.contact-info .social-icons a {
  font-size: 2.5rem;
  margin-right: 1.5rem;
  color: #b74b4b;
}

.contact-info .social-icons a:hover {
  color: white;
}


.custom-alert {
  display: none; 
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50; 
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  font-family: Arial, sans-serif;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.custom-alert.error {
  background: #f44336; 
}

.custom-alert button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Responsive Styles */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .menu-toggle {
    display: block;
  }


nav {
  position: fixed;
  top: 60px;
  right: 0;
  height: 700px;
  width: 50%;
  display: flex; 
  flex-direction: column;
  align-items: flex-start;
  background-color: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(7px); 
  -webkit-backdrop-filter: blur(7px); 
  padding: 2rem;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

  nav.active {
    transform: translateX(0);
  }

  .home,
  .about,
  .education-container,
  .skills-container,
  .projects-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .img-about img,
  .edu-img img {
    width: 80%;
    height: auto;
    margin-bottom: 2rem;
  }

  .skill-card {
    max-width: 90%;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 50%;
  }

  nav {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    height: auto;
    position: static;
    background-color: transparent;
    padding: 0;
  }

  nav a {
    font-size: 1.6rem;
    margin: 0 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}


footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
  margin-top: 50px;
}

.footer-content h3 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}

.footer-content p {
  font-size: 16px;
  margin: 10px 0 20px;
  color: #ccc;
}

.footer-socials a {
  margin: 0 10px;
  font-size: 20px;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #00bcd4; 
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 15px;
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-content h3 {
    font-size: 22px;
  }

  .footer-content p {
    font-size: 14px;
  }

  .footer-socials a {
    font-size: 18px;
  }
}




