/* site wrap */

.site-wrap {
  min-height: 80vh;          /* keeeep */
  padding: clamp(20px, 3.2vw, 40px);
  border-radius: 20px;

  background: rgba(15,16,32,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
   margin-top: 175px;
  
}

/* Flexbox gallery */

.link-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 40px;
  padding: 60px;
  max-width: 1500px;
  margin: 0 auto;
  justify-content: center;
  align-items: start;
  box-sizing: border-box;
  padding-top: 100px;
}

.link-gallery, 
.link-gallery * {
  position: relative;
  z-index: 2;
}

.link-box {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  overflow:hidden;
}

.link-box a{
  display:block;
}

.link-box img{
  width: 98%;
  display:block;
  aspect-ratio: 16 / 10;
  border:4px solid rgba(255,255,255,.06);
  border-radius: 7px;
  background:#0f1117;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6)
} 

.link-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}



.link-box p {
  margin:0;
  padding:14px 16px;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--title);
  background: transparent; 
  border-top:1px solid var(--card-border);
}

/* Header display */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;           
}


body {
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background: radial-gradient(circle at top left, #0000ff, #9898ff);
  text-align: center;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  word-break: keep-all;
}

header h1 {
  font-family: "Bebas Neue", sans-serif;  font-size: 5.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  
}

header .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 0.15rem;
  max-width: 800px;
  margin-inline: auto;
  
}

header .details {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

/* Footer display */

footer.credits {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 60px;
  padding: 20px 0;
}
footer.credits a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}



.headArrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid #a0aec0;
  border-bottom: 2px solid #a0aec0;
  transform: rotate(45deg);
  margin: 8px auto 0;
  animation: bounce 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 5px rgba(160,174,192,0.5));
}

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


  /* Navigator display */

nav {
  top: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  background: transparent;
  position: relative;
}


nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.navItems {
  display: flex;
  position: relative;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 10px;
   width: min(1100px, 100%);
   border-radius: 999px;
   background: linear-gradient(90deg,#eef5ff,#ecf5f6);
   backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:1px solid rgba(0,0,0,0.08);

  box-shadow:
    0 10px 24px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.65);


}

.navItems li {
  flex: 1;
  text-align: center;
  
}

.navItems > li > a {
  padding: 12px 16px;
  text-decoration: none;
  color: #050505;
  font-size: 15px;
  font-weight: 600;
}


.navItems li a {
  display: block;
  padding: 15px 0;
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}


.dropdown {
  opacity: 0;
  position: absolute;
  overflow: hidden;
  padding: 20px;
  top: -20px;
  border-radius: 2px;
  transition: all 0.5s;
  transform: translateY(100px);
  will-change: opacity;
}

.dropdown .bio p {
  color: #000;
}


.floating-shapes {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0; /* behind everything else */
  pointer-events: none;
}

.shape {
  position: absolute;
  bottom: -60px;
  background: rgba(255, 255, 255, 0.15);
  animation: floatUp 10s linear infinite;
  border-radius: 4px;
  opacity: 0.6;
}

/* Specific shapes */
.shape.triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background-color: rgba(255, 255, 255, 0.2);
  width: 25px;
  height: 25px;
}

.shape.square {
  width: 20px;
  height: 20px;
}

.shape.circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}



/* Animation keyframes */
@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Random positions + timing for variety */
.shape:nth-child(1)  { left:  6%; animation-duration: 10s; animation-delay: 0s;  }
.shape:nth-child(2)  { left: 14%; animation-duration: 12s; animation-delay: .5s; }
.shape:nth-child(3)  { left: 22%; animation-duration:  9s; animation-delay: 1s;  }
.shape:nth-child(4)  { left: 30%; animation-duration: 11s; animation-delay: 1.5s;}
.shape:nth-child(5)  { left: 38%; animation-duration: 13s; animation-delay: .2s; }
.shape:nth-child(6)  { left: 46%; animation-duration:  8.5s;animation-delay: 1.2s;}
.shape:nth-child(7)  { left: 54%; animation-duration: 10.5s;animation-delay: .8s; }
.shape:nth-child(8)  { left: 62%; animation-duration: 12.5s;animation-delay: 1.8s;}
.shape:nth-child(9)  { left: 70%; animation-duration:  9.5s;animation-delay: .3s; }
.shape:nth-child(10) { left: 78%; animation-duration: 11.5s;animation-delay: 1.4s;}
.shape:nth-child(11) { left: 86%; animation-duration:  8.8s;animation-delay: .9s; }
.shape:nth-child(12) { left: 94%; animation-duration: 13.2s;animation-delay: 2.1s;}


/* fixed Nav */
body.fixed-nav .nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 1000;
}

body.fixed-nav .navItems {
  padding: 8px;                    /* was 10px */
}

body.fixed-nav .navItems {
  background: linear-gradient(90deg,#eef5ff,#ecf5f6);
}

/* Follow Along Nav */
.dropdownBackground {
  position: absolute;
  top: 0;                     
  left: 0;
  width: 100px;              
  height: 100px;             
  transform: translate(var(--x, 0), var(--y, 0)); 
  background: linear-gradient(90deg, #f8f9fb 0%, #f8f9fb 100%);
  border-radius: 8px;
  box-shadow: 0 50px 100px rgba(50,50,93,.1),
              0 15px 35px rgba(50,50,93,.15),
              0 5px 15px rgba(0,0,0,.1);
  opacity: 0;
  transition: transform .25s ease, width .2s ease, height .2s ease, opacity .15s ease;
  transform-origin: 50% 0;
  pointer-events: none;      
  z-index: 5;                
}

 .dropdownBackground .arrow {
  position: absolute;
  width: 12px; height: 12px;
  background: inherit;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.dropdownBackground.open {
  opacity: 1;
}

.navItems .dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 10px);
  background: transparent;    
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
  padding: 0;
  margin: 0;
  border: 0;               
}

.navItems > li {
  position: relative;
}

.navItems > li.trigger-enter .dropdown {
  opacity: 1;
  pointer-events: auto;
}

.navItems > li.trigger-enter-active .dropdown {
  transform: translate(-50%, 0);
}


/* Nav dropdown 2 Buttons */
.dropdown1 .bio img {
  padding: 15px;
}


.dropdown2 {
  width: 225px;              
  padding: 14px 16px;        
  box-sizing: border-box;
}

.dropdown2 .button {
  text-align: center;
  display: flex;              
  justify-content: center;  
  align-items: center;
  font-weight: 700;
}

.dropdown2 ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 9%;
  
}

.button[href*="linkedin"] {
  background: #0A66C2;   
  color: white;
}

.button[href*="github"] {
  background: #24292E;   
  color: white;
}

.button[href*="mailto"] {
  background: #EA4335;  
  color: white;
}

.dropdown3 {
  min-width: 260px;
  padding: 18px 20px 16px;
  box-sizing: border-box;
  text-align: center;
}

.dropdown3 .courseBio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dropdown3 p {
  color: black;
}

.dropdown3 .courseBio img {
  margin-top: 10px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.dropdown3 .course-button {
  display: block;
  width: 100%;
  padding: 11px 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc600, #ff9f1c);
  color: #1a1300;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.dropdown3 .course-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  filter: brightness(1.03);
}