/* 1. Define the fonts first at the top level */
@font-face {
    font-family: 'Vipnagorgialla';
    src: url('../Fonts/Vipnagorgialla Rg It.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../Fonts/Oswald-VariableFont_wght.ttf') format('truetype');
    /* For variable fonts, you may want to define ranges */
    font-weight: 200 800; 
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../Fonts/Oxanium-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 2. Create classes to use the fonts */
.vipnag { 
    font-family: 'Vipnagorgialla', sans-serif; 
    font-style: italic;
}

.oswald { 
    font-family: 'Oswald', sans-serif; 
}

.oxan { 
    font-family: 'Oxanium', sans-serif; 
}

body {
  margin-right: 8%;
  margin-left: 8%;
  padding: 50px;
  padding-top: 150px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  background: url(../images/stone_7.jpg) center center repeat;
  background-size: auto;
  line-height: 1.5;
}

a {
  color: black;
  text-align: center;
}

a .link {
  color: black;
}

h1, h2, h3 {
  text-align: center;
  font-family: 'Oxanium';
}

.title {
  font-size: 100px;
}

p {
  font-size: 20px;
  font-family: 'Oswald';
  text-align: left;
}

.navbar {
    font-size: 1.25rem;
}

.navbar-brand {
    margin: 0 60 0 0;
    padding: 0;
}

/* Enable the container engine to track image size changes */
.container-parent {
  container-type: inline-size;
}

#about, #partner {
  scroll-margin-top: 100px;
}

/* Core Layout Container */
.responsive-container {
  position: relative;
  display: block;
  width: 100%; 
  aspect-ratio: 2.2/1;
  margin: 0;
  padding: 0;
  max-width: none;
  overflow: hidden;
  background-color: black;
}

/* Base Graphic Setup - Centered Square Zoom Crop */
.base-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  display: block;
  /* filter: blur(1px); */
}

#bg-showcase .base-image {
  transform: translate(-20%, -90%) scale(2.85); 
  opacity: 0.6;
}

#pb-showcase .base-image {
  transform: translate(-20%, -20%) scale(2); 
  opacity: 0.5;
}

#who .base-image {
  transform: translate(-70%, -60%) scale(2.85); 
  opacity: 0.6;
}

#what .base-image {
  transform: translate(-40%, -40%) scale(2); 
  opacity: 0.6;
}

#partnerbox .base-image {
  transform: translate(-30%, -5%) scale(2.85); 
  opacity: 0.6;
}

#who .overlay-text {
  top: 0; 
  right: 0;
  left: 0; 
  width: 90%; 
  padding-right: 3%; 
  padding-left: 2%;
}

#partnerbox .overlay-text {
  top: 0; 
  right: 0;
  left: 0; 
  width: 90%; 
  padding-right: 3%; 
  padding-left: 2%;
}

#what .overlay-text {
  top: -2%; 
  right: 0;
  left: 0; 
  width: 90%; 
  padding-right: 3%; 
  padding-left: 2%;
}

#who .overlay-text p { 
  margin: -2cqw 0 0 0;
  font-size: 4cqw;
}

#what .overlay-text p { 
  margin: -2cqw 0 0 0;
  font-size: 4.2cqw;
}

#partnerbox .overlay-text p { 
  margin: -2cqw 0 0 0;
  font-size: 4cqw;
}

/* Precise Clickable Image Overlay */
.overlay-link {
  position: absolute; 
  width: 11%; 
  z-index: 2;
}
.overlay-link img { 
  width: 332%; 
  height: auto; 
  display: block;
}

#bg-showcase .overlay-link {
  top: 8%;
}

#pb-showcase .overlay-link {
  top: 2%;
}

.overlay-text {
  position: absolute;
  top: 10%; 
  right: 0; 
  width: 65%; 
  padding-right: 5%; 
  padding-left: 2%;
  box-sizing: border-box; 
  z-index: 2;
  color: white; 
  font-family: sans-serif;
  text-align: center; 
  text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.8);
  margin: 0 auto;
}

.overlay-text h3 { 
  margin: 0; 
  font-size: 6.7cqw;
  line-height: 2.3; 
} 

.overlay-text p { 
  margin: 0.6cqw 0 0 0;
  font-size: 3cqw;
  line-height: 1.2; 
}

#bg-showcase .overlay-text h3 {
  font-size: 6.7cqw;
  line-height: 2; 
}

#pb-showcase .overlay-text h3 {
  font-size: 5.7cqw;
  line-height: 1.3; 
}

#bg-showcase .overlay-text p {
  font-size: 3cqw;
  line-height: 1.2; 
}

#pb-showcase .overlay-text p {
  font-size: 2.7cqw;
  line-height: 1.2;  
}

@media screen and (max-width: 768px) {
  
  body {
    margin-left: 2%;
    margin-right: 2%;
    padding: 15px;
    padding-top: 160px !important;
  }

  .title {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .responsive-container {
    height: auto !important;
    aspect-ratio: 1 / 1.15 !important;
    overflow: hidden;
  }

  #bg-showcase .base-image {
    transform: translate(-20%, -90%) scale(3.5) !important;
  }

  #pb-showcase .base-image {
    transform: translate(-20%, -20%) scale(2.5) !important;
  }
  
  #who .base-image {
    transform: translate(-70%, -60%) scale(3.5) !important;
  }
  
  #what .base-image {
    transform: translate(-40%, -40%) scale(2.5) !important;
  }
  
  #partnerbox .base-image {
    transform: translate(-30%, -5%) scale(3.5) !important;
  }

  .overlay-text,
  #who .overlay-text,
  #what .overlay-text,
  #partnerbox .overlay-text {
    position: absolute !important;
    top: 50% !important;
    left: 5% !important;
    right: 5% !important;
    width: 90% !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    box-sizing: border-box;
    display: block !important;
  }

  .overlay-text h3,
  #bg-showcase .overlay-text h3,
  #pb-showcase .overlay-text h3 {
    font-size: 7.5vw !important;
    line-height: 1.2 !important; 
    margin: 0 0 10px 0 !important;
  }

  .overlay-text p,
  #bg-showcase .overlay-text p,
  #pb-showcase .overlay-text p,
  #who .overlay-text p,
  #partnerbox .overlay-text p,
  #what .overlay-text p {
    font-size: 4.2vw !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  .overlay-link {
    width: 35% !important;
    top: 6% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .overlay-link img {
    width: 100% !important;
    height: auto !important;
  }

  .navbar,
  nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 8px 0 !important;
    height: auto !important;
  }

  .navbar-brand,
  nav .navbar-brand {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .navbar-brand img,
  nav img {
    height: 50px !important;
    width: auto !important;
  }

  .navbar-nav,
  .navbar-collapse,
  .nav-links,
  nav div,
  nav ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px 14px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar a,
  nav a {
    font-size: 13px !important;
    padding: 5px 8px !important;
  }
}