:root{
    --bg: #0f1320;
    --text: rgba(255,255,255,.9);
    --muted: rgba(255,255,255,.72);
    --line: rgba(255,255,255,.35);
    --lineHover: rgba(255,255,255,.6);
    --accent: #ff3b7a;
    --prevaccent: #7c5cff;
  }
  
  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  
  body{
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  
  /* Full-screen canvas behind everything */
  #rain{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: -1;
    pointer-events: none;
  }
  
  .hero{
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    z-index: 1;
  }
  
  .hero__inner{
    text-align: center;
    max-width: 2400px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
  }  
  .hero__title{
    margin: 0 0 22px;
    font-size: clamp(26px, 3.3vw, 128px);
    line-height: 1.05;
    font-weight: 800;
    color: rgba(255,255,255,.92);
  }  

  .hero__subtitle{
    margin: 0 0 22px;
    font-size: clamp(20px, 1.4vw, 248px);
    line-height: 1.25;
    font-weight: 600;
    color: rgba(255,255,255,.92);
    max-width: 90ch;
    margin-left: auto;
    margin-right: auto;
  }
  
  .accent{
    color: var(--accent);
    font-weight: 700;
  }
  
  /* Buttons */
  .hero__buttons{
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 18px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .2px;
    transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
  }
  
  .btn--outline{
    border: 2px solid var(--line);
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,0.02);
  }
  
  .btn--outline:hover{
    border-color: var(--lineHover);
    background: rgba(255,255,255,0.05);
    transform: translateY(-1px);
  }
  
  .arrow{
    font-size: 18px;
    line-height: 1;
  }
  
  /* Previous Experience Style */
  .section{
    position: relative;
    z-index: 1;                 
    padding: 10px 24px;
    padding-bottom: 500px;
  }
  
  .section__inner{
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
  
  .section__title{
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 60px);
    font-weight: 900;
    color: rgba(255,255,255,.92);
  }
  
  .section__lead{
    margin: 0 0 34px;
    color: rgba(255,255,255,.75);
    font-weight: 650;
    font-size: large;
  }

  

  #work.section{
    border-top: 3px solid var(--prevaccent);
    background:
      radial-gradient(1200px 700px at 50% 10%,
        rgba(255,59,122,.14),
        rgba(124,92,255,.10) 35%,
        rgba(11,15,22,0) 70%),
      radial-gradient(900px 520px at 15% 75%,
        rgba(53,211,255,.10),
        rgba(11,15,22,0) 60%),
      linear-gradient(180deg, #0f1320 0%, #0b0f16 60%, #070a10 100%);
  }

  
  /* Cards for Previous Work Style */
  .cards{
    display: grid;
    align-items: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  
  .card{
    display: block;
    text-align: left;
    padding: 14px;
    border: 0px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.20);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    text-decoration: none;
      
  }

  .card__image{
    width: 100%;
    aspect-ratio: 16 / 9; 
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,.10);
    margin-bottom: 14px;
    display: block;
    transform: scale(1);
    transition: transform 600ms ease;
  }


  .card:hover .card__image{
    transform: scale(1.06);
    transition: transform 550ms ease;
  }
  
  
  .card:hover{
    border-color: rgba(255,255,255,.35);
    background: rgba(0,0,0,.28);
  }
  
  .card h3{
    margin: 0 0 8px;
    font-size: 18px;
    color: rgba(255,255,255,.92);
  }
  
  .card p{
    margin: 0 0 12px;
    color: rgba(255,255,255,.72);
    font-weight: 500;
  }
  
  .meta{
    color: rgba(255,255,255,.55);
    font-weight: 700;
    font-size: 13px;
  }

  .card__title{
    display: inline-block;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: rgba(255,255,255,.25);
    transition: color 180ms ease-in;
  }
  
  .card:hover .card__title{
    background: linear-gradient(45deg, #ff3b7a, #7c5cff, #35d3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  
  .tech{
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    color: rgba(255,255,255,.60);
    font-weight: 700;
    font-size: 13px;
  }
  
  .tech__item{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0,0,0,.16);
  }
  
  .tech__icon{
    width: 16px;
    height: 16px;
    display: block;
    /* Change colors of icons to match the theme */
    filter: invert(100%) sepia(22%) saturate(2%) hue-rotate(157deg) brightness(111%) contrast(101%);
    opacity: 0.95;
  }
  


/* Contact Style */
  #contact{
    position: relative;
    z-index: 1;
  }

  #contact.section{
    padding-top: 30px;
    padding-bottom: 40px;
    border-top:3px solid var(--accent);
    background: #0b0f16;
  }
  
  .contact__item{
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(0,0,0,.18);
    color: rgba(255,255,255,.85);
    font-weight: 700;
  }
  
  .contact__item:hover{
    border-color: rgba(255,255,255,.35);
  }
  
  /* Stack cards on mobile */
  @media (max-width: 900px){
    .cards{
      grid-template-columns: 1fr;
    }
  }


  /* Icon footer with links to socials */
.iconFooter{
    margin-top: 0px;
    padding: 18px 0 34px;
    border-top: 3px solid rgba(255,255,255,.08);
    background-color: #0b0f16;
  }
  
  .iconFooter__inner{
    display: flex;
    justify-content: center;
    gap: 18px;
  }
  
  .iconBtn{
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.22);
    backdrop-filter: blur(6px);
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
  }
  
  .iconBtn:hover{
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.28);
    background: rgba(0,0,0,.28);
  }
  
  .iconBtn svg{
    width: 26px;
    height: 26px;
    fill: rgba(255,255,255,.86);
  }

  .contactForm{
    margin: 26px auto 0;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    text-align: left;
  }

  .contactForm__send{
    justify-self: end;
    width: fit-content;
    white-space: nowrap;
    padding-inline: 35px;
  }

  .contactForm label{
    display: grid;
    gap: 8px;
    color: rgba(255,255,255,.80);
    font-weight: 600;
  }
  
  .contactForm input,
  .contactForm textarea{
    width: 100%;
    padding: 12px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.20);
    color: rgba(255,255,255,.90);
    font: inherit;
    outline: none;
  }
  
  .contactForm input:focus,
  .contactForm textarea:focus{
    border-color: rgba(255,255,255,.35);
  }
  
  .hp{ 
    display:none; 
  }


  #pmSubmit{
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: rgba(0,0,0,.16);
    color: rgba(255,255,255,.85);
    font-weight: 600;
    font: inherit;
  }

  #pmSubmit:hover {
    background: var(--accent);
    cursor: pointer;
  }



/* Project Modal (Pop-Up) Style */
button.card{
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 0;
    background: rgba(0,0,0,.20);
    padding: 14px;
    border-radius: 6px;
    color: inherit;
    font: inherit;
  }
  
  /* Text styling */
  .projectModal{
    width: min(1000px, 92vw);
    border: 0px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(10,12,18,.96);
    color: var(--text);
    padding: 18px;
  }
  
  .projectModal::backdrop{
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
  }
  
  .projectModal__close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.25);
    color: rgba(255,255,255,.9);
    cursor: pointer;
  }
  
  .projectModal__content{
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
  }
  
  /* Left column */
  .projectModal__viewer{
    display: grid;
    gap: 10px;
  }
  
  .projectModal__hero{
    width: 100%;
    height: clamp(240px, 50vw, 420px);
    object-fit: contain;
    background: rgba(10,12,18,.96);
    border-radius: 30px;
    border: 0px solid rgba(255,255,255,.10);
    display: block;
  }
  
  .projectModal__nav{
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 10px;
  }
  
  .projectModal__navBtn{
    height: 44px;
    width: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.25);
    color: rgba(255,255,255,.9);
    cursor: pointer;
  }
  
  .projectModal__counter{
    text-align: center;
    color: rgba(255,255,255,.70);
    font-weight: 600;
    user-select: none;
  }

  .projectModal__right{
    padding-top: 4px;
  }

  /* Reduce hero image height on mobile */
  @media (max-width: 900px){
    .projectModal__hero{ height: 260px; }
  }
  
  /* Right column */
  #pmTitle{
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    padding-bottom: 15px;
  }
  
  #pmSubtitle{
    margin: 0 0 12px;
    color: rgba(255,255,255,.75);
    font-weight: 600;
    padding-bottom: 30px;
  }
  
  #pmText{
    margin: 0 0 16px;
    color: rgba(255,255,255,.78);
    font-weight: 500;
    line-height: 1.55;
  }

  .pmGit__text {
    color: rgba(255,255,255,.85);
  }

  #pmGit{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: rgba(0,0,0,.16);
    color: rgba(255,255,255,.85);
    font-weight: 600;
    text-decoration: none;
  }

  #pmGit:hover .pmGit__text,
  #pmGit:hover .arrow{
    background: linear-gradient(45deg, #ff3b7a, #7c5cff, #35d3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  
  /* Stack on mobile */
  @media (max-width: 900px){
    .projectModal__content{
      grid-template-columns: 1fr;
    }
    .projectModal__images{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  

  /* Modal Animations */
  .projectModal[open]{
    animation: modalIn 180ms ease-out both;
  }
  
  @keyframes modalIn{
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  
  .projectModal[open]::backdrop{
    animation: backdropIn 5000ms ease-out both;
  }
  @keyframes backdropIn{
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .projectModal.is-closing{ animation: modalOut 160ms ease-in both; }
  @keyframes modalOut{
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(.98); }
  }