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

:root {
  --bg-color: #112d40;        /* deep muted navy blue background */
  --text-color: #a9d6e5;      /* soft pale blue text */
  --card-bg: #1b4965;         /* darker desaturated blue for cards */
  --card-shadow: rgba(169, 214, 229, 0.15); /* subtle pale blue shadow */
  --link-color: #ffd166;      /* warm gentle yellow links */
  --link-hover: #f4a261;     /* vibrant orange hover */
}

[data-theme="light"] {
  --bg-color: #e0f7fa;        /* soft, bright cyan background */
  --text-color: #023047;      /* deep navy blue text */
  --card-bg: #ffffff;         /* crisp white cards */
  --card-shadow: rgba(2, 48, 71, 0.15); /* subtle navy shadow */
  --link-color: #ffb703;      /* bright golden yellow links */
  --link-hover: #fb8500; 
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.4s, color 0.4s;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--text-color);
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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


a,
.btn {
  transition: all 300ms ease;
}
/* Toggle btn*/
.theme-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  color: var(--text-color);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  color: var(--link-hover);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

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

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

.slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--bg-color);
  transition: transform 0.4s;
  border-radius: 50%;
}

/* When checked */
.theme-switch input:checked + .slider {
  background-color: var(--text-color);
}


.theme-switch input:checked + .slider::before {
  transform: translateX(20px);
}


/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  /* background: var(--bg-color); */
  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar__logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-color);
}

.navbar__menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.navbar__menu a {
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s;
}

.navbar__menu a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 26px;
  background: var(--text-color);
  border-radius: 3px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .navbar__menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 70%;
    height: calc(100vh - 70px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    background: var(--bg-color);
    transform: translateX(100%);
  }

  .menu-toggle:checked + .hamburger + .navbar__menu {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .navbar__menu li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}



/* SECTIONS */

section {
  padding-top: 4vh;
  height: auto;
  min-height: 100vh;
  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 {
  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 {
  color: var(--text-color);
  background-color: rgba(0, 0, 0, 0);
  border: var(--text-color)
}

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

.btn-color-1:hover,
.btn-color-2:hover {
  background-color: var(--card-bg);
  color: var(--link-hover);
}

.btn-container {
  gap: 1rem;
}
/*Particle Animations*/
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* behind your profile content */
}

#profile {
  position: relative; /* to contain absolute particles */
  overflow: hidden;
}

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

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

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

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

/* SKILLS SECTION */

#skills {
  position: relative;
}

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

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

#skills .skills-container article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  width: 100px;
}

#skills .skills-container article .icon {
  height: 40px; /* make icon a bit larger if needed */
  margin-bottom: 0.25rem;
}

#skills .skills-container article h3 {
  font-size: 1rem;
  margin: 0;
}

#skills .skills-container article {
  color: var(--text-color);
  border-radius: 1rem;
  box-shadow: 0 4px 10px var(--card-shadow);
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills .skills-container article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--card-shadow);
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: 1rem;
  box-shadow: 0 4px 10px var(--card-shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--card-shadow);
}

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

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

.project-btn {
  color: var(--text-color);
  background-color: var(--card-bg);
}
.project-btn:hover{
  background-color: var(--bg-color);
  color: var(--link-hover);
}
/* 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 {
  padding: 2rem 1rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  text-align: center;
  border-top: 1px solid var(--card-shadow);
  box-shadow: inset 0 1px 3px var(--card-shadow);
  font-size: 1rem;
}

footer nav {
  margin-bottom: 1rem;
}

.nav-links-container {
  display: flex;
  justify-content: center;
}

footer .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

footer .nav-links li a {
  font-weight: 600;
  transition: color 0.3s ease;
}

footer .nav-links li a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.5rem;
}

/* Responsive footer */
@media screen and (max-width: 800px) {
  footer .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}

