.projects-cta--gaming {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.65));
  border-top: 1px solid var(--border-color);
  padding: 5rem 0;
  text-align: center;
}

.projects-cta--gaming h2 {
  font-size: 2.8rem;
  margin-bottom: 1.4rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
}

.projects-cta--gaming p {
  max-width: 640px;
  margin: 0 auto 1.2rem;
  font-size: 1.5rem;
  line-height: 1.8;
}

.projects-cta--gaming .projects-cta-button {
  margin-top: 1.2rem;
}

@media (max-width: 768px) {
  .projects-cta--gaming {
    padding: 4rem 0;
  }

  .projects-cta--gaming h2 {
    font-size: 2.2rem;
    letter-spacing: 0.24rem;
  }

  .projects-cta--gaming p {
    font-size: 1.3rem;
  }
}
.cover-background {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   JKVIZ.COM - Component Styles
   Reusable UI components
   ========================================================================== */

/* Navigation Component */
:focus {
  outline-color: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: none;
}

.cover-overlay-content a:focus-visible,
.cover-overlay-node:focus-visible {
  outline: none;
  box-shadow: none;
}

.navbar {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

#mynav {
  background-color: transparent;
  width: 100%;
  right: 0;
  position: fixed;
  z-index: 10;
  color: var(--text-color);
  cursor: default;
  text-transform: uppercase;
  top: 0;
  transition: background-color 0.75s ease-in-out, backdrop-filter 0.75s ease-in-out;
}

html[data-theme="dark"] body:not(.reveal-mode) #mynav {
  background-color: rgba(0, 0, 0, 0.92);
}

html[data-theme="light"] body:not(.reveal-mode) #mynav {
  background-color: rgba(248, 249, 250, 0.95);
}

body.reveal-mode #mynav {
  background-color: transparent;
  backdrop-filter: blur(6px);
}


#mynav a:hover {
  color: var(--accent-color);
}

/* Position the dropdown relative to its trigger */
.dropdown {
  position: relative;
  display: inline-block; /* Needed for absolute positioning of menu */
}

/* Trigger stays the same */
.dropdown-trigger {
  display: block;
  padding: 14px 16px;
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 3px;
  transition: color 0.3s ease;
  float: right;
}

.dropdown-trigger:hover {
  color: var(--accent-color);
}

.dropdown {
  float: right;
}

/* Mega Menu Dropdown - SPINX Style */
.dropdown-menu {
  float: none !important;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-width: 600px;
  max-width: 900px;
  width: auto;
  z-index: 1000;
  display: none;
  padding: 40px 50px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(-10px);
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Multi-column layout for mega menu */
.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: start;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
}

/* Section header - SPINX Style */
.dropdown-section-header {
  font-weight: 700;
  color: var(--accent-color);
  padding: 0 0 15px 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13.2px;
  text-align: left;
}

/* Links inside dropdown - SPINX Style */
.dropdown-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-color);
  text-decoration: none;
  font-size: 15.6px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  text-transform: none;
  text-align: left;
  position: relative;
}

.dropdown-menu a:not(.dropdown-section-header):before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.dropdown-menu a:hover {
  color: var(--accent-color);
  padding-left: 15px;
}

.dropdown-menu a:hover:before {
  width: 10px;
}

/* Coming Soon - Disabled Links */
.dropdown-menu a.coming-soon,
.wrap-nav a.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.dropdown-menu a.coming-soon:hover,
.wrap-nav a.coming-soon:hover {
  color: var(--text-color);
  padding-left: 0;
}

.dropdown-menu a.coming-soon:hover:before {
  width: 0;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding: 0;
    margin-top: 0;
    opacity: 1 !important;
    transform: none !important;
    min-width: auto;
    max-width: none;
    width: 100%;
    left: auto;
    transform: none !important;
  }
  
  .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dropdown-menu a {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    padding-left: 0 !important;
  }
  
  .dropdown-menu a:not(.dropdown-section-header):before {
    display: none;
  }
  
  .dropdown-menu a:hover {
    background-color: transparent;
    padding-left: 0 !important;
  }
  
  .dropdown-section-header {
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  .dropdown-section-header:first-child {
    margin-top: 0;
  }
}

@media (max-width: 1000px) {
  #mynav {
    z-index: -1;
    opacity: 0;
  }
}

.logo a {
  float: left;
  letter-spacing: 25px;
  position: fixed;
  display: block;
  color: var(--text-color);
  top: 18px;
  padding: 0px 20px;
  text-decoration: none;
  font-size: 20px;
  z-index: 101;
}

@media screen and (max-width: 1000px) {
  .logo a {
    color: pink;
    letter-spacing: 10px;
  }
}

@media screen and (max-width: 1000px) {
  .logo {
    display: none;
  }
}

.topnav {
  float: right;
  display: flex;
  align-items: center;
  color: var(--text-color);
  padding: 0px 5rem;
  gap: 0;
}

.topnav a,
.topnav .dropdown {
  float: right;
  display: block;
  color: var(--text-color);
  padding: 14px 16px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 3px;
}

.topnav a:hover {
  color: var(--accent-color);
}

.topnav a.active {
  color: var(--accent-color);
}

/* Mobile Menu Button */
.buttonnav {
  display: inline;
  color: var(--text-color);
  opacity: 0;
  position: fixed;
  right: 4%;
  z-index: -1;
  font-size: 30px;
  top: 0;
}

.buttonnav a {
  text-decoration: none;
}

.btn-open:after {
  color: var(--text-color);
  content: "\f0c9";
  font-family: "FontAwesome";
  transition: all .2s linear 0s;
}

.btn-open:hover:after {
  color: var(--accent-color);
}

.btn-close:after {
  color: var(--text-color);
  content: "\f00d";
  font-family: "FontAwesome";
  transition: all .2s linear 0s;
}

.btn-close:hover:after {
  color: var(--accent-color);
}

/* Mobile Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: var(--background-color);
  overflow: auto;
  z-index: 99;
}

.wrap {
  color: var(--accent-color);
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.wrap .wrap-nav {
  text-transform: capitalize;
  padding: 150px 0px 100px;
}

.wrap .wrap-nav a {
  color: var(--text-color);
  font-size: 5rem;
  display: block;
  padding: 10px 0;
  text-decoration: none;
  transition: all .2s linear 0s;
}

.wrap .wrap-nav a:hover {
  color: var(--accent-color);
}

@media (max-width: 1000px) {
  .buttonnav {
    opacity: 1;
    z-index: 100;
  }
}

@media (max-width: 750px) {
  .wrap .wrap-nav a {
    font-size: 2rem;
  }
}

/* Wrapper Styles */
.wrapper,
.wrapper.style1 {
  background-color: var(--background-color);
}

/* Footer Component */
/* New site footer (FlyHyer-inspired) */
.site-footer {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 20px 20px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  z-index: 3;
  position: relative;
  max-height: 320px;
  overflow: hidden;
  transform: translateY(0);
  transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out, max-height 0.9s ease-in-out, padding 0.9s ease-in-out, border-color 0.9s ease-in-out;
}

/* Disable transitions on initial page load to prevent animation flash */
body.no-transitions .site-footer,
body.no-transitions .about-cover-wrapper .site-footer,
body.no-transitions .site-footer .footer-clients,
body.no-transitions .site-footer .client-logo,
body.no-transitions #mynav,
body.no-transitions .theme-toggle,
body.no-transitions .contact-email a,
body.no-transitions .contact-social a {
  transition: none !important;
}

.about-cover-wrapper .site-footer {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 20px 20px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  z-index: 3;
  position: relative;
  max-height: 320px;
  transform: translateY(0);
  transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out, max-height 0.9s ease-in-out, padding 0.9s ease-in-out, border-color 0.9s ease-in-out;
}

.about-cover-wrapper .footer-clients {
  padding-bottom: 15px;
  transition: opacity 0.2s ease;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .footer-clients {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 24px;
  opacity: 1;
}

/* Hide client logos in reveal mode (fade via transition above) */
.reveal-mode .site-footer .footer-clients {
  opacity: 0;
  pointer-events: none;
}

body.reveal-mode .site-footer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0px);
  max-height: 0;
  padding: 0;
  border-color: transparent;
}

.site-footer .client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer .client-logo {
  max-height: 45px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%) brightness(1.1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1000px) {
  .site-footer .client-logo {
    max-height: 22px;
  }
  .site-footer .client-logos {
    gap: 1rem;
    padding: 0 16px;
  }
}

/* Invert client logos in dark mode (except Raven) */
[data-theme="dark"] .site-footer .client-logo:not(.client-logo-no-invert) {
  filter: grayscale(100%) brightness(1.1) invert(1);
}

/* Raven logo exception - no inversion in dark mode */
[data-theme="dark"] .site-footer .client-logo-no-invert {
  filter: grayscale(100%) brightness(1.1);
}

/* Ensure Raven logo scales properly on all screen sizes */
.site-footer .client-logo-no-invert {
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .site-footer .client-logo-no-invert {
    max-height: 18px;
  }
}

@media (max-width: 600px) {
  .site-footer .client-logo-no-invert {
    max-height: 16px;
  }
}

@media (max-width: 520px) {
  .site-footer .client-logo-no-invert {
    max-height: 14px;
  }
}

/* Hover effect removed */

@media (max-width: 900px) {
  .site-footer .footer-inner {
    padding: 0 24px;
  }

  .site-footer .footer-clients {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }

  .site-footer .client-logos {
    justify-content: center;
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .site-footer .client-logo {
    max-height: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
  }
}

/* Scale Rebellion logo 30% smaller */
.site-footer .client-logo[alt*="Rebellion"],
.site-footer .client-logo[src*="Rebellion"],
.site-footer .client-logo[src*="rebellion"] {
  transform: scale(0.7);
  transform-origin: center;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 24px;
}

.footer-bottom p {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.5;
}

@media (max-width: 520px) {
  .site-footer .client-logo { max-height: 18px; }
  .footer-bottom { flex-direction: column; gap: 15px; align-items: center; }
}
footer.wrapper.style1 {
  margin-top: 0 !important;
  background-color: var(--background-color) !important;
  color: var(--text-color);
  padding-top: 2rem;
}

footer.wrapper.style1 * {
  background-color: var(--background-color) !important;
  color: var(--text-color);
}

/* Project Card Component */
.img_con {
  position: relative;
  margin-bottom: 2rem;
}

.img_con .image {
  width: 100%;
  height: auto;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.img_con:hover .image {
  filter: brightness(1.2);
  transform: scale(1.02);
}

.middle {
  display: none;
}

.text {
  display: none;
}

/* Progressive Image Loading */
.image {
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  background: linear-gradient(90deg, var(--background-color) 25%, var(--surface-color) 50%, var(--background-color) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.image.loaded {
  opacity: 1;
  background: none;
  animation: none;
}

/* Loading animation */
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Blur effect while loading */
.image:not(.loaded) {
  filter: blur(5px);
  transform: scale(1.02);
}

/* Priority loading for above-the-fold images */
.image[loading="eager"] {
  opacity: 1; /* Skip blur for priority images */
  filter: none;
  transform: none;
  background: none;
  animation: none;
}
.projects .column,
.projects .columns {
  margin-left: 2%;
  margin-top: 2%;
}

.projects .column:first-child,
.projects .columns:first-child,
.projects .column:nth-child(5),
.projects .columns:nth-child(5) {
  margin-left: 0;
}

.projects .three.columns {
  width: 22%;
}

@media (max-width: 768px) {
  .projects .column,
  .projects .columns {
    margin-left: 2%;
    margin-top: 2%;
  }
  
  .projects .column:first-child,
  .projects .columns:first-child {
    margin-left: 2%;
  }

  .projects .three.columns {
    width: 48%;
  }
}

/* Main Content Sections */
#reel {
  background-color: var(--background-color);
  padding-top: 80px;
  padding-bottom: 2rem; /* Reduced spacing */
}

@media (max-width: 768px) {
  #reel {
    padding-top: 100px; /* More space on mobile for larger navigation */
    padding-bottom: 1rem; /* Even less spacing on mobile */
  }
}

.projects {
  background-color: var(--background-color);
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .projects {
    padding: 1rem 0; /* Reduced padding on mobile */
  }
}

#artworks {
  background-color: var(--background-color);
  padding-top: 30px; /* Further reduced from 60px */
  padding-bottom: 2rem; /* Reduced spacing */
}

@media (max-width: 768px) {
  #artworks {
    padding-top: 40px; /* Further reduced from 75px */
    padding-bottom: 1rem; /* Even less spacing on mobile */
  }
}

/* Fix artworks page container */
#artworks .container {
  background-color: var(--background-color);
}

/* Fix artworks page full-width background */
.artworks-page {
  background-color: var(--background-color);
  padding-bottom: 2rem; /* Reduced spacing */
}

@media (max-width: 768px) {
  .artworks-page {
    padding-bottom: 1rem; /* Even less spacing on mobile */
  }
}

.section.framework {
  background-color: var(--background-color);
  padding-top: 80px;
  padding-bottom: 2rem; /* Reduced spacing */
}

@media (max-width: 768px) {
  .section.framework {
    padding-top: 100px; /* More space on mobile for larger navigation */
    padding-bottom: 1rem; /* Even less spacing on mobile */
  }
}

/* Text Overlay for Project Pages */
.container1 {
  position: absolute;
  top: 40%;
  left: 2%;
  transform: translateY(-50%);
  text-align: left;
  color: white !important;
  z-index: 10;
  max-width: 45%;
  font-size: 1.25em;
}

.container1 p {
  color: white !important;
  margin: 1rem 0;
  font-size: 1.25em;
}

.container1 #p2 {
  color: white !important;
  margin: 1rem 0;
  font-size: 1.25em;
}

.container1 h6 {
  color: white !important;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

.cover-info-container {
  max-width: 600px;
}

.cover-info-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 20, 36, 0.1);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.cover-info-panel h6,
.cover-info-panel p {
  margin: 0;
}

.cover-info-panel .button {
  align-self: flex-start;
}

.cover-info-panel h6 {
  font-size: 1.75rem;
}

.cover-info-panel p {
  font-size: 1.75rem;
  line-height: 1.5;
  color: #ffffff;
}

@media (max-width: 768px) {
  .cover-info-container {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    max-width: 92%;
    margin: 1.2rem auto 0;
    text-align: left;
  }

  .cover-info-panel {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cover-info-panel .button {
    align-self: flex-start;
  }

  .cover-info-panel h6,
  .cover-info-panel p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .cover-info-container {
    margin: 1.2rem auto;
  }

  .section.cover .cover-info-container {
    position: static;
    transform: none;
  }
}

/* Ensure section cover has relative positioning for absolute overlay */
.section.cover {
  position: relative;
  background-color: var(--background-color);
  padding-top: 80px;
  padding-bottom: 0;
  min-height: auto;
  z-index: 0;
}

@media (max-width: 1024px) {
  .section.cover {
    padding-top: 70px;
  }
}

@media (max-width: 768px) {
  .section.cover {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .section.cover {
    padding-top: 52px;
  }
}

.section.cover.cover-spacing-tight {
  padding-top: 40px;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Cover image container with cropping */
.cover-image-container {
  overflow: hidden;
  max-height: 85.5vh;
  position: relative;
}

.cover-image-container img {
  display: block;
  margin: 0;
  object-fit: cover;
  object-position: top;
}

/* Cover overlay with gradient */
.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.7), transparent);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show overlay on hover */
.cover-with-overlay:hover .cover-overlay {
  opacity: 1;
}

@media (max-width: 1000px) {
  .cover-with-overlay .cover-overlay {
    display: none;
  }
}

/* Cover overlay content */
.cover-overlay-content {
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cover-overlay-content h4 {
  color: white;
  margin: 0;
  font-size: 2.4rem;
}

.cover-overlay-tree {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cover-overlay-node {
  font-size: 1.1rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  outline: 2px solid transparent;
}

.cover-overlay-children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cover-overlay-children li {
  margin: 0;
  padding: 0;
}

.cover-overlay-note {
  font-size: 0.95rem;
  opacity: 0.75;
}

/* Mission links styling */
.mission-link {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  outline: 2px solid transparent;
}

.mission-link:hover {
  color: #53e1ea !important;
}

/* Slider image loading */
.slider-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  filter: blur(3px);
}

.slider-image.loaded {
  opacity: 1;
  filter: blur(0);
}

/* Fotorama slider optimization */
.fotorama__img {
  transition: opacity 0.3s ease-in-out;
}

/* Responsive gaming projects grid */
@media (max-width: 768px) {
  .gaming-grid-container {
    grid-template-columns: 200px 200px !important;
    gap: 20px !important;
  }
  
  .gaming-grid-container .img_con {
    width: 200px !important;
  }
}

@media (max-width: 600px) {
  .gaming-grid-container {
    grid-template-columns: 150px 150px !important;
    gap: 15px !important;
  }
  
  .gaming-grid-container .img_con {
    width: 150px !important;
  }
}

@media (max-width: 480px) {
  .gaming-grid-container {
    grid-template-columns: 120px 120px !important;
    gap: 10px !important;
  }
  
  .gaming-grid-container .img_con {
    width: 120px !important;
  }
}

/* Image loading optimization */
.image-blur-load {
  filter: blur(5px);
  transition: filter 0.3s ease-in-out;
}

.image-blur-load.loaded {
  filter: blur(0);
}

/* Placeholder for images while loading */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Optimized image loading */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img[data-src].loaded {
  opacity: 1;
}

.cover-overlay-content p {
  color: white;
  font-size: 8px;
  margin-top: 8px;
  opacity: 0.8;
}

/* Additional styling for cover sections */
.cover-compact {
  margin-bottom: 0;
  padding: 0;
  min-height: auto;
}

.cover-spacing-tight {
  margin-bottom: 0;
  padding-bottom: 0;
}

.cover-compact.cover {
  padding-top: 30px;
}

.cover-with-overlay {
  position: relative;
}

.cover-wrapper {
  position: relative;
  overflow: hidden;
}

.cover-wrapper img {
  display: block;
  margin: 0;
}

/* YouTube Button Container */
.youtube-button-container {
  text-align: center;
  margin-top: 2rem;
}

/* Section styles for compact sections */
.section-compact {
  margin-top: 0;
}

.section-spacing-tight {
  margin-top: 0.5rem;
}

.section.p1_a.section-spacing-tight {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 900px) {
  .chesterton-info-row .six.columns {
    width: 100%;
    float: none;
    margin-left: 0;
  }

  .chesterton-info-row .six.columns + .six.columns {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section.cover.cover-spacing-tight {
    padding-top: 28px;
  }

  .section.p1_a.section-spacing-tight {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .section.cover.cover-spacing-tight {
    padding-top: 24px;
  }

  .section.p1_a.section-spacing-tight {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

.section-no-padding {
  padding: 0;
}

.section-no-padding .row {
  margin-bottom: 0.5rem;
}

.section-no-padding .row.no-bottom-margin {
  margin-bottom: 0;
}

.section-no-padding .row:last-child {
  margin-bottom: 0;
}

/* Image grid row styling */
.image-row {
  margin-bottom: 0.5rem;
}

.image-row:last-child {
  margin-bottom: 0;
}

.image-row-no-margin {
  margin-bottom: 0;
}

/* Centered YouTube button container */
.youtube-center {
  text-align: center;
  margin-top: 2rem;
}

/* Image width styling */
.image-full-width {
  width: 100%;
}

.image-max-width {
  display: block;
  margin: 0;
}

/* YouTube Button Styling */
.youtube-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid #dc3545;
}

.youtube-button:hover {
  background-color: #20c997;
  border-color: #20c997;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(32, 201, 151, 0.3);
}

/* Responsive styles for cover overlay */
@media (max-width: 1024px) {
  .cover-overlay-content h4 {
    font-size: 1.8rem;
  }
  
  .mission-link {
    font-size: 1rem;
  }
  
  .cover-overlay-children {
    padding-left: 1.2rem;
  }
  
  .cover-overlay {
    padding: 120px 30px 0 30px;
  }
  
  .section-no-padding {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .cover-overlay-content h4 {
    font-size: 1.4rem;
  }
  
  .mission-link {
    font-size: 0.95rem;
  }
  
  .cover-overlay-children {
    padding-left: 1rem;
    gap: 0.35rem;
  }
  
  .cover-overlay {
    padding: 100px 20px 0 20px;
    width: 100%;
  }
  .cover-overlay-content p {
    font-size: 7px;
  }
  
  .section-no-padding .row {
    margin-bottom: 0.25rem;
  }
  
  .text-section {
    padding: 5px 20px !important;
  }
}

@media (min-width: 768px) {
  .text-section {
    padding: 5px 80px !important;
  }
}

@media (min-width: 1024px) {
  .text-section {
    padding: 5px 150px !important;
  }
}

@media (min-width: 1440px) {
  .cover-overlay {
    padding: 150px 40px 0 40px;
  }
  
  .text-section {
    padding: 5px 200px !important;
  }
}

.section.rnd-intro {
  background-color: var(--background-color);
  padding: 2rem 0;
}

.section.rnd-env {
  background-color: var(--background-color);
  padding: 2rem 0;
}

.section.rnd-moanim {
  background-color: var(--background-color);
  padding: 2rem 0;
}

.section.rnd-exp {
  background-color: var(--background-color);
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .section.rnd-intro, .section.rnd-env, .section.rnd-moanim, .section.rnd-exp {
    padding: 1rem 0; /* Reduced padding on mobile */
  }
}

.rnd-section-intro {
  max-width: 72rem;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(226, 240, 255, 0.72);
}

[data-theme="light"] .rnd-section-intro {
  color: rgba(44, 62, 80, 0.72);
}

.rnd-showcase {
  display: grid;
  gap: 3.6rem;
}

.rnd-item {
  background: rgba(12, 20, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 3rem 2.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

@media (min-width: 900px) {
  .rnd-item {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.6rem;
  }

  .rnd-item .rnd-media {
    order: 1;
  }

  .rnd-item .rnd-copy {
    order: 2;
  }

  .rnd-item.reverse .rnd-media {
    order: 2;
  }

  .rnd-item.reverse .rnd-copy {
    order: 1;
  }
}

[data-theme="light"] .rnd-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.rnd-media video,
.rnd-media img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.rnd-copy h5 {
  margin-bottom: 1.4rem;
}

.rnd-copy p {
  font-size: 1.6rem;
  line-height: 1.7;
}

.rnd-copy p + p {
  margin-top: 1.4rem;
}

.rnd-meta {
  font-size: 1rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  opacity: 0.65;
}

[data-theme="light"] .rnd-meta {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .rnd-item {
    padding: 2.4rem 1.8rem;
  }

  .rnd-section-intro {
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }
}

.capture-card {
  background: rgba(12, 20, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.6rem 2.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  margin-top: 2.4rem;
}

[data-theme="light"] .capture-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.mission-card {
  background: rgba(12, 20, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.mission-card .capture-media-grid {
  margin-top: 0;
  justify-content: center;
}
.mission-card .capture-media-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.capture-media-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1.8rem;
}

@media (max-width: 640px) {
  .capture-media-grid.two-col {
    grid-template-columns: 1fr;
  }
}

[data-theme="light"] .mission-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.mission-card h5 {
  text-align: center;
  margin: 0 0 1.6rem;
  letter-spacing: 0.12rem;
}

.mission-card p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.mission-card .row {
  margin-bottom: 1.6rem;
}

.mission-card .row:last-of-type {
  margin-bottom: 0;
}

.capture-lightbox {
  cursor: zoom-in;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1200;
}

.media-lightbox[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 23, 0.88);
  backdrop-filter: blur(8px);
}

.media-lightbox__content {
  position: relative;
  max-width: min(92vw, 1280px);
  max-height: 90vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-lightbox__content img {
  width: 100%;
  max-height: calc(90vh - 5.6rem);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.media-lightbox__caption {
  margin-top: 1.6rem;
  font-size: 1.4rem;
  text-align: center;
  color: rgba(226, 240, 255, 0.72);
}

[data-theme="light"] .media-lightbox__caption {
  color: rgba(44, 62, 80, 0.72);
}

.media-lightbox__close {
  position: absolute;
  top: clamp(-10px, -1vw, -4px);
  right: clamp(10px, 1.5vw, 16px);
  padding: 0.2rem 0.6rem 0.4rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

[data-theme="light"] .media-lightbox__close {
  color: rgba(22, 36, 54, 0.9);
}

.media-lightbox__close:hover,
.media-lightbox__close:focus-visible {
  outline: none;
  transform: scale(1.1);
  color: rgba(255, 255, 255, 1);
}

[data-theme="light"] .media-lightbox__close:hover,
[data-theme="light"] .media-lightbox__close:focus-visible {
  color: rgba(22, 36, 54, 1);
}

body.lightbox-open {
  overflow: hidden;
}

.section.p1_a {
  background-color: var(--background-color);
  padding: 2rem 0;
}

.section.p1_b {
  background-color: var(--background-color);
  padding: 2rem 0;
}

.section.p1_rnd {
  background-color: var(--background-color);
  padding: 2rem 0;
}

.section[id] {
  scroll-margin-top: 90px;
}

.section.cover[id] {
  scroll-margin-top: 120px;
}

/* About Section */
.about-section {
  background-color: var(--background-color);
  padding-top: 6%;
}

.about {
  padding-top: 5px; /* Reduced from 45px - minimal space below fixed navigation */
  background-color: var(--background-color);
  min-height: calc(100vh - 5px); /* Adjusted to match padding-top */
}

@media (max-width: 768px) {
  .about {
    padding-top: 25px; /* Reduced from 65px - minimal space on mobile for larger navigation */
  }
}

/* Modern Cover About Page - Fixed No Scrolling */
.about-cover-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about-cover {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cover-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cover-image,
.cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.cover-image.visible,
.cover-video.visible {
  opacity: 1;
  pointer-events: auto;
}

.cover-image {
  filter: blur(18px) !important;
  transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
  z-index: -2;
}

.cover-image.visible {
  filter: blur(18px) !important;
}

.cover-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 25, 47, 0.92) 0%,
      rgba(10, 25, 47, 0.65) 18%,
      rgba(10, 25, 47, 0.35) 38%,
      rgba(10, 25, 47, 0.35) 62%,
      rgba(5, 12, 24, 0.65) 82%,
      rgba(5, 12, 24, 0.92) 100%
    );
  transition: opacity 0.35s ease-out;
  opacity: 1;
}

/* Calm text overlay */
.calm-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: #c9a56b; /* warm gold */
  font-size: 18px;
  letter-spacing: 5px;
  font-style: italic;
  text-transform: none;
  opacity: 0;
  transition: none; /* durations controlled via JS */
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.cover-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 100px;
  padding-bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Minimal reveal toggle button */
.cover-toggle {
  position: absolute;
  top: 90px;
  right: 20px;
  z-index: 3;
  padding: 0.8rem 2.4rem;
  font-size: 1.1rem;
  letter-spacing: 0.3rem;
  color: #ffffff !important;
  background: color-mix(in oklab, var(--accent-color) 20%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* allow outer glow */
  animation: revealPulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 color-mix(in oklab, var(--accent-color) 0%, transparent);
}

.cover-toggle:hover,
.cover-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  background: color-mix(in oklab, var(--accent-color) 30%, transparent);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent-color) 29%, transparent);
  outline: none;
}

.reveal-mode .cover-toggle {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Outline-tracing glow (Airdrop-style) */
.cover-toggle::before { content: none; }

@keyframes revealPulse {
  0%, 100% {
    background: color-mix(in oklab, var(--accent-color) 16%, transparent);
    box-shadow: 0 0 5px color-mix(in oklab, var(--accent-color) 16%, transparent);
  }
  50% {
    background: color-mix(in oklab, var(--accent-color) 34%, transparent);
    box-shadow: 0 0 14px color-mix(in oklab, var(--accent-color) 32%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover-toggle { animation: none; }
}

@media (max-width: 900px) {
  .cover-toggle {
    top: 78px;
    right: 18px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.25rem;
  }
}

@media (max-width: 640px) {
  .cover-toggle {
    top: 68px;
    right: 16px;
    padding: 0.6rem 1.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.22rem;
  }
}

@media (max-width: 480px) {
  .cover-toggle {
    top: 60px;
    right: 12px;
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
    letter-spacing: 0.18rem;
  }
}

.about-content-wrapper {
  width: 100%;
  max-width: 840px; /* +20% width */
  margin-left: auto;
  margin-right: auto;
  padding: 30px 0 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 80px);
  height: auto;
  overflow: visible;
}

@media (max-width: 1024px) {
  .about-content-wrapper {
    min-height: unset;
    overflow: visible;
    padding-bottom: 40px;
  }
}

.profile-section {
  display: block; /* allow text wrapping around floated image */
}

.profile-section::after {
  content: "";
  display: block;
  clear: both; /* clearfix for floated image */
}

.profile-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  float: left;
  margin: 0 24px 12px 0;
  shape-outside: inset(0);
}

.about-text {
  flex: 1;
}

.about-text h1 {
  font-size: 3.75rem;
  margin-bottom: 12px;
  color: #ffffff !important;
  font-weight: 300;
  letter-spacing: 5px;
  line-height: 1.2;
}

.about-text p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #ffffff !important;
}


.about-info {
  display: flex;
  gap: 50px;
  margin-top: 0;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.about-info h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #53e1ea !important;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-info p {
  font-size: 1.1rem;
  margin: 0;
  color: #ffffff !important;
  line-height: 1.2;
}

.about-info h5 {
  color: #53e1ea !important;
  font-size: 0.9rem;
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-info h5:first-of-type {
  margin-top: 10px;
}

.game-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.game-title {
  flex: 1;
  color: #ffffff !important;
  text-align: left;
}

.game-title a {
  color: #ffffff !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.game-title a:hover {
  opacity: 0.8;
}

.game-role {
  color: #ffffff !important;
  text-align: right;
  margin-left: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.about-info address {
  font-style: normal;
}

.about-info a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 0.3s ease;
  display: block;
  margin: 0;
  line-height: 1.2;
}

.about-info a:hover {
  opacity: 0.8;
}

.about-info .credits-link {
  color: #53e1ea !important;
  font-weight: bold;
  margin-top: 5px;
}

.about-info .credits-link:hover {
  text-decoration: underline;
  opacity: 1;
  color: #53e1ea !important;
}

.social-media-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  align-items: center;
}

.about-info h4 + .social-media-icons {
  margin-top: 10px;
}

.social-media-icons a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.social-media-icons a:hover {
  opacity: 0.7;
}

.social-media-icons img {
  width: 24px;
  height: 24px;
  display: block;
  filter: invert(1);
}


@media (max-width: 1200px) {
  .about-content-wrapper {
    max-width: 780px; /* +20% */
    margin-left: auto;
    margin-right: auto;
    padding: 25px 0 8px 0;
    min-height: unset;
  }
  
  .about-text h1 {
    font-size: 3.1rem;
  }
  
  .about-text p {
    font-size: 1.4rem;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 992px) {
  .about-content-wrapper {
    max-width: 720px; /* +20% */
    margin-left: auto;
    margin-right: auto;
    padding: 25px 0 10px 0;
    min-height: unset;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .about-text h1 {
    font-size: 2.75rem;
  }
  
  .about-text p {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  
  .about-info {
    gap: 40px;
    margin-top: 20px;
  }
  
}

@media (max-width: 768px) {
  .cover-content {
    padding-top: 85px;
  }
  
  .about-content-wrapper {
    margin-left: auto;
    margin-right: auto;
    padding: 15px 15px 10px 15px;
    max-width: 90%;
    min-height: unset;
  }
  
  .profile-image {
    width: 100px;
    height: 100px;
    float: none; /* disable float on small screens */
    margin: 0 0 12px 0;
  }
  
  .about-text h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
  }
  
  .about-text p {
    font-size: 1.2rem;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  
  .about-info {
    flex-direction: row;
    gap: 30px;
    margin-top: 15px;
  }
  
  .about-info h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .about-info p {
    font-size: 0.9rem;
    margin: 4px 0;
  }
  
  .about-info a {
    font-size: 0.9rem;
  }
  
}

@media (max-width: 480px) {
  .cover-content {
    padding-top: 70px;
  }
  
  .about-content-wrapper {
    min-height: unset;
    padding: 10px 10px 6px 10px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .profile-section {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  
  .profile-image {
    width: 80px;
    height: 80px;
  }
  
  .about-text {
    text-align: left;
  }
  
  .about-text h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }
  
  .about-text p {
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  
  .about-info {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }
  
  .about-info h4 {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .about-info p {
    font-size: 0.75rem;
    margin: 3px 0;
  }
  
  .about-info a {
    font-size: 0.75rem;
  }
  
}

.info img {
  float: left;
  padding: 0 20px 0 0;
}

.info p {
  font-size: 1.5rem;
}

.about a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 1.5rem;
}

.about a:hover {
  color: var(--accent-color);
  transition: .08s;
}

.contact .button {
  font-size: 12px;
  background-color: var(--button-secondary);
  border-radius: 10px;
  border-bottom-right-radius: 100px;
  margin-bottom: 1rem;
}

.contact .button:hover {
  background-color: var(--accent-color);
  color: var(--background-color);
}

/* Game titles with 1.4rem font and no margin */
.contact p {
  margin: 0; /* No spacing between titles */
  font-size: 1.4rem; /* Fixed font size */
}

@media (min-width: 1300px) {
  .about .container .row {
    margin-left: 15%;
  }
}

/* R&D Framework */
.framework {
  line-height: 0;
}

.framework .column,
.framework .columns {
  margin: 0;
}

@media (min-width: 550px) {
  .framework .seven.columns {
    width: 55%;
  }
  
  .framework .five.columns {
    width: 45%;
  }
}

.framework .two-half.column,
.framework .two-half.columns {
  width: 25%;
}

.framework img {
  width: 100%;
}

.framework .container {
  width: 100%;
}

.framework .section,
.framework .row {
  padding: 0;
}

.img_con_rnd {
  position: relative;
}

.img_con_rnd:hover img {
  -webkit-transition: filter 0.8s;
  -webkit-filter: sepia(100%);
  transition: filter 0.8s;
  filter: sepia(100%);
  cursor: pointer;
}

.framework .row .img_con_rnd.first img {
  height: 30rem;
  object-fit: cover;
}

.framework .row .img_con_rnd.second img {
  height: 60rem;
  object-fit: cover;
}

.framework .row .img_con_rnd.third img {
  height: 33rem;
  object-fit: cover;
}

.projects-hero {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.92), rgba(10, 25, 47, 0.65));
  color: var(--text-color);
  text-align: center;
  padding: 8rem 2rem 6rem;
}

.projects-hero h1 {
  font-size: 4.2rem;
  margin-bottom: 1.5rem;
}

.projects-hero p {
  max-width: 64rem;
  margin: 0 auto 2.5rem;
  font-size: 1.8rem;
  opacity: 0.85;
}

.projects-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #ffffff !important;
  background: color-mix(in oklab, var(--accent-color) 20%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 0 0 color-mix(in oklab, var(--accent-color) 0%, transparent);
  animation: revealPulse 2.2s ease-in-out infinite;
}

.projects-cta-button:hover,
.projects-cta-button:focus {
  border-color: rgba(255, 255, 255, 0.9);
  background: color-mix(in oklab, var(--accent-color) 30%, transparent);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent-color) 29%, transparent);
  outline: none;
}

.projects-page {
  background: var(--background-color);
  padding: 5rem 0;
}

.latest-news-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 4rem 0 5rem;
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.projects-slider {
  --carousel-gap: clamp(1.2rem, 3vw, 2.4rem);
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 0;
  z-index: 1;
}

.slider-window {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.slider-window.is-dragging {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
  padding: 0;
  will-change: transform;
  transition: none;
}

.projects-slider-static {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 0;
  z-index: 1;
}

.projects-slider-static .projects-grid-static {
  max-width: 1200px;
  margin: 0 auto;
  width: 85%;
}

.filter-button {
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-color);
  letter-spacing: 0.15rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-button:hover,
.filter-button:focus {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.filter-button.active {
  background: var(--secondary-color);
  color: var(--background-color);
  border-color: var(--secondary-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.projects-grid-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.projects-grid-title {
  text-align: center;
  font-size: 3rem;
  letter-spacing: 0.6rem;
  margin: 0;
  padding: 1.5rem 0;
}

.projects-section-header {
  text-align: center;
  margin: 0 auto 2.8rem;
  max-width: 820px;
  padding: 0 24px;
}

.projects-section-header--below-image {
  margin-top: 2.8rem;
}

.projects-section-header .projects-grid-title {
  margin-bottom: 1.2rem;
  padding-bottom: 0;
}

.projects-section-description {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(226, 240, 255, 0.72);
}

.projects-section-header + .mission-card {
  margin-top: 3.2rem;
}

[data-theme="light"] .projects-section-description {
  color: rgba(44, 62, 80, 0.72);
}

@media (max-width: 768px) {
  .projects-section-header {
    margin-bottom: 2rem;
    padding: 0 16px;
  }

  .projects-section-description {
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .projects-section-header + .mission-card {
    margin-top: 2.4rem;
  }
}

.project-card-static {
  background: #0f1c36;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: none;
}

.project-card-static img {
  width: 100%;
  height: auto;
  display: block;
}

.project-details-static {
  padding: 1.8rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.project-details-static h3 {
  margin: 0;
  font-size: 2rem;
  color: rgba(226, 240, 255, 0.92);
}

.project-details-static p {
  margin: 0;
  color: rgba(226, 240, 255, 0.82);
  line-height: 1.7;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .projects-grid-static {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
  }

  .projects-grid-title {
    font-size: 2.4rem;
    letter-spacing: 0.4rem;
    padding: 1rem 0;
  }

  .project-details-static {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .projects-grid-static {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .project-details-static {
    padding: 1.8rem 1.6rem 2.2rem;
  }
}

.project-card {
  flex: 0 0 calc((100vw - (var(--carousel-gap) * 2)) * 0.35);
  width: calc((100vw - (var(--carousel-gap) * 2)) * 0.35);
  max-width: clamp(240px, 22vw, 420px);
  background: #0f1c36;
  border-radius: 0;
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: none;
  scroll-snap-align: center;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.project-details {
  padding: 2.4rem;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1.2rem;
}

.project-details h3 {
  font-size: 2rem;
  margin: 0;
  color: var(--text-color);
}

.project-details p {
  margin: 0;
  color: rgba(226, 240, 255, 0.82);
  line-height: 1.7;
  flex: 1 1 auto;
  font-size: 1.25rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.project-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.project-link:hover::after,
.project-link:focus::after {
  transform: translateX(4px);
}

.project-card:is(:hover, :focus-within) .project-image img,
.project-card.active .project-image img {
  transform: none;
}

.project-card.is-hidden {
  display: none;
}

.projects-cta {
  background: var(--background-color);
  border-top: 1px solid var(--border-color);
  padding: 6rem 2rem;
  text-align: center;
}

.projects-cta h2 {
  font-size: 3.2rem;
  margin-bottom: 1.4rem;
}

.projects-cta p {
  max-width: 56rem;
  margin: 0 auto 2.4rem;
  font-size: 1.6rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .projects-hero {
    padding: 6rem 1.5rem 4.5rem;
  }

  .projects-hero h1 {
    font-size: 3.4rem;
  }

  .latest-news-section {
    padding: 3.2rem 0 3.6rem;
  }

  .projects-slider {
    --carousel-gap: clamp(1.2rem, 5vw, 2.4rem);
  }

  .slider-nav {
    display: none;
  }

  .project-card {
    flex: 0 0 calc((100vw - (var(--carousel-gap) * 2)) * 0.48);
    width: calc((100vw - (var(--carousel-gap) * 2)) * 0.48);
    max-width: clamp(220px, 42vw, 360px);
  }

  .project-details {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .latest-news-section {
    padding: 2.8rem 0 3.2rem;
  }

  .projects-slider {
    --carousel-gap: clamp(1rem, 7vw, 2rem);
  }

  .slider-nav {
    display: none;
  }

  .project-card {
    flex: 0 0 calc((100vw - (var(--carousel-gap) * 2)) * 0.58);
    width: calc((100vw - (var(--carousel-gap) * 2)) * 0.58);
    border-radius: 0;
  }

  .project-details {
    padding: 1.8rem 1.6rem 2.2rem;
  }
}


@media (max-width: 768px) {
  .framework {
    line-height: 15px;
  }

  .framework .row .img_con_rnd.first img {
    height: 20rem;
    object-fit: cover;
  }

  .framework .row .img_con_rnd.second img {
    height: 40.2rem;
    object-fit: cover;
  }

  .framework .row .img_con_rnd.third img {
    height: 28rem;
    object-fit: cover;
  }
}

@media (max-width: 550px) {
  .framework {
    line-height: 15px;
  }

  .framework .row .img_con_rnd.first img {
    height: 15rem;
    object-fit: cover;
  }

  .framework .row .img_con_rnd.second img {
    height: 15rem;
    object-fit: cover;
  }

  .framework .row .img_con_rnd.third img {
    height: 18rem;
    object-fit: cover;
  }
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .video-container {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .video-container {
    padding-top: 15px;
  }
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Fotorama Gallery */
.fotorama {
  padding-top: 0;
}

/* Project Thumbnail Sizing - Reduced by 15% */
.img_con {
	transform: scale(0.85);
	transform-origin: center;
}

/* Theme Toggle Button - Reduced by 15% */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  background: var(--surface-color);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
}

.theme-toggle,
.theme-icon {
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: var(--background-color);
  transform: scale(1.1);
}

.theme-toggle:focus {
  outline: none;
}

.theme-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Invert colors in dark mode */
[data-theme="dark"] .theme-icon {
  filter: invert(1);
}

@media (max-width: 768px) {
  .theme-toggle {
    bottom: 15px;
    right: 15px;
    width: 59.5px;
    height: 59.5px;
  }
  
  .theme-icon {
    width: 29.75px;
    height: 29.75px;
  }
}

body.reveal-mode .theme-toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

/* Social Media Icons */
.sc_icon {
  text-decoration: none;
  border-bottom: 0;
  position: relative;
  text-align: center;
  color: gray;
}

.sc_icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
}

.sc_icon > .label {
  display: none;
}

.sc_icon.style2:before {
  border-radius: 2.75em;
  display: inline-block;
  height: 2.75em;
  line-height: 2.75em;
  width: 2.75em;
}

a.sc_icon.style2:before {
  transition: background-color .2s ease-in-out, box-shadow .2s ease-in-out, color .2s ease-in-out;
}

.sc_icon.style2:before {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

a.sc_icon.style2:hover:before {
  box-shadow: inset 0 0 0 1px var(--accent-color);
  color: var(--accent-color);
}

a.sc_icon.style2:active:before {
  background-color: rgba(71, 211, 229, 0.1);
  box-shadow: inset 0 0 0 1px var(--accent-color);
  color: var(--accent-color);
}

/* Client Logos Section */

.client-logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.client-logo {
    max-height: 50px;
    width: auto;
    max-width: 100px;
    min-width: 80px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: grayscale(100%) brightness(1.1);
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Hover effect removed */

/* Responsive adjustments for client logos */
@media (max-width: 768px) {
	.client-logos {
		gap: 1.5rem;
	}
	
    .client-logo {
        max-height: 45px;
        max-width: 100px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
	.client-logos {
		gap: 1rem;
	}
	
    .client-logo {
        max-height: 40px;
        max-width: 100px;
        min-width: 60px;
    }
}

/* ==========================================================================
   Utility Classes for Inline Styles
   ========================================================================== */

/* Video Container Styles */
.video-wrapper {
    padding: 56.25% 0 0 0;
    position: relative;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image Styles */
.image-full-width {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.image-block {
    display: block;
    margin: 0;
}

/* Section Styles */
.section-no-margin-top {
    margin-top: 0;
}

.section-no-padding-top {
    padding-top: 0;
}

.section-no-margin-bottom {
    margin-bottom: 0;
}

.section-no-padding {
    padding: 0;
}

.section-auto-height {
    min-height: auto;
}

/* Cover Section Variants */
.cover-compact-variant {
    margin-bottom: 0;
    padding: 0;
    min-height: auto;
}

/* Cover with padding-top variant */
.cover-compact-variant[style*="padding-top"] {
    padding-top: 50px !important;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .cover-compact-variant[style*="padding-top"] {
        padding-top: 30px !important;
    }
}

.cover-wrapper-inner {
    position: relative;
    overflow: hidden;
}

/* Text Styles */
.text-center-inline {
    text-align: center;
    margin: 2rem 0;
}

.text-underline {
    text-decoration: underline;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

/* Row Styles */
.row-no-margin-bottom {
    margin-bottom: 0;
}

.row-small-margin-bottom {
    margin-bottom: 0.5rem;
}

/* Image Container Styles */
.img-con-fixed-width {
    width: 250px;
}

/* Gaming Grid Container */
.gaming-grid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.gaming-grid-container {
    display: grid;
    grid-template-columns: 250px 250px;
    grid-template-rows: auto auto;
    gap: 30px;
    justify-items: center;
}

/* Responsive adjustments for gaming grid */
@media (max-width: 1024px) {
    .gaming-grid-container {
        grid-template-columns: 220px 220px;
        gap: 25px;
    }
    
    .img-con-fixed-width {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .gaming-grid-container {
        grid-template-columns: 200px 200px;
        gap: 20px;
    }
    
    .img-con-fixed-width {
        width: 200px;
    }
    
    .gaming-grid-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .gaming-grid-container {
        grid-template-columns: 150px 150px;
        gap: 15px;
    }
    
    .img-con-fixed-width {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .gaming-grid-container {
        grid-template-columns: 140px 140px;
        gap: 12px;
    }
    
    .img-con-fixed-width {
        width: 140px;
    }
    
    .gaming-grid-wrapper {
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .gaming-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .img-con-fixed-width {
        width: 100%;
        max-width: 200px;
    }
}

/* Text Color Utilities */
.text-white {
    color: white !important;
}

/* Text Section Responsive Padding */
.text-section {
    padding: 5px 20px;
}

@media (min-width: 768px) {
    .text-section {
        padding: 5px 80px;
    }
}

@media (min-width: 1024px) {
    .text-section {
        padding: 5px 150px;
    }
}

@media (min-width: 1440px) {
    .text-section {
        padding: 5px 200px;
    }
}

.mission-card img,
.capture-media-grid img,
.row img.image-full-width {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.mission-card img + img,
.capture-media-grid img + img,
.row img.image-full-width + img.image-full-width {
  margin-top: 1.6rem;
}

.capture-media-grid img {
  width: 100%;
  height: auto;
}

.project-thumb {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section + .section {
  padding-top: 4rem;
}

@media (max-width: 768px) {
  .section + .section {
    padding-top: 3rem;
  }
}

.mission-card + .mission-card {
  margin-top: 2.4rem;
}

.mission-card h4,
.mission-card h5,
.rnd-item h4,
.rnd-item h5 {
  background: none;
  color: var(--text-color);
}

[data-theme="light"] .mission-card h4,
[data-theme="light"] .mission-card h5,
[data-theme="light"] .rnd-item h4,
[data-theme="light"] .rnd-item h5 {
  color: var(--text-color);
}

@media (max-width: 900px) {
  .cover-overlay-content {
    display: none;
  }
}

.page-intro {
  text-align: center;
  max-width: 760px;
  margin: 1.6rem auto 0;
  font-size: 1.6rem;
  line-height: 1.8;
}

.mission-card video,
.capture-media-grid video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.mission-card .caption {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  line-height: 1.6;
  opacity: 0.75;
}

.mission-card-caption {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
  opacity: 0.75;
}

.mission-card-caption.refined-description {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  font-size: 1.5rem;
  line-height: 1.8;
  opacity: 0.8;
}

[data-theme="light"] .mission-card-caption,
[data-theme="light"] .mission-card-caption.refined-description {
  color: rgba(44, 62, 80, 0.8);
}

.justify-text {
  text-align: justify;
}

.media-narrow {
  max-width: 75%;
  margin: 0 auto 2rem;
  display: block;
}

.hero-media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  margin-bottom: 2.8rem;
}

.media-full {
  width: 100%;
  height: auto;
  display: block;
}

.media-centered {
  display: block;
  margin: 0 auto;
}

.media-centered-75 {
  max-width: 75%;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.media-bottom-gap {
  margin-bottom: 2rem;
}

.text-spacer {
  margin-top: 2rem;
}

.allegory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .allegory-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.embed-responsive {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
}

.embed-responsive iframe,
.embed-responsive__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cover-offset-top {
  padding-top: 50px;
}

.overlay-subtitle {
  text-decoration: underline;
  margin-bottom: 2rem;
  display: inline-block;
  color: inherit;
}

.row-spaced {
  margin-top: 3rem;
}

.row-centered {
  display: flex;
  justify-content: center;
}

.text-muted-block {
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.cover-static {
  margin-bottom: 0;
  padding: 0;
  min-height: auto;
}

/* Contact Page Styles */
.contact-page {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h1 {
  font-size: 4rem;
  color: var(--text-color);
  font-weight: 300;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
  align-items: flex-start;
  max-width: 500px;
  margin: 0 auto;
}

.contact-email,
.contact-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-email a,
.contact-social a {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.contact-email a:hover,
.contact-social a:hover {
  color: var(--accent-color);
}

.contact-email i,
.contact-social i {
  font-size: 2.5rem;
  width: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-header h1 {
    font-size: 5rem;
  }
}

@media (max-width: 768px) {
  .contact-header h1 {
    font-size: 3rem;
  }
}

