/* General */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    
}

#bg{
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;  
}

main, nav, .content{
    position: relative;
    z-index: 1;             
}

body {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    background-color: rgb(234, 234, 237);
    min-height: 100svh;
    flex-direction: column;
    font-size: clamp(12px, 1.2vw, 16px);
    overflow-x: hidden;
}

.page {
  width: min(800px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  flex: 1;
padding-inline: clamp(1rem, 4vw, 3rem);
}

/* INITIAL STATE */
.page > *:not(#hamburger-nav),
.hamburger-icon,
#hamburger-nav .logo {
    opacity: 0;
    transform: translateY(-24px);
    animation: fadeDown 0.8s ease-out forwards;
}

/* top → bottom */
.page > *:not(#hamburger-nav):nth-child(1) { animation-delay: 0.1s; }
.page > *:not(#hamburger-nav):nth-child(2) { animation-delay: 0.3s; }
.page > *:not(#hamburger-nav):nth-child(3) { animation-delay: 0.5s; }
.page > *:not(#hamburger-nav):nth-child(4) { animation-delay: 0.9s; }
.page > *:not(#hamburger-nav):nth-child(5) { animation-delay: 1.1s; }
.page > *:not(#hamburger-nav):nth-child(6) { animation-delay: 1.3s; }
.page > *:not(#hamburger-nav):nth-child(7) { animation-delay: 1.5s; }
@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#about .typewriter-wrapper,
#about p.about-me,
#about .projects-header {
    opacity: 0;
    transform: translateY(14px);
    animation: pFadeDown 600ms ease-out forwards;
}

/* stagger top → bottom */
#about .typewriter-wrapper { animation-delay: 0.2s; }
#about p.about-me:nth-of-type(1) { animation-delay: 0.4s; }
#about p.about-me:nth-of-type(2) { animation-delay: 0.55s; }
#about .projects-header { animation-delay: 0.7s; }

@keyframes pFadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
}

/* glass pill */
.socials a {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  border-radius: 999px;

  /* keep the rest of glass styles */
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  border-radius: 999px;

  font-size: 1.4rem;
  color: rgba(120, 120, 120, 0.85);

  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  border: 2px solid rgba(255, 255, 255, 0.37);

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.socials a:hover {
  color: rgb(252, 72, 72);

  background: rgba(255, 120, 120, 0.28);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-color: rgba(251, 89, 89, 0.95);

  box-shadow:
    0 10px 26px rgba(235, 37, 37, 0.28),
    inset 0 1px 0 rgba(255, 220, 220, 0.6);

  transform: translateY(-2px);
}

.socials a i,
.socials a i::before {
  display: block;
  line-height: 1;
}

.socials a {
  line-height: 0;
}

.socials a .fa-linkedin { transform: translateX(0.6px); }
.socials a .fa-github   { transform: translateX(0.5px); }
.socials a .fa-envelope { transform: translateX(0.5px); }
.socials a .fa-file-lines { transform: translateX(1px); }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}


::selection {
    background-color: lightyellow;
}

/* Transition */
.typewriter-wrapper{
    display: flex;
    justify-content: center;
}

.typewriter{
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

.typewriter::after{
    content:"";
    display:inline-block;
    height:1.3em;
    margin-left:2px;
    border-right: 2px solid black;
    animation: blink 1s ease-in-out infinite;
    vertical-align: -0.5rem;
}

@keyframes blink {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; }
}

a, 
.btn {
    transition: all 300ms ease;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* Desktop Nav */
#desktop-nav{
    position: sticky;
  top: 12px;                 /* space from top so pill is visible */
  z-index: 9999;

  display: flex;
  align-items: center;

  height: 56px;
 width: calc(100% - 2rem);
  max-width: 1100px;
  margin: 0 auto;

  padding: 0 clamp(12px, 2vw, 24px);

  letter-spacing: 1.25px;

  /* pill shape */
  border-radius: 999px;

  /* frosted glass */
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.45);

  /* subtle lift */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}


.link-in-nav a {
    display: block;
    text-align: left;
    padding: 3px 12px;
    text-decoration: none;
    font-size: 13px;
    color:rgb(165, 165, 165);
}

.link-in-nav:not(:last-child) {
    border-right: 3px dotted lightgray;
}

.link-in-nav a:hover {
    color: black;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 8vh;

}

/* Nav links */
.nav-links {
    align-items: center;     /* vertical centering */
    display: flex;
    list-style: none;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    width: 100%;
    font-weight: 700;
}

/* Logo */
.logo {
    display: flex;
    font-size: 2rem;
    color: black;
    padding: 0rem 0.25rem;
    font-size: 1.3rem;
    font-weight: 700;
    align-items: center;     
    margin-right: auto;
    border-radius: 14px;
    transition: background-color 0.05s ease, border-color 0.05s ease, transform 0.2s ease, color 0.2s ease;
}
.logo:hover {
   color: rgb(235, 35, 35);
  
}
.logo:hover a {
    color: rgb(239, 65, 65);   
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}


/* Hamburger Menu */
#hamburger-nav {
    display: none;
      position: sticky;

  top: 15px;                 /* space from top so pill is visible */
  z-index: 9999;
    min-width: 100%;
  width: 100%;


  align-items: center;

  height: 56px;
  padding: 0 24px;
  margin: 0 auto;            /* center pill */

  letter-spacing: 1.25px;

  /* pill shape */
  border-radius: 999px;

  /* frosted glass */
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.45);

  /* subtle lift */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 16px;
    width: 20px;
    cursor: pointer;
    margin-left: auto;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background-color: black;
    transition: all 0.3 ease-in-out;

}

.menu-links{
    position: fixed;
    top: 0;                 
    right: 0;
    height: 100vh;
    width: 280px;          

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);

  border-left: 3px solid rgba(255, 255, 255, 0.85);

  /* depth */
  box-shadow:
    -12px 0 28px rgba(0, 0, 0, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.55);

    transition: transform 0.3s ease;
  transition: right 0.3s ease;
  right: -380px;

    z-index: 1000;
    padding: 4rem 2rem;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-links.open{
    display: flex;

    transform: translateX(0);
right: 0;
}

/* list reset */
.menu-links ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-links a{
    display: block;
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    color: black;
    text-decoration: none;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

/* SECTIONS */

section {
    /*margin: 0 10rem;*/
    box-sizing: border-box;
    min-height: 100%;
    scroll-snap-align: start;

}

.section-container {
    display: flex;
}


/* FOOTER SECTION */

footer {
    height: auto;
    margin: 0rem 1rem 0;
    padding: 2rem 0;
    padding-top: 0.3rem;  
    margin-top: 0;   
}

footer p {
    text-align: center;
}