:root {
  --nav-height: 64px;
  --accent: #0b63d6;
  --black: #000000;
  --accent-purple: #372a46;
  --accent-light-purple: #977ab5;
}

* {
  -webkit-transition: 0.2s ease;
  transition: transform 0.2s ease;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  margin: 0;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

p,
li {
  font-size: 1.125rem !important;
}

.padding {
  height: 12rem;
}

.site-nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid #e6e6e6;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111;
}

.nav-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-right a {
  color: var(--black);
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  transition: all 0.15s;
  font-weight: 600;
}

.nav-right a:hover {
  color: var(--accent);
  background: rgba(11, 99, 214, 0.06);
}

/* Language dropdown styles */
.nav-right {
  /* ensure dropdown can position relative items */
  position: relative;
}
.lang-dropdown {
  position: relative;
}
.lang-button {
  background: transparent;
  border: 0;
  padding: 0.25rem 0.6rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}
.lang-button:focus {
  outline: 2px solid var(--accent);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(var(--nav-height) + 6px);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.08);
  list-style: none;
  padding: 6px 6px;
  margin: 0;
  z-index: 120;
  min-width: 140px;
}
.lang-menu[hidden] {
  /* override global ul display rules so the menu stays hidden until explicitly opened */
  display: none;
}
.lang-menu li + li {
  margin-top: 4px;
}
.lang-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.lang-option:hover {
  background: rgba(11, 99, 214, 0.06);
  color: var(--accent);
}

.lang-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* Mobile: make language menu static within the vertical nav list */
@media (max-width: 640px) {
  .lang-menu {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: auto;
  }
  .lang-option {
    padding: 0.75rem 1rem;
  }
}

/* Mobile hamburger button */
.nav-toggle {
  display: none; /* shown on small screens */
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin-left: 0.5rem;
}
.nav-toggle:focus {
  outline: 2px solid var(--accent);
  border-radius: 6px;
}
.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--black);
}
.hamburger::before {
  top: -6px;
}
.hamburger::after {
  top: 6px;
}

/* Mobile dropdown menu behavior */
.site-nav.nav-open .hamburger {
  background: transparent;
}
.site-nav.nav-open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.site-nav.nav-open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile specific nav styles */
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .nav-right {
    position: absolute;
    right: 1rem;
    top: var(--nav-height);
    background: #fff;
    width: calc(100% - 2rem);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    z-index: 60;
  }
  .nav-right ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
  }
  .nav-right li {
    width: 100%;
  }
  .nav-right a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--black);
  }
  .nav-right {
    max-height: 0; /* collapsed */
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 320ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 240ms ease, transform 240ms ease;
  }

  /* Open state */
  .site-nav.nav-open .nav-right {
    max-height: 520px; /* expanded */
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  height: 100vh;
  /* background moved to ::before so we can animate it smoothly with transform */
  background: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  overflow: hidden;
}

/* Parallax background layer (uses --parallax-offset set in JS) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0;right:0;bottom:0;left:0 */
  background-image: url("images/hero-image-code.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  /* stronger visible movement: increase multiplier to make parallax more noticeable */
  transform: translate3d(0, calc(var(--parallax-offset, 0px) * 0.35), 0);
  will-change: transform;
  /* transform will be driven by JS via requestAnimationFrame for smoothness */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 2;
} /* keep content above the background */

.hero h1 {
  font-size: 8rem;
  width: 50%;
  margin-left: 2rem;
  color: #fff !important;
}

.hero p {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1rem;
  margin: 25px;
  font-weight: bold;
}

/* Intro Section Styles */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.intro-image {
  width: 55%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.intro-text {
  width: 25%;
}

#subtitle,
.subtitle {
  color: var(--accent-purple);
  font-weight: 600;
  margin: 0;
  padding: 0;
}

#AcademicWeapon {
  color: var(--accent-purple);
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.intro-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.intro-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--accent-purple);
  font-weight: 600;
}

/* Column Section Styles */
.columns {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 2rem;
  gap: 1.5rem;
  background-color: #f9f9f9;
}

.column {
  text-align: center;
  width: 30%;
}

.column-icon img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.column h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-purple);
}

.column ul,
.column li,
.column p {
  font-size: 1rem;
  color: var(--accent-purple);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

/* Responsive adjustments for columns */
@media (max-width: 768px) {
  .columns {
    flex-direction: column;
    align-items: center;
  }

  .column {
    width: 80%;
  }
}

/* Offer Section Styles */
.offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  gap: 2rem;
  background-color: #f4f4f4;
  flex-direction: row-reverse; /* Place image on the right */
}

/* Gallery / Collage Styles */
.GalleryShowcase {
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, #fff, #fbfbfd);
}

.GalleryShowcase button {
  display: block;
  margin: 1rem auto;
}

.gallery-header {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.gallery-grid {
  max-width: 1200px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
  padding: 6px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* special tile sizes for a collage feel */
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item--tall {
  grid-row: span 2;
}

/* responsive adjustments */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 130px;
  }
}
@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gallery-item--large {
    grid-column: span 2;
  }
}
@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item--large {
    grid-column: span 1;
  }
  .gallery-item--tall {
    grid-row: span 1;
  }
}

.offer-text {
  width: 25%;
}

.offer-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.offer-text p {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--accent-purple);
  font-weight: 600;
}

.offer-image {
  width: 60%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* MEDIA GOES HERE BELOW */
/* TODO: Fix Navigation Bar */

/* Adjust hero section for mobile phones */
@media (max-width: 640px) {
  .hero {
    background-attachment: scroll; /* Disable parallax for better performance */
    height: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .hero p {
    font-size: 1rem;
    top: auto;
    left: auto;
    margin: 0 auto 1rem;
    text-align: center;
    position: relative;
  }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }

  .intro-image {
    width: 90%;
  }

  .intro-text {
    width: 100%;
  }
}

/* Mobile: stack title and show condensed links */
@media (max-width: 640px) {
  .nav-right ul {
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .site-title {
    font-size: 1rem;
  }
}

/* Responsive adjustments for offer section */
@media (max-width: 768px) {
  .offer {
    flex-direction: column;
    text-align: center;
  }

  .offer-text {
    width: 100%;
  }

  .offer-image {
    width: 80%;
  }
}

/* Old Assets */

/* #################### GLOBAL SETTINGS #################### */

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Ensure WebKit browsers animate back to original state when hover ends */
.nav-right a {
  -webkit-transition: all 0.15s;
  transition: all 0.15s;
}

/* #################### FOOTER #################### */

/* Footer Container */
footer {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

/* Upper Footer */
.UpperFooter {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
}

/* Footer Logo */
#FooterLogo {
  width: 25%;
  display: flex;
  justify-content: left;
}

#FooterLogo img {
  margin: 10px;
  width: 40px;
}

/* Footer Social Links */
#FooterSocials {
  width: 25%;
  display: flex;
  justify-content: right;
}

#FooterLinks a {
  text-decoration: none;
  color: #000000;
  margin-left: 15px;
  margin-right: 15px;
  font-weight: 500;
}

#FooterLinks a:hover {
  color: var(--accent);
  transition: 0.25s;
}

.SocialsLink {
  margin-left: 5px;
  margin-right: 5px;
  transition: 0.2s;
  width: 2rem;
}

.SocialsLink:hover {
  transition: 0.2s;
  width: 2.5rem;
}

/* Lower Footer */
.LowerFooter {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100%;
}

.LowerFooter p,
.LowerFooter a {
  color: #555555;
  margin-left: 10px;
  margin-right: 10px;
}

/* #################### ANIMATIONS #################### */

/* Hidden Animation (Slide from Left) */
.hiddenX {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: all 1.25s;
}

/* Hidden Animation (Slide from Right) */
.hiddenX-left {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(100%);
  transition: all 0.75s;
}

/* Show Animation */
.show {
  filter: blur(0);
  transform: translateX(0);
  opacity: 1;
}

/* Old Assets */

.ContactSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ContactSection p {
  font-weight: 600;
  color: var(--accent-purple);
  font-size: 1.25rem;
}

#LargerHeader {
  font-size: 4rem;
  margin: 0;
}

#LargerParagraph {
  font-size: 1.25rem;
}

.Button {
  width: 120px;
  height: 60px;
  margin: 20px;
  background-color: var(--accent-purple);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  transition: 0.2s;
  font-weight: 600;
}

.Button:hover {
  background-color: var(--accent-light-purple);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.Button.reversed {
  width: 120px;
  height: 60px;
  margin: 20px;
  background-color: #fff;
  color: var(--accent-purple);
  padding: 10px 20px;
  border-radius: 6px;
  transition: 0.2s;
  font-weight: 600;
}

.Button.reversed:hover {
  background-color: var(--accent-purple);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
