@font-face {
  font-family: 'Geist Light', sans-serif;
  src: url('fonts/Geist-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Geist UltraLight', sans-serif;
  src: url('fonts/Geist-UltraLight.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Bold';
  src: url('fonts/Geist-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

body,
html {
  margin: 0;
  padding: 0;
}

body {
  background-color: #070707;
  color: white;
  font-family: 'Geist UltraLight', sans-serif;
  letter-spacing: -1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
}

/*
body::before {
  content: "";
  position: fixed;
  bottom: -225px;
  right: -50px;
  width: 775px;
  height: 775px;
  background-image: url('homepage_bg_dark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
}
*/

body ::selection {
  background: #F6DD07;
  color: black;
}

#backgroundImage {
  position: absolute;
  bottom: -225px;
  right: -50px;
  width: 775px;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

#contentCont {
  width: 95%;
  max-width: 1500px;
  /*min-height: 95vh;*/
}

#navBar {
  background-color: #171717;
  width: 100%;
  height: 7vh;
  min-height: 75px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  margin: 25px 0px 0px 0px;
  justify-content: space-between;
}

#navLinksCont {
  height: 100%;
  margin: 0px 0px 0px 75px;
  background-color: #171717;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

a {
  text-decoration: none;
}

.navLink {
  color: white;
  text-decoration: none;
  margin: 0px 55px 0px 0px;
  font-size: 20px;
  padding: 15px 10px 15px 10px;
}

.navLink:hover {
  color: #797C7F;
}

#navProfileImage {
  border: 1px solid grey;
  display: flex;
  height: 40px;
  width: 40px;
  margin: 0px 25px 0px 0px;
  border-radius: 50px;
  cursor: pointer;
  background-image: url('/default_profile_image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#logo {
  height: 60px;
  width: 150px;
  background-image: url('polyglot_logo.svg');
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  margin-left: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headingCont {
  display: flex;
  width: 100%;
  min-height: 60px;
  margin: 100px 0px 100px 0px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

h1 {
  font-family: 'Geist UltraLight', sans-serif;
  letter-spacing: -3px;
  font-weight: 300;
  font-size: clamp(50px, 6vw, 60px);
}

.h1Alt {
  font-family: 'Geist Bold', sans-serif;
  letter-spacing: -3px;
  font-weight: normal;
  color: #373737;
}

.copyright {
  font-family: 'Geist UltraLight', sans-serif;
  font-size: 1rem;
  letter-spacing: 0px;
  color: #A3A3A3;
  width: 95%;
  max-width: 1500px;
  display: flex;
  margin: 2rem 0;
  justify-content: center;
}

/* card base styles (left/right share layout) */
#cardSection {
  display: flex;
  width: 100%;
  min-height: 60px;
}

.cardCont {
  display: grid;
  /* enforce 2x2 */
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 100%;
  max-width: 525px;
}

.cardLeft {
  display: flex;
  flex-direction: column;
  background-color: #171717;
  width: 100%;
  height: 150px;
  border-radius: 20px;
  /* margins removed — grid gap handles spacing */
}

.cardRight {
  display: flex;
  flex-direction: column;
  background-color: #171717;
  width: 100%;
  height: 150px;
  border-radius: 20px;
}

.cardLeft,
.cardRight {
  justify-content: space-between;
  cursor: pointer;
}

.cardLeft:hover,
.cardRight:hover {
  background-color: #111111;
  transition: background-color 0.3s ease;
}

.cardIcon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0px 0px 25px;
}

.cardText {
  margin: 0px 0px 15px 25px;
  font-size: clamp(24px, 4vw, 40px);
}

#setsIcon {
  background-image: url('card_icons/sets_icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#foldersIcon {
  background-image: url('card_icons/folders_icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#notesIcon {
  background-image: url('card_icons/notes_icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#timerIcon {
  background-image: url('card_icons/timer_icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.cardCont a {
  text-decoration: none;
  color: inherit;
  display: contents;
}

/* --- HERO / NEW HOMEPAGE STYLES --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin: 8rem 0;
}

.hero-text h1 {
  margin-bottom: 1rem;
}


.hero-text p.subheading,
.subheading {
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-family: 'Geist Light', sans-serif;
}

/* CTA button: default yellow, hover dark gray */
.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  letter-spacing: -0.5px;
  background: #F6DD07;
  /* yellow default */
  color: #000;
  /* black text */
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  font-size: clamp(20px, 4vw, 24px);
}

.cta-btn:hover,
.cta-btn:focus {
  background: #333333;
  /* dark gray on hover */
  color: #ffffff;
  /* white text for legibility */
  outline: none;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    margin: 2rem 0;
  }

  @media (max-width: 768px) {
    .hero-text p.subheading {
      font-size: clamp(20px, 4vw, 24px);
      /* adjust min/max as needed */
      line-height: 1.4;
      /* optional: tighter spacing for mobile */
      padding: 0 4rem;
    }
  }

  @media (max-width: 768px) {
    body {
      letter-spacing: -0.5px;
    }
  }


  .cardCont {
    grid-template-columns: repeat(2, 1fr);
    /* two equal columns */
    max-width: 100%;
    /* optional: prevents squeezing into 400px */
    margin: 0 auto;
    gap: 1rem;
    /* optional spacing between cards */
  }

  .cardIcon {
    margin-left: auto;
    margin-right: auto;
  }

  .cardText {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(24px, 5vw, 40px);
  }
}

@media (max-width: 768px) {
    .hero h1 {
      font-size: clamp(32px, 10vw, 44px);
      /* adjust min/max as needed */
      letter-spacing: -2px;
    }
  }

@media (max-width: 768px) {

  .cardLeft,
  .cardRight {
    max-height: 120px;
    /* or whatever height works best on mobile */
  }
}

.cardContWrapper {
  display: flex;
  justify-content: flex-end;
  /* pushes .cardCont to the right */
  width: 100%;
  /* make sure it spans the full width of its grid column */
}

@media (max-width: 768px) {
  .cardContWrapper {
    justify-content: center;
  }
}

/* --- WHAT IS POLYCARD SECTION --- */
.infoSection {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 2rem; /* match the hero card gap */
  width: 100%;
  max-width: 1500px;
  margin: 2rem 0 auto;
  padding: 0; /* aligns edges to navbar edges */
  align-items: stretch; /* ensures both columns are equal height */
  max-height: 400px; /* limit overall section height */
  overflow: hidden; /* prevent content from overflowing */
  font-family: 'Geist UltraLight', sans-serif;
}

.infoText {
  background-color: #171717;
  color: white;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spaces subheading at top and paragraph at bottom */
  min-height: 250px; /* ensures visible height */
  box-sizing: border-box; /* includes padding in width calculation */
  max-height: 400px; /* matches section max-height */
  overflow: hidden; /* prevents text from spilling out */
}

.infoText .subheading {
  font-family: 'Geist UltraLight', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 2rem;
}

.infoText p {
  font-family: 'Geist UltraLight', sans-serif;
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.6;
  margin: 0;
  overflow: hidden; /* optional: hide excess text if too long */
}

.infoImage {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 400px; /* keep image within same max height */
}

.infoImage img {
  width: 100%;
  max-width: 100%; /* fills half the grid column */
  border-radius: 20px;
  object-fit: cover;
  height: 100%; /* fill the column height */
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .infoSection {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 0; /* tighter padding for mobile */
    max-height: none; /* remove max-height on mobile so content isn't cut off */
    margin: 1rem 0;
    justify-items: center; /* centers grid items horizontally */
    align-items: center;   /* centers items vertically if needed */
  }

  .infoText {
    justify-content: space-between;
    padding: 1.5rem;
    max-height: none; /* allow full height on mobile */
    width: 100%;
    
  }

  .infoImage {
    width: 100%;
    max-width: 500px; /* optional: constrain for better readability */
  }

  .infoImage img {
    max-width: 100%;
    height: auto; /* natural height for mobile */
  }
}

/* Info Image Scalability */
@media (max-width: 768px) {
  .infoImage {
    width: 100%;
    max-width: none;       /* don’t constrain like before */
    overflow: hidden;      /* crops overflow */
    height: 250px;         /* set a fixed height so it matches text behavior */
    border-radius: 12px;   /* optional, keeps rounded corners consistent */
    max-width: 600px;
  }

  .infoImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* zoom-crop instead of stretching */
    object-position: center;
  }
}



/* --- CURRENT LIMITATIONS SECTION --- */
.limitationsSection {
  display: grid;
  grid-template-columns: 3fr 1fr; /* left 3/4, right 1/4 */
  gap: 2rem;
  width: 100%;
  max-width: 1500px;
  margin: 2rem 0;
  padding: 0;
  align-items: stretch; /* make both columns same height */
  font-family: 'Geist UltraLight', sans-serif;
  max-height: 600px; /* same as info sections */
  overflow: hidden;
}
.limitationsSection h2 {
  font-family: 'Geist UltraLight', sans-serif;
}

.limitationsText {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* space out subheading and paragraphs */
  background-color: #171717;
  padding: 2rem;
  border-radius: 20px; /* only top-left and bottom-left rounded */
  min-height: 250px; /* match info sections */
  box-sizing: border-box;
  max-height: 600px;
  overflow: hidden;
}

.limitationsText .subheading {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 4rem;
}

.limitationsText p {
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.6;
  margin-bottom: 1rem;
  overflow: hidden;
}

.limitationsImage {
  background-color: #171717;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  padding: 1rem;
  height: auto;
  overflow: hidden; /* ensure image doesn't overflow container */
  gap: 2rem;
  text-align: center;
}

.limitationsImage img {
  max-width: 80%;
  max-height: 80%; /* fit within container */
  object-fit: contain; /* scale image fully visible while maintaining aspect ratio */
}


/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .limitationsSection {
    grid-template-columns: 1fr; /* stack columns */
    text-align: center;
    gap: 1.5rem;
    padding: 0;
    max-height: none; /* remove height limit on mobile */
  }

  .limitationsText {
    justify-content: flex-start;
    border-radius: 20px; /* fully rounded on mobile */
    max-height: none;
  }

  .limitationsImage {
    border-radius: 20px; /* fully rounded on mobile */
    height: auto;
  }

  .limitationsImage img {
    height: auto;
  }
}

/* Call To Action Section */
.ctaBanner {
  background-color: #171717;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  border-radius: 20px;
  margin: 2rem auto;
  max-width: 1500px;
}

.ctaBanner h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: normal;
  margin: 0;
}

.ctaBanner p {
  font-size: clamp(20px, 4vw, 24px);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.ctaBanner .ctaButton {
  background-color: #F6DD07;
  color: #171717;
  font-weight: 600;
  font-size: clamp(20px, 4vw, 24px);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ctaBanner .ctaButton:hover {
  background-color: #333333;
  color: white;
}

.ctaButton {
font-family: 'Geist UltraLight', sans-serif;
}

/* --- FEEDBACK SECTION --- */
.feedbackSection {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 2rem; /* match info section spacing */
  width: 100%;
  max-width: 1500px;
  margin: 2rem 0 auto;
  margin-bottom: 4rem;
  padding: 0; /* aligns edges to navbar edges */
  align-items: stretch; /* both columns equal height */
  max-height: 600px; /* same height cap as info section */
  overflow: hidden;
  font-family: 'Geist UltraLight', sans-serif;
}

.feedbackText {
  background-color: #171717;
  color: white;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spaces heading/paragraph/buttons */
  min-height: 250px;
  box-sizing: border-box;
  max-height: 600px;
  overflow: hidden;
}

.feedbackText h2 {
  font-family: 'Geist UltraLight', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 4rem 0;
}

.feedbackText p {
  font-family: 'Geist UltraLight', sans-serif;
  font-size: clamp(20px, 4vw, 24px);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  overflow: hidden;
}

.feedbackButtons {
  display: flex;
  gap: 1rem;
}

.feedbackBtn {
  background-color: #797C7F;
  color: black;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-family: 'Geist Light', sans-serif;
  letter-spacing: -0.5px;
  transition: background-color 0.2s ease;
  font-size: clamp(20px, 3vw, 24px);
}

.feedbackBtn:hover {
  background-color: #5e6163; /* darker shade */
}

.feedbackImage {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 600px; /* match info section */
  background-color: #171717;
  border-radius: 20px;
  overflow: hidden;
}

.feedbackImage img {
  width: auto;
  max-width: auto;
  object-fit: none; /* zoom-crop if needed */
  height: 100%;
}

.feedbackText, .feedbackImage {
  width: 100%;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .feedbackSection {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 0;
    max-height: none;
    margin: 1rem 0;
    justify-items: center;
    align-items: center;
  }

  .feedbackText {
    justify-content: space-between;
    padding: 1.5rem;
    max-height: none;
    width: 100%;
  }

  .feedbackImage {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 400px;
  background-color: #171717;
  border-radius: 20px;
  overflow: hidden;     /* keep the rounded container */
  padding: 2rem 0;
}


  .feedbackButtons {
    justify-content: center;
    font-family: 'Geist Light', sans-serif;
  }
}

.email-link {
  font-weight: bold;
  color: #F6DD07;
  text-decoration: none; /* removes underline */
}

/* CTA BUTTONS */

.ctaButton, .cta-btn {
  font-family: 'Geist Light', sans-serif;
}

/* Hero Subheading */
#hero-subheading {
  font-family: 'Geist UltraLight', sans-serif;
}