@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

/*---------------------------------------*\
  LOADER OVERLAY
\*----------------------------------------*/

#LOADER {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(13,202,240,.08), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.92));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  color: #e8f6ff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  opacity: 1;
  transition: opacity .35s ease, visibility .35s ease;
  visibility: visible;
}

#LOADER.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.ldr-wrap {
  width: min(520px, 86vw);
  padding: 22px 20px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.ldr-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ldr-spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: #0dcaf0;
  animation: ldr-rot 1s linear infinite;
}

.ldr-title {
  letter-spacing: .06em;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #dff7ff;
  text-shadow: 0 0 10px rgba(13,202,240,.25);
}

.ldr-bar {
  height: 10px;
  width: 100%;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.ldr-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0dcaf0, #a855f7);
  box-shadow: 0 0 20px rgba(13,202,240,.55);
  border-radius: 999px;
  transition: width .25s ease;
}

.ldr-sub {
  margin-top: 10px;
  font-size: 12px;
  color: #b7e8ff;
  opacity: .8;
}

@keyframes ldr-rot {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ldr-spin { animation: none; border-top-color: rgba(255,255,255,.55); }
  #LOADER { transition: none; }
  .ldr-bar > i { transition: none; }
}

/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/

.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 3px solid var(--site-theme-secondary);
}

.hero-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-icon {
  width: auto;
  height: auto;
  display: block;
}

.hero-text {
  display: none;
  font-size: 2rem;
  color: white;
  text-align: center;
}

.hero-icon:not([src]) + .hero-text {
  display: block;
}

.hero h1 {
  position: relative;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  font-family: Aquire;
  margin: 0;
}

.hero p {
  position: relative;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  margin: 10px;
  font-family: 'Orbitron', sans-serif;
}

/*------------------------------------*\
  #HERO BUTTONS
\*------------------------------------*/

.heroButton {
  position: relative;
  z-index: 2;
  border: 2px solid var(--site-theme-secondary);
  background-image: linear-gradient(var(--site-theme-quaternary-darker), var(--site-theme-primary));
  color: white;
  height: 50px;
  width: 200px;
  margin:20px auto;
  border-radius: 8px;
  font-family: Aquire;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.heroButton:hover {
  background-image: linear-gradient(var(--site-theme-secondary), var(--site-theme-quaternary-darker));
  color: black;
}

/*------------------------------------*\
  #ABOUT SECTION
\*------------------------------------*/

.about {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 3px solid var(--site-theme-secondary);
  background-image: url('../img/background_lines.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/*.about-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  overflow: none;
}*/

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.about-content {
  position: relative;
  z-index: 2;
  color: white;
  margin: 10%;
}

.about h2, .about p {
  position: relative;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  margin: 30px 30%;
}

.about ul {
  list-style-type: none;
}
/*------------------------------------*\
  #SERVICES SECTION
\*------------------------------------*/

.services {
  padding: 50px 0;
  text-align: center;
  background: var(--site-theme-primary);
  border-bottom: 3px solid var(--site-theme-secondary);
}

.services ul {
  list-style: none;
  padding: 0; 
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.services li {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: white;
  padding: 15px 20px;
  background: var(--site-theme-quaternary-darker);
  border-radius: 10px;
  transition: 0.3s;
}

.services li i {
  font-size: 24px;
  color: var(--site-theme-secondary);
  margin-right: 10px;
}

.services li:hover {
  background: var(--site-theme-secondary);
  color: black;
}

.services li:hover i {
  color: black;
  transition: 0.3s;
}

.services a {
  text-decoration: none;
}
/*------------------------------------*\
  #PROJECTS SECTION
\*------------------------------------*/

.projects {
  padding: 50px 0;
  text-align: center;
  background: var(--site-theme-primary);
  border-bottom: 3px solid var(--site-theme-secondary);
  color: white;
}

.projects h4 {
  font-family: AquireLight;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  max-width: 100%;
}

.project-card {
  width: 225px;
  height: 225px;
  background: var(--site-theme-quaternary-darker);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.project-card:hover {
  background: var(--site-theme-secondary);
  color: black;
  transition: 0.3s;
  height: auto;
  transform: scale(1.10);
}

.project-card:hover p {
    display: block;
}

.project-card img,
.project-card video  {
  width: 100%;
  height: 200px;
  border-radius: 5px;
  object-fit: cover;
  object-position: center;
  max-width: 250px; /* Matches image size */
  max-height: 150px; /* Ensures it doesn't overflow */
}

.project-card h4 {
	margin: 20px 0 0 0;
	padding: 0;
}

.project-card p {
  display: none;
  margin: 0 auto;
  padding: 5px;
  overflow: hidden;
  text-align: left;
  width: fit-content;
  font-family: 'Orbitron', sans-serif;
  font-size: .75em;
  line-height: 1.4;
}

.project-card .letter {
  display: inline-block;
  width: 1.5em;       /* fixed spacing column */
  font-weight: 800;   /* heavier to pop */
  font-size: 1.2rem;  /* bigger than the words */
  color: var(--site-theme-secondary); /* your accent color */
}

.project-card p::after {
  content: "▌";
  display: inline-block; /* change to inline-block to activate heroCaret blinker */
  margin-left: 2px;
  animation: heroCaret 0.3s steps(1) infinite;
}

@keyframes heroCaret { 50% { opacity: 0; } }

/*------------------------------------*\
  #TESTIMONIALS SECTION
\*------------------------------------*/

.testimonials {
  padding: 50px 0;
  text-align: center;
  background: var(--site-theme-primary);
  border-bottom: 3px solid var(--site-theme-secondary);
}

.quoteSection {
	display: flex;
	flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonials a:visited, .testimonials a:link, .testimonials a:active
{
    text-decoration: none;
	color: white;
}

.testimonials a:hover {
    text-decoration: none;
	color: black;
}

blockquote {
  background: var(--site-theme-quaternary-darker);
  color: white;
  font-style: italic;
  padding: 20px;
  margin: 0;
  width: 350px;
  border-radius: 5px;
  text-align: left;
  text-decoration: none;
}

blockquote:hover {
  background: var(--site-theme-secondary-darker);
  color: black;
  transition: 0.3s;
  
  p {
	color: white;  
  }
  cite {
	  color: black;
  }
}

cite {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: var(--site-theme-secondary);
}

/*------------------------------------*\
  #CONTACT SECTION
\*------------------------------------*/

.contact {
  padding: 50px 0;
  text-align: center;
  background: var(--site-theme-primary);
  border-bottom: 3px solid var(--site-theme-secondary);
}

.contact p {
 color: white;
 
}/*------------------------------------*\
  #GENERAL
\*------------------------------------*/

.hidden {
    display: none;
}

.sub {
	font-size: 10px;
	margin-top: 50px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  position: relative;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  font-family: Aquire;
}

a {
  color: var(--site-theme-secondary);
  text-decoration: none;
}

a:hover {
  color: var(--site-theme-secondary-darker);
  text-decoration: underline;
}


/*------------------------------------*\
  #FONTS
\*------------------------------------*/

@font-face {
  font-family: 'Aquire';
  src: url('./fonts/Aquire.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AquireBold';
  src: url('./fonts/AquireBold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'AquireLight';
  src: url('./fonts/AquireLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/*------------------------------------*\
  #LAYOUT
\*------------------------------------*/

.hero,
.about,
.projects,
.testimonials,
.contact,
footer {
  width: 100%;
  max-width: 100%;
}

/*------------------------------------*\
  #GLOBAL SCROLLBAR
\*------------------------------------*/

/* Works in Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--site-theme-primary); /* background track */
}

::-webkit-scrollbar-thumb {
  background-color: var(--site-theme-secondary); /* draggable thumb */
  border-radius: 6px;
  border: 2px solid var(--site-theme-primary); /* gives some spacing */
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--site-theme-secondary-darker);
}

/* Works in Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--site-theme-secondary) var(--site-theme-primary);
}

/*------------------------------------*\
  #HEADER
\*------------------------------------*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: var(--site-theme-primary);
  border-bottom: 3px solid var(--site-theme-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.navbar {
  width: 90%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.navbar--list {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar li {
  margin-right: 15px;
}

.navbar--logo {
  display: flex;
  align-items: center;
}

.navbar--icon {
  width: auto;
  height: clamp(2rem, 4vh, 4rem);
  display: block;
}

.navbar--text {
  font-size: 16px;
  font-family: Aquire;
  color: white;
  margin-left: 10px;
  display: none;
}

.navbar--icon:not([src]) + .navbar--text {
  display: block;
}

.navbar a {
  color: var(--site-theme-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  font-family: Aquire;
  padding: 5px 10px;
  transition: 0.3s;
}

.navbar a:hover {
  color: white;
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/

footer *::marker {
  content: none;
}

footer {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background: var(--site-theme-primary);
}

footer p {
  color: white;
  margin: 0;
}

footer a {
  color: var(--site-theme-secondary);
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

/*------------------------------------*\
  #SPACER
\*------------------------------------*/

.spacer {
  height: 100px;
  width: 100%;
  background-color: var(--site-theme-primary);
  border-bottom: 3px solid var(--site-theme-secondary);
}

/*------------------------------------*\
  #MOBILE NAV (hamburger + drawer)
\*------------------------------------*/

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  box-sizing: content-box;
  vertical-align: middle;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--site-theme-secondary);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--site-theme-secondary);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .18s ease, opacity .18s ease;
}

.navbar .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar .nav-toggle.open span:nth-child(2) { opacity: 0; }
.navbar .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: 56px;
  right: 8px;
  background: var(--site-theme-primary);
  border: 2px solid var(--site-theme-secondary);
  border-radius: 12px;
  padding: 8px;
  display: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  z-index: 2000;
}
.nav-drawer.open { display: block; }

.nav-drawer .navbar--list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.nav-drawer .navbar--list li { margin: 0; }
.nav-drawer .navbar--list a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.nav-drawer .navbar--list li:last-child a { border-bottom: 0; }

.nav-drawer .navbar--list a {
  font-family: Aquire, sans-serif;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/*------------------------------------*\
  #RESPONSIVE DESIGN
\*------------------------------------*/

@media screen and (max-width: 788px) {
  header {
    height: auto;
  }

  .navbar p {
    font-size: 14px;
  }

  .navbar a {
    font-size: 12px;
    padding: 3px 6px;
  }

  .navbar > .navbar--list > li:not(:first-child) { display: none; }

  .nav-toggle { display: inline-block; margin-left: auto; }

  .hero h1 { font-size: 1.8rem; }
  .hero p  { font-size: 1rem; }

  .about h2, .about p { margin: 30px 0; }

  .gallery { flex-direction: column; align-items: center; }

  .hero-icon { width: 100%; height:  clamp(.2rem, 10vw, 4rem); display: block; }
}
