/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background color for whole website */
body {
  background: #fff4f0; /* soft beige/pink like MetaMask */
  margin: 0;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */
a,
.btn {
  transition: all 300ms ease;
  cursor: pointer;
}

/* 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 {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  cursor: default;
}

/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.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(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* SECTIONS */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* 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;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.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;
}

/* 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;
}

#profile{
  padding-top: 5000px; /* pushes content down inside the section */
}

.section__pic-container {
  padding-top: 55px; /* moves the picture down inside its container */
}

.section__text{
  padding-bottom: 30px;
}



/* ABOUT SECTION */
/* About Section Layout */
.section-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.section__text__p1 {
  margin-top: 10rem;   /* moves down */
  margin-bottom: 0.5rem; /* space before "About Me" */
}


/* Image container */
.section__pic-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-pic {
  width: 250px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

/* Text container */
.about-details-container {
  flex: 2;
  min-width: 300px;
  padding-left: 2rem; /* shifts text to the right */
}

.text-container {
  font-size: 1.2rem;
  font-weight: 600;  
  line-height: 1.7;
  color: #333;
}


/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .section-container {
    flex-direction: column;
    text-align: center;
  }
  .about-details-container {
    text-align: center;
  }
}


/* PROJECTS SECTION */
#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(163, 163, 163) 0.1rem solid;
  background: rgb(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;
}

/* FOOTER SECTION */
footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* EXPERIENCE SECTION */
.experience-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 40px;
}

.exp-card {
  background: #ffffff;
  color: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  width: 85%;
  max-width: 700px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.exp-card h2 {
  font-size: 22px;
  font-weight: 600;
  color: #00bfff;
  margin-bottom: 5px;
}

.exp-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  margin-bottom: 12px;
}

.exp-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-card ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: #333;
}

.exp-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00bfff;
  font-size: 14px;
}

/* SKILLS SECTION */
.skills-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.skill-card {
  background: #454242;
  color: #fff; /* fixed for readability */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.skill-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #00bfff;
  margin-bottom: 12px;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-card ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: #ddd;
}

.skill-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00bfff;
  font-size: 14px;
}

/* NAVBAR (Metamask Style) */
#desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 12px 30px;
  border-radius: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 90%;
  max-width: 1200px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-links li a:hover {
  color: #00bfff;
}

.nav-btn {
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background: #00bfff;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2a0558;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader-logo {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  animation: fadeZoom 2s ease-in-out infinite;
}

@keyframes fadeZoom {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}
















/* ---------- Prevent horizontal scroll & safe defaults ---------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;   /* hide any accidental horizontal overflow */
}

/* ensure images never force width overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- About / Profile fixes (flex shrink + wrapping) ---------- */
/* allow the profile section to wrap instead of overflowing */
#profile {
  display: flex;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;    /* important so items stack on small screens */
  height: auto;       /* let height grow naturally */
  padding: 20px 0;
  box-sizing: border-box;
}

/* give the picture a flexible size but don't exceed the container */
.section__pic-container {
  flex: 0 0 400px;      /* preferred width but allowed to shrink */
  max-width: 100%;      /* never exceed viewport */
  height: auto;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ensure the image inside scales and gets your rounded corners */
.section__pic-container img,
.profile-pic {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* text block should be flexible and able to shrink */
.section__text {
  flex: 1 1 420px;   /* grow, shrink, base width */
  min-width: 260px;  /* don't collapse too small */
  box-sizing: border-box;
  text-align: center;
}

/* ---------- About cards / details container ---------- */
/* allow cards to wrap and prevent child overflow from flex behavior */
.section-container,
.about-containers,
.about-details-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* cards must be allowed to shrink (min-width: 0 avoids flex overflow) */
.details-container {
  flex: 1 1 320px;
  min-width: 0; /* crucial: prevents text/image from creating horizontal scroll */
  padding: 1.5rem;
  background: white;
  border-radius: 2rem;
  border: 0.1rem solid rgb(163,163,163);
  text-align: center;
}

/* ---------- Arrow fix (was causing overflow with negative right) ---------- */
/* use transform to visually offset without affecting layout (no scrollbar) */
.arrow {
  position: absolute;
  right: 0;                 /* keep it at container edge */
  bottom: 2.5rem;
  transform: translateX(40%); /* visually shift it right without creating overflow */
  transition: transform .25s ease;
}

/* smaller visual offset on narrow screens */
@media (max-width: 900px) {
  .arrow {
    transform: translateX(25%);
    right: 10px;
  }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1000px) {
  /* stack profile vertically on tablets / phones */
  #profile {
    flex-direction: column;
    gap: 1.25rem;
    padding: 30px 12px;
  }

  .section__pic-container {
    flex: 0 0 280px;
    max-width: 80%;
  }

  .title { font-size: 2.25rem; }
}

/* ensure all large cards reflow to full width on small screens */
@media (max-width: 700px) {
  .exp-card, .skill-card, .details-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}


