/* ======================
   Fonts
====================== */

@font-face {
  font-family: 'AntoniadisBasic';
  src: url('../fonts/AntoniadisBasic-Regular.woff2') format('woff2'),
       url('../fonts/AntoniadisBasic-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'AntoniadisBasic';
  src: url('../fonts/AntoniadisBasic-Bold.woff2') format('woff2'),
       url('../fonts/AntoniadisBasic-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'AntoniadisBasic';
  src: url('../fonts/AntoniadisBasic-Italic.woff2') format('woff2'),
       url('../fonts/AntoniadisBasic-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'AvenirNext';
  src: url('../fonts/Avenir-Next-Regular.woff2') format('woff2'),
       url('../fonts/Avenir-Next-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirNext';
  src: url('../fonts/Avenir-Next-Thin Italic.woff2') format('woff2'),
       url('../fonts/Avenir-Next-Thin Italic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: 'AvenirNext';
  src: url('../fonts/Avenir-Next-Medium Italic.woff2') format('woff2'),
       url('../fonts/Avenir-Next-Medium Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'AvenirNext';
  src: url('../fonts/Avenir-Next-Bold.woff2') format('woff2'),
       url('../fonts/Avenir-Next-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Rag';
  src: url('../fonts/Rag-Regular.woff2') format('woff2'),
       url('../fonts/Rag-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Rag';
  src: url('../fonts/Rag-Italic.woff2') format('woff2'),
       url('../fonts/Rag-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Rag';
  src: url('../fonts/Rag-BoldItalic.woff2') format('woff2'),
       url('../fonts/Rag-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Rag';
  src: url('../fonts/Rag-Bold.woff2') format('woff2'),
       url('../fonts/Rag-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal; 
}

@font-face {
  font-family: 'Rag';
  src: url('../fonts/Rag-Black.woff2') format('woff2'),
       url('../fonts/Rag-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal; 
}
/* manrope-200 - greek_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/manrope-v19-greek_latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-300 - greek_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/manrope-v19-greek_latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-regular - greek_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/manrope-v19-greek_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-500 - greek_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/manrope-v19-greek_latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-600 - greek_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/manrope-v19-greek_latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-700 - greek_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/manrope-v19-greek_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-800 - greek_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/manrope-v19-greek_latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ======================
   Base Styles
====================== */

body {
  font-family:  'AvenirNext', 'AntoniadisBasic', 'Rag', 'Manrope', sans-serif; 
  text-align: justify;
  margin: 20px;
  padding: 0;
  font-size: var(--base-font-size);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f4f3f1;
  color: rgb(205, 4, 4);
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  display: none;
}

/* Mobile-specific adjustments for consistent alignment */
@media (max-width: 600px) {
  body {
    margin: 20px;
  }
  
  .font-size-controls button {
    background: #04cdcd !important;
  }
  
  .font-size-controls {
    transform: scale(0.85);
    left: 20px !important; /* Align with body margin */
  }

  .hamburger {
    transform: scale(0.85);
    color: #04cdcd !important;
  }
  
  .home-button {
    transform: scale(0.95);
  }
}

/* ======================
   Typography & Content
====================== */

header {
  text-align: justify;
  margin-bottom: 50px;
}

h1 {
  margin-bottom: 0.1em;
}

section {
  margin-bottom: 40px;
}

img {
  border-radius: 8px;
 
}

a {
  text-decoration: blink;
}
/* Normal & visited links same color, no underline */
a:link,
a:visited {
  color:rgb(0, 123, 255);
  text-decoration: none;
  transition: color 0.3s ease; /* smooth color change */
}

/* Hover color change */
a:hover,
a:focus {
  text-decoration: underline;
  cursor: pointer;
}

/* ======================
   Navigation
====================== */

nav {
  position: fixed;
  top: 10px;
  right: 85px;
  z-index: 1000;
  font-family: 'Manrope', sans-serif;
  display: none;
  gap: 0;
}

nav.active {
  display: block;
}

nav a {
  margin: 0 0 -5px 0;
  text-decoration: none;
  color: rgb(0, 123, 255);
  filter: brightness(150%);
  font-weight: 600;
  font-size: 16px !important;
  display: list-item;
  list-style: lower-greek;
  letter-spacing: 0;
  background: transparent;
  filter:none;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: transparent;
  font-weight: 700;
  background: linear-gradient(
    120deg,
    #000 10%,
    #cd0404 30%,
    rgb(100, 0, 0) 50%,
    rgb(205, 4, 4) 70%,
    #000 90%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: bloodFlow 5s alternate infinite, bloodTechPulse 1.5s infinite alternate;
  transform: scale(1.1);
  text-shadow: none;
  text-decoration: none;
}

/* Accessibility & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  nav a:hover {
    animation: none;
    transform: none;
  }
}

nav a:focus,
.font-size-controls button:focus {
  outline: none;
  outline-offset: 2px;
}

/* This media query disables nav display on wider screens - is this intentional? */
@media (min-width: 768px) {
  nav {
    display: none;
  }
}

.hamburger {
  display: block;
}

/* Mobile navigation alignment fixes */
@media (max-width: 480px) {
  nav {
    position: fixed;
    top: 40px;
    right: 10px; /* Align with hamburger position */
    z-index: 1000;
    font-family: 'Manrope', sans-serif;
    display: none;
    gap: 0;
  }
  
  nav a:hover, 
  nav a.active {
    color: transparent;
    font-weight: 700;
    background: linear-gradient(
      120deg,
      #ffffff 10%,
      #04cdcd 30%,
      rgb(111, 157, 157) 50%,
      rgb(4, 205,205) 90%,
      #ffffff 70%
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: bloodFlow 5s alternate infinite, bloodTechPulse 1.5s infinite alternate;
    transform: scale(1.1);
    text-shadow: none;
    text-decoration: none;
  }
}

/* ======================
   Animations
====================== */

@keyframes bloodTechPulse {
  0% {
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.6), 0 0 12px rgba(255, 0, 0, 0.4);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 30, 30, 0.9),
      0 0 20px rgba(255, 10, 10, 0.6),
      0 0 30px rgba(255, 0, 0, 0.3);
  }
}

@keyframes bloodFlow {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes marquee {
  0% {
    transform: translateX(120vw);
  }
  96% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes breathe {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* ======================
   Announcement Bar / Marquee
====================== */

.marquee-container {
  width: 100%;
  overflow: visible;
  white-space: nowrap;
  position: relative;
  padding: 10px 0;
}

.marquee-content {
  display: inline-block;
  padding-right: 20%; /* Start off-screen */
  animation: marquee 20s linear infinite;
  color: rgba(240, 4, 4, 0.7); /* Fixed rgba syntax */
  will-change: transform;
  overflow-x: hidden;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* ======================
   Footer
====================== */

footer,
#footer-placeholder {
  width: 100%;
  font-family: 'AntoniadisBasic';
  position: static;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  font-size: 16px;
  color: rgb(205, 4, 4);
  background: transparent;
  margin: 0 0px; /* Counteract body margin for full-width footer */
}


footer .social-links {
  margin-top: 9px;
}

footer .social-links a {
  margin: 0 7px;
  display: inline-block;
  align-items: baseline;
  justify-content: center;
  transition: transform 0.1s ease;
}

footer .social-links a:hover {
  transform: scale(1.2);
}

footer .social-links img {
  height: 16px;
  width: 16px;
  transition: filter 0.3s ease;
}

footer .social-links a:hover img {
  filter: drop-shadow(0 0 1px #cd0404) drop-shadow(0 0 6px #cd0404);
  background: linear-gradient(
    120deg,
    #000 10%,
    rgb(205, 4, 4) 30%,
    rgb(100, 0, 0) 50%,
    rgb(205, 4, 4) 70%,
    #000 90%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: bloodFlow 5s alternate infinite, bloodTechPulse 1.5s infinite alternate;
  text-shadow: none;
}

/* ======================
   Home Button
====================== */

#home-button-container {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%); /* Perfect centering */
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-button {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-button img {
  margin-top: 20px;
  width: 150%;
  height: 150%;
  filter: drop-shadow(0 0 2px #cd0404);
  transition: filter 0.3s ease;
}

.home-button:hover img,
.home-button a.active {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px #cd0404) drop-shadow(0 0 10px #cd0404);
  background: linear-gradient(
    120deg,
    #000 10%,
    rgb(205, 4, 4) 30%,
    rgb(100, 0, 0) 50%,
    rgb(205, 4, 4) 70%,
    #000 90%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: bloodFlow 5s alternate infinite, bloodTechPulse 1.5s infinite alternate,
    breathe 3s ease-in-out infinite;
  text-shadow: none;
}

/* ======================
   Floating Nav
====================== */

.floating-nav-wrapper {
  position: fixed;
  top: 10px;
  right: 20px; /* Aligned with body margin on mobile */
  z-index: 1000;
  display: flex;
  gap: 8px;
  padding: 5px 20px;
  border-radius: 8px;
  font-size: 12px !important;
  backdrop-filter: blur(0);
}

@media (max-width: 480px) {
  .floating-nav-wrapper {
    right: 20px; /* Consistent alignment */
  }
}

.floating-nav-wrapper nav {
  margin: 0;
  padding: 0;
  text-align: right;
}

.floating-nav-wrapper nav a {
  font-size: 24px;
}

/* ======================
   Font Size Controls
====================== */

.font-size-controls {
  position: fixed;
  top: 20px;
  left: 20px; /* Aligned with body margin */
  z-index: 1000;
  display: flex;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 12px;
}

.font-size-controls button {
  background: rgba(205, 4, 4, 0.6);
  border: none;
  color: white;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-family: sans-serif;
  transition: background 0.2s ease;
}

.font-size-controls button:hover {
  background: rgb(120, 0, 0);
}

@media (max-width: 480px) {
  .font-size-controls {
    left: 20px; /* Maintain consistent alignment */
    font-size: 10px; /* Slightly larger than original 5px for better usability */
    padding: 3px 5px;
  }
  
  .font-size-controls button {
    font-size: 10px;
  }
}

/* ======================
   Lists
====================== */

ul.custom-bullets {
  list-style-image: url("../img/wolke.png");
}

.image-bullets {
  list-style: none;
  padding-left: 0;
}

.image-bullets li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.image-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background: url("../img/wolke.png") no-repeat center/contain;
}

/* ======================
   Image Gallery
====================== */

.image-gallery {
  position: relative;
  top: 60px;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  justify-content: center;
}

.image-gallery li {
  flex: 1 1 200px;
  max-width: 200px;
}

.image-gallery li img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.3s ease;
  filter: grayscale(100%);
  display: block;
}

/* Responsive tweaks */
@media (max-width: 769px) {
  .image-gallery {
    gap: 12px;
  }

  .image-gallery li {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 480px) {
  .image-gallery {
     gap: 6px;
    padding: 0 8px;
  }

  .image-gallery li {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
@media (min-width: 769px) {
  
.image-gallery {
  position: relative;
  align-items:center;
}
.image-gallery li {
  flex: none;
  max-width: none;
}
.image-gallery li img {
  align-items: left;
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.3s ease;
  filter: grayscale(100%);
  height: 200px;
  width: auto;
  display: block;
}

.image-gallery li img:hover {
  transform: scale(1.03);
  filter: grayscale(0%);
  cursor: pointer;
}
}


/* ======================
   Blood Bar
====================== */

.blood-bar-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 10px 20px; /* Add horizontal padding to align with body margin */
  background: transparent;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
}

.blood-bar-container {
  position: relative;
  margin: 0;
  width: 15%;
  max-width: 1000px;
  height: 10px;
  background: transparent;
  border: 2px solid #500;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 8px #a00;
}

.blood-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgb(205, 4, 4), #800000);
  box-shadow: inset 0 0 10px rgb(205, 4, 4), 0 0 10px rgb(205, 4, 4);
  transition: width 0.5s ease;
  animation: pulse 2s infinite;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blood-percentage {
  color: white;
  font-weight: inherit;
  text-shadow: 0 0 5px red;
  z-index: 1;
}

/* ======================
   Hamburger Button
====================== */

.hamburger {
  position: fixed;
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  right: 20px;
  top: 10px;
  z-index: 1000;
  display: flex;
  padding: 5px 10px;
  border-radius: 8px;
  width: auto; /* Allow width to accommodate text */
  min-width: 30px;
  height: 30px;
  color: rgb(205, 4, 4);
  background-color: transparent;
  cursor: url("../img/cursor.png") 4 4, pointer;
  border: none;
  font-size: 16px;
  white-space: nowrap; /* Prevent text wrapping */
}

@media (max-width: 600px) {
  .hamburger {
    right: 10px; /* More space for "home" text */
  }
}

@media (max-width: 480px) {
  .hamburger {
    right: 10px; /* Ensure full text is visible */
    font-size: 14px; /* Slightly smaller text if needed */
  }
}

.hamburger:hover {
  color: rgb(0, 123, 255);
}

.hamburger span {
  position: absolute;
  left: 18%;
  width: 43px;
  height: 2px;
  background-color: rgb(205, 4, 4);
  transition: all 0.3s ease;
  vertical-align: top;
}

.hamburger span:nth-child(1) {
  top: 20%;
  opacity: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
}

.hamburger span:nth-child(3) {
  top: 88%;
  opacity: 0;
}

.hamburger:hover span {
  background-color: transparent;
}

.hamburger.active span:nth-child(1) {
  transform: translate(-350%, 400%) rotate(90deg);
  opacity: 0;
}

.hamburger.active span:nth-child(2) {
  opacity: 1;
}

.hamburger.active span:nth-child(3) {
  transform: translate(-350%, -500%) rotate(0deg);
  opacity: 0;
}

.menu-label {
  text-decoration: none;
  border: none;
  display: inline;
}

.hamburger .menu-label {
  all: unset;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background-color: transparent;
  color: inherit;
  cursor: inherit;
  border: none;
  background: none;
}

.menu-label {
  transition: all 0.3s ease;
  font-style: normal;
  font-family: inherit;
}

.menu-label.translated {
  font-style: italic;
  opacity: 0.8;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ======================
   Loader
====================== */

#loader {
  position: fixed;
  bottom: 50%;
  left: 53%;
  transform: translateX(-50%); /* Perfect centering */
  background-size: cover;
  background: transparent;
  color: rgb(205, 4, 4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'AntoniadisBasic', sans-serif;
  font-size: 50px;
  z-index: 9999;
  transition: opacity 2s ease, bottom 2s ease, font-size 2s ease;
}
@media (min-width: 768px) {
  #loader {
    left: 51%;
  }
}
#page-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease;
}

#page-content.visible {
  opacity: 1;
  visibility: visible;
}

#loader.fade-out {
  opacity: 0;
  bottom: 0;
  font-size: 24px;
  pointer-events: none;
}

#loader p {
  animation: pulse 1.2s infinite ease-in-out;
}

#header-translate {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 ;
}
