@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;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg-color: #000000;
  --second-bg-color: #111111;
  --text-color: #ffffff;
  --main-color: #e9ae0c;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
}

html::-webkit-scrollbar{
  width: 0.8rem;
}

html::-webkit-scrollbar-track{
  background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 9%;
  background: rgba(0, 0, 0, 0.7);
  filter: drop-shadow(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.logo {
  font-size: 2rem;
  color: var(--main-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

/* Hide the checkbox */
#menu-toggle {
  display: none;
}

/* Style the menu icon */
.menu-icon {
  font-size: 2.5rem;
  color: var(--text-color);
  cursor: pointer;
  display: none;
}

/* Navbar links styling */
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

/* Hover effect */
.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

/* Responsive styles */
@media (max-width: 995px) {
  .menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 60%;
    background-color: var(--second-bg-color);
    border-left: 3px solid var(--main-color);
    padding: 1rem 3%;
    display: none;
    flex-direction: column;
  }

  /* Show navbar only when checkbox is checked */
  #menu-toggle:checked ~ .navbar {
    display: flex;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .navbar a:hover,
  .navbar a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--main-color);
  }
}

section {
  min-height: 100vh;
  padding: 5rem 9% 5rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background: var(--bg-color);
  padding-top: 12rem; /* NEW LINE: push content below header */}
.home.home-content {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

span {
  color: var(--main-color);
}

.home-content h3{
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.home-img {
  border-radius: 50%;
}

.home-img img {
  position: relative;
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
}

.home-img img:hover {
  transform: scale(1.01);
  filter: drop-shadow(0 0 25px var(--main-color));
}

.home-content p {
  font-size: 1.8rem;
  font-weight: 500;
}

.social-icon a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  font-size: 2rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
}

.social-icon a:hover{
  color: white;
  transform: scale(1.3)translateY(-5px);
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}

.btn{
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--bg-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover{
  transform: scale(1.03);
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 25px var(--main-color);;
}

.typing-text{
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}



@media (max-width: 600px) {
  .home {
    flex-direction: column;
    gap: 3rem;
  padding: 15rem 5% 5rem; /* ⬅️ Top padding to avoid overlap */  }

  .home-img img {
    width: 70vw; /* smaller width so it fits well */
    max-width: 300px; /* optional max size */
  }

  .home-content {
    font-size: 4rem;
    text-align: center;
  }

  .home-content p {
    font-size: 1.4rem;
  }

  .social-icon a {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    margin: 1.5rem 0.75rem 1.5rem 0;
  }

  .btn {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }
}
/* Projects Section */
.projects {
  background: var(--second-bg-color);
  padding: 8rem 5% 4rem;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: stretch;
}

/* Individual Project Card */
.projects-box {
  background: var(--second-bg-color);
  border: 1px solid var(--main-color);
  border-radius: 3rem;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  height: auto;
}

.projects-box:hover {
  background: var(--main-color);
  color: white;
  transform: scale(1.03);
}

.projects-box:hover .important-text {
  color: black;
}

/* Project Content */
.projects-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.projects-info h4 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.projects-info p {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0;
}

.important-text {
  font-weight: 600;
  color: var(--main-color);
}

/* Project Button */
.btn-projects {
  display: inline-block;
  width: fit-content;
  padding: 1rem 2.8rem;
  background: var(--second-bg-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
  margin-top: 1.5rem;
}

.btn-projects:hover {
  transform: scale(1.03);
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 25px var(--main-color);
}

/* Section Heading */
.heading {
  font-size: 4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4rem;
  color: white;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .projects {
    padding: 6rem 5% 3rem;
  }

  .projects-info h4 {
    font-size: 1.8rem;
  }

  .projects-info p {
    font-size: 1.3rem;
  }

  .btn-projects {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }
}


/* skills section */
.skills{
  background: var(--bg-color);
}

.skills .container{
  background:var(--bg-color);
  color: var(--text-color);
  border-radius: 1rem;
  padding: 2rem;
  width: 70%;
  margin: auto;
  margin-top: 2rem;
}

.skills .container .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}

.skills .container .bar{
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  background: var(--bg-color);
  box-shadow: 0 4px 10px var(--main-color);
  transition: 0.3s ease;
}

.skills .container .bar:hover{
  box-shadow: 0 4px 10px var(--main-color);
  transform: scale(1.03);
}

.skills .container .bar .info{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}



.skills-img{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

@media (max-width: 600px) {
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*education section*/

.education{
  background: var(--second-bg-color);
}

.education .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}


.education .container{
  padding: 10px 40px;
  position: relative;
  background: inherit;
  width: 50%;
}

.education .container::after{
  content: '\f501';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(252,252,252);
  border: 4px solid var(--main-color);
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  font-family: "Font Awesome\ 5 Free";
  color: rgb(90,64,64);
  box-shadow: 0 4px 10px var(--main-color);
  transition: 0.3s ease;
}

.education .left {
  left:0;
}

.education .right {
  left: 50%;
} 


.education .right::after{
  left: -16px;
  
}

.education .content {
  background: var(--second-bg-color);
  position: relative;
  border-radius: 10px;
  border: solid var(--main-color);;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px var(--main-color);
  transition: 0.3s ease;
}

.education .content:hover{
  box-shadow: 0 4px 10px var(--main-color);
  transform: scale(1.06);
}

.education .content .tag{
  font-size:1.5rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}

.education .content .decs{
  padding-bottom: 1rem;
  margin-left: 15px;
}

.education .content .desc h3{
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 15px;
  color: var(--main-color);
  margin-bottom: 15px;
}

.education .content .desc p{
  font-size: 1.3rem;
  font-weight: 500;
  margin-left: 15px;
}

.last-para{
  font-size: 1.3rem;
  font-weight: 500;
  margin-left: 15px;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .education .container {
    width: 100% !important; /* Full width */
    padding: 10px 20px; /* Adjust padding */
    left: 0 !important; /* Reset left positioning */
    margin-bottom: 2rem; /* Space between timeline items */
    padding-left: 30px;
  }

  /* Position circle icon on the left side */
  .education .container::after {
    right: auto !important;
    left: -12px; /* Adjust to align the circle */
  }
}

.contact h2{
  margin-bottom: 3rem;
  color: white;
}

.contact form{
  max-width: 70rem;
  margin: 1rem auto;
  margin-bottom: 3rem;
  text-align: center;
}

.contact form .input-box{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input, 
.text-area{
  width:100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 0.8rem;
  border: 2px solid var(--main-color);
  margin: 1rem 0;
  resize: none;
}

.contact form .btn{
  margin-top: 2rem;
}

/*footer*/ 
footer {
  background: var(--second-bg-color);
  padding: 2rem 9%;
  text-align: center;
}
footer .copyright{
  margin-top: 50px;
  text-align: center;
  font-size: 12px;
  color: white;
  margin-bottom: 50px;
}

