/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;

}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;

}

p {
  color: rgb(85, 85, 85);
}


/* MOUSE CUSTOM POINTER */
.mouse-pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 2rem;
  height: 2rem;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(var(--mouseX, 0), var(--mouseY, 0), 0) translate(-50%, -50%);
  transition: 0.3s ease-out;
  transition-property: transform, width, height, border, background-color;
}

body.mouse-tracker-active {
  cursor: default;
}

body.mouse-tracker-active * {
   cursor: default;
}

body.mouse-tracker-active:has(a:hover, button:hover, .btn:hover, [role="button"]:hover) .mouse-pointer {
  width: 5rem;
  height: 5rem;
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.5);
}

body.mouse-tracker-active:has(footer:hover) .mouse-pointer {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
}

body.mouse-tracker-active:has(footer .nav-links a:hover) .mouse-pointer {
  width: 5rem;
  height: 5rem;
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

body.mouse-tracker-active:has(.dark-section:hover) .mouse-pointer {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
    .mouse-pointer {
        display: none;
    }
}

@media (pointer: coarse) {
    .mouse-pointer {
        display: none;
    }
    
    body.mouse-tracker-active,
    body.mouse-tracker-active * {
        cursor: auto;
    }
}

/* ANIMATION */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease-out;
}


.fade-in-up {
  transform: translateY(50px);
}

.fade-in-down {
  transform: translateY(-50px);
}

.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.fade-in {
  transform: scale(0.9);
}


.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}


.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.stagger-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


 /* SCROLL BAR  */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4.5px;
  background: #000000;
  z-index: 1000;
  transition: width 0.1s ease;
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}

body::-webkit-scrollbar {
  display: none;
}
body {
  scrollbar-width: none; 
  overflow-y: scroll;
}

html::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
  overflow-x: hidden;
  overflow-y: scroll;
}


/* SCROLLBAR */
/* ::-webkit-scrollbar {
  width: 12px; 
  height: 12px; 
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
} */


/* PRE-LOADER */
#preloader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader {
  width: 120px;
  height: 20px;
  background: linear-gradient(#000 0 0) left/0% 100% no-repeat #ddd;
  -webkit-mask: radial-gradient(circle closest-side, #000 94%, transparent) left/20% 100%;
  mask: radial-gradient(circle closest-side, #000 94%, transparent) left/20% 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  animation: l17 2s infinite steps(6);
}

@keyframes l17 {
  100% {
    background-size: 120% 100%;
  }
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* LOGO */
.logo {
  font-size: 2rem;
  cursor: default;
  opacity: 1; 
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
  color: #2c2c2c;
  /* cursor: default; */
  /* transform: scale(1.1); */
}

.dot {
  color: black; 
  transition: color 0.3s ease;
}

.logo:hover .dot {
  color: #ff0000;
}


/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a:not(.cert-link-no-anim) {
  color: black;
  text-decoration: none;
  position: relative;
  transition: color 0.4s ease;
}

a:not(.cert-link-no-anim)::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: #A6A6A6;
  bottom: -5px;
  left: 0;
  transition: width 0.4s ease;
}

a:not(.cert-link-no-anim):hover::before {
  width: 100%;
}

a:not(.cert-link-no-anim):hover {
  color: grey;
}


/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 24px;
  width: 30px;
  cursor: pointer;
  padding: 2px 0;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out; 
  transform-origin: center; 
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out; 
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out; 
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}


.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.55rem;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: rgb(85, 85, 85);
    min-height: 2rem;
}

.typewriter,
.typewriter-static {
  font-family: monospace;
  font-size: 1.75rem;
  line-height: 1.2;           /* same line height */
  display: inline-block;
  vertical-align: middle;     /* align properly */
  margin-bottom: 1.5rem;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #000;
  margin-left: 5px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

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


.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

.icon:not(.arrow):hover {
  transform: rotate(5deg) scale(1.1);
}

.icon:not(.arrow) {
  transition: transform 0.3s ease;
}

/* POP EFFECT */

/* .icon {
  cursor: pointer;
  height: 2rem;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.2);
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.2);
  }
} */
 

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}


/* ABOUT SECTION */

#about {
  position: relative;  
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.cert-link-no-anim {
  color: black;
  text-decoration: none;
}

.cert-link-no-anim:hover {
  color: #0066cc;
  text-decoration: underline;
}

.arrow {
  position: absolute;
  right: -5rem;               
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}


/* SKILLS SECTION */
#skills {
  position: relative;
}

.skills-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.skills-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  align-items: center; 
  width: 10rem;
  gap: 0.8rem; 
}

article .icon {
  cursor: none;

}

/* PROJECTS SECTION */
#projects {
  position: relative;     
  padding: 1.5rem 6rem 10rem 6rem;
  scroll-margin-top: 20px; 
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section__text__p1 {
  color: #666;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
  position: relative;
  border-bottom: 3px solid #111;
  margin: 0;
}

.project-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.project-row.reverse {
  flex-direction: row-reverse;
}

.project-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #000000;
  aspect-ratio: 16 / 10;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s ease;
}


.project-image:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #666;
}

.project-image img, .project-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: all 0.4s ease;
}

/* .project-image:hover img,
.project-image:hover .project-img {
  transform: scale(1.03);
  filter: brightness(1.1) contrast(1.05);
} */

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 102, 102, 0.1), rgba(102, 102, 102, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  border-radius: 6px;
}

.project-image:hover::before {
  opacity: 1;
}

.project-content {
  flex: 1;
  padding: 20px;
}

.project-title, .experience-sub-title {
  font-size: 2.2rem;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
}

.project-title::after,
.experience-sub-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 4px;
  width: 0%;  
  background: #000000;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.project-row:hover .project-title::after,
.project-row:hover .experience-sub-title::after {
  width: 100px;
}

.project-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-tag {
  background: #000000;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #000000;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background:  #666;
  border-color: #666;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 102, 102, 0.3);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 100vh;
  padding-bottom: 5rem; 
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

.contact-description {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgb(85, 85, 85);
  margin: 0;
}

/* FOOTER SECTION */

footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

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

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 0;
  margin-bottom: 1.5rem;
}

/* .footer-nav li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: #888;
} */
 
footer .nav-links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease, background 0.3s ease;
}

footer .nav-links a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: white;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

footer .nav-links a:hover::before {
  width: 80%;
}

footer .nav-links a:hover {
  color: #cccccc;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

footer hr {
  border: none;
  border-top: 1px solid #333;
  margin: 0 0 1rem 0; 
  width: 100%;        
}

footer p {

  font-size: 0.95rem;
  margin: 0;
}