/* GENERAL */

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

/* Default Light Mode */
:root {
  --primary-color: white;
  --primary-color-2: rgb(250, 250, 250);
  --primary-color-3: rgb(181, 181, 181);
  --background-color: rgb(255, 255, 255);
  --secondary-color: black;
  --secondary-color-2: rgb(85, 85, 85);
  --button-background: rgb(53, 53, 53);
  --button-text-hover: grey;
  --button-border: rgb(53, 53, 53) 0.1rem solid;
  --button-border-2: rgb(255, 255, 255) 0.1rem solid;
  --container-border: rgb(163, 163, 163);
  --filter-svg: hue-rotate(30deg) saturate(25%);

}

/* Dark Mode */
[theme="dark"] {
  --primary-color: black;
  --primary-color-2: #1a1a1a;
  --primary-color-3: #4a4a4a;
  --background-color: #161616;
  --secondary-color: white;
  --secondary-color-2: rgb(170, 170, 170);
  --button-background: rgb(202, 202, 202);
  --button-text-hover: lightgrey;
  --button-border: rgb(202, 202, 202) 0.1rem solid;
  --button-border-2: rgb(0, 0, 0) 0.1rem solid;
  --container-border: rgb(92, 92, 92);
  --filter-svg: hue-rotate(-145deg) saturate(25%) invert(88%);

}

* {
  margin: 0;
  padding: 0;
}

h3 {
  color: var(--secondary-color);
}

body {
  font-family: "Poppins", sans-serif;
  visibility: hidden;
  background-color: var(--background-color);
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--secondary-color-2);
}

/* TRANSITION */

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

/* 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;
}
nav li:last-child {
  width: max-content;
  display: flex;
  margin: auto;
  padding-bottom: 10px;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  text-decoration-color: var(--primary-color);}

a:hover {
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: var(--secondary-color);
}

nav a:hover {
  color: var(--secondary-color);
  text-decoration-color: var(--secondary-color);
}

.logo {
  font-size: 2rem;
  color: var(--secondary-color);
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  position: relative;
  z-index: 100; 
}

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

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--primary-color-2);
  width: fit-content;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-out !important;
  z-index: 100;
}

.menu-links a {
  display: block;
  padding: 10px;
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-decoration: none;
}

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

.menu-links.open {
  height: var(--menu-height);
}

.menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 0;
  width: 50px; 
  height: 50px; 
}

.line {
  fill: none;
  stroke: var(--secondary-color);;
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line1 {
  stroke-dasharray: 60 207;
}

.line2 {
  stroke-dasharray: 60 60;
}

.line3 {
  stroke-dasharray: 60 207;
}

.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
}

.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

/* 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;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  color: var(--secondary-color);
  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: var(--button-border);
  color: var(--secondary-color-2);
}

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

.btn-color-1,
.btn-color-2:hover {
  background: var(--button-background);
  color: var(--primary-color);
}

.btn-color-1:hover {
  background: var(--secondary-color);
}

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

.btn-color-2:hover {
  border: var(--button-border);
  background: var(--secondary-color);
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}



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

.text-container{
  text-align: justify;
}

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

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

.about-pic {
  border-radius: 2rem;
  filter: var(--filter-svg)

}

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

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--primary-color-2);
  border-radius: 2rem;
  border: var(--button-border);
  border-color: var(--container-border);
  text-align: center;
}

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

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

/* EXPERIENCE SECTION */

#experience {
  margin-top: 0rem;
  position: relative;
}

.experience-sub-title {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.article-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  justify-items: center;
}

article {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  width: 200px;
}

article div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  gap: 0.25rem;
}

article h3 {
  margin: 0;
  white-space: nowrap;
  text-align: left;
}


article p {
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
}

article .icon {
  flex-shrink: 0;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  margin-top: 2rem;
  height: max-content;
  padding-bottom: 2.1rem;
}

.color-container {
  border-color: var(--container-border);
  background: var(--primary-color-2);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: var(--secondary-color)
}

.project-btn {
  color: var(--secondary-color);
  border-color: var(--container-border);
}

.cardcontainer {
  display: flex;
  flex-wrap: wrap;
}


/* CONTACT */

#contact {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: var(--button-border);
  border-color: var(--container-border);
  background: var(--background-color);
  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;
}

.linkedin-icon {
  margin-left: 0.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* Reveal Animation Base */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 
    opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1),
    transform 0.6s cubic-bezier(0.42, 0, 0.58, 1);
  /* Prevent flickering during animation */
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Visible state */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: Reset delays when elements are not visible */
.reveal:not(.visible) {
  transition-delay: 0s;
}

/* Stagger delays */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.stagger > *:nth-child(1) { transition-delay: 0.1s; }
.stagger > *:nth-child(2) { transition-delay: 0.2s; }
.stagger > *:nth-child(3) { transition-delay: 0.3s; }
.stagger > *:nth-child(4) { transition-delay: 0.4s; }
.stagger > *:nth-child(5) { transition-delay: 0.5s; }
.stagger > *:nth-child(6) { transition-delay: 0.6s; }
.stagger > *:nth-child(7) { transition-delay: 0.7s; }
.stagger > *:nth-child(8) { transition-delay: 0.8s; }
.stagger > *:nth-child(9) { transition-delay: 0.9s; }
.stagger > *:nth-child(10) { transition-delay: 1s; }
.stagger > *:nth-child(11) { transition-delay: 1.1s; }
.stagger > *:nth-child(12) { transition-delay: 1.2s; }
.stagger > *:nth-child(13) { transition-delay: 1.3s; }
.stagger > *:nth-child(14) { transition-delay: 1.4s; }
.stagger > *:nth-child(15) { transition-delay: 1.5s; }
.stagger > *:nth-child(16) { transition-delay: 1.6s; }
.stagger > *:nth-child(17) { transition-delay: 1.7s; }
.stagger > *:nth-child(18) { transition-delay: 1.8s; }
.stagger > *:nth-child(19) { transition-delay: 1.9s; }
.stagger > *:nth-child(20) { transition-delay: 2s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

