/* GENERAL */

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

:root {
  --dark-bg: #0a192f;
  --light-text: #e6f1ff;
  --accent-blue: #64ffda;
  --grid-color: rgba(100, 255, 218, 0.1);
  --overlay: rgba(10, 25, 47, 0.85);
}

@keyframes globe-rotate {
  0% {
    background-position: 0% 50%;
  }

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

@keyframes pulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 0.4;
  }
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, var(--grid-color) 2px, var(--grid-color) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, var(--grid-color) 2px, var(--grid-color) 4px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%,
      rgba(100, 255, 218, 0.1) 0%,
      transparent 50%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--light-text);
  opacity: 0.8;
}

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

h1,
h2,
h3 {
  color: var(--light-text);
}

.title {
  color: var(--accent-blue);
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.icon {
  filter: brightness(1.2) drop-shadow(0 0 5px rgba(100, 255, 218, 0.3));
  transition: all 0.3s ease;
}

.icon:hover {
  filter: brightness(1.5) drop-shadow(0 0 8px rgba(100, 255, 218, 0.5));
  transform: translateY(-2px);
}

/* TRANSITION */

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

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  position: relative;
  z-index: 10;
  padding: 1rem;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

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

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}

a:hover {
  color: var(--accent-blue);
}

a:hover::after {
  width: 100%;
}

.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;
  aspect-ratio: 1 / 1;
  height: clamp(250px, 35vw, 400px);
  width: clamp(250px, 35vw, 400px);
  margin: auto 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
}

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

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.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: 2px solid var(--accent-blue);
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--light-text);
  transition: all 0.3s ease;
}

.btn-color-1::before,
.btn-color-2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: var(--accent-blue);
  transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  color: var(--dark-bg);
}

.btn-color-1:hover::before,
.btn-color-2:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) translateY(0);
}

.btn-color-1 {
  background: rgba(100, 255, 218, 0.1);
}

.color-container {
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.color-container:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(100, 255, 218, 0.1);
}

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

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

.single-column {
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: rgba(100, 255, 218, 0.05);
  border-radius: 2rem;
  border: 1px solid rgba(100, 255, 218, 0.2);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.details-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%,
      rgba(100, 255, 218, 0.1),
      transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.details-container:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(100, 255, 218, 0.1);
}

.details-container:hover::before {
  opacity: 1;
}

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

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

/* 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: center;
  padding: 0 1rem;
}

article {
  display: flex;
  width: calc(33.33% - 2rem);
  min-width: 10rem;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-right: 1rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  padding: 4rem 0 6rem;
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
}

#projects .about-containers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.color-container {
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.color-container:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 30px rgba(100, 255, 218, 0.15);
}

.project-img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  transition: all 0.3s ease;
  background-color: rgba(10, 25, 47, 0.3);
}

.project-img:hover {
  transform: translateY(-5px);
}

.project-title {
  margin: 1.5rem 0 1rem;
  color: var(--accent-blue);
  font-size: 1.8rem;
  text-align: center;
}

.project-description {
  text-align: center;
  color: var(--light-text);
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.color-container:hover .project-description {
  opacity: 1;
}



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