* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  /* background: black; */
}

.header{
  position: fixed;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  z-index: 900;
}

/* === BLOB ANIMATION ON HOMEPAGE === */
  .blob-outer-container{
    position: absolute;
    height: 90%;
    width: 100%;
    z-index: 0;
    inset: 0;
    margin: auto;
    filter: blur(100px);
    opacity: 0.6;
  }

  .blob-inner-container {
    border-radius: 99999px;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100vw;
    height: 100vh;
    min-width: 1000px;
    overflow: hidden;
    background-color: #fff;
    transform: scale(0.6);
    opacity: 0.5;

  }

  .blob {
    position: absolute;
    width: 100vw;
    height: 100vh;
    inset: 0;
    margin: auto;
    background: conic-gradient(from 0deg, purple, rgb(91, 34, 160), rgb(151, 49, 151), rgb(83, 15, 81), purple);
    animation: spinBlob 8s linear infinite;
  }

  @keyframes spinBlob {
    0% {
      transform: rotate(0deg) scale(2);
    }

    100% {
      transform: rotate(1turn) scale(2);
    }
  }

.logo {
  color: white;
  font-size: 30px;
  text-decoration: none;
  font-weight: 600;
  cursor: default;
}

.navbar{
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 901;
}

.navbar a.glass-card {
  color: white !important;
  font-size: 18px;
  text-decoration: none;
  margin: 0 10px;
  border-bottom: 2px solid transparent;
  padding: 3px 5px;
  border-radius: 15px;
  transition: 0.3s;
  position: relative;
  z-index: 1;
    /* Glass Effect */
  background: rgba(189, 189, 189, 0.14);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10.3px);
  -webkit-backdrop-filter: blur(10.3px);
  border: 1px solid rgba(189, 189, 189, 0.22);
}

.navbar a:hover{
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
}

.navbar a.current-section{
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(140, 140, 140, 0.8);
}

.navbar a.current-selection{
  border: 1px solid rgba(255, 255, 255, 0.8);  
  background: rgba(140, 140, 140, 0.8);
}

div.glass-div{
  color: white !important;
  font-size: 18px;
  text-decoration: none;
  margin: 0 10px;
  border-bottom: 2px solid transparent;
  padding: 6px 10px;
  border-radius: 15px;
  transition: 0.3s;
  position: relative;
  z-index: 80;
    /* Glass Effect */
  background: rgba(189, 189, 189, 0.14);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.3px);
  -webkit-backdrop-filter: blur(10.3px);
  border: 1px solid rgba(189, 189, 189, 0.22);
}

div#title-wrapper {
  /* margin-top: 80px; */
  color: white;
}

#title-wrapper h1{
  font-size: 100px;
}

section { 
  transition: all 0.3s ease-in-out;
  height: 100vh;
}
/* making each section fill the screen */
.snap-section {
  scroll-snap-align: start;
  /* scroll-margin-top: 30px; */
  height: 100vh;
  width: 100vw;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  flex-direction: column;
  /* background-image: url('purple-background.jpg') */
}

div#about-me{
  width: 60vw;
}

#about-me p{
  font-size: 25px;
}

#about-me a,
#about-me a:visited {
  color: white !important;
  text-decoration: underline;
}

div#projects-wrapper{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
  max-width: 100vw;
  margin: 0 auto;
}

div.project-glass-div{
  /* flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0; */
  align-content: center;
  flex: 0 1 300px;
  width: 50vw;
  height: 40vh;
  color: white !important;
  text-decoration: none;
  margin: 0;
  border-bottom: 3px solid transparent;
  padding-top: 1vh;
  padding-left: 2vw;
  padding-right: 2vw;
  padding-bottom: 1vh;
  border-radius: 15px;
  transition: 0.3s;
  position: relative;
  z-index: 80;
    /* Glass Effect */
  background: rgba(189, 189, 189, 0.14);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10.3px);
  -webkit-backdrop-filter: blur(10.3px);
  border: 1px solid rgba(189, 189, 189, 0.22);
}

div.project-glass-div:hover{
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.10);
  cursor: pointer;
  /* Glowing Border */
}

.glowing-border:hover::before, 
.glowing-border:hover::after {
  content: '';
  position: absolute;
  inset: -0.15rem;
  background: conic-gradient(from var(--gradient-angle),
  var(--conic-color-1),
  var(--conic-color-2), 
  var(--conic-color-3),
  var(--conic-color-1));
  border-radius: inherit;
  animation: rotation 3s linear infinite;
  z-index: 10;
  overflow: hidden;
  mask: linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 0.15rem;  /* This creates the "hole" in the middle */
  opacity: 1.2;
  filter: blur(3.5em);
}

.glowing-border::after {
  filter: blur(3.5rem);
}
  /* Make projects section look good on small screens */
@media (max-width: 680px) {
  #projects-wrapper {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 12px;
    padding: 8px;
    align-items: flex-start;
  }
  .project-glass-div {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    width: 120px;
    min-width: 100px;
    max-width: 140px;
    min-height: 100px;
    max-height: 140px;
    padding: 0.5em;
    margin: 0;
    display: flex;
    flex-direction: vertical;
    align-items: center;
    justify-content: center;
  }
  .project-glass-div h2,
  .project-glass-div p,
  .project-glass-div a {
    display: none !important;
  }
  .project-glass-div img {
    display: block;
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto;
    object-fit: contain;
  }
}
/*End of Media Query*/
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotation {
  0% {--gradient-angle: 0deg;}
  100% {--gradient-angle: 360deg;}
}

.projects-title{
  text-align: center;
  /* font-size: 3em; */
  margin-bottom: 30px;
}
div.project-glass-div p{
  font-size: 18px;
}

/* Project Pop Up Window CSS */
.project-popup.hidden {
  display: none;

}

div.project-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex; 
  justify-content: center;
  align-items: center;
  background: rgba(10,10,10,0.3); /* optional: dim background */
}

div.project-popup .popup-content {
  width: 90vw;
  height: 90vh;
  max-width: 900px;   /* optional: max size for large screens */
  max-height: 900px;
  background: rgba(200, 200, 200, 0.54);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10.3px);
  -webkit-backdrop-filter: blur(10.3px);
  border: 1px solid rgba(189, 189, 189, 0.22);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
}

button.close-button {
  color: white !important;
  font-size: 12px;
  text-decoration: none;
  margin: 0 10px;
  border-bottom: 2px solid transparent;
  padding: 3px 5px;
  border-radius: 15px;
  transition: 0.3s;
  position: absolute;
  top: 4px;
  left: 4px;
  transform: translateX(-50%);
    /* Glass Effect */
  background: rgba(200, 10, 10, 0.80);
  background: radial-gradient(rgba(200, 10, 10, 0.80), rgba(180, 10, 50, 0.60));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10.3px);
  -webkit-backdrop-filter: blur(10.3px);
  border: 1px solid rgba(189, 189, 189, 0.22);
  z-index: 10000;
}

button.close-button:hover{
  cursor: pointer;
  pointer-events: auto;
}

div.popup-content{
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  grid-template-columns: 40% 60%;
  grid-template-rows: repeat(10, minmax(0, 1fr));
  width: 95%;
  height: 95%;
  overflow: hidden;
}

/* Shared properties for all popup media (images and videos) */
.popup-image-1,
.popup-image-2,
.popup-image-3,
.popup-video-2 {
  width: 97%;
  height: 97%;
  max-width: 97%;
  max-height: 97%;
  object-fit: cover;
  border-radius: 8px;
  margin: 1vh;
  display: block;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10.3px);
  -webkit-backdrop-filter: blur(10.3px);
  border: 1px solid rgba(189, 189, 189, 0.22);
  z-index: 10000;
  transform: translateY(-1vh);
}

/* Grid placement for each media item */
.popup-image-1 {
  grid-column: 1;
  grid-row: 2 / span 3;
}
.popup-image-2 {
  grid-column: 1;
  grid-row: 5 / span 3;
}
.popup-image-3 {
  grid-column: 1;
  grid-row: 8 / span 3;
}
.popup-video-2 {
  grid-column: 1;
  grid-row: 5 / span 3;
}

h2.popup-title{
  grid-row: 1;
  grid-column: 1 / span 2;
  text-decoration: solid;
  margin-bottom: 0.2rem;
  font-size: 2em;
}

.popup-description,
.popup-tech,
.popup-tech-heading
.popup-link {
  grid-column: 2;
}

.popup-blurb {
  grid-row: 2; 
  grid-column: 2;
}

.popup-description {
  grid-row: 3 / span 5; 
  grid-column: 2;
  margin-left: 5%;
  /* transform: translateY(-5em); */
  display: flex;
  justify-content: center;
  align-items:first baseline;
}

.popup-tech-heading{
  grid-row: 9;
  grid-column: 2;
  padding-top: 10%;
  /* transform: translateY(3em); */

}

.popup-tech{
  margin-top: 1rem;
  grid-row: 9 / span 2;
  grid-column: 2;
  transform: translateY(5em);
}

.popup-link {
  grid-row: 10;
  grid-column: 2;
  /* transform: translateX(35%); */
  transform: translate(35%, 70%);
}


/* Styling for smaller screens */
@media (max-width: 800px) {
  div.project-popup .popup-content {
    display: flex;
    flex-direction: column;
    width: 95vw;
    height: 95vh;
    max-width: 98vw;
    max-height: 100vh;
    padding: 1rem;
    overflow-y: auto;
  }
  .popup-image-1,
  .popup-image-2,
  .popup-image-3,
  .popup-video-2 {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 1vh 0;
    grid-column: auto;
    grid-row: auto;
    object-fit:cover;
  }

  h2.popup-title,
  .popup-blurb,
  .popup-description,
  .popup-tech-heading,
  .popup-tech,
  .popup-link {
    grid-column: auto;
    grid-row: auto;
    margin-left: 0;
    transform: none;
    padding: 0;
  }
}

/* End of Project PopUp Styling */

#social-links-and-contact{
  margin-top: 100px;
}

ul, ol {
  list-style: none;
}

section#frontpage {
  z-index: 1;
  position: relative;
}

body {
    padding-top: 80px;
    font-family: "Consola", monospace;
    width: 100%;
    min-height: 100vh;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    text-align: center;
    background: rgba(10, 10, 10, 0.99);
    color: white;
    background-image: url(/assets/purplepinkgradientbg2.png);
    background-size: 100% 500vh;
    background-repeat: no-repeat;
    /* background: linear-gradient(to right, #6185ff, #ff616f); */
    /* background-attachment: fixed; */
  }

  div.about-me-div{
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.10);
    width: 70vw;
    height: 75vh;
    /* Glowing Border */
  }

  /* ABOUT ME STYLING */
  .about-me-contents{
    padding: 2%;
    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: repeat(10, auto);
    justify-content: center;
    align-content: center;
  }
/* Glass border and hover scale for About Me images */
#Azim.glowing-border,
.sailing.glowing-border {
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(120, 120, 255, 0.25), 0 0 0 2px rgba(255,255,255,0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  /* Optional: subtle glassy background */
}

#Azim.glowing-border:hover,
.sailing.glowing-border:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 40px rgba(120, 120, 255, 0.35), 0 0 0 4px rgba(255,255,255,0.35);
  z-index: 2;
}
  .about-me-contents.playAnim{ 
    animation: fadeInSimple 1.25s ease-in-out 0.50s 1 normal both;
  }

  .about-me-div.playAnim{
    animation: fadeInSimple 0.55s ease-in-out 0.15s 1 normal both;
  }

  .about-me-header{
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    transform: translate(40%, -40%);
  }

  /* About me Hover Not working yet */
  /* .about-me-divs:hover{
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.10);
  } */

  #Azim{
    border-radius: 10px;
    /* height: max(30vh, 200px);
    width: max(15vw, 150px); */
    grid-column: 1 / span 2;
    grid-row: 2 / span 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-right: 12px;
    /* border: 5px solid black; */
    transform: translateY(-2%);
  }

  #p1{
    grid-column-start: 4;
    grid-column-end: 5;
    grid-row-start: 2;
    grid-row-end: 3;
    margin-left: 12px;
    transform: translateY(-2%);
  }

  #p2{
    grid-column: 1 / span 2;
    grid-row: 5 / span 1;
    margin-right: 12px;
    align-self: center;
    justify-self: center;
  }

  .sailing{
    border-radius: 10px;
    grid-column-start: 4;
    grid-column-end: 5;
    grid-row: 5 / span 1;
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
    margin-left: 12px;
    /* justify-self: stretch; */
    /* max-height: 120px;
    max-width: 120px; */
  }

  /* Responsive About Me section for smaller screens */
  /* tbh i got lazy and had copilot do this */
@media (max-width: 1450px) {
  .about-me-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    width: 98vw;
    padding: 2vw 1vw;
    box-sizing: border-box;
  }
  .about-me-contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2vh;
  }
  .about-me-header,
  #Azim,
  #p1,
  #p2,
  .sailing {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }
  #Azim, .sailing {
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }
  .about-me-header {
    text-align: center;
    align-self: center;
    justify-self: center;
    transform: none !important;
  }
  #p1, #p2 {
    font-size: 1.1em;
    text-align: center;
  }
}
  
  #Azim::before, 
  #Azim::after {
  content: '';
  position: absolute;
  inset: -0.15rem;
  background: conic-gradient(from var(--gradient-angle),
  var(--conic-color-1),
  var(--conic-color-2), 
  var(--conic-color-3),
  var(--conic-color-1));
  border-radius: inherit;
  animation: rotation 3s linear infinite;
  z-index: 10;
  overflow: hidden;
  mask: linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 0.15rem;  /* This creates the "hole" in the middle */
  opacity: 1.2;
  filter: blur(3.5em);
}

#Azim::after {
  filter: blur(3.5rem);
}

  main {
    width: 100%;
    margin: auto;
    position: relative;
    border-radius: 5px;
    margin-top: 50px;
  }

  div {
    margin-bottom: 40px;
  }
  /* For safari formatting */
  .experience-logo-rectangle, .experience-logo-square {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

  .experience-logo-rectangle{
    height: 50px;
    width: 170px;
    margin-right: 50px;
  }

  .experience-logo-square{
    height: 68px;
    width: 68px;
    margin-right: 50px;
  }

  div#experience li {
    display: flex;
    align-items: center;
  }
  

  footer{
    scroll-snap-type: none;
    scroll-snap-align: none;
    height: 20vh;
    width: 100vw;
  }
  
  #contact-footer{
    height: 20vh;
    color: white;
    z-index: 9999;
    background: rgba(189, 189, 189, 0.14);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.3px);
    -webkit-backdrop-filter: blur(10.3px);
    border: 1px solid rgba(189, 189, 189, 0.22);
  }

  .socials-container{
    display: flex;
    gap: 20px;
  }


/* ===CIRCLE SOCIAL ICON STYLING===*/
  .socials-container a{
    background: rgba(244, 244, 244, 0.5);
    padding: 1em;
    border-radius: 50%;
    height: 64px;
    width: 64px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: grid;
    box-shadow: 0 5px 10px rgba(0,0,0, 0.5);
    position: relative;
    text-align: center;
  }

  /* === SVG ICON INSIDE CIRCLE */
  .socials-container a svg{
    height: 32px;
    fill: white;
  }

  /* LinkedIn Icon Override */
  .socials-container a svg#linkedinSVG{
    height: 32px;
    width: 32px;
    fill: white;
  }
  
  /* === TEXT BUBBLE === */
  .socials-container a::before{
    content: attr(data-social);
    position: absolute;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 0.5em 0.5em 0.5em;
    border-radius: 100px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    /* right: 50%; */
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42,0,.44,1.68);
    text-align: center;
    white-space: nowrap;

  }

  /* ON HOVER SHOW BUBBLE */
  .socials-container a:hover::before{
    /* Lower Y transform (closer to 0) is closer to icon (further down screen) */
    transform: translateY(-45px) rotate(0);
    text-align: center;
    opacity: 1;
    z-index: 9999;
  }

  /* ========== TRIANGLE (TOOLTIP POINTER) ========== */
  .socials-container a::after{
    /* TRIANGLE BELOW THE SOCIAL THING */
    content: '';
    position: absolute;
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent-color);
    transform: translateY(-10px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42,0,.44,1.68);
    z-index: 9999;
  }

  /* SHOW TRIANGLE ON HOVER */
  .socials-container a:hover::after{
    transform: translateY(-12px) rotate(0) translateX(140%);
    opacity: 1;
  }

    /* === SHOW COLOR ON HOVER ON CIRCLE === */
  .socials-container a:hover{
    background-color: var(--accent-color);
  }

  /*=== TITLE ANIMATIONS===*/
  @keyframes azimLoadInTop {
    from {
      transform: translateY(-300px);
      opacity: 0;
    }
    to {
      transform: translateY(0px);
      opacity: 1;
    }
  }

  @keyframes azimLoadInBottom{
    from{
      transform: translateY(30px);
      opacity: 0;
    }

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

  /* TITLE ANIMATION KEYFRAMES APPLIED*/
  .playAnim#title-wrapper h1 {
    animation-name: azimLoadInTop;
    animation-duration: 0.85s;
    animation-timing-function: ease-in-out;
    /* animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955); */
    animation-delay: 0.15s;
    animation-timing-function: 1;
    animation-direction: normal;
    animation-fill-mode: both;
  }

  .playAnim#title-wrapper h3 {
    animation: azimLoadInBottom 1s ease-in-out 0.75s 1 normal both;
  }

  /* === SIMPLE FADE IN ANIMATION === */
  @keyframes fadeInSimple {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .simple-animation { 
    /* This is the animation for the header ONLY */
    animation: fadeInSimple 1s ease-in 0.5s 1 normal both;
  }


  .playAnim#blob-animation {
    animation: fadeInSimple 1s ease-in 0.5s 1 normal both;
  }

  @keyframes fadeOutSimple{
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  .fadeOutHidden {
    animation: fadeOutSimple 0.5s ease-in-out !important;
    display: none;
  }