:root {
  --primary: #AEECEF;
  --secondary: #152e57;
  --text: #D0D4DA;
  --accent: #3066BE;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Sora', sans-serif;
}

.divider {
    height: 2px;
    width: clamp(200px, 80%, 1500px);
    margin: 25px auto;
    background: linear-gradient(90deg, #00000000 0%, #ffffff3B 50%, #00000000 100%);
}

code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    margin-left: 0.15rem;
    margin-right: 0.15rem;
    border-radius: 100px;
    font-size: 0.95rem;
    outline: 1px solid rgba(174, 236, 239, 0.2);
    box-shadow: 0 0 5px 0 var(--accent);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    backdrop-filter: blur(12px); /* blur the background of the navbar */
    background: rgba(255, 255, 255, 0.03); /* semi-transparent */

    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* subtle line at the bottom */
    z-index: 1000; /* stay above all content */
}
body {
  background-color: var(--secondary);
  color: var(--text);
  overflow-x: hidden;
}

/* header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
} */

.logo {
  color: var(--primary);
  font-weight: 10000;
  font-size: 1.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

#hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: linear-gradient(180deg, rgba(26,27,58,0.9), rgba(26,27,58,0.95)), repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.03) 25px); */
  text-align: center;
}

.hero-content h2 {
  color: var(--primary);
  font-size: 4rem;
  font-weight: 10000;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text);
}

section {
  padding: 5rem 10%;
  text-align: center;
}

#features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent);
  border-radius: 1rem;
  padding: 2rem;
  width: 300px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

#projects .card-grid{
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 25rem));
  gap: 2rem;
  margin-top: 2rem;
}
#team .card-grid {
    display: grid;
    /* align-items: center; */
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1rem));
    gap: 2rem;
    margin-top: 2rem;
}

#contributors .card-grid {
    display: grid;
    /* align-items: center; */
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1rem));
    gap: 2rem;
    margin-top: 2rem;
}
.card {
  max-width: 50rem;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0%, rgba(255,255,255, 0.1) 100%);
  border: 1px solid var(--accent);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.card .img {
    width: clamp(60px, 15vw, 300px);
    height: clamp(60px, 15vw, 300px);
    border-radius: 12px;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0.1);
    /* outline: 2px solid var(--accent); */
    /* outline-offset: 4px; */
    outline: 1px solid transparent;
    box-shadow: 0 0 0px 0 var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease, outline 0.5s ease;
    margin-bottom: 10px;
}
.card .img:hover {
  transform: scale(1.01);
  box-shadow: 0 0 20px 0 var(--accent);
  outline-color: var(--primary);
}
.card .avaimg {
  width: clamp(60px, 15vw, 125px);
  height: clamp(60px, 15vw, 125px);
  border-radius: 12px;
  object-fit: cover;

  outline: 2px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0px 0 var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, outline-color 0.5s ease;
  margin-bottom: 10px;
}
.card .avaimg:hover {
  transform: scale(1.01);
  box-shadow: 0 0 20px 3px var(--accent);
  outline-color: var(--primary);
}
.card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 0 10px 0 var(--accent);
}

button {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

button:hover {
  transform: scale(1.1);
  background: var(--primary);
  color: var(--secondary);
}

footer {
  padding: 2rem;
  text-align: center;
  color: #999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.landing {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
    text-align: center;
    
    background: radial-gradient(circle at center, var(--accent) 0%, var(--secondary) 75%);
    border-bottom: 3px solid var(--accent);
}

.landing::before { /* grid overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);

    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.corner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: fit-content;
  height: fit-content;
  margin: 10px;
  padding: 0px;
  overflow: hidden;
  z-index: 10;
}