html,body,#main {
  margin:0;
  padding:0;
  box-sizing:border-box
}

:root {
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale
}


body {
  background-color: black;
  color: white;
}


 /* START OF NAVBAR */
 .navbar {
    width: 100%;
    padding: 20px 20px;
    box-sizing: border-box;
    background-color: black;
    font-family: 'Inter Tight', sans-serif;
  }

  .navbar-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .navbar a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;

  height: 1.2em;
  line-height: 1.2em;
  position: relative;
}

.slide-text {
  display: inline-flex;
  flex-direction: column;
  height: 2.4em;
  overflow: hidden;
  transition: transform 0.3s ease; /* important: smooth in AND out */
}

.slide-text span {
  line-height: 1.2em;
  display: block;
}

.navbar a:hover .slide-text {
  transform: translateY(-1.2em);
}




  /* END OF NAVBAR */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 60px 20px;
  background: #000000;
}

/* 2 flexible columns starting at 600px */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

/* Optional — remove this part completely if you want full width growth */
@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    /* No max-width, so it grows forever */
  }
}


  .card {
    display: block;
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
    color: white;
    transition: transform 0.3s ease;
  }

  .card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }

  .card h2 {
    font-family: 'Inter Tight', sans-serif;
    padding: 10px 0px 0px;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
  }


.card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  opacity: 0;
  transform: translateY(25px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  margin: 0;
  text-align: left;
}

/* 👇 This is the magic */
.card:hover img {
  transform: scale(1.05);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card:hover .card-title {
  opacity: 1;
  transform: translateY(0);
}

/* End Of Cards */


/* Publications */

.publications {
  padding: 60px 40px;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  font-family: 'Inter Tight', sans-serif;
}

.publications h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

.publication-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff;
  text-decoration: none;
  color: inherit;
  padding: 20px 10px;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.publication-row span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Alignments */
.publication-row .title {
  text-align: left;
  flex: 1;
}

.publication-row .type {
  text-align: center;
  flex: 1;
}

.publication-row .year {
  text-align: right;
  flex: 1;
}

/* Hover Effect */
.publication-row:hover {
  background-color: #f0f0f0;
}


.publication-row:hover .type {
  transform: translateY(-4px);
  opacity: 1;
}

.publication-row:hover .year {
  transform: translateY(-4px);
  opacity: 1;
}

.publication-row {
  color: #ffffff; /* default color (can be black too) */
  transition: color 0.3s ease;
}

.publication-row:hover {
  color: black; /* text fades to black on hover */
}

.publication-extra {
  display: none;
  flex-direction: column;
}

.publication-list.show-all .publication-extra {
  display: flex;
}

.show-more-row {
  cursor: pointer;
  color: #aaa;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid #000000;
}

.show-more-row:hover {
  background-color: #f0f0f0;
  color: black;
}

/* Publications End Here */


.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: black; /* Set background to black from the start */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: background-color 1s ease;
}

/* Expanding circle effect */
.circle-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 150vmax;
  background: radial-gradient(circle, white 40%, transparent 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  transition: transform 1.5s ease, opacity 1.5s ease;
  z-index: 0;
}

/* Text styles */
.hero-text {
  z-index: 1;
  text-align: center;
  font-family: 'Inter Tight', sans-serif;
}

.subheading,
.main-heading {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease;
  color: white; /* White text before animation */
}

.subheading {
  font-size: 32px;
  font-weight: 500;
  transition-delay: 0.2s;
}

.main-heading {
  font-size: clamp(60px, 20vw, 280px);
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
  line-height: 1;
  transition-delay: 0.4s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

/* Animate in (when .animate class is added via JS) */
.hero-section.animate .circle-bg {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.hero-section.animate .subheading,
.hero-section.animate .main-heading {
  transform: translateY(0);
  opacity: 1;
  color: black; /* Text fades to black AFTER animation */
}


/* Lets Make Magic Ends Here */





.custom-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #000;
  color: #fff;
  padding: 60px 40px;
  font-family: 'Inter Tight', sans-serif;
  gap: 30px;
}

.custom-footer .footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
  flex: 1;
}

.custom-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.custom-footer a:hover {
  color: rgba(153, 153, 153, 0.6);
}

.custom-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}


/* Flex wrapper for the whole page */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Allow main to grow and push footer down */
.main-content {
  flex: 1;
}

/* Optional: styling the footer */
footer {
  background-color: black;
  color: white;
  padding: 20px;
}