@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root{
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --main-color: #c7bb0f;
  --white-color: #fff;
  --disabled-color: #fff3;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  color: #fff;
}

header {
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8); 
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px;
  position: fixed;
}

.logo img{
  width: 90px;
  height: 90px;
}

#menu-icon{
  font-size: 4rem;
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

nav ul li i{
  color: var(--main-color);
  font-size: 2.5rem;
}


  /***** SLIDER CONTAINER *****/
  .slider {
    position: relative;
    width: 100%;
    max-width: 1500px; /* Adjust if needed */
    height: 600px;     /* Adjust if needed */
    margin: 0 auto;    /* Center the slider horizontally, no top margin so it starts from the top */
    overflow: hidden;
  }

  /***** SLIDE *****/
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;                  /* Initially hidden */
    transition: opacity 1s ease; /* Fade-in/out transition */
  }
  .slide.active {
    opacity: 1; /* Show the active slide */
    z-index: 1;
  }
  /* Ensure images cover the entire slider area */
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /***** OVERLAY (DARK BACKGROUND + TEXT) *****/
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Semi-transparent black overlay */
    z-index: 2;                  /* Above the images */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .overlay-text {
    color: #fff;
    font-family: sans-serif;
    line-height: 1.4;
  }
  .overlay-text h2 {
    font-size: 5.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px black;
    font-weight: 700;
    color: var(--main-color);
  }

  .overlay-text p{
      font-size: 2.3rem;
  }

  /***** LEFT/RIGHT CONTROLS *****/
  .controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3; /* Above the overlay for easy clicking */
  }
  .prev, .next {
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    margin: 0 10px;
    user-select: none;
  }
  .prev:hover, .next:hover {
    background: rgba(0,0,0,0.6);
  }

  /* Replace < and > with more stylish unicode arrows */
  .prev::before {
      content: "\276E";  /* &#10094; */
  }
  .next::before {
      content: "\276F";  /* &#10095; */
  }

  /***** DOT INDICATORS *****/
  .dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
  }
  .dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
  }
  .dot.active {
    background: #fff;  /* Filled circle for active slide */
  }


/* ABOUT SECTION STYLES */
.about-section {
    max-width: 1200px; /* limit the overall width if desired */
    margin: 40px auto; /* center horizontally with some top/bottom margin */
    padding: 20px;
    text-align: center; /* center the heading */
  }
  
  /* Heading styling */
  .about-section h2 {
    font-size: 5rem;
    margin-bottom: 30px;
    font-weight: 700;
  }
  
  /* Container for image + text */
  .about-container {
    display: flex;
    flex-wrap: wrap;       /* Allows wrapping on small screens */
    align-items: center;   /* Vertically center items if there's extra space */
    justify-content: center; /* Center horizontally if widths are smaller */
    gap: 20px;             /* Space between image and text */
  }
  
  /* Left side image */
  .about-image {
    flex: 1 1 300px; /* Grow and shrink, minimum 300px width */
    max-width: 500px; /* Optional limit to prevent excessively large images */
  }
  
  .about-image img {
    width: 100%;
    height: auto; /* Keep aspect ratio */
    display: block;
    border-radius: 4px; /* Optional: slightly rounded corners */
  }
  
  /* Right side text */
  .about-text {
    flex: 1 1 400px; /* Grow/shrink with a min width around 400px */
    font-size: 2rem;
    line-height: 1.6;
    color: #fff;
    text-align: left; /* Typically left-align paragraphs */
  }
  
  /* Optional: responsive tweak for smaller screens */
  @media (max-width: 768px) {
    .about-container {
      flex-direction: column; /* Stack image and text vertically */
      text-align: center;     /* Center text on smaller screens if desired */
    }
    .about-text {
      text-align: center; /* or left, as you prefer */
    }
  }

/* contact */
.contact-container{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-box{
  padding-left: 2rem;
  padding-right: 2rem;
}

.contact-container .contact-box:first-child{
  align-self: center;
}

.contact-box h2{
  font-size: 4.5rem;
}

.contact-box p{
  font-size: 1.6rem;
}

.contact-box .desc{
  margin: 1.5rem 0 2.5rem;
  margin-left: 20rem;
  font-size: 3rem;
  font-weight: 700;
  color: var(--main-color);
}

.contact-box .contact-details{
  display: flex;
  align-items: center;
  margin: 1rem 0;  
}

.contact-details i{
  display: inline-flex;
  background: var(--second-bg-color);
  color: var(--main-color);
  font-size: 3rem;
  padding: 1.2rem;
  border-radius: .6rem;
  margin-right: 1.5rem;
}

.contact-details .details p:first-child{
  color: var(--main-color);
}

.contact-box form{
  background: var(--second-bg-color);
  padding: 0.5rem;
  border-radius: 1rem;
  text-align: center;
}

.contact-box heading{
  font-size: 3.5rem;
}

.contact-box .field-box{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-box .field-box input,
.contact-box .field-box textarea{
  padding: 1.5rem;
  background: var(--bg-color);
  border: .15rem solid var(--bg-color);
  border-radius: .6rem;
  font-size: 1.5rem;
  color: var(--white-color);
}

.contact-box .field-box textarea{
  grid-column: 1 / -1;
  height: 26rem;
  resize: none;
}

.contact-box .btn{
  margin-top: 2rem;
  cursor: pointer;
  background: var(--main-color);
  color: black;
}

.contact-box .btn:hover{
  font-weight: 700;
  background: white;
  transition: 0.3s ease-in;
}


/* ABOUT SECTION STYLES */
.about-section {
  max-width: 1200px; /* limit the overall width if desired */
  margin: 40px auto; /* center horizontally with some top/bottom margin */
  padding: 20px;
  text-align: center; /* center the heading */
}

/* Heading styling */
.about-section h2 {
  font-size: 5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Container for image + text */
.about-container {
  display: flex;
  flex-wrap: wrap;       /* Allows wrapping on small screens */
  align-items: center;   /* Vertically center items if there's extra space */
  justify-content: center; /* Center horizontally if widths are smaller */
  gap: 20px;             /* Space between image and text */
}

/* Left side image */
.about-image {
  flex: 1 1 300px; /* Grow and shrink, minimum 300px width */
  max-width: 500px; /* Optional limit to prevent excessively large images */
}

.about-image img {
  width: 150%;
  height: 450px; /* Keep aspect ratio */
  display: block;
  margin-left: -100px;
  border-radius: 4px; /* Optional: slightly rounded corners */
}

/* Right side text */
.about-text {
  flex: 1 1 400px; /* Grow/shrink with a min width around 400px */
  font-size: 2rem;
  line-height: 1.6;
  color: #fff;
  text-align: left; /* Typically left-align paragraphs */
}

/* Optional: responsive tweak for smaller screens */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column; /* Stack image and text vertically */
    text-align: center;     /* Center text on smaller screens if desired */
  }
  .about-text {
    text-align: center; /* or left, as you prefer */
  }
}


/* LOCATION SECTION STYLES */
.location-section {
  max-width: 1200px; /* limit the overall width if desired */
  margin: 40px auto; /* center horizontally with some top/bottom margin */
  padding: 20px;
  text-align: center; /* center the heading */
}

/* Heading styling */
.location-section h2 {
  font-size: 5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Container for image + text */
.location-container {
  display: flex;
  flex-wrap: wrap;       /* Allows wrapping on small screens */
  align-items: center;   /* Vertically center items if there's extra space */
  justify-content: center; /* Center horizontally if widths are smaller */
  gap: 20px;             /* Space between image and text */
}

/* Left side image */
.location-image {
  flex: 1 1 300px; /* Grow and shrink, minimum 300px width */
  max-width: 500px; /* Optional limit to prevent excessively large images */
}

.location-image iframe{
  border-radius: 2em;
  border: none;
  width: 400px;
  height: 300px;
  transition: 0.3 ease-in-out;
}

.location-image iframe:hover{
  transform: scale(1.1);
}

/* Right side text */
.location-text {
  flex: 1 1 400px; /* Grow/shrink with a min width around 400px */
  font-size: 2rem;
  line-height: 1.6;
  color: #fff;
  text-align: left; /* Typically left-align paragraphs */
}

/* Optional: responsive tweak for smaller screens */
@media (max-width: 768px) {
  .location-container {
    flex-direction: column; /* Stack image and text vertically */
    text-align: center;     /* Center text on smaller screens if desired */
  }
  .location-text {
    text-align: center; /* or left, as you prefer */
  }
}
  
  /* Horizontal rule style */
  hr {
    border: none;
    border-top: 1px solid #444;
    margin-top: 20px;
  }

h2{
  font-size: 5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.footer-copy p{
  padding-bottom: 20px;
}

/* header */

header{
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 5%;
  background: rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
}

header.active{
  animation: show-header 1.5s linear forwards;
  animation-delay: 1.2s;
}

@keyframes show-header{
  100%{
      visibility: visible;
      opacity: 1;
  }
}

.logo{
  font-size: 3rem;
  color: var(--white-color);
  font-weight: 700;
}

nav a{
  font-size: 2rem;
  color: black;
  font-weight: 500;
  margin-left: 3.5rem;
  transition: 0.5s;
}

nav a:hover, nav a.active{
  color: var(--main-color);
}

nav a:hover{
  text-decoration: none;
  font-weight: 700;
}

#menu-icon{
  font-size: 4rem;
  color: black;
  display: none;
}


/* responsive */
@media screen and (max-width: 1200px) {
  html{
      font-size: 55%;
  }
}

@media screen and (max-width: 992px) {
  header{
      padding: 0 4%;
  }

  section{
      padding: 10rem 4% 2rem;
  }
}

@media screen and (max-width: 810px) {
  .contact-box .field-box{
      grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  #menu-icon{
      display: block;
  }

  nav{
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 0;
      background: var(--bg-color);
      border-top: 1rem solid rgba(0, 0, 0, .2);
      box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
      text-align: center;
      display: none
  }

  nav.active{
      display: block;
  }

  nav a{
      display: block;
      margin: 4rem 0;
      color: #fff;
  }

  .home{
      flex-direction: column-reverse;
      justify-content: center;
      gap: 2rem;
  }

  .home-img .img-box{
      width: 35rem;
      height: 35rem;
  }

  .resume-container, .portfolio-container, .contact-container{
      grid-template-columns: 1fr;
  }

  .resume-container{
      gap: 3rem;
  }

  .portfolio-container .portfolio-box:first-child{
      order: 1;
  }

  .contact-box .field-box{
      grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .home-img .img-box{
      width: 30rem;
      height: 30rem;
  }

  .contact-box .field-box{
      grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 450px) {
  html{
      font-size: 50%;
  }
}

@media screen and (max-width: 400px) {
  .home-detail, .resume-box h2, .resume-box .heading, .resume-box .desc, .resume-details.aboutme , .resume-item{
      text-align: center;
  }

  .home-detail .btn-sci{
      flex-direction: column-reverse;
  }
  
  .home-detail .btn-sci .sci{
      margin-left: 0;
      margin-bottom: 2rem;
  }

  .contact-box form{
      padding: 2.5rem 3rem 3.5rem;
  }

  .contact-box h2{
      font-size: 3.5rem;
  }
}