/* GENERAL */

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

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --border-color: #333333;
  --hover-bg: #222222;
  --card-bg: rgba(255, 255, 255, 0.05);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
  }
}

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

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

html {
  scroll-behavior: smooth;
}

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

/* TRANSITION */

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

/* DESKTOP NAV */

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

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

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

nav.navbar-hidden {
  transform: translateY(-100%);
  visibility: hidden;
  opacity: 0;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  text-decoration-color: transparent;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--gradient-1);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  border: none;
  border-bottom: 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: var(--text-primary);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(20px);
  border: 0px solid var(--border-color);
  border-radius: 1rem;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 15px 25px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links a:hover {
  background: var(--hover-bg);
  color: var(--accent-primary);
}

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

.menu-links.open {
  max-height: 300px;
  border: 1px solid var(--border-color);
}

.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: 8vh;
  min-height: 100vh;
  margin: 0 10rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out;
}

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

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  min-height: 100vh;
  position: relative;
}

#profile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.section__pic-container {
  display: flex;
  height: 450px;
  width: 450px;
  margin: auto 0;
  position: relative;
}

.section__pic-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--gradient-1);
  border-radius: 50%;
  z-index: -1;
  animation: glow 3s ease-in-out infinite;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
}

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

.section__text p {
  font-weight: 500;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.section__text__p2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #b3b3b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ICONS */

.icon {
  cursor: pointer;
  height: 2.5rem;
  filter: invert(1);
  transition: all 0.3s ease;
}

.icon:hover {
  transform: translateY(-3px);
  filter: invert(1) drop-shadow(0 5px 10px rgba(99, 102, 241, 0.3));
}

/* BUTTONS */

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

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem 2rem;
  min-width: 10rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.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: left 0.5s;
}

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

.btn-color-1 {
  background: var(--gradient-1);
  color: white;
  border: none;
}

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

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

.btn-color-2:hover {
  background: var(--card-bg);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

/* 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;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--card-bg);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  text-align: center;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.details-container:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.details-container h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.article-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
}

article {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

article:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

article .icon {
  height: 1rem;
  filter: invert(0.7);
}

article h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

article p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}


/* PROJECTS SECTION */

#projects .about-containers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.details-container.color-container {
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
}

.details-container.color-container:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.project-img {
  border-radius: 1rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.project-title {
  margin: 1rem 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.details-container p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}

.btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.project-btn {
  flex: 1 1 120px;
  max-width: 140px;
  color: var(--text-primary);
  border-color: var(--border-color);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 0.5rem;
}

.project-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  margin: 2rem auto;
  padding: 2rem;
  gap: 3rem;
  transition: all 0.3s ease;
}

.contact-info-upper-container:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.contact-info-container:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-3px);
}

.contact-info-container p {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.contact-info-container a {
  color: var(--text-primary);
  text-decoration: none;
}

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

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  min-height: 20vh;
  margin: 0 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

footer p {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1rem;
}

footer nav {
  position: relative;
  height: auto;
  background: none;
  backdrop-filter: none;
  border: none;
}

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

/* SMOOTH SCROLL OFFSET FOR NAV */
section:not(#profile) {
  scroll-margin-top: 15vh;
}

/* RESPONSIVE IMPROVEMENTS */
@media screen and (max-width: 1200px) {
  section {
    margin: 0 5rem;
  }
}

@media screen and (max-width: 768px) {
  #desktop-nav {
    display: none;
  }
  
  #hamburger-nav {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.5rem 1rem;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    height: 60px;
  }
  
  section {
    margin: 0 2rem;
    padding-top: 60px;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  #profile {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .section__pic-container {
    width: 300px;
    height: 300px;
  }
  
  .section-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-containers {
    flex-direction: column;
    margin-bottom: 2rem;
    margin-top: 2rem;
  }
  
  .experience-details-container .about-containers {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-info-upper-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .arrow {
    right: 2rem;
  }
}