/* GENERAL STYLES */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
  color: #e0e6ed;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ANIMATED BACKGROUND */

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 15s ease-in-out infinite;
}

.floating-particles::before {
  top: 10%;
  left: 10%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  animation-delay: 0s;
}

.floating-particles::after {
  bottom: 10%;
  right: 10%;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* NAVIGATION */

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  padding: 0 5%;
  position: sticky;
  top: 0;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  z-index: 100;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.05);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: #a0aec0;
  font-weight: 400;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 1.1rem;
}

.nav-links a {
  color: #e0e6ed;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #8b5cf6;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 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: 3px;
  background-color: #e0e6ed;
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(10px);
  width: max-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-top: 1rem;
}

.menu-links.open {
  max-height: 300px;
  padding: 1rem 0;
}

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

.menu-links a {
  display: block;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: #e0e6ed;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu-links a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #8b5cf6;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* SECTIONS */

section {
  padding: 6rem 10%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.section__text__p1 {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #e0e6ed, #cbd5e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding-top: 8rem;
}

.section__pic-container-1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
}

.section-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.section__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.section__text__p2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #cbd5e0;
  margin-bottom: 0.5rem;
}

.section__text__p3 {
  font-size: 1.2rem;
  color: #8b5cf6;
  font-weight: 500;
  margin-bottom: 1rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BUTTONS */

.btn-container {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: 2px solid transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #e0e6ed;
  border: 2px solid #6366f1;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.glow-btn {
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

/* SOCIAL ICONS */

#socials-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.social-icon:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.icon {
  height: 2rem;
  cursor: pointer;
}

/* ABOUT SECTION */

#about {
  padding: 6rem 10%;
}

.section-container {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.section__pic-container-2 {
  flex: 1;
}

.about-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-pic {
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.about-img-wrapper:hover .about-pic {
  transform: scale(1.05);
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about-img-wrapper:hover .about-overlay {
  opacity: 1;
}

.about-details-container {
  flex: 1;
}

.about-containers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.details-container {
  background: rgba(26, 31, 58, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

.deep-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.details-container h3 {
  font-size: 1.5rem;
  color: #e0e6ed;
  margin-bottom: 0.5rem;
}

.details-container p {
  color: #a0aec0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.sub-text {
  font-size: 0.85rem;
  color: #8b5cf6;
  font-style: italic;
}

.text-container {
  background: rgba(26, 31, 58, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 2rem;
  line-height: 1.8;
}

.text-container p {
  color: #cbd5e0;
  font-size: 1rem;
}

.arrow {
  position: absolute;
  bottom: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.pulse-animation {
  animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* EXPERIENCE / SKILLS SECTION */

#experience {
  padding: 6rem 10%;
}

.experience-details-container {
  width: 100%;
  max-width: 1200px;
}

.skill-card {
  background: rgba(26, 31, 58, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

.experience-sub-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.skill-item .icon {
  width: 2rem;
  height: 2rem;
  filter: invert(1);
}

.skill-item h3 {
  font-size: 1.2rem;
  color: #e0e6ed;
  margin-bottom: 0.3rem;
}

.skill-item p {
  color: #8b5cf6;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  transition: width 1s ease;
  width: 0;
}

/* PROJECTS SECTION */

#projects {
  padding: 6rem 10%;
}

.project-single-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: rgba(26, 31, 58, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

.project-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card .article-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  display: block;
}

.project-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-iframe {
  transform: scale(1.02);
}

.project-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-description {
  color: #cbd5e0;
  line-height: 1.8;
  font-size: 1rem;
  text-align: center;
}

.project-btn {
  margin: 0 auto;
}

/* CONTACT SECTION */

#contact {
  padding: 6rem 10%;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #a0aec0;
  margin-bottom: 3rem;
}

.contact-info-upper-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(26, 31, 58, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  padding: 1.5rem 2.5rem;
  transition: all 0.3s ease;
}

.contact-info-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.email-icon {
  filter: invert(1);
}

.contact-info-container p {
  font-size: 1.1rem;
}

.contact-info-container a {
  color: #e0e6ed;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-container a:hover {
  color: #8b5cf6;
}

/* FOOTER */

footer {
  background: rgba(10, 14, 39, 0.95);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  padding: 3rem 10%;
  text-align: center;
}

footer nav {
  position: static;
  background: transparent;
  border: none;
  height: auto;
  margin-bottom: 2rem;
}

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

footer .nav-links {
  gap: 2rem;
}

footer .nav-links a {
  font-size: 1rem;
}

footer p {
  color: #a0aec0;
  margin: 0.5rem 0;
}

.footer-subtitle {
  font-size: 0.9rem;
  color: #8b5cf6;
  margin-top: 1rem;
}
