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

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

body {
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e7ff 100%);
  font-family: "Poppins", sans-serif;
  color: #1a2e44;
  overflow-x: hidden;
  transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
}

body.dark-mode {
  background: linear-gradient(135deg, #1a2e44 0%, #2c3e50 100%);
  color: #e0e6f0;
}

html {
  scroll-behavior: smooth;
}

p {
  color: #2a4066;
}

body.dark-mode p {
  color: #b0c4de;
}

/* TRANSITION */
a,
.btn,
section,
.nav-links a,
.hamburger-icon span,
.details-container,
.color-container,
.article-container article,
.contact-info-upper-container,
.project-img,
.contact-form input,
.contact-form textarea,
.contact-form button,
.switch,
.logo {
  transition: all 0.5s ease-in-out;
}

/* DESKTOP NAV */
nav,
.nav-links {
  display: flex;
  align-items: center;
}

nav {
  justify-content: space-between;
  padding: 0 5rem;
  height: 90px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-radius: 0 0 25px 25px;
  animation: slideDown 0.7s ease-out;
}

body.dark-mode nav {
  background: rgba(26, 46, 68, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  gap: 3rem;
  list-style: none;
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
}

.nav-links a {
  color: #1a2e44;
  text-decoration: none;
  font-weight: 600;
}

body.dark-mode .nav-links a {
  color: #e0e6f0;
}

.nav-links a:hover {
  color: #00c4cc;
  text-decoration: underline;
  text-underline-offset: 0.6rem;
  transform: translateY(-3px);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
  text-shadow: 1px 1px 4px rgba(0, 123, 255, 0.3);
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
}

body.dark-mode .logo {
  color: #00c4cc;
  text-shadow: 1px 1px 4px rgba(0, 196, 204, 0.3);
}

.logo:hover {
  transform: scale(1.1);
  text-shadow: 2px 2px 6px rgba(0, 123, 255, 0.4);
}

body.dark-mode .logo:hover {
  text-shadow: 2px 2px 6px rgba(0, 196, 204, 0.4);
}

/* MODE SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #007bff;
}

body.dark-mode input:checked+.slider {
  background-color: #00c4cc;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

body.dark-mode .switch {
  filter: brightness(1.2);
}

/* 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: 28px;
  width: 35px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 4px;
  background-color: #1a2e44;
  transform-origin: center;
}

body.dark-mode .hamburger-icon span {
  background-color: #e0e6f0;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  width: 220px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-out, transform 0.6s ease-out;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

body.dark-mode .menu-links {
  background: rgba(26, 46, 68, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.menu-links a {
  display: block;
  padding: 14px;
  text-align: center;
  font-size: 1.3rem;
  color: #1a2e44;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .menu-links a {
  color: #e0e6f0;
}

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

.menu-links.open {
  max-height: 320px;
  transform: translateY(10px);
}

/* SECTIONS */
section {
  padding: 5rem 10rem;
  min-height: 100vh;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(217, 231, 255, 0.95) 100%);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 2.5rem 0;
  overflow: hidden;
}

body.dark-mode section {
  background: linear-gradient(135deg, rgba(26, 46, 68, 0.95) 0%, rgba(44, 62, 80, 0.95) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-container {
  display: flex;
  gap: 5rem;
  align-items: center;
  justify-content: center;
}

section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.12) 0%, transparent 60%);
  animation: rotateBackground 25s linear infinite, pulseBackground 5s ease-in-out infinite;
  z-index: -1;
}

body.dark-mode section::before {
  background: radial-gradient(circle, rgba(0, 196, 204, 0.12) 0%, transparent 60%);
  animation: rotateBackground 25s linear infinite, pulseBackground 5s ease-in-out infinite;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 123, 255, 0.05) 50%, transparent 70%),
    linear-gradient(135deg, rgba(0, 196, 204, 0.05) 30%, transparent 50%, rgba(0, 123, 255, 0.05) 70%);
  animation: moveBackground 10s linear infinite;
  z-index: -2;
  pointer-events: none;
}

body.dark-mode::before {
  background: linear-gradient(45deg, transparent 30%, rgba(0, 196, 204, 0.05) 50%, transparent 70%),
    linear-gradient(135deg, rgba(0, 123, 255, 0.05) 30%, transparent 50%, rgba(0, 196, 204, 0.05) 70%);
  animation: moveBackground 10s linear infinite;
}

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

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-15px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes rotateBackground {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseBackground {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

@keyframes moveBackground {
  0% {
    background-position: 0 0, 0 0;
  }

  50% {
    background-position: 100% 100%, 100% 0;
  }

  100% {
    background-position: 0 0, 0 0;
  }
}

@keyframes spinBullet {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes pulseHover {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* PROFILE SECTION */
#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 85vh;
}

.section__pic-container {
  height: 420px;
  width: 420px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

body.dark-mode .section__pic-container {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section__pic-container:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

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

.section__text p {
  font-weight: 500;
}

.section__text__p1 {
  font-size: 1.4rem;
  color: #00c4cc;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .section__text__p1 {
  color: #00c4cc;
}

.section__text__p2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: #2a4066;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .section__text__p2 {
  color: #b0c4de;
}

.title {
  font-size: 4rem;
  color: #1a2e44;
  margin-bottom: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .title {
  color: #e0e6f0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

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

.icon {
  height: 3rem;
  transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
}

.icon:hover {
  transform: scale(1.3) rotate(10deg);
  filter: brightness(1.4);
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.btn {
  font-weight: 600;
  padding: 1.1rem 2.8rem;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg, #007bff, #00c4cc);
  color: white;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .btn {
  box-shadow: 0 5px 20px rgba(0, 196, 204, 0.3);
}

.btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
  animation: pulseHover 0.8s infinite alternate;
}

.btn-color-2 {
  background: linear-gradient(90deg, #28a745, #34c759);
}

.btn-color-2:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
  animation: pulseHover 0.8s infinite alternate;
}

/* ABOUT SECTION */
#about {
  position: relative;
}

.about-containers {
  display: flex;
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.about-details-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 60%;
}

.details-container {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

body.dark-mode .details-container {
  background: rgba(44, 62, 80, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.details-container:hover {
  transform: translateY(-8px) rotateY(5deg);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.section__pic-container.about-pic-container {
  width: 460px;
  height: 620px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

body.dark-mode .section__pic-container.about-pic-container {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.about-pic {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 20px;
}

.section__pic-container.about-pic-container:hover {
  transform: scale(1.04) rotate(2deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.text-container {
  text-align: left;
  padding: 1.5rem;
}

.text-container p {
  text-align: justify;
  font-size: 1.1rem;
}

/* EDUCATION STYLISH BULLET */
.education p {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.education p::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #00c4cc;
  font-size: 1.6rem;
  top: -0.2rem;
  animation: spinBullet 2s infinite alternate;
}

body.dark-mode .education p::before {
  color: #00c4cc;
}

/* CERTIFICATIONS STYLISH BULLET */
.certifications-content p {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.certifications-content p::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #00c4cc;
  font-size: 1.6rem;
  top: -0.2rem;
  animation: spinBullet 2s infinite alternate;
}

body.dark-mode .certifications-content p::before {
  color: #00c4cc;
}

/* EXPERIENCE SECTION */
#experience {
  position: relative;
}

.experience-sub-title {
  font-size: 2rem;
  color: #1a2e44;
  margin-bottom: 2.5rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .experience-sub-title {
  color: #e0e6f0;
}

.experience-details-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

article {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease-in-out;
}

body.dark-mode article {
  background: rgba(44, 62, 80, 0.95);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

article:hover {
  transform: translateY(-8px) rotateX(5deg);
}

/* PROJECTS SECTION */
#projects {
  position: relative;
}

.color-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

body.dark-mode .color-container {
  background: rgba(44, 62, 80, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.color-container:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.project-img {
  border-radius: 15px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.color-container:hover .project-img {
  transform: scale(1.06);
}

.project-title {
  font-size: 1.7rem;
  margin: 1.2rem 0;
  color: #1a2e44;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .project-title {
  color: #e0e6f0;
}

.project-btn {
  background: linear-gradient(90deg, #28a745, #34c759);
  color: white;
  border: none;
  padding: 1rem 1.8rem;
  border-radius: 30px;
  transition: all 0.5s ease-in-out;
}

.project-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
}

/* CONTACT */
#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(217, 231, 255, 0.9) 100%);
}

body.dark-mode #contact {
  background: linear-gradient(135deg, rgba(26, 46, 68, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%);
}

.contact-container {
  display: flex;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
  align-items: flex-start;
}

.contact-info-upper-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  min-height: 400px;
  transition: transform 0.5s ease-in-out;
}

body.dark-mode .contact-info-upper-container {
  background: rgba(44, 62, 80, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-info-upper-container:hover {
  transform: translateY(-10px);
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.contact-info-container p {
  font-size: 1.2rem;
  color: #2a4066;
  font-family: "Montserrat", sans-serif;
}

body.dark-mode .contact-info-container p {
  color: #b0c4de;
}

.contact-info-container p a {
  color: #00c4cc;
  text-decoration: none;
}

body.dark-mode .contact-info-container p a {
  color: #00c4cc;
}

.contact-info-container p a:hover {
  color: #007bff;
  text-decoration: underline;
}

.contact-icon {
  height: 2.8rem;
  filter: brightness(1.2);
}

.contact-form {
  flex: 1;
  margin-top: 0;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  min-height: 400px;
}

body.dark-mode .contact-form {
  background: rgba(44, 62, 80, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 2px solid #00c4cc;
  border-radius: 15px;
  font-size: 1.1rem;
  color: #1a2e44;
  background: rgba(255, 255, 255, 0.8);
  font-family: "Montserrat", sans-serif;
  flex: 1;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  border-color: #00c4cc;
  color: #e0e6f0;
  background: rgba(44, 62, 80, 0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, #28a745, #34c759);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  margin-top: auto;
}

.contact-form button:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
}

/* FOOTER SECTION */
footer {
  background: linear-gradient(135deg, #1a2e44, #2c3e50);
  color: #e0e6f0;
  padding: 1rem 5%;
  text-align: center;
  border-radius: 25px 25px 0 0;
  transition: background 0.5s ease-in-out, transform 0.5s ease-in-out;
}

footer:hover {
  background: linear-gradient(135deg, #1a2e44, #34495e);
  transform: translateY(-5px);
}

footer .footer-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body:not(.dark-mode) .footer-content {
  background: rgba(240, 244, 248, 0.95);
  /* Lighter background for contrast */
}

.copyright {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #222222;
  /* Darker text for visibility */
  font-family: "Montserrat", sans-serif;
  text-shadow: none;
}

body:not(.dark-mode) .copyright {
  color: #d6d5d5;
}

footer nav {
  margin-bottom: 0.5rem;
  width: 100%;
}

footer .nav-links {
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  display: flex;
  flex-direction: row;
  padding: 0;
}

footer a {
  color: #66b2ff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

body:not(.dark-mode) footer a {
  color: #0056b3;
}

footer a:hover {
  color: #99ccff;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  transform: translateY(-2px);
}

body:not(.dark-mode) footer a:hover {
  color: #003366;
}