/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Courier New", Courier, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: black;
  color: white;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

section {
  min-height: 100vh;
  padding: 100px 8% 50px;
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
}

.logo {
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

nav a:hover {
  color: #b74b4b;
}

/* ================= HOME ================= */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.home-img img,
.about .left img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px #b74b4b;
}

.home-content h1{
    font-size: 4rem;
    color: white;
    margin-bottom: 8px;
    line-height: 1.1;
}

.home-content h2{
    font-size: 2.8rem;
    color: #b74b4b;
    line-height: 1.2;
    white-space: nowrap;
    margin-bottom: 25px;
}

.home-content{
    max-width: 650px;
}

.home-content p {
  font-size: 18px;
}

span {
  color: #b74b4b;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.social-icons a {
  border: 2px solid #b74b4b;
  border-radius: 50%;
  padding: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #b74b4b;
  border-radius: 30px;
  color: #b74b4b;
  text-decoration: none;
}

/* ================= ABOUT ================= */

.About{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 80px 10%;
    background: black;
}

.about-img img{
    width: 280px;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.about-content{
    max-width: 800px;
    text-align: center;
}

.small-title{
    font-size: 1.2rem;
    color: white;
    margin-bottom: 8px;
}

.about-content h1{
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.about-details h2{
    font-size: 1.8rem;
    color: white;
    margin: 15px 0 8px;
}

.about-details p{
    font-size: 1.2rem;
    line-height: 1.7;
    color: white;
    margin-bottom: 12px;
}

/* ================= SKILLS ================= */
.heading {
  text-align: center;
  margin-bottom: 40px;
}

.skillcontent {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.skillbox {
  width: 250px;
  background: #2c1b1b;
  border-radius: 20px;
  padding: 20px;
}

.boxhead {
  text-align: center;
  margin-bottom: 20px;
}

.boxcontent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.boxcontent img {
  width: 40px;
}

/* ================= PROJECT ================= */
.projectcontainer1 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.projects {
  width: 290px;
  min-height: 400px;
  background: #2c1b1b;
  border-radius: 20px;
  padding: 20px;
  flex-shrink: 0;
}

.projects img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* ================= CONTACT ================= */
.contact {
    padding: 80px 10%;
    background: black;
    color: white;
    text-align: center;
}

.contact-box {
    background: #2c1b1b;
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    margin: auto;
}

.contact-box h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 22px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 24px;
    margin: 15px 0;
}

.contact .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.contact .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #b74b4b;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: 0.3s;
}

.contact .social-icons a:hover {
    transform: scale(1.1);
    background: white;
    color: #b74b4b;
}


/* ================= MOBILE ================= */
@media screen and (max-width: 360px){
    .skills{
        padding: 40px 20px;
    }

    .skills-container{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .skill-box{
        width: 100%;
        max-width: 320px;
        min-height: 350px;
        padding: 25px;
        border-radius: 20px;
    }

    .skill-box h1{
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .skill-item{
        gap: 15px;
        margin-bottom: 20px;
    }

    .skill-item img{
        width: 40px;
        height: 40px;
    }

    .skill-item h2{
        font-size: 1.4rem;
    }
}


@media screen and (min-width: 360px) and (max-width: 430px) {

  header{
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  .logo{
    font-size: 20px;
    text-align: center;
  }

  nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a{
    font-size: 14px;
  }

  .home{
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding-top: 140px;
  }

  .home-img img{
    width: 220px;
    height: 220px;
  }

  .home-content h1{
    font-size: 2.2rem;
  }

  .home-content h2{
    font-size: 1.6rem;
    white-space: normal;
  }

  .social-icons{
    justify-content: center;
  }

  .About{
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-img img{
    width: 220px;
    height: 350px;
  }

  .about-content h1{
    font-size: 2.2rem;
  }

  .about-details p{
    font-size: 1rem;
  }

  .skillcontent{
    flex-direction: column;
    align-items: center;
  }

  .skillbox{
    width: 100%;
    max-width: 320px;
  }

  .projectcontainer1{
    flex-direction: column;
    align-items: center;
  }

  .projects{
    width: 100%;
    max-width: 320px;
  }

  .contact-box{
    padding: 20px;
  }

  .contact-box h2{
    font-size: 28px;
  }

  .contact-box p,
  .contact-info p{
    font-size: 16px;
  }

  .bottom{
    text-align: center;
    padding: 15px;
    font-size: 14px;
  }
}



/* Responsive for all mobile devices */
@media screen and (max-width: 767px) {

  *{
    box-sizing: border-box;
  }

  body{
    overflow-x: hidden;
  }

  section{
    padding: 80px 20px;
  }

  .home,
  .About{
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .home-img img,
  .about-img img{
    width: 70vw;
    max-width: 250px;
    height: auto;
  }

  .home-content h1{
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .home-content h2{
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    white-space: normal;
  }

  .skillcontent,
  .projectcontainer1{
    flex-wrap: wrap;
    justify-content: center;
  }

  .skillbox,
  .projects{
    width: 100%;
    max-width: 320px;
  }

  nav{
    flex-wrap: wrap;
    justify-content: center;
  }
}