/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
  /* Vertical linear gradient: top (#091221) -> middle (#0B0F29) -> bottom (#21345C) */
  background-color: #091221; /* fallback */
  background-image: linear-gradient(180deg, #091221 0%, #0B0F29 50%, #21345C 100%);
  color: #e0e0e0;
  font-family: 'Exo 2', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 1 auto;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0B0F29;
  background-image: none;
  padding: 1em 2em;
  border-bottom: none;
  position: relative;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 2; 
}

.navbar-logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.social-links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.navbar-logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 3.5em;
  justify-content: center;
  flex: 1; 
}


@media (min-width: 1237px) {
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  
    z-index: 1001;
  }

  .navbar-logo {
    position: static;
    justify-content: flex-start;
    z-index: 1000;
    display: flex;
    align-items: center;
  }
}



.social-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1.5em;
  align-items: center;
}


.social-links a img {
  height: 22px;
  width: 22px;
  display: block;
  opacity: 0.95;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.social-links a:hover img {
  transform: translateY(-2px);

  filter: invert(80%) sepia(100%) saturate(500%) hue-rotate(300deg);
  box-shadow: 0 6px 20px rgba(252, 3, 105, 0.18), 0 0 10px rgba(252, 3, 105, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .social-links a img {
    transition: none !important;
  }
  .social-links a:hover img {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
}

.nav-links a {
  color: #ff007f; 
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 1.8px;
  padding: 0.15rem 0.25rem;
  font-family: 'Exo 2', sans-serif;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #ffffff; 
  outline: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.bar {
  display: block;
  width: 30px;
  height: 6px;
  margin: 5px auto;
  -webkit-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  background-color: #fc0369;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(252, 3, 105, 0.5);
}

@media only screen and (max-width: 1236px) {
  .navbar-logo img {
    height: 50px;
  }

  .navbar-logo {
    justify-content: center;
  }

  .navbar {
    min-height: 64px;
    padding: 0 1.5rem; 
  }
  
  .hamburger {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.02);
    padding: 4px;
    border-radius: 10px;
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .hamburger .bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: 28px;
    height: 5px;
    -webkit-transition: top 0.22s ease-in-out, transform 0.22s ease-in-out, opacity 0.18s ease;
    transition: top 0.22s ease-in-out, transform 0.22s ease-in-out, opacity 0.18s ease;
  }

  .hamburger .bar:nth-child(1) {
    top: calc(50% - 15px);
  }

  .hamburger .bar:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hamburger .bar:nth-child(3) {
    top: calc(50% + 10px);
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    padding-top: 64px;
    flex-direction: column;
    background-color: #0B0F29;
    background-image: none;
    width: 100%;
    height: 100vh; 
    overflow-y: auto; 
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 9999; 
  }




  body.overlay-open .navbar-logo {
    display: none;
  }

  body.overlay-open .navbar {
    background-color: #0B0F29;
    background-image: none;
  }

  body.overlay-open {
    overflow: hidden;
  }

  .navbar-logo {
    position: absolute;
    left: 50%;
  
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002; /* above .nav-menu (1000) and hamburger (1001) */
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
  }


  .navbar-logo img {
    height: 46px;
    width: auto;
    display: block;
  }

  /* ensure hamburger is visible on mobile */
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-menu.active {
    left: 0;
    z-index: 1000;
  }

  .nav-links {
    flex-direction: column;
    padding: 2rem 0;
  }

  .social-links {
    justify-content: center;
    padding-bottom: 2rem;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


/* ========================================================================== */
/* Footer styles */
/* ========================================================================== */
.site-footer {
  background-color: #0B0F29;
  background-image: none;
  color: #dfe6ea;
  padding: 40px 2rem 28px;
  margin-top: auto; 
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand {
  flex: 0 1 auto;
}
.footer-brand img {
  height: 64px;
  width: auto;
}
.footer-tag {
  color: #cfd8dc;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0.8rem;
  max-width: 520px;
}
.footer-nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #ff007f;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1.8px;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: #ffffff;
}
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 22px 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom .copyright {
  color: #c9d1d8;
  font-size: 0.95rem;
}
.footer-bottom-social ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.footer-bottom-social img {
  height: 22px;
  width: 22px;
  display: block;
  opacity: 0.95;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.footer-bottom-social a:hover img {
  transform: translateY(-2px);
  filter: invert(80%) sepia(100%) saturate(500%) hue-rotate(300deg);
}

/* Tablet: stack brand and nav, keep bottom row */
@media (max-width: 1236px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Fixes large vertical gap */
    text-align: center;
  }
}

/* Mobile: vertical stack, center everything */
@media (max-width: 767px) {
  .site-footer {
    padding: 28px 1rem 20px;
  }
  .footer-top {
    align-items: center;
  }
  .footer-brand img {
    height: 56px;
  }
  .footer-tag {
    font-size: 0.9rem;
    max-width: 100%;
  }
  .footer-nav ul {
    gap: 1rem;
    flex-direction: column;
  }
  .footer-nav a {
    display: inline-block;
    padding: 6px 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}






