@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
}

  :root {
    --bg-color: #000;
    --second-bg-color: #202020;
    --third-bg-color: #D7D7D7;
    --text-color: #fff;
    --second-color: #ccc;
    --main-color: #ff4d05;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
}
  
  body, html {
    font-family: 'Segoe UI', sans-serif;
    color: #000;
    background-color: #000;
  }
  
  /* Navbar */
  header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 22px 15%;
    transition: all .45s ease;
}

header.sticky {
    background: var(--bg-color);
    border-bottom: 1px solid #ffffff1a;
    padding: 12px 15%;
}

.logo img {
    height: 50px;
}

.navlist {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navlist a {
    color: var(--second-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    margin: 0 25px;
    transition: all .45s ease;
}

.navlist a:hover,
.navlist a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 35px;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}
  
  /* Mobile Menu */
  .menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
  }
  
  /* Hero Section */
  .hero {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: visible;
  }
  
  .hero-text {
    flex: 1;
    background-color: #D7D7D7;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    z-index: 2;
  }
  
  .hero-text p {
    font-size: 3rem;
    color: #333;
  }
  
  .hero-text h1 {
    font-size: 5rem;
    color: var(--main-color);
    margin-top: 0.5rem;
  }
  
  .hero-text .title {
    font-size: 3rem;
    color: #888;
    margin: 0.5rem 0;
  }
  
  .contact-icons i {
    height: 45px;
    width: 45px;
    background: var(--main-color);
    color: var(--text-color);
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 15px;
    transition: all .45s ease;
}

.contact-icons i:hover {
    background: var(--text-color);
    color: var(--main-color);
    border: 1px solid var(--main-color);
}
  
  .hero-image {
    flex: 1;
    background-color: #000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(-20%);
    z-index: 1;
  }
  
  .hero-image img {
    width: 100%;
    max-width: 750px;
    object-fit: contain;
  }

  .btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--main-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all .45s ease;
  }

  .btn:hover {
    transform: scale(0.95);
    background: var(--text-color);
    color: var(--main-color);
  }

  section {
    padding: 120px 15% 100px;
}
  
  /* About */
  .about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
    background-color: var(--second-bg-color);
  }

  .about-img {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
  }

  .about-img img {
      width: 100%;
      max-width: 800px;
      height: auto;
      border-radius: 8px;
      position: relative;
      z-index: 2;
  }

  .img-border-square {
    position: absolute;
    top: 100px;       
    left: -100px;     
    width: 100%;
    height: 100%;
    border: 5px solid #ff4d05;
    box-sizing: border-box;
    z-index: 1; 
  }

  .about-text h2 {
      font-size: var(--h2-font);
      line-height: 2;
  }

  .about-text h4 {
      font-size: 24px;
      font-weight: 600;
      color: var(--text-color);
      line-height: 2;
      margin: 15px 0 30px;
  }

  .about-text {
      color: var(--second-color);
      font-size: var(--p-font);
      line-height: 1.8;
      margin-bottom: 4rem;
  }

  .projects {
    background: var(--third-bg-color);
}

.projects h2 {
  color: var(--main-color);
}

.projects .port {
  color: var(--second-bg-color);
}

.main-text {
    text-align: center;
}

.title {
    text-align: left;
    color: var(--second-bg-color);
    padding-bottom: 5px;
}

.main-text p {
    color: var(--second-color);
    font-size: 15px;
    margin-bottom: 15px;
}

.main-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.row img {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.1), #343434);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
}

.layer h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p {
    color: var(--second-color);
    font-size: 1rem;
    line-height: 1.8;
}

.layer i {
    color: var(--main-color);
    margin-top: 20px;
    font-size: 20px;
    background: var(--text-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img {
    transform: scale(1.1);
}

.row:hover .layer {
    height: 100%;
}

.experience {
    background: var(--second-bg-color);
}

.experience h2 {
  color: var(--main-color);
}

.experience-content {
    margin-top: 5rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--third-bg-color);
    padding: 20px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all .45s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--second-bg-color);
}

.timeline-item h4 {
    font-size: 18px;
    color: var(--second-bg-color);
    margin: 10px 0;
}

.timeline-item .company {
    color: var(--main-color);
}

.timeline-item p {
    color: var(--bg-color);
    font-size: var(--p-font);
    line-height: 1.8;
}

.timeline-item ul {
    color: var(--second-bg-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-top: 10px;
}

.timeline-item ul li {
    margin-bottom: 10px;
}

.contact {
    display: grid;
    background-color: var(--second-bg-color);
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.contact-form {
  color: var(--main-color);
}

.contact-text h2 {
    color: var(--main-color);
    font-size: var(--h2-font);
    line-height: 1;
}

.contact-text h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 15px 0;
}

.contact-text p {
    color: var(--second-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 30px;
}

.list {
    margin-bottom: 2.8rem;
}

.list li {
    margin-bottom: 12px;
}

.list li a {
    color: var(--second-color);
    font-size: 14px;
    transition: all .45s ease;
}

.list li a:hover {
    color: var(--text-color);
    transform: translateX(5px);
}

.contact-form form {
    position: relative;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    outline: none;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.contact-form textarea {
    resize: none;
    height: 240px;
}

.contact-form .submit {
    display: inline-block;
    font-size: 16px;
    background: var(--main-color);
    color: var(--text-color);
    width: 160px;
    transition: all .45s ease;
}

.contact-form .submit:hover {
    transform: scale(1.1);
    background: var(--text-color);
    color: var(--main-color);
    cursor: pointer;
    border: 1px solid var(--main-color);
}


.end {
  padding: 20px 15%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--bg-color);
}

.last-text p {
  color: var(--second-color);
  font-size: 14px;
  align-items: center;
}

.top i {
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-color);
  background: var(--main-color);
}

.top i:hover {
  transform: scale(1.1);
  background: var(--text-color);
  color: var(--main-color);
  cursor: pointer;
  border: 1px solid var(--main-color);
}
  
  /* Responsive */
  @media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    .navlist {
        position: absolute;
        top: -1000px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        transition: all .45s ease;
    }
    .navlist.open {
        top: 100%;
    }
    .navlist a {
        display: block;
        margin: 17px;
        font-size: 20px;
        color: var(--text-color);
    }
    .navlist a:hover, .navlist a.active {
        color: var(--main-color);
    }
  
    .hero {
        flex-direction: column;
        padding-top: 10px;
      }
    
      .hero-image {
        order: 1;
        transform: none;
        clip-path: none;
        align-items: center;
        justify-content: center;
        z-index: 1;
        transform: translateY(15%);
      }
    
      .hero-text {
        order: 2;
        padding-top: 90px;
        clip-path: none;
        text-align: left;
        align-items: flex-start;
        position: relative;
        z-index: 2;
        clip-path: polygon(0 25%, 100% 0, 100% 100%, 0% 100%);
      }

      .hero-text p {
        font-size: 1rem;
        font-weight: 700;
      }
      
      .hero-text h1 {
        font-size: 2rem;
      }
      
      .hero-text .title {
        font-size: 1rem;
        padding-bottom: 2px;
      }
    
      .hero-image {
        order: 1;
      }
    
      .hero-text {
        order: 2;
      }

      .contact-icons {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }
      
      .about, .contact {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    .about-img {
        text-align: center;
        margin-bottom: 2rem;
    }
    .about-img img {
        width: 100%;
        max-width: 900px;
    }

    .about-text h2 {
      font-size: 30px;
      line-height: 1;
  }
  
  .about-text p, li {
      font-size: 15px;
      line-height: 1.8;
  }

    .img-border-square {
      top: 50px;
      left: -10px;
    }

    section {
      padding: 110px 5% 60px;
  }
  .end {
      padding: 15px 5%;
  }
}
  