/* GENERAL */

:root {
  --bg: #0f0c29;
  --bg2: #1a1639;
  --text: #fff;
  --text-muted: #ccc;
  --accent: #ff6b6b;
  --accent2: #ff8e72;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 50%, #16213e 100%);
  min-height: 100vh;
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

a {
  color: var(--text);
}

p {
  color: var(--text-muted);
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(200, 200, 200);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

#desktop-nav,
#hamburger-nav,
.nav-links {
  display: flex;
}

#desktop-nav,
#hamburger-nav {
  justify-content: space-around;
  align-items: center;
  height: 8vh;
  background: rgba(15, 12, 41, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 107, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  position: relative;
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0.2rem;
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: #ffffff;
}

.nav-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff6b6b, #ff8e72, #f9ff60, #e567ff);
  background-size: 250%;
  transition: width 0.35s ease, transform 0.35s ease;
  animation: underlineAura 2.5s infinite;
}

@keyframes underlineAura {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}

@keyframes logoFlow {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.35));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 12px rgba(255, 142, 114, 0.55));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.35));
  }
}


a {
  color: rgb(10, 10, 10);
  text-decoration: none;
  text-decoration-color: white;
  color: rgb(255, 255, 255);
}

a:hover {
  color: rgba(255, 107, 107, 1);
  text-decoration: underline;
  text-underline-offset: 1rem;
}

/* NEON GRADIENT TEXT */
@keyframes neonGradient {
  0% { filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 16px var(--accent2)); }
  50% { filter: drop-shadow(0 0 22px rgba(255,255,255,0.75)) drop-shadow(0 0 28px rgba(255,255,255,0.5)); }
  100% { filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 16px var(--accent2)); }
}

.title,
.btn {
  animation: neonGradient 3s ease-in-out infinite;
}


.skill-bars {
  margin-top: 2rem;
}

.skill {
  margin-bottom: 1rem;
}

.skill span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.skill-progress {
  width: 100%;
  height: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
}

.skill-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1rem;
  transition: width 1s ease;
}

.section__text__p2,
.section__text__p1,
.title, .experience-sub-title {
  color: var(--text);
}


.btn-color-1 {
  background: linear-gradient(135deg, #ff6b6b, #ff8e72);
  color: #fff;
  border: none;
}

.btn-color-2 {
  border: 2px solid rgba(255, 107, 107, 0.8);
  color: #fff;
}

.btn-color-2:hover,
.btn-color-1:hover {
  transform: scale(1.05);
}


.logo {
  font-size: 2rem;
  color: rgb(255, 255, 255);
  background: linear-gradient(120deg, #ff6b6b, #ff8e72, #f9ff60, #e567ff, #ff6b6b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  animation: logoFlow 4.5s ease-in-out infinite;
}

.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: rgb(252, 246, 246);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(15, 12, 41, 0.75);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-color: rgba(255, 107, 107, 0.3);
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links a:hover {
  color: rgba(255, 107, 107, 1);
}

.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;
  min-height: fit-content;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
  position: relative;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  min-height: 88vh;
}

.section__pic-container {
  display: flex;
  height: 225px;
  width: 225px;
  margin: auto 0;
  border-radius: 50%;
  overflow: hidden;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  color: rgb(255, 255, 255);
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: rgb(255, 255, 255);
}

.title {
  font-size: 3rem;
  text-align: center;
  color: rgb(255, 255, 255);
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

.hamburger-icon:focus-visible,
.icon[tabindex="0"]:focus-visible {
  outline: 2px solid rgba(255, 107, 107, 0.95);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

/* 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 rgba(255, 107, 107, 0.5);
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff8e72);
  color: white;
}

.btn-color-1:hover {
  background: linear-gradient(135deg, #ff5252, #ff7a5c);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-color-2 {
  background: transparent;
  color: rgb(236, 235, 235);
}

.btn-color-2:hover {
  border: 2px solid rgba(255, 107, 107, 1);
  background: rgba(255, 107, 107, 0.15);
}

.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;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  border-radius: 2rem;
  border-color: rgba(255, 255, 255, 0.25);
  text-align: center;
  color: rgb(220, 220, 220);
  transition: all 0.3s ease;
}

.details-container:hover {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.25);
}

.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: rgba(255, 107, 107, 0.9);
  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: space-around;
}

article {
  display: flex;
  width: 10rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  color: rgb(200, 200, 200);
}

article div {
  width: 7.2rem;
}

article h3 {
  color: rgba(255, 107, 107, 0.9);
  margin: 0;
  line-height: 1.2;
}

article p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0.1rem 0 0;
  line-height: 1.2;
}

.lazy-img {
  filter: blur(16px);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.lazy-img.loaded {
  filter: blur(0);
  transform: scale(1);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: fit-content;
  padding: 4vh 0;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border-color: rgba(255, 255, 255, 0.25);
  margin: 2rem auto;
  padding: 0.5rem;
  width: min(92vw, 600px);
  max-width: 600px;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
  color: rgb(200, 200, 200);
}
.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

.contact-info-container a {
  color: rgba(255, 107, 107, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-info-container a:hover {
  color: rgba(255, 107, 107, 1);
  text-decoration: underline;
}

/* FOOTER SECTION */

footer {
  min-height: fit-content;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 0;
  border-radius: 0.6rem 0.6rem 0 0;
  box-shadow: 0 -2px 16px rgba(31, 38, 135, 0.12);
}

footer nav {
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: static;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-underline-offset: 0.35rem;
}

.footer-links a:hover {
  color: rgba(255, 107, 107, 1);
  text-decoration: underline;
}

footer p {
  text-align: center;
  color: rgb(220, 220, 220);
}

.ara {
  text-align: center;
  color: rgba(255, 107, 107, 0.9);
  font-weight: 500;
}

#background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.3;
}

/* SNOW ANIMATION */

.snow-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3));
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes sway {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(50px);
  }
}

.animated-title {
  font-size: 3rem;
  text-align: center;
  color: rgb(255, 255, 255);
}

.typing {
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(255, 107, 107, 0.8);
  animation: typeWriter 3s steps(20, end) forwards, blink 0.75s step-end 4 forwards;
}

.bio-typing {
  min-height: 1.75rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(255, 107, 107, 0.95);
  border-right: 3px solid rgba(255, 107, 107, 0.8);
  animation: typeWriterBio 4s steps(35, end) 3s forwards, blinkBio 0.75s step-end 5 forwards 3s;
}

@keyframes typeWriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes typeWriterBio {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0% {
    border-right-color: rgba(255, 107, 107, 0.8);
  }
  49% {
    border-right-color: rgba(255, 107, 107, 0.8);
  }
  50% {
    border-right-color: transparent;
  }
  99% {
    border-right-color: transparent;
  }
  100% {
    border-right: none;
  }
}

@keyframes blinkBio {
  0% {
    border-right-color: rgba(255, 107, 107, 0.8);
  }
  49% {
    border-right-color: rgba(255, 107, 107, 0.8);
  }
  50% {
    border-right-color: transparent;
  }
  99% {
    border-right-color: transparent;
  }
  100% {
    border-right: none;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes scrollFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE FRIENDLY ADJUSTMENTS */
@media screen and (max-width: 1100px) {
  #desktop-nav,
  #hamburger-nav {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 1.15rem;
  }

  .title {
    font-size: 2.2rem;
  }

  section {
    margin: 0 3rem;
  }

  .about-details-container,
  .section__text {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  body {
    font-size: 0.95rem;
  }

  .title,
  .experience-sub-title {
    font-size: 1.8rem;
  }

  section {
    margin: 0 1.5rem;
    padding-top: 4vh;
  }

  .section__pic-container {
    width: min(80vw, 320px);
    height: min(80vw, 320px);
    margin: 0 auto 1.2rem;
  }

  #about .section__pic-container {
    animation: none;
    margin-top: 1rem;
  }

  .section-container {
    display: block;
  }

  .about-containers,
  .contact-info-upper-container,
  .btn-container,
  .portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .contact-info-upper-container {
    width: min(82vw, 360px);
    max-width: 360px;
    padding: 0.75rem;
    border-radius: 1.2rem;
  }

  .contact-info-container {
    width: auto;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    margin: 0.2rem 0;
  }

  .portfolio-grid {
    margin-top: 1.2rem;
  }

  .portfolio-card {
    width: 100%;
  }

  #portfolio .title,
  #contact .title,
  #about .title {
    font-size: 1.9rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: center;
    padding: 0 0.85rem;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 200;
  }

  #hamburger-nav .logo {
    font-size: 1.35rem;
  }

  .hamburger-menu {
    display: none;
  }

  .footer-content,
  footer nav {
    text-align: center;
  }

  footer {
    padding: 1.4rem 0;
  }

  .footer-links {
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin: 0 0.75rem 0.9rem;
  }

  #contact,
  footer {
    min-height: fit-content;
  }
}

@media screen and (max-width: 520px) {
  #profile .section__pic-container {
    animation: none;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .section__text__p2,
  .section__text__p1,
  .ara {
    font-size: 0.95rem;
  }

  .lazy-img {
    filter: blur(8px);
    transform: scale(1.01);
  }

  .btn,
  .btn-color-1,
  .btn-color-2 {
    width: 100%;
    padding: 0.65rem;
  }

  .portfolio-card h3 {
    font-size: 1rem;
  }

  .portfolio-card p {
    font-size: 0.9rem;
  }

  .portfolio-modal .modal-content {
    max-width: 95vw;
  }
}

/* SCROLL TRIGGERED ANIMATIONS */

.details-container.visible,
article.visible,
.contact-info-upper-container.visible {
  animation: scrollFadeIn 0.8s ease-out forwards;
}

article:nth-child(1).visible {
  animation-delay: 0s;
}

article:nth-child(2).visible {
  animation-delay: 0.2s;
}

article:nth-child(3).visible {
  animation-delay: 0.4s;
}

article:nth-child(4).visible {
  animation-delay: 0.6s;
}

/* FLOATING HERO IMAGE */

.section__pic-container {
  animation: float 3s ease-in-out infinite;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 107, 107, 0.4);
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.25), inset 0 0 20px rgba(255, 107, 107, 0.1);
}

.section__pic-container img.about-pic {
  border-radius: 2rem;
}

.section__pic-container img:hover {
  border-color: rgba(255, 107, 107, 0.7);
  box-shadow: 0 0 50px rgba(255, 107, 107, 0.45), inset 0 0 20px rgba(255, 107, 107, 0.25);
}

/* SOCIAL ICONS HOVER GLOW */

.icon {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.3));
}

#socials-container .icon:hover {
  filter: drop-shadow(0 0 16px rgba(255, 107, 107, 0.8)) drop-shadow(0 0 24px rgba(255, 107, 107, 0.5));
  transform: scale(1.15);
}

/* ABOUT AND PROFILE IMAGES */

.about-pic {
  border-radius: 2rem;
  border: 2px solid rgba(255, 107, 107, 0.3);
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2), inset 0 0 32px rgba(255, 107, 107, 0.1);
  transition: all 0.3s ease;
}

.about-pic:hover {
  border-color: rgba(255, 107, 107, 0.6);
  box-shadow: 0 12px 48px rgba(255, 107, 107, 0.35), inset 0 0 32px rgba(255, 107, 107, 0.2);
  transform: translateY(-5px);
}
