*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body{
  background: #020617;
background-repeat: no-repeat;
  background-attachment: fixed;   /* optional, for a nice “stuck” background effect */
  background-size: cover;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}

.section-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 3% auto;
  text-align: center;
}

.section-header{
  width: 80%;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  margin: 11% auto 0% auto;
}

.section-header h3{
  font-size: 4rem;
  color:#6D98E3;
  font-weight: 600;

}

.section-header p{
  font-size: 1.5rem;
  font-weight: 500;
  color: #020617;
  background: #fff;
  padding: 2rem 3rem;
  border: 1px solid #fff;
  border-radius: 1.5rem;
}
#navbar {
  display: grid;
  min-height: 100px;
  grid-auto-flow: column;
  background-color: #fcfcfc;
  grid-gap: 1.5em;
  padding: 0 40px;
  -webkit-box-shadow: -1px 4px 5px 0px rgba(209, 205, 209, 1);
  -moz-box-shadow: -1px 4px 5px 0px rgba(209, 205, 209, 1);
  box-shadow: -1px 4px 5px 0px rgba(209, 205, 209, 1);
}

#logo {
  display: grid;
  justify-content: start;
  align-content: center;
  font-family: "Open Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.logo span {
  color: #0474bc;
}

#links {
  display: grid;
  justify-content: left;
  align-content: center;
  grid-auto-flow: column;
  grid-gap: 2.5em;
  font-family: "Open Sans", sans-serif;
}

#links a {
  position: relative;
  text-decoration: none;
  display: inline-block;
  color: #020617;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Color change */
#links a:hover {
  color: #6D98E3;
  
}

/* Underline bar (collapsed in center by default) */
#links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: #6D98E3;
  transition: width 0.35s ease;
  box-shadow: 0 2px 4px rgba(4, 116, 188, 0.4);
  border-radius: 2px;
}

/* Expand underline outward from center */
#links a:hover::after {
  width: 100%;
}

/* =======================
******* Mobile Menu ******
========================*/
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #020617;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #6D98E3;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

a {
  font-family: "Open Sans", sans-serif;
}
.contact-header{
  background: #fff;
  padding: 20px 0px;
  text-align: center;
}
.contact-header h3{
  font-size: 4rem;
  color:#6D98E3;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
}

#form-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 4rem auto;
  padding: 3rem;
  background: #020617;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 2px solid #ffffff;
}

#form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#form-wrapper input,
#form-wrapper textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #020617;
  background: #f7f7f7;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.25s ease;
}

#form-wrapper input::placeholder,
#form-wrapper textarea::placeholder {
  color: #64748b;
  letter-spacing: 0.03em;
}

#form-wrapper input:focus,
#form-wrapper textarea:focus {
  background: #ffffff;
  border-color: #6D98E3;
  box-shadow: 0 0 0 3px rgba(109,152,227,0.3);
  outline: none;
}

#form-wrapper textarea {
  min-height: 180px;
  resize: vertical;
}

#form-wrapper button {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, #6D98E3, #020617);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#form-wrapper button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(32, 6, 23, 0.3);
}

#form-wrapper button:active {
  transform: translateY(0px);
  box-shadow: none;
}

@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');

h1 {
  font-size: 2.2em;
}

.flip-container {
  width: 100%;
  max-width: 1200px;
  margin: 5% auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 per row on desktop */
  gap: 2rem;
  align-items: start;
}

/* Flip wrapper */
.flip {
  position: relative;
  display: inline-block;
  width: 100%;
  perspective: 1000px;
  max-width: none;  /* grid controls width now */
  margin: 0;        /* grid gap handles spacing */
}

/* Shared face styles */
.flip .front,
.flip .back {
  width: 100%;
  height: 220px;
  padding: 1em 2em;
  background: #020617;
  border-radius: 10px;
  border: 1px solid #fff;
  color: rgb(249, 115, 22);
  background-size: cover !important;
  background-position: center !important;

  transition: transform 0.5s cubic-bezier(.175, .885, .32, 1.275),
              opacity 0.5s cubic-bezier(.175, .885, .32, 1.275);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centers text vertically */
  text-align: center;
}

/* front face */
.flip .front {
  transform: rotateY(0deg);
}

/* back face */
.flip .back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: rotateY(-180deg);
}

/* hover flip */
.flip:hover .front {
  transform: rotateY(180deg);
}

.flip:hover .back {
  opacity: 1;
  transform: rotateY(0deg);
}

/* vertical flip variation */
.flip.flip-vertical .back {
  transform: rotateX(-180deg);
}

.flip.flip-vertical:hover .front {
  transform: rotateX(180deg);
}

.flip.flip-vertical:hover .back {
  transform: rotateX(0deg);
}

/* text inside faces */
.flip .front p,
.flip .back p {
  font-size: 0.9125rem;
  line-height: 110%;
  color: #fff;
}

/* back link */
.flip .back a {
  text-decoration: none;
  font-size: 1rem;
  color: #6D98E3;
  padding: 0.5rem 1rem;
  border: 1px solid #6D98E3;
  border-radius: 1.5rem;
  margin-top: 1%;
  cursor: pointer;
  transition: 0.5s ease;
}

.flip .back a:hover {
  background: #6D98E3;
  color: #fff;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&display=swap');
.hero-title span {
  contain: paint;
  padding: 1rem 0;
}
.hero-title {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 0.5ch;
  color: #fff;
  font-size: 4rem;
  font-weight: 600;
  justify-content: center;
}
.intro-text {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 5%;
  font-weight: 400;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.flip-container .hero-container{
  grid-column: 1 / -1;  /* span all columns */
  margin-bottom: 2rem;
}


.hero-title span:nth-of-type(2) {
  view-transition-name: swap;
  color: #6D98E3;
}

/* span:first-of-type {
  view-transition-name: first;
} */
.hero-title span:last-of-type {
  view-transition-name: last
}

::view-transition-new(swap),
::view-transition-old(swap) {
  height: 100%;
  object-fit: none;
  object-position: top left;
}

::view-transition-old(swap) {
  animation-name: slide-out;
  animation-duration: 0.5s;
    animation-timing-function: linear(
    0, 0.6832 7.89%, 0.9171 11.07%, 1.0251,
    1.1058 14.9%, 1.1619 16.86%,
    1.1945 18.91%, 1.2024 20.02%,
    1.2043 21.18%, 1.1907, 1.1598 26.27%,
    1.0604 32.59%, 1.0172 35.84%,
    0.9839 39.49%, 0.967 43.26%,
    0.9639 45.77%, 0.9661 48.59%,
    0.9963 60.54%, 1.0054 67.42%, 1
  );
}
::view-transition-new(swap) {
  animation-name: slide-in;
  animation-duration: 0.5s;
  animation-timing-function: linear(
    0, 0.6832 7.89%, 0.9171 11.07%, 1.0251,
    1.1058 14.9%, 1.1619 16.86%,
    1.1945 18.91%, 1.2024 20.02%,
    1.2043 21.18%, 1.1907, 1.1598 26.27%,
    1.0604 32.59%, 1.0172 35.84%,
    0.9839 39.49%, 0.967 43.26%,
    0.9639 45.77%, 0.9661 48.59%,
    0.9963 60.54%, 1.0054 67.42%, 1
  );
}

::view-transition-group(last) {
  animation-duration: 0.5s;
    animation-timing-function: linear(
    0, 0.6832 7.89%, 0.9171 11.07%, 1.0251,
    1.1058 14.9%, 1.1619 16.86%,
    1.1945 18.91%, 1.2024 20.02%,
    1.2043 21.18%, 1.1907, 1.1598 26.27%,
    1.0604 32.59%, 1.0172 35.84%,
    0.9839 39.49%, 0.967 43.26%,
    0.9639 45.77%, 0.9661 48.59%,
    0.9963 60.54%, 1.0054 67.42%, 1
  );
}

@keyframes slide-out {
  100% {
    opacity: 0;
    translate: 0 100%;
  }
}

@keyframes slide-in {
  0% {
    opacity: 0;
    translate: 0 -100%;
  }
}

/* Mobile to Tablet  */
@media (min-width: 320px) and (max-width: 767px) {
  #links,
  .mobile-menu {
    display: none;
  }
  #logo {
    display: inline-grid;
    grid-template-columns: auto auto;
    grid-gap: 70px;
  }
}

/* Tablet to Desktop */
@media (min-width: 768px) {
  .mobile-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-header h3{
  font-size: 2.5rem;

}
#navbar {
    padding: 0 16px;   /* was 40px */
    grid-gap: 1rem;
  }
.section-header p{
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
}
.flip-container{
    grid-template-columns: 1fr; /* 1 per row on mobile */
    max-width: 100%;
    width: 100%;
    padding: 0 12px;  /* gives breathing room without overflow */
    box-sizing: border-box;
  }
}
/* Real overflow fixes (no clipping) */
h1, h2, p, a {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-container > *,
.hero-container > *,
.flip-container > * {
  min-width: 0;
}

.hero-container,
.hero-title {
  width: 100%;
  max-width: 100%;
}

.sidenav {
  max-width: 100vw;
}