/* GENERAL */

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

:root {
  --primary-color: #3b82f6;
  --secondary-color: #2563eb;
  --accent-color: #6366f1;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --glow-primary: 0 0 20px rgba(59, 130, 246, 0.3);
  --glow-secondary: 0 0 30px rgba(37, 99, 235, 0.2);
  --glow-accent: 0 0 25px rgba(99, 102, 241, 0.25);
  --transition: all 0.3s ease;
}

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

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

html {
  scroll-behavior: smooth;
}

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

/* TRANSITION */

a,
.btn {
  transition: var(--transition);
}

/* DESKTOP NAV */

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

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

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

a:hover {
  color: var(--primary-color);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  background-color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 1rem;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-white);
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.menu-links a {
  display: block;
  padding: 15px 20px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

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

/* SECTIONS */

section {
  padding-top: 5vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  height: 80vh;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 0 0 30px 30px;
  margin: 0;
  padding: 0 10rem;
  position: relative;
  overflow: hidden;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  aspect-ratio: 1 / 1;
  margin: auto 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--glow-primary);
  border: 3px solid rgba(59, 130, 246, 0.2);
  position: relative;
  animation: floatImage 4s ease-in-out infinite;
}

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

.section__pic-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.3;
  animation: rotate 10s linear infinite;
}

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

.section__pic-containers {
  display: flex;
  height: 400px;
  width: 400px;
  aspect-ratio: 1 / 1;
  margin: auto 0;
}

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.title {
  font-size: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  }
  to {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
  }
}

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

/* ICONS */

.icon {
  cursor: pointer;
  height: 2.2rem;
  transition: var(--transition);
}

.icon:hover {
  transform: translateY(-5px) scale(1.1);
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  font-weight: 600;
  transition: var(--transition);
  padding: 1rem 1.5rem;
  width: 10rem;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  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.2), transparent);
  transition: var(--transition);
  z-index: -1;
}

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

.btn-color-1 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--glow-primary);
}

.btn-color-1:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-color-2 {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--glow-primary);
}

.btn-color-2:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* ABOUT SECTION */

#about {
  position: relative;
  padding: 5rem 0;
}

.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;
  box-shadow: var(--glow-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.arrow:hover {
  transform: translateY(5px);
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--bg-card);
  border-radius: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.details-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.details-container:hover::before {
  transform: scaleX(1);
}

.details-container:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-primary), 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-white);
  border-radius: 30px;
  margin-top: 2rem;
}

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

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

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: var(--transition);
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

article:hover {
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  padding: 5rem 0;
}

.color-container {
  border: 1px solid rgba(59, 130, 246, 0.1);
  background: var(--bg-card);
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.color-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

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

.color-container:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-primary), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
  border-radius: 1.5rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  z-index: 1;
}

.project-title {
  margin: 1rem 0;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.project-description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.tech-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-btn {
  color: var(--primary-color);
  border-color: var(--primary-color);
  position: relative;
  z-index: 1;
}

/* CONTACT */

#contact {
  text-align: center;
  padding: 5rem 20px;
  background: var(--bg-white);
  border-radius: 30px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.section__text__p1 {
  font-size: 1.2rem;
  color: var(--text-light);
}

.title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-subtext {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Info Containers */
.contact-info-upper-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-info-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  transform: scaleY(0);
  transition: var(--transition);
}

.contact-info-container:hover::before {
  transform: scaleY(1);
}

.contact-info-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary), 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.contact-info-container p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.contact-info-container a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.contact-info-container a:hover {
  color: var(--primary-color);
}

/* Contact Form */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.contact-form-container h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form-container label {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  text-align: left;
  margin-top: 1rem;
  font-weight: 500;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 12px 15px;
  margin-top: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
  background: var(--bg-light);
  color: var(--text-dark);
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: var(--bg-white);
}

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

.contact-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  transition: var(--transition);
  width: 100%;
  box-shadow: var(--glow-primary);
  position: relative;
  overflow: hidden;
}

.contact-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.contact-button:hover::before {
  left: 100%;
}

.contact-button:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* FOOTER SECTION */

/* FOOTER SECTION */

footer {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg-white);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  margin-top: 3rem;
}

footer p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

/* Remove the navigation from footer */
footer nav {
  display: none;
}