/* 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;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Sparkle Effect */
.sparkle {
  position: fixed;
  pointer-events: none;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.8), transparent);
  border-radius: 50%;
  animation: sparkleAnimation 1s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkleAnimation {
  0% {
    opacity: 1;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(180deg);
  }
}

/* TRANSITION */

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

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

.logo:hover {
  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.3 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.3 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.3 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);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* 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;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.section__pic-container:hover {
  transform: scale(1.05) rotate(5deg);
  animation-play-state: paused;
}

.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;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

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

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  transition: all 0.3s ease;
}

.icon:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

/* 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;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: scale(0.95);
}

.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: linear-gradient(135deg, rgb(53, 53, 53), rgb(85, 85, 85));
  color: white;
}

.btn-color-1:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
  transform: translateY(-3px);
}

.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;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.arrow:hover {
  animation-play-state: paused;
  transform: scale(1.3);
}

.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;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.details-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.details-container:hover::before {
  left: 100%;
}

.details-container:hover {
  border-color: rgb(102, 126, 234);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
  transform: translateY(-5px);
}

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

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
  border-radius: 50%;
  /* border: round 100 100 100 100; */
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

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

.experience-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;
}

#projects .article-container {
  justify-content: center;
  padding: 1rem;
  min-height: 220px;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 1rem;
}

article:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

article .icon {
  cursor: default;
  transition: transform 0.3s ease;
}

article:hover .icon {
  transform: rotate(360deg) scale(1.2);
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  height: auto;
  min-height: 100vh;
  padding-bottom: 8rem;
}

/* Project Filter Buttons */
.project-filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid rgb(163, 163, 163);
  background: white;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 300ms ease;
  color: rgb(85, 85, 85);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  transition: all 400ms ease;
  opacity: 1;
  transform: scale(1);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.color-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.color-container:hover::after {
  opacity: 1;
}

.color-container.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

/* Uniform Project Styling - All projects have equal weight */
.color-container:hover {
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
  transform: translateY(-10px) scale(1.02);
  border-color: rgb(102, 126, 234);
}

/* Project Descriptions */
.project-description {
  font-size: 0.95rem;
  color: rgb(85, 85, 85);
  margin: 1rem 1.5rem;
  line-height: 1.6;
  text-align: left;
  flex-grow: 1;
}

/* Project Stats/Tags */
.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 1.5rem;
  justify-content: flex-start;
}

.stat-badge {
  background: linear-gradient(135deg, rgb(53, 53, 53), rgb(85, 85, 85));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 300ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.stat-badge:hover::before {
  width: 300px;
  height: 300px;
}

.stat-badge:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
  transition: all 400ms ease;
  filter: grayscale(0%);
}

.color-container:hover .project-img {
  transform: scale(1.1) rotate(-3deg);
  filter: brightness(1.1) contrast(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Project Placeholder Styles */
.project-placeholder {
  border-radius: 2rem;
  width: 90%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 400ms ease;
  margin: auto;
  position: relative;
  overflow: hidden;
}

.project-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.color-container:hover .project-placeholder {
  transform: scale(1.08) rotate(-2deg);
}

.color-container:hover .project-placeholder::after {
  left: 150%;
}

.stroke-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.food-placeholder {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.medequip-placeholder {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-placeholder {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.ct-placeholder {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.northwestern-placeholder {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.church-placeholder {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-title {
  margin: 1rem 1.5rem 0.5rem 1.5rem;
  color: rgb(53, 53, 53);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
  font-size: 0.9rem;
  padding: 0.8rem 1.2rem;
}

.btn-container {
  margin-top: auto;
  padding: 0 1rem 1rem 1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 2rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 300ms ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: rgb(163, 163, 163);
  transition: color 300ms ease;
}

.close:hover {
  color: rgb(53, 53, 53);
}

.modal h2 {
  color: rgb(53, 53, 53);
  margin-bottom: 1rem;
}

.modal .project-stats {
  justify-content: flex-start;
  margin: 1rem 0;
}

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

/* FOOTER SECTION */

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

footer p {
  text-align: center;
}