@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap");
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Nunito", sans-serif;
}

:root{
  --bg-color:#2d3638;
  --snd-bg-color:#393d3e;
  --text-color: #ffffff;
  --main-color: #3d61f0;
}

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

body{
  background: var(--bg-color);
  color: var(--text-color);
}

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

.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--snd-bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo{
  font-size: 2.5rem;
  font-weight: 400;
  cursor: default;
  color: rgb(255, 106, 0);
}

.navbar a{
  font-size: 1.5rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 700;
}

.navbar a:hover{
  color: rgb(255, 0, 195);
}

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

.home{
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img img{
  margin-left: 10rem;
}

.home-content h3{
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2){
  margin-bottom: 2rem;
}

span{
  color: rgb(255, 106, 0);
}
.home-content h1{
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-img img{
  width: 25vw;
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2,4rem);
  }
  100% {
    transform: translateY(0);
  }
}

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

.social-media a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: .2rem solid black;
  border-radius: 50%;
  font-size: 2rem;
  color: white;
  margin: 3rem 1.5rem 3rem 0;
  transition: .5s ease;
}

.social-media a:hover{
  background: rgb(255, 0, 195);
  color: white;
  box-shadow: 0 0 1rem var(--main-color);
}

.btn{
    display: inline-block;
    width: 320px;      
    padding: 1rem 2rem;
    background: blue;
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: rgb(241, 240, 240);
    font-weight: 600;
    text-align: center;
    transition: .5s ease;
}

.resume-buttons{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn:hover{
  box-shadow: none;
  background: #ff0000;
}

.about {
  background-color: #111;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical center */
  align-items: center;      /* horizontal center */
  text-align: center; 
}

.about .heading {
  font-size: 32px; /* Slightly reduced */
  font-weight: bold;
  color: #00ffff;
  margin-bottom: 20px;
}

.about .heading span {
  color: #ffffff;
}

.about-content p {
  font-size: 18px;  /* Medium font size */
  line-height: 1.7;
  max-width: 750px;
  color: #e0e0e0;
  margin: 0 20px;
  text-align: justify;
}

.heading{
  text-align: center;
  font-size: 4.5rem;
}

.skills-section{
  background-color: #2d3638;  
  justify-content: center;  /* vertical center */
  align-items: center;      /* horizontal center */
  text-align: center; 
}

.skills-section .heading {
  font-size: 32px; /* Slightly reduced */
  font-weight: bold;
  color:#ffffff;
  margin-bottom: 20px;
}

.skills-section .heading span {
  color:  #20ff23;
}


.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center align overall items */
  gap: 20px;
}

.skill-box {
  width: 22%; /* Approx 4 per row */
  min-width: 200px;
  background-color: #ff50aa;
  padding: 15px;
  font-family: 'Times New Roman', Times, serif;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.skills-section .skills-container .skill-box .p{
  font-size: 20px;
  font-weight: 800;
}

.skill-box:hover {
  transform: scale(1.05);
}

.skill-box img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.projects-section {
  padding: 125px;
  background-color: #111;
  color: white;
  justify-content: center; /* Horizontal center */
  align-items: center;     /* Vertical center */        /* Full screen height */
  text-align: center;
}

.projects-section .section-title {
  font-size: 32px; /* Slightly reduced */
  font-weight: bold;
  color:#ffffff;
  margin-bottom: 20px;
}

.projects-section .section-title span {
  color:  #00ffff;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* EXACTLY 2 per row */
  gap: 30px;
  justify-content: center; /* center the whole grid */
  max-width: 900px;
  margin: 0 auto; /* center horizontally */
}

.project-card {
  background-color: #1e1e1e;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
  font-size: 0.95rem;
}

.project-card:hover {
  transform: scale(1.05);
}

.projects-section .projects-container .project-card .p{
  font-size: 15px;
}

.project-card h3 {
  margin-bottom: 10px;
  color: #00ffcc;
  font-size: 20px;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: #000000;
  background-color: #0d00ff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--text-color);
  letter-spacing: .1rem;
  font-weight: 600;
}

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

/*Responsiveness*/
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr;
  }
}

.contact-section {
  padding: 125px;
  background-color: #2d3638;
  color: white;
  justify-content: center; /* Horizontal center */
  align-items: center;     /* Vertical center */        /* Full screen height */
  text-align: center;
}

.contact-section .section-title {
  font-size: 32px; /* Slightly reduced */
  font-weight: bold;
  color:#20ff23;
  margin-bottom: 20px;
}

.contact-section .section-title span {
  color:  #ffffff;
}

.contact-section ul {
  list-style: none;
  padding: 40px;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

.contact-section li {
  margin-bottom: 15px;
  font-size: 20px;
  line-height: 1.6;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  text-align: justify;
}

.contact-section li strong{
  color: rgb(255, 106, 0);
}

.contact-section a {
  color: #001be8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: #01ff3c;
}


.footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--snd-bg-color);
}

.footer-text{
  font-size: 1.6rem;
}

.footer-iconTop{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem 1rem;
  background: rgb(255, 106, 0);
  border-radius: .8rem;
  transition: .5s ease;
}

.footer-iconTop:hover{
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i{
  font-size: 2.4rem;
  color: white;
}

@media(max-width: 1200px){
  html{
    font-size: 55%;
  }
}

@media(max-width: 991px){
  .header{
    padding: 2rem 3%;
  }

  section{
    padding: 10rem 3%;
  }
  .skills{
    padding: 7rem;
  }
  .projects{
    padding-bottom: 7rem;
  }
  .contact{
    min-height: auto;
  }
  .footer{
    padding: 2rem 3%;
  }
}

@media(max-width: 768px){
  #menu-icon{
    display: block;
  }

  .navbar{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: .1rem solid rgba(0,0,0,.2);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
    display: none;
  }

  .navbar.active{
    display: block;
  }

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

  .home-content h3{
    font-size: 2.6rem;
  }

  .home-content h1{
    font-size: 5rem;
  }

  .home-content{
    order: 2;
    width: 50%;
  }

  .home-img img{
    width: 70vw;
    margin-top: 4rem;
  }
  .home-img{
  width: 50%;
  display: flex;
  justify-content: flex-end;
}

  .about{
    flex-direction: column;
  }

  .about-img img{
    width: 90vw;
    margin-top: 4rem;
  }

  .skills h2{
    margin-bottom: 3rem;
  }

  .projects h2{
    margin-bottom: 3rem;
  }
  
  .projects-container{
    grid-template-columns: repeat(2,1fr);
  }
}


@media (max-width: 617px) {
  .projects-container{
    grid-template-columns: 1fr;
  }

  .home-img img{
    width: 80vw;
    margin-top: 8rem;
  }

  .about-img img{
    width: 100vw;
    margin-top: 4rem;
  }
}

@media (max-width: 450px){
  html{
    font-size: 50%;
  }

  .contact form .input-box input{
    width: 100%;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 3.5rem;
  }

  .home-content h3 {
    font-size: 2rem;
  }

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

  .skills-container, .projects-container {
    padding: 1rem;
    gap: 15px;
  }

  .skills-section .skill-box, .project-card {
    width: 100% !important;
  }

  .about-content p,
  .contact-section li {
    padding: 0 1rem;
    text-align: justify;
    font-size: 1.4rem;
  }

  .projects-section,
  .contact-section {
    padding: 4rem 2rem;
  }

  .project-card a {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }

  .navbar {
    padding: 1rem 2rem;
  }

  .footer {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-text {
    font-size: 1.2rem;
  }

  .footer-iconTop a i {
    font-size: 2rem;
  }
}

