@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Alata&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap");

:root {
  --color-text: #f8dcbf;
  --color-bg: #fff;
  --color-overlay: #045174;
  --color-overlay-text: #f8dcbf;
  --color-accent: #aacdbe;
  --grid-padding: 2rem;
  --grid-gap: 1rem;
  --transition-timing: cubic-bezier(0.65, 0.05, 0.36, 1);
  --transition-duration: 640ms;
  --font-primary: "Josefin Sans", sans-serif;
  --font-secondary: "Bebas Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  color: var(--color-text);
  font-family: var(--font-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Modern Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-overlay);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

.preloader-logo {
  margin-bottom: 2rem;
  opacity: 0;
  /* Hidden initially for animation */
  transform: translateY(20px);
}

.preloader-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.preloader-text-container {
  min-height: 40px;
  height: auto;
  /* Allow height to grow to prevent cutoff */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: visible;
  /* Allow text to be visible if it overflows slightly */
  padding: 0 1rem;
  /* Add padding for safety */
}

.preloader-text {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  white-space: normal;
  /* Allow wrapping if needed */
  max-width: 90vw;
  /* Ensure it doesn't overflow viewport */
}

@media (max-width: 600px) {
  .preloader-text {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    /* Reduce spacing significantly */
  }
}

.preloader-progress {
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  /* Hidden initially */
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background-color: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  width: 100%;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

.primary-nav {
  pointer-events: all;
  padding: 1rem var(--grid-padding);
  width: 100%;
}

.brand {
  grid-column: 1 / span 6;
}

.brand a {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.brand img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.menu-toggle {
  grid-column: 12 / span 1;
  text-align: right;
}

.menu-toggle p {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

/* Overlay Menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-overlay);
  -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 20;
}

.overlay-header {
  padding: 1rem var(--grid-padding);
  width: 100%;
  position: relative;
  z-index: 30;
}

.overlay-brand {
  grid-column: 1 / span 6;
}

.overlay-brand a {
  font-size: 1.75rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.overlay-brand img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.close-toggle {
  grid-column: 12 / span 1;
  text-align: right;
}

.close-toggle p {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.overlay a,
.overlay p {
  color: var(--color-overlay-text);
}

.text-reveal {
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.brand .text-reveal,
.menu-toggle .text-reveal,
.overlay-brand .text-reveal,
.close-toggle .text-reveal {
  cursor: pointer;
}

/* Navigation Menu */
.nav-menu {
  padding: 10vh var(--grid-padding) 1rem;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.nav-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.nav-item {
  margin-bottom: 0.25rem;
  text-align: left;
}

.nav-link {
  font-size: 3rem;
  line-height: 1.2;
  display: inline-block;
  position: relative;
  padding-right: 2em;
  text-align: left;
  font-weight: 700;
  letter-spacing: normal;
  overflow: hidden;
  height: 1.2em;
}

.nav-link .word {
  --translate-distance: -1em;
  --trans-duration: 600ms;
  --trans-delay-factor: 15ms;
  --trans-timimg-function: cubic-bezier(0.65, 0.05, 0.36, 1);
  --text-color-hover: var(--color-accent);

  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
  height: 1.2em;
  display: inline-flex;
  overflow: hidden;
  text-transform: uppercase;
  vertical-align: middle;
}

.nav-link .word>span {
  --translate: calc(var(--translate-distance) * 2);
  --trans-delay: calc(var(--i) * var(--trans-delay-factor));
  text-shadow: 0 1.2em var(--text-color-hover);
  display: inline-block;
  transition: translate var(--trans-duration) var(--trans-timimg-function) var(--trans-delay);
  padding: 0;
}

/* New SplitText styles */
.shift-effect {
  position: relative;
}

@media (min-width: 901px) {
  .shift-effect:not(.nav-link):before {
    content: "■";
    font-size: 0.25em;
    position: absolute;
    left: -4em;
    top: 50%;
    color: inherit;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.6s var(--transition-timing),
      opacity 0.4s var(--transition-timing), left 0.6s var(--transition-timing);
  }

  .shift-effect:not(.nav-link):hover:before {
    opacity: 1;
    transform: translateY(-50%) rotate(1080deg);
    left: 0.5em;
  }

  .nav-link.shift-effect:before {
    display: none;
  }
}

@media (max-width: 900px) {
  .shift-effect:before {
    display: none;
  }
}

/* Character-based animation styles */
.char {
  display: inline-block;
  transform-origin: center;
  letter-spacing: normal !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Rolling Text Animation Styles */
.word {
  --translate-distance: -1em;
  /* Use em for consistent sizing */
  --trans-duration: 800ms;
  --trans-delay-factor: 20ms;
  --trans-timimg-function: cubic-bezier(0.65, 0.05, 0.36, 1);
  --text-color-hover: var(--color-accent);

  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: 1;
  height: 1em;
  /* strictly constrain height */
  display: inline-flex;
  overflow: hidden;
  text-transform: uppercase;
  vertical-align: middle;
}

.word>span {
  --translate: calc(var(--translate-distance) * 2);
  --trans-delay: calc(var(--i) * var(--trans-delay-factor));
  text-shadow: 0 1em var(--text-color-hover);
  /* Use 1em to match height */
  display: inline-block;
  transition: translate var(--trans-duration) var(--trans-timimg-function) var(--trans-delay);
  padding: 0;
}

a:hover .word>span {
  translate: 0 var(--translate-distance);
}

/* Footer */
.overlay-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--grid-padding);
  z-index: 30;
}

.copyright {
  grid-column: 1 / span 6;
}

.copyright p {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.social-links {
  position: fixed;
  /* Fixed to match main-social-links exactly */
  top: 50%;
  right: 1.5rem;
  bottom: auto;
  /* Reset any bottom positioning */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: nowrap;
  width: auto;
  grid-column: auto;
  z-index: 40;
  /* Ensure it's above overlay content but handled correctly */
  margin: 0;
  padding: 0;
}

.social-links .text-reveal {
  overflow: visible;
}

.social-links a {
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  backdrop-filter: none;
  position: relative;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  font-size: 2rem;
  /* Increased size as per "like i showed u" implication of big text */
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  /* Add text shadows for prominence */
}

.social-links .social-text {
  display: inline;
}

.social-links .social-icon {
  display: none;
  font-size: 1.5rem;
}

.social-links a::before {
  display: none;
}

.social-links a:hover {
  border-color: transparent;
  transform: none;
  /* Let the inner text animate */
  text-shadow: none;
}

.social-links a:hover::before {
  width: 0;
}

/* Featured Image Carousel */
.featured-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  -webkit-clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  z-index: 25;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) contrast(1.1);
  transition: filter 0.3s ease;
}

.carousel-slide.active img {
  filter: brightness(0.9) contrast(1.05);
  animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.carousel-indicators {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
  padding: 10px 20px;
  background: rgba(4, 81, 116, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
}

.carousel-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(248, 220, 191, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  border: 2px solid rgba(248, 220, 191, 0.5);
  position: relative;
}

.carousel-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--color-accent);
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  opacity: 0;
}

.carousel-indicator.active {
  background-color: var(--color-text);
  transform: scale(1.3);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(170, 205, 190, 0.5);
}

.carousel-indicator.active::after {
  width: 6px;
  height: 6px;
  opacity: 1;
}

.carousel-indicator:hover {
  background-color: var(--color-text);
  transform: scale(1.3);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(170, 205, 190, 0.5);
}

/* Background Image */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("./assets/logo/HERO.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Home Carousel */
.home-carousel-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.home-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.home-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.home-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) contrast(1.1);
  transition: filter 0.3s ease;
}

.home-carousel-slide.active img {
  filter: brightness(0.9) contrast(1.05);
  animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.home-carousel-indicators {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
  padding: 10px 20px;
  background: rgba(4, 81, 116, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
}

.home-carousel-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(248, 220, 191, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  border: 2px solid rgba(248, 220, 191, 0.5);
  position: relative;
}

.home-carousel-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--color-accent);
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  opacity: 0;
}

.home-carousel-indicator.active {
  background-color: var(--color-text);
  transform: scale(1.3);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(170, 205, 190, 0.5);
}

.home-carousel-indicator.active::after {
  width: 6px;
  height: 6px;
  opacity: 1;
}

.home-carousel-indicator:hover {
  background-color: var(--color-text);
  transform: scale(1.3);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(170, 205, 190, 0.5);
}

/* Scroll Text */
.scroll-text {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  color: var(--color-text);
  font-size: 1rem;
}

/* Main Page Social Links */
.main-social-links {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Match overlay social links */
  opacity: 0;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: visible;
  padding: 1rem 0.5rem 1rem 0;
  align-items: flex-end;
  /* Match overlay social links */
}

.main-social-links a {
  color: var(--color-text);
  font-size: 2rem;
  /* Match overlay social links size */
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  padding: 0;
  writing-mode: horizontal-tb;
  letter-spacing: 0.02em;
  transform: none;
  background: transparent;
  border: none;
  backdrop-filter: none;
  position: relative;
  overflow: visible;
  border-radius: 0;
  white-space: nowrap;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  /* Add text shadows for prominence */
}

.main-social-links .social-text {
  display: inline;
}

.main-social-links .social-icon {
  display: none;
  font-size: 1.5rem;
}

.main-social-links a::before {
  display: none;
}

.main-social-links a:hover {
  color: var(--color-text);
  /* Hover color handled by .word */
  transform: none;
  border-left-color: transparent;
  text-shadow: none;
}

.main-social-links a:hover::before {
  width: 0;
}

.main-social-links a::after {
  display: none;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.3);
  }
}

/* Quote Section */
.quote-section {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 5;
  color: var(--color-text);
  max-width: 640px;
  overflow: visible;
}

.quote-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  font-style: italic;
  padding-right: 0.5rem;
}

/* Title line animation */
.title-line {
  display: block;
  overflow: visible;
}

.title-line span {
  display: inline-block;
  transform: translateY(100%);
}

/* Hide mobile icons on desktop */
.hamburger-icon,
.close-icon {
  display: none;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  /* Make overlay slightly transparent on mobile to see hero image */
  .overlay {
    background-color: rgba(4, 81, 116, 0.92);
  }

  /* Better touch targets */
  button,
  .hamburger-icon,
  .close-icon,
  .nav-link,
  a {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

  /* Hamburger Menu */
  .menu-toggle {
    grid-column: 11 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 100;
    margin-left: auto;
  }

  .menu-toggle .text-reveal {
    display: none;
    /* Hide text on mobile */
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    padding: 8px;
    background: rgba(248, 220, 191, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(248, 220, 191, 0.2);
    transition: all 0.3s ease;
  }

  .hamburger-icon:hover {
    background: rgba(248, 220, 191, 0.2);
    border-color: rgba(248, 220, 191, 0.4);
  }

  .hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-text);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
  }

  .hamburger-icon span:nth-child(1) {
    transform: translateY(0);
  }

  .hamburger-icon span:nth-child(2) {
    transform: translateY(0);
  }

  .hamburger-icon span:nth-child(3) {
    transform: translateY(0);
  }

  /* Close Button Styling for Mobile */
  .close-toggle {
    grid-column: 11 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 100;
    margin-left: auto;
  }

  .close-toggle .text-reveal {
    display: none;
  }

  .close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
    cursor: pointer;
    background: rgba(248, 220, 191, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(248, 220, 191, 0.3);
    transition: all 0.3s ease;
  }

  .close-icon:hover {
    background: rgba(248, 220, 191, 0.25);
    border-color: rgba(248, 220, 191, 0.5);
    transform: rotate(90deg);
  }

  .close-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 18px;
    background: var(--color-overlay-text);
    border-radius: 1px;
    transition: all 0.3s ease;
    top: 50%;
    left: 50%;
  }

  .close-icon span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .close-icon span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }



  /* Logo - Smaller and Top-Aligned */
  .brand {
    grid-column: 1 / span 8;
  }

  .brand img {
    height: 80px;
  }

  .overlay-brand {
    grid-column: 1 / span 8;
  }

  .overlay-brand img {
    height: 80px;
  }

  .primary-nav,
  .overlay-header {
    padding: 0.5rem 1rem;
  }

  /* Hide featured image carousel on mobile - causes half screen issue */
  .featured-image {
    display: none !important;
  }


  /* Navigation Menu */
  .nav-menu {
    padding: 12vh 2rem 2rem;
    min-height: 50vh;
    max-height: none;
    overflow-y: visible;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    font-size: 2rem;
    text-align: center;
    display: inline-block;
    padding-right: 0;
    overflow: hidden;
    height: 1.2em;
  }

  .nav-link .word {
    height: 1.2em;
  }

  .nav-link .word>span {
    text-shadow: 0 1.2em var(--text-color-hover);
  }

  .nav-menu-inner {
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    width: 100%;
    justify-content: center;
    /* Center the menu items */
  }

  .nav-item {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    /* Center each menu item */
  }

  .nav-item .text-reveal {
    display: flex;
    justify-content: center;
  }


  /* Hide all social links on mobile - only show in contact section */
  .main-social-links,
  .social-links {
    display: none !important;
  }


  .copyright {
    grid-column: 1 / span 12;
    text-align: center;
    font-size: 0.85rem;
  }

  .overlay-footer {
    padding: 1rem;
    position: fixed;
    bottom: 0;
  }

  /* Hide overlay footer completely on mobile */
  .overlay-footer {
    display: none !important;
  }

  /* Loading Screen */
  .preloader-logo {
    margin-top: -3rem;
    margin-bottom: 0.5rem;
  }

  .preloader-logo img {
    height: 80px;
  }

  .terminal-preloader {
    padding: 1rem 0 1rem 0;
    margin-top: 0;
  }

  .border-top,
  .border-bottom {
    font-size: 0.9rem;
    height: 40px;
    letter-spacing: 0.03em;
    padding: 0 10px;
  }

  .background-image {
    background-size: cover;
    background-position: center;
  }

  .scroll-text {
    font-size: 0.8rem;
    bottom: 41vh;
  }

  /* Quote Section Mobile Adjustments - No Glassy Box */
  .quote-section {
    bottom: 120px;
    left: 1.5rem;
    right: 1.5rem;
    max-width: calc(100% - 3rem);
    text-align: center;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .quote-section h2 {
    font-size: 1.5rem;
    padding-right: 0;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }

  /* Home Carousel Mobile Optimizations */
  .home-carousel-container {
    height: 100vh;
    width: 100vw;
    position: fixed;
  }

  .home-carousel-slide img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    filter: brightness(0.7) contrast(1.2);
  }

  .home-carousel-slide.active img {
    filter: brightness(0.75) contrast(1.15);
  }

  /* Hide home carousel indicators on mobile */
  .home-carousel-indicators {
    display: none !important;
  }

  /* Hide overlay carousel indicators on mobile */
  .carousel-indicators {
    display: none !important;
  }
}

/* Tablet-specific styles (768px to 900px) */
@media (max-width: 900px) and (min-width: 769px) {
  .brand img {
    height: 100px;
  }

  .overlay-brand img {
    height: 100px;
  }

  .nav-link {
    font-size: 2.5rem;
    overflow: hidden;
    height: 1.2em;
  }

  .nav-link .word {
    height: 1.2em;
  }

  .nav-link .word>span {
    text-shadow: 0 1.2em var(--text-color-hover);
  }
}

/* Initially hide the content while preloader is active */
.content-container {
  opacity: 0;
  visibility: hidden;
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .preloader-logo {
    margin-top: -2.5rem;
    margin-bottom: 0.5rem;
  }

  .preloader-logo img {
    height: 60px;
  }

  .terminal-preloader {
    padding: 1rem 0 1rem 0;
    margin-top: 0;
  }

  .brand img {
    height: 60px;
  }

  .overlay-brand img {
    height: 60px;
  }

  .primary-nav,
  .overlay-header {
    padding: 0.5rem 0.75rem;
  }

  .nav-link {
    font-size: 1.8rem;
    overflow: hidden;
    height: 1.2em;
  }

  .nav-link .word {
    height: 1.2em;
  }

  .nav-link .word>span {
    text-shadow: 0 1.2em var(--text-color-hover);
  }

  .quote-section {
    bottom: 100px;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
  }

  .quote-section h2 {
    font-size: 1.2rem;
  }

  .menu-toggle,
  .close-toggle {
    width: 45px;
    height: 45px;
  }

  .hamburger-icon {
    width: 24px;
    height: 16px;
    padding: 6px;
  }

  .close-icon {
    width: 30px;
    height: 30px;
  }
}