* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-width: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* background: transparent; */
}

.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 100px;
}

.dark-mode {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode i {
  font-size: 20px;
  padding: 8px;
  border-radius: 50%;
  color: #333;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.ul-list {
  list-style: none;
  display: flex;
  background-color: rgb(240, 240, 240);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 10px 25px;
  border-radius: 25px;
}

.ul-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 25px;
  transition: 0.3s;
}

.ul-list li .logo {
  margin-right: 140px;
  width: 40px;
  transition: filter 0.3s ease, opacity 0.3s ease;
  /* width: 200px; */
}

.ul-list li a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: black;
}

.ul-list li.active {
  background-color: black;
  padding: 10px 15px;
}

.ul-list li.active a,
.ul-list li.active i {
  color: white;
}

.ul-list li button {
  margin-left: 140px;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

/* .mobile-links {
  display: none;
  justify-content: center;
  list-style: none;
  background: rgba(240, 240, 240, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 17px;
  gap: 15vw;
}

.mobile-links li a {
  font-size: 25px;
  color: #3d3d3d;
}

.mobile-links li.active a {
  color: #000;
} */

/* fine header  */

.home {
  margin: 155px 180px;
}

.home-container {
  display: flex;
  gap: 6rem;
  margin: 25px 0;
}

.home-p {
  color: black;
  background-color: rgba(128, 128, 128, 0.214);
  display: inline-block;
  border-radius: 25px;
  padding: 5px 10px;
  margin-bottom: 15px;
}

.home-s {
  font-weight: bold;
  color: green;
}

.info-home h1 {
  font-size: 55px;
  font-family: "Raleway", sans-serif;
  margin-bottom: 10px;
}

.info-home h3 {
  font-size: 30px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
}

.info-p {
  color: #222;
  font-family: "Roboto", sans-serif;
  padding-bottom: 20px;
  font-size: 20px;
}

.info-p p {
  padding-bottom: 5px;
}

.info-p2 {
  display: flex;
  gap: 1rem;
  color: #2c2c2c;
  font-size: 14px;
  padding-bottom: 20px;
}

.btnn {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
}

.btn-home1 {
  display: flex;
  background-color: #2837d5;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  padding: 10px 15px;
  cursor: pointer;
  gap: 5px;
  align-items: center;
  font-size: 17px;
}

.btn-home1:hover {
  background-color: #2b23ce;
}

.btnn .btn-home1 i {
  width: 20px;
}

.btn-home2 {
  background-color: transparent;
  border: 2px solid black;
  color: #000;
  border-radius: 10px;
  text-decoration: none;
  padding: 10px 10px;
  cursor: pointer;
  transition: 0.4s;
  font-size: 17px;
}

.btn-home2:hover {
  background-color: #d3d3d3df;
}

hr {
  width: 90%;
  font-weight: bold;
  color: gray;
}

.hhr {
  padding-bottom: 30px;
}

.follow {
  display: flex;
  gap: 1rem;
  font-size: 18px;
  font-weight: 700;
}

.follow ul {
  display: flex;
  gap: 2rem;
  font-size: 20px;
}

.follow ul li {
  list-style: none;
}

.follow ul a {
  text-decoration: none;
  color: #2d2d2d;
}

.follow ul a:hover {
  color: #000;
}

.home img {
  width: 400px;
  border-radius: 10px;
}

/* fine home  */

.about {
  margin: 160px 200px;
}

.about p {
  padding-bottom: 25px;
  text-align: center;
  font-size: 15px;
  color: rgb(50, 50, 50);
}

.about h1 {
  font-family: "Open Sans", sans-serif;
  text-align: center;
}

.title {
  padding-bottom: 20px;
}

.about .hrrr {
  width: 35%;
  margin: 0 auto;
  padding-bottom: 40px;
}

.info-about {
  display: flex;
  flex-direction: column;
}

.about-info p {
  font-size: 18px;
}

.about img {
  /* position: relative; */
  /* bottom: 85px; */
  width: 400px;
  height: 400px;
  border-radius: 15px;
  border: 1px solid black;
}

.about h2 {
  padding-bottom: 30px;
}

/* Experience Section */
.experience {
  text-align: center;
  margin: 160px 200px;
}

.experience-title {
  color: rgb(50, 50, 50);
  font-size: 18px;
  margin-bottom: 10px;
}

.experience h1 {
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.experience hr {
  width: 10%;
  margin-bottom: 20px;
  margin: 0 auto 25px;
}

.experience-info {
  max-width: 700px;
  margin: 0 auto 60px;
  color: #555;
  font-size: 1rem;
}

/* Timeline style */
.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #0078ff;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 6px;
  width: 15px;
  height: 15px;
  background-color: #0078ff;
  border-radius: 50%;
}

.timeline-date {
  font-size: 1rem;
  color: #0078ff;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color, #222);
  text-align: start;
  margin-bottom: 11px;
}

.timeline-content p {
  color: #555;
  text-align: start;
  line-height: 1.6;
  font-size: 16px;
}

/* Dark mode support */
body.dark .experience-title {
  color: #f5f5f5bd;
}

body.dark .timeline-content h3 {
  color: #f5f5f5e3;
}

body.dark .experience-info p,
body.dark .timeline-content p {
  color: #bbb;
}

body.dark .timeline-date {
  color: #66aaff;
}

body.dark .timeline-dot {
  background-color: #66aaff;
}

body.dark .experience hr {
  background-color: #66aaff;
}

.techstack {
  color: #000000;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 160px 200px;
}

.techstack hr {
  width: 10%;
  margin-bottom: 20px;
}

.techstack h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.techstack p {
  color: rgb(50, 50, 50);
  font-size: 18px;
  margin-bottom: 10px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 20px;
  max-width: 100%;
  /* margin: 0 auto; */
}

.tech-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #2c2c2f;
  border-radius: 10px;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2);
}

.tech-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tech-info {
  text-align: left;
}

.tech-info h3 {
  font-size: 1rem;
  color: #414141;
  margin: 0;
}

.tech-info p {
  font-size: 0.85rem;
  color: #878787;
  margin: 2px 0 0;
}

.project {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.project p {
  padding-bottom: 20px;
  font-size: 15px;
  color: rgb(50, 50, 50);
}

.project h1 {
  font-family: "Open Sans", sans-serif;
  padding-bottom: 10px;
}

.project hr {
  width: 10%;
}

.info-pro {
  padding: 25px 0;
}

.info-pro p {
  padding-bottom: 15px;
  font-size: 16px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: auto;
  width: 100%;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  height: 270px;
  border-radius: 6px;
  margin-bottom: 15px;
  padding: 0;
}

.project-card h3 {
  color: #1f1f1f;
  margin-bottom: 10px;
  padding: 0 25px;
}

.project-card p {
  color: #646464;
  font-size: 0.9rem;
  margin-bottom: 17px;
  padding: 0 25px;
}

.skills {
  margin-bottom: 15px;
  padding: 0 23px;
}

.skills p {
  display: inline-block;
  background: #ced7f4;
  color: #383838;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 12px;
  margin: 3px;
}

.btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 20px;
}

.btn {
  background: #2245ba;
  color: white;
  text-decoration: none;
  width: 100%;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover {
  background: #153397;
  border-radius: 25px;
}

.contact {
  margin: 160px 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact hr {
  width: 10%;
}

.contact p {
  padding: 20px 0;
  font-size: 15px;
  color: rgb(63, 62, 62);
}

.contact h1 {
  font-family: "Open Sans", sans-serif;
  padding-bottom: 10px;
}

.contact .p-2 {
  font-size: 17px;
  margin-bottom: 25px;
  color: #646464;
}

.contact-content {
  padding-top: 50px;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #222;
  padding: 0 10px;
  border-radius: 5px;
  height: 50px;
  background-color: #cccbdc;
}

.contact-item i {
  font-size: 25px;
  color: #474af0;
}

.social-links {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: #ebebeb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-content: center;
  color: #222;
  font-size: 35px;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  color: #fff;
}

.social-link[href*="facebook"]:hover {
  background: #131dcf;
}

.social-link[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff;
  transform: translateY(-5px);
}

.social-link[href*="github"]:hover {
  background: #000;
}

.social-link[href*="linkedin"]:hover {
  background: #0a66c2;
}

.social-link[href*="wa.me"]:hover {
  background: #25d366;
}

/* Form */
.contact-form {
  flex: 1;
  min-width: 300px;
  width: 100%;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #474af0;
}

.btn-send {
  background: #1c1fbeee;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.btn-send:hover {
  background: #191bb9ee;
}

.footer {
  background-color: #1c1fbeee;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  overflow-x: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #06061b;
}

.footer-copy {
  font-size: 14px;
  color: #aaa;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.active-reveal {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: rgb(222, 222, 222);
  /* background-color: rgb(170, 27, 27); */
}

/* === DARK MODE === */
body.dark {
  background-color: #0f0f0f;
  color: #f5f5f5;
}

/* Navbar */
body.dark .ul-list {
  background-color: #1e1e1e;
  box-shadow: 0 3px 25px rgba(152, 152, 152, 0.1);
}
body.dark .ul-list li a {
  color: #ddd;
}
body.dark .ul-list li.active {
  background-color: #f5f5f5;
}
body.dark .ul-list li.active a,
body.dark .ul-list li.active i {
  color: #0f0f0f;
}

body.dark .dark-mode i {
  color: #fff;
}

/* Sections */
body.dark section {
  background-color: #0f0f0f;
  color: #f5f5f5;
}

/* Hero Section */
body.dark .home .home-p {
  color: #f5f5f5e9;
}

body.dark .info-p,
body.dark .info-p2 {
  color: #a9a9a9;
}

body.dark .btn-home1 {
  background-color: #2421c9 !important;
  color: rgb(255, 255, 255);
}

body.dark .btn-home1:hover {
  background-color: #291bc5 !important;
}

body.dark .btn-home2 {
  background-color: #f5f5f5 !important;
  color: rgb(12, 12, 12) !important;
}

body.dark .btn-home2:hover {
  background-color: #c9c9c9 !important;
}

body.dark .follow ul a {
  color: #606060;
}

body.dark .follow ul a:hover {
  color: #ffffff;
}

/* About Section */
body.dark p#about {
  color: #f5f5f5bd;
}

body.dark .about-info p {
  color: #a9a9a9;
}

/* Tech Stack Section */
body.dark p.tech {
  color: #f5f5f5bd;
}

/* Project Section */
body.dark p.project-title {
  color: #f5f5f5bd;
}
body.dark .info-pro p {
  color: #a9a9a9;
}
body.dark .skills p {
  background: #3b3b3b;
  color: #bebebe !important;
}

/* Contact Section */
body.dark p.contact-title {
  color: #f5f5f5bd;
}
body.dark .contact .p-2 {
  color: #a9a9a9;
}
body.dark .contact-item {
  background-color: #2c2c2c;
  color: #d1d1d1;
}
body.dark .form-group input,
body.dark .form-group textarea {
  background-color: #2c2c2c;
  color: #f5f5f5;
}

body.dark .social-link {
  background: #242424;
  color: #fff;
}

/* Cards */
body.dark .project-card,
body.dark .tech-card {
  background-color: #1a1a1a;
}
body.dark .project-card p,
body.dark .tech-card p {
  color: #a9a9a9a9;
}
body.dark .project-card h3,
body.dark .tech-card h3 {
  color: #f5f5f5eb;
}

/* Buttons */
body.dark .btn-home1,
body.dark .btn-home2 {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}
body.dark .btn-home1:hover,
body.dark .btn-home2:hover {
  background-color: #444;
}

/* Footer */
body.dark .footer {
  background-color: #2023b9ee;
  color: #f5f5f5;
}

/* Dark mode icon toggle */
.dark-mode i {
  color: #333;
}
body.dark .dark-mode i {
  color: #f5f5f5;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  color: #00f0ff;
  text-align: center;
}

.hidden {
  opacity: 0;
  transform: translateY(-200px);
}

.fall {
  animation: fall 0.9s forwards;
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(-200px);
  }
  60% {
    opacity: 1;
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0);
  }
}

.loading-content h1,
.loading-content h2,
.loading-content i {
  margin: 20px 0;
}

.sub-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

#main-page {
  opacity: 0;
  transition: opacity 1s ease;
}

#main-page.visible {
  opacity: 1;
}

/* Responsive Contact */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 1285.6px) {
  .div-list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .dark-mode {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dark-mode i {
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    color: #333;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  .ul-list li .logo {
    margin-right: 50px;
    font-size: 24px;
  }

  .ul-list li a {
    font-size: 12.5px;
  }

  .ul-list li button {
    margin-left: 50px;
    font-size: 24px;
  }
}

@media (max-width: 1139.2px) {
  .ul-list li a {
    font-size: 11.5px;
  }

  .ul-list li .logo {
    margin-right: 0;
  }

  .ul-list li button {
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .div-list {
    width: 100%;
  }
  .ul-list {
    width: 100%;
    justify-content: space-between;
    gap: 0 !important;
  }
  .ul-list li a i {
    font-size: 18px;
  }
  .ul-list li .text-nav {
    display: none;
  }

  /* li.nav-button {
    display: flex;
    gap: 25px;
  } */
  .home,
  .about,
  .project,
  .techstack,
  .experience,
  .contact {
    margin: 110px auto;
    padding: 0 55px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .info-home h1,
  .info-about .title h1,
  .techstack h2,
  .experience h1,
  .project h1,
  .contact h1 {
    font-size: 32px;
  }

  .tech-grid {
    gap: 17px;
    max-width: 100%;
    /* margin: 0 auto; */
  }

  .home-container,
  .about-container {
    flex-direction: column-reverse !important;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .projects-container,
  .contact-content,
  .card {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .about img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    position: hidden;
    z-index: 0;
  }

  .card .c1 {
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
  }

  .home img,
  .project-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    object-fit: cover;
  }
  .hhr hr {
    width: 100%;
  }

  .about .hrrr {
    margin: 0 auto;
  }

  .hrrr hr {
    width: 100%;
  }

  .info-home h3 {
    font-size: 23px;
  }
  .info-p,
  .info-p2,
  .home-p,
  .about p,
  .project p,
  .contact p {
    font-size: 16px;
    justify-content: center;
  }
  .btnn {
    justify-content: center;
  }
  .btn-home1,
  .btn-home2 {
    text-align: center;
  }

  .followw {
    display: none;
  }

  .follow {
    justify-content: center;
  }

  .project-card h3 {
    font-size: 16px;
  }

  .contact-content {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .social-links {
    display: none;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 600px;
  }

  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 938px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    max-width: 100%;
  }
}

/* Phone layout */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .home,
  .about,
  .project,
  .services,
  .contact {
    margin: 100px 20px;
  }

  .home-container,
  .about-container,
  .contact-content {
    gap: 2rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home img,
  .about img {
    width: 300px;
    height: auto;
  }

  .btn-home1,
  .btn-home2,
  .btn,
  .btn-send {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .follow ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 597.5px) {
  .home,
  .about,
  .project,
  .techstack,
  .experience,
  .contact {
    margin: 110px auto;
    padding: 0 35px;
  }

  p#about,
  p.tech,
  p.experience-title,
  p.project-title,
  p.contact-title {
    font-size: 16px;
  }

  .info-home h1,
  .info-about .title h1,
  .techstack h2,
  .experience h1,
  .project h1,
  .contact h1 {
    font-size: 30px;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }

  .tech-card {
    gap: 13px;
    padding: 10px 15px;
  }

  .tech-card img {
    width: 37px;
    height: 37px;
    object-fit: contain;
  }

  .tech-info {
    text-align: left;
  }

  .tech-info h3 {
    font-size: 0.9rem;
  }

  .tech-info p {
    font-size: 0.8rem;
  }

  .project-card h3 {
    font-size: 18px;
    color: #1f1f1f;
    margin-bottom: 10px;
    padding: 0 25px;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .skills p {
    font-size: 0.78rem;
  }

  .btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 20px;
  }

  .btn {
    background: #2245ba;
    color: white;
    text-decoration: none;
    width: 100%;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .btnn{
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .btn {
    font-size: 0.8rem;
  }
}
