/* Define CSS Variables for Consistent Styling*/
:root {
    --logo-pop-scale: 1.1;
    --glow-color: rgba(255, 0, 0, 0.8);
    --primary-font: 'Orbitron', sans-serif;
    --secondary-font: 'Rajdhani', sans-serif;
    --section-padding: 1rem;
    --title-top: 85vh; /* Adjust for top spacing */
    --title-left: 5vw; /* Adjust for left spacing */
    --base-bg-color: #000;
    
    /* Animated Image Positioning Variables - Easy to adjust! */
    --home-image-size: clamp(400px, 35vw, 800px);
    --about-image-size: 54vw;
    --home-bottom-offset: -6%;
    --about-bottom-offset: 0%;
    --image-right-offset: 10%;   /* Distance from right of section for home image */
    --about-image-right-offset: -5%;
    --image-z-index: 1;
    
    /* How-To-Buy Infographics (admin-tunable) */
    --htb-grid-translate-y: 0vh;      /* Move grid up/down */
    --htb-grid-gap: 10rem;            /* Spacing between cards */
    --htb-card-scale: 2.3;            /* Scale of individual cards */
    --htb-card-width: 100%;           /* Base width of the card images */

    /* Store Merchandise (admin-tunable) */
    --store-card-scale: 1;            /* Scale of store placeholder cards */
    --store-card-width: 100%;         /* Width of store placeholder cards */

    /* Store Hero (admin-tunable) */
    --store-hero-grid-scale: 1;            /* Scale of the sneak-peek grid */
    --store-hero-grid-gap: 1.35rem;        /* Gap between skeleton cards */
    --store-hero-countdown-scale: 1.35;    /* Scale of countdown cluster */
    --store-hero-padding: 1rem;            /* Padding inside hero card */
    --store-hero-scale: 0.8;               /* Overall hero scale */
    --store-hero-tx: 0vw;                  /* Hero translate X (use vw) */
    --store-hero-ty: 39vh;                 /* Hero translate Y (use vh) */
    --store-hero-grid-cols: 2;             /* Grid columns */
    --store-hero-card-scale: 0.95;         /* Per-card scale inside grid */

    /* Portrait-specific overrides (if set); CSS will fall back to global */
    --store-hero-grid-scale-portrait: 0.85;      
    --store-hero-grid-gap-portrait: 0.6rem;     
    --store-hero-countdown-scale-portrait: 0.9; 
    --store-hero-padding-portrait: 1rem;        
    --store-hero-scale-portrait: 0.95;
    --store-hero-tx-portrait: 0;  /* e.g., 0vw */
    --store-hero-ty-portrait: 0;  /* e.g., 0vh */
    --store-hero-grid-cols-portrait: 2;
    --store-hero-card-scale-portrait: 0.95;

    /* Store Notify Form (admin-tunable) */
    --store-form-max-width: 400px;
    --store-form-scale: 1;
    --store-form-font-size: 1rem;
    --store-form-input-padding: 0.75rem; /* vertical padding, horizontal fixed at 1rem below */
    --store-form-button-font-size: 1rem;
    --store-form-button-padding-y: 0.75rem;

    /* Portrait overrides for notify form */
    --store-form-max-width-portrait: 340px;
    --store-form-scale-portrait: 0.95;
    --store-form-font-size-portrait: 0.95rem;
    --store-form-input-padding-portrait: 0.65rem;
    --store-form-button-font-size-portrait: 0.95rem;
    --store-form-button-padding-y-portrait: 0.7rem;

    /* Contact (admin-tunable) */
    --contact-newsletter-scale: 0.9;
    --contact-newsletter-tx: 0vw;
    --contact-newsletter-ty: 2vh;
    --contact-newsletter-max-width: 520px;

    --contact-twitter-scale: 0.9;
    --contact-twitter-tx: 0vw;
    --contact-twitter-ty: 2vh;
    --contact-twitter-max-width: 520px;

    /* Contact portrait overrides */
    --contact-newsletter-scale-portrait: 0.85;
    --contact-newsletter-tx-portrait: 0vw;
    --contact-newsletter-ty-portrait: 0vh;
    --contact-newsletter-max-width-portrait: 460px;

    --contact-twitter-scale-portrait: 0.85;
    --contact-twitter-tx-portrait: 0vw;
    --contact-twitter-ty-portrait: 0vh;
    --contact-twitter-max-width-portrait: 460px;
}

/* General Reset and Font Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Accessibility Improvements */
/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
height: auto;
padding: 4rem 2rem 2rem 2rem; /* Increased top padding */
margin-top: 2rem; /* Added top margin */
box-sizing: border-box;
gap: 1rem;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
/* Video container styling with better fallbacks */
}

/* Enhanced focus styles for better visibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
.nav-link:focus,
.social-sidebar-item:focus {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.5);
}

/* Ensure focus is visible on dark backgrounds */
.navbar-nav .nav-link:focus,
.social-sidebar-item:focus {
  background-color: rgba(255, 255, 0, 0.2);
  border-radius: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --glow-color: rgba(255, 255, 0, 1);
  }
  
  .section-title,
  .nav-link,
  .form-control {
    color: #ffffff;
    background-color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .navbar-logo {
    animation: none !important;
  }
  
  .home-animated-image,
  .about-animated-image {
    animation: none !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}

/* Animated Play Button Styles */
.cta-derby-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 100%;
}

/* Hide play button on mobile devices */
@media (max-width: 768px) {
    .cta-derby-centered {
        display: none;
    }
}
.cta-derby-text {
    font-family: 'Orbitron', 'Rajdhani', Arial, sans-serif;
    font-size: 2.2rem;
    color: #fbbf24;
    text-shadow: 0 0 10px #f87272, 0 0 20px #0e1326;
    font-weight: bold;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
}
.play-btn-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.animated-play-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 60% 40%, #fbbf24 0%, #0e1326 80%);
    border-radius: 50%;
    box-shadow: 0 0 32px 8px rgba(255, 0, 0, 0.25), 0 0 0 6px #fbbf24;
    border: 4px solid #f87272;
    cursor: pointer;
    transition: transform 0.2s;
    animation: playPulse 1.2s infinite alternate;
    position: relative;
    outline: none;
}
.animated-play-btn:focus {
    outline: 3px solid #ffff00;
    box-shadow: 0 0 0 6px #ffff00;
}
.play-icon {
    display: block;
    width: 0;
    height: 0;
    border-left: 40px solid #fff;
    border-top: 28px solid transparent;
    border-bottom: 28px solid transparent;
    margin-left: 12px;
    filter: drop-shadow(0 0 8px #fbbf24);
    animation: playIconGlow 1.2s infinite alternate;
}
@keyframes playPulse {
    0% { transform: scale(1); box-shadow: 0 0 32px 8px rgba(255,0,0,0.25), 0 0 0 6px #fbbf24; }
    100% { transform: scale(1.12); box-shadow: 0 0 48px 16px rgba(255,0,0,0.35), 0 0 0 10px #fbbf24; }
}
@keyframes playIconGlow {
    0% { filter: drop-shadow(0 0 8px #fbbf24); }
    100% { filter: drop-shadow(0 0 18px #fbbf24); }
}

/* Navbar Styling */
.navbar {
  background-color: transparent;
  padding: 0;
}

.navbar-logo {
  width: clamp(160px, 20vw, 250px);
  animation: heartbeat 1.2s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo:hover {
  filter: drop-shadow(0 0 20px var(--glow-color));
  transform: scale(1.15);
}

/* Updated Navbar Styling with Box and Glow Effects - Fixed Spacing */
.navbar-nav {
  padding: 8px 15px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item {
  position: relative;
  margin: 0 5px;
}

.navbar-nav .nav-link {
  font-family: var(--primary-font);
  font-size: 1.2em;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 12px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.4);
  display: block;
}

.navbar-nav .nav-link:hover {
  color: black !important;
  background-color: rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 0 10px var(--glow-color));
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--glow-color);
}

/* Better separator approach */
.navbar-nav .nav-item:not(:last-child)::after {
  display: none; /* Remove the previous separator style */
}

/* Add separator as border instead */
.navbar-nav .nav-item:not(:last-child) {
  border-right: 2px solid var(--glow-color);
  margin-right: 10px;
  padding-right: 5px;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 991.98px) {
  .navbar-nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    flex-direction: column;
    width: 80%;
  }
  
  .navbar-nav .nav-link {
    margin: 3px 0;
    text-align: center;
    width: 100%;
  }
  
  /* Change separator to horizontal for mobile */
  .navbar-nav .nav-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--glow-color);
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 5px;
    margin-bottom: 5px;
  }
}

/* Mobile Menu Size Adjustments */
@media (max-width: 991.98px) {
  /* Make navbar take less vertical space */
  .navbar-collapse {
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Reduce font size for mobile menu */
  .navbar-nav .nav-link {
    font-size: 1em;
    padding: 4px 8px;
    margin: 2px 0;
  }
  
  /* Reduce padding in container */
  .navbar-nav {
    padding: 5px;
  }
  
  /* Reduce space between items */
  .navbar-nav .nav-item {
    margin-bottom: 2px;
  }
  
  /* Smaller padding for the last item */
  .navbar-nav .nav-item:last-child {
    margin-bottom: 0;
  }
  
  /* Reduce space for separator */
  .navbar-nav .nav-item:not(:last-child) {
    padding-bottom: 2px;
    margin-bottom: 2px;
  }
}

.navbar-nav .nav-link:not(:last-child)::after {
  content: ' / ';
  color: #5e1b45;
  margin-left: 10px;
}

/* Section Base Class */
.section-base {
position: relative;
height: 100vh;
overflow: hidden;
padding: var(--section-padding);
display: flex;
align-items: center;
justify-content: center;
color: white;
}

/* General Content Container */
.content {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
width: 100%;
height: auto;
padding: 4rem 2rem 2rem 2rem; /* Increased top padding */
margin-top: 2rem; /* Added top margin */
box-sizing: border-box;
gap: 1rem;
}

/* Video container styling with better fallbacks */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  will-change: transform; /* Optimize for performance */
  background-color: #000; /* Fallback for the video element itself */
}

/* Home section specific fallback */
#home.video-error, 
#home.video-playback-issue {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('resources/home-background-poster.jpg');
  background-size: cover;
  background-position: center;
}

/* Media section specific fallback */
#media.video-error,
#media.video-playback-issue {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('resources/media-background-poster.jpg');
  background-size: cover;
  background-position: center;
}

/* About section specific fallback */
#about.video-error,
#about.video-playback-issue {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('resources/about-background-poster.jpg');
  background-size: cover;
  background-position: center;
}

/* How to buy section specific fallback */
#how-to-buy.video-error,
#how-to-buy.video-playback-issue {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('resources/how-to-buy-background-poster.jpg');
  background-size: cover;
  background-position: center;
}

/* Tokenomics section specific fallback */
#tokenomics.video-error,
#tokenomics.video-playback-issue {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('resources/tokenomics-background-poster.jpg');
  background-size: cover;
  background-position: center;
}

/* Contact section specific fallback */
#contact.video-error,
#contact.video-playback-issue {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('resources/contact-background-poster.jpg');
  background-size: cover;
  background-position: center;
}

/* Video states */
.video-active .background-video {
  opacity: 1;
}

.video-playback-issue .background-video {
  opacity: 0.3; /* Reduce opacity but don't hide completely */
}

.video-error .background-video {
    display: none; /* Hide video on complete failure */
}

@media (max-width: 700px) {
  .content {
    padding: 0.1rem
  }
}

/* Section Titles */
.section-title {
  position: absolute;
  bottom: 0;
  left: var(--title-left);
  font-family: var(--primary-font);
  font-size: clamp(2rem, 4vw + 1rem, 6rem);
  color: white;
  letter-spacing: 3px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.section-title:hover {
  animation: flicker 0.15s infinite alternate;
  color: black;
}

/* Video Background */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Home Section Overlay Image - Section-Specific Positioning */
.home-animated-image {
  position: absolute; /* Back to absolute but within the home section */
  bottom: var(--home-bottom-offset); /* Use home-specific positioning */
  right: var(--image-right-offset);
  width: var(--home-image-size);
  height: auto;
  z-index: var(--image-z-index);
  pointer-events: none; /* Prevents interaction issues */
  opacity: 0;
  transform: translateX(100%); /* Start off-screen to the right */
  animation: slideInReliable 1.5s ease-out forwards, floatReliable 3s infinite ease-in-out 2.5s;
}

/* Responsive adjustments for both images */
@media (max-width: 1440px) {
  :root {
    --home-image-size: clamp(350px, 30vw, 700px);
    --home-bottom-offset: -6%;
  }
}

@media (max-width: 1200px) {
  :root {
    --home-image-size: clamp(300px, 28vw, 600px);
    --home-bottom-offset: -6%;
    --image-right-offset: 5%;
  }
}

@media (max-width: 768px) {
  :root {
    --home-image-size: clamp(320px, 50vw, 500px); /* Larger on tablets - increased from 45vw */
    --home-bottom-offset: -6%;
    --image-right-offset: 2%;
  }
}

@media (max-width: 480px) {
  :root {
    --home-image-size: clamp(300px, 55vw, 400px); /* Much larger on mobile - increased from 50vw */
    --home-bottom-offset: -6%;
    --about-bottom-offset: -4%;
    --image-right-offset: 1%;
  }
}
  /* About Section Overlay Image - Section-Specific Positioning */
  .about-animated-image {
    position: absolute; /* Back to absolute but within the about section */
    bottom: var(--about-bottom-offset); /* Use about-specific positioning */
    right: var(--about-image-right-offset); /* Use about-specific right offset */
    width: var(--about-image-size);
    height: auto;
    z-index: var(--image-z-index);
    pointer-events: none; /* Prevents interaction issues */
    opacity: 0;
    transform: translateX(100%); /* Start off-screen to the right */
    animation: slideInReliable 1.5s ease-out forwards, floatReliable 3s infinite ease-in-out 2.5s;
  }

  /* Responsive Video Wrapper */
.responsive-video-wrapper {
  position: relative;
  width: 80vw; /* Width relative to viewport width */
  height: 45vw; 
  max-width: 100%; /* Prevents the video from getting too large */
  max-height: 60vh; /* Limits the video height to 60% of viewport height */
  margin: 0 auto; /* Center the video horizontally */
}

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

/* Centered Image Wrapper */
.image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: auto;
  padding: 1vw;
}

/* Infographic Grid */
.infographic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Start with 4 columns for wide screens */
    gap: var(--htb-grid-gap, 2rem);
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    transform: translateY(var(--htb-grid-translate-y, 0));
}

.infographic {
    width: var(--htb-card-width, 90%);
    min-width: 160px;
    max-width: 600px;
    object-fit: contain;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(var(--htb-card-scale, 1));
    transform-origin: center center;
}

.infographic:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--glow-color);
}

/* Responsive Grid for Smaller Screens */
@media (max-width: 1200px) {
    .infographic-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2x2 grid */
        gap: 2rem;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .infographic {
        width: 90%;
        min-width: 100px;
    }
    
    .how-to-buy .container-fluid {
        width: 90%;
        margin: 0 auto;
    }

    .how-to-buy .content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .infographic {
        width: 90%;
        min-width: 100px;
    }
    .infographic-grid {
        gap: 1rem;
    }

}
.contract-address {
  position: absolute;
  bottom: -1rem;
  font-family: var(--primary-font);
  font-size: clamp(0.7rem, 1.2vw, 1.5rem);
  color: white;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  border-radius: 8px;
  width: auto;
  max-width: 80vw;
  overflow-wrap: break-word;
  margin-top: 1rem;
}


/* Infographic Styling */
.tokenomics-infographic {
  position: relative;
  width: 55vw;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .tokenomics-infographic {
      width: 80vw;
  }
}

@media (max-width: 768px) {
  .tokenomics-infographic {
      width: 95vw;
  }
}

/* Contact Details Styling */
.contact-details {
  text-align: center;
  color: white;
  font-family: var(--secondary-font);
  margin-top: 5%;
  padding: 2rem;
}

.contact-details p {
  font-size: clamp(1rem, 1.5vw, 1.8rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Fixed Social Sidebar Styling */
.social-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.social-sidebar-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-sidebar-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-sidebar-item:hover {
  filter: drop-shadow(0 0 10px var(--glow-color));
  transform: scale(1.2);
}

.social-sidebar .social-icon {
  width: 50px;
  height: 50px;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .social-sidebar {
      right: 10px;
  }
  
  .social-sidebar .social-icon {
      width: 40px;
      height: 40px;
  }
  
  .social-sidebar-icons {
      gap: 15px;
  }
}

/* For very small screens, move to bottom or hide */
@media (max-width: 576px) {
  .social-sidebar {
      right: 10px;
      padding: 8px;
  }
  
  .social-sidebar-icons {
      gap: 12px;
  }
  
  .social-sidebar .social-icon {
      width: 35px;
      height: 35px;
  }
}

/* Ticker Tape Styling */
.ticker-tape {
  position: absolute;
  top: 0;
  width: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 5;
  padding: 5px 0;
  white-space: nowrap;
}

.ticker-tape p {
  display: inline-block;
  font-family: var(--primary-font);
  font-size: 1.5em;
  color: #ff0000;
  animation: tickerScroll 30s linear infinite;  /* Increased duration */
  padding-left: 100%;  /* Start off-screen */
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  20%, 60% { transform: scale(0.8); }
}

@keyframes flicker {
  0%, 100% {
      text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 174, 0, 0.8), 0 0 30px rgba(255, 255, 255, 1);
  }
  50% {
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.6);
  }
}

/* Improved reliable animations using transform for better performance */
@keyframes slideInReliable {
  0% { 
    transform: translateX(100%);
    opacity: 0;
  }
  100% { 
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes floatReliable {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(0) translateY(-15px); }
}

/* Legacy animations - keeping for compatibility */
@keyframes slideIn {
  0% { transform: translate(150%, -50%); opacity: 0; }
  100% { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-25px); }
}

.newsletter-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--contact-newsletter-max-width, 520px);
    transform: translate(var(--contact-newsletter-tx, 0), var(--contact-newsletter-ty, 0)) scale(var(--contact-newsletter-scale, 1));
    transform-origin: center center;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-container h3 {
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-bottom: 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}



.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-status.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.form-status.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Newsletter and Twitter Feed Responsive Styling */
@media (max-width: 768px) {
    .newsletter-container {
        height: 200px;  /* Reduced height on mobile */
        margin-bottom: 1rem;
    }

    .newsletter-container {
        padding: 1rem;
    }

    .newsletter-container h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

/* Enhanced mobile optimization for social icons */
@media (max-width: 768px) {
    .social-icon {
        max-width: 40px;
    }
    
    .social-icons-grid {
        margin-top: 1rem;
    }
    
    .social-icons-grid .row {
        margin: 0 auto;
        max-width: 300px;
    }
}

/* Media Carousel - Flip Book Style */
.media-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.carousel-book {
    perspective: 1200px;
    transform-style: preserve-3d;
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.95));
    border-radius: 15px;
    transform-origin: left center;
    transition: transform 0.6s ease, opacity 0.6s ease, visibility 0.6s ease;
    backface-visibility: hidden;
    z-index: 1;
    border: 2px solid rgba(255, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-page.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.carousel-page.flipped {
    transform: translateX(-100%);
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-content {
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.page-content h3 {
    font-family: var(--primary-font);
    font-size: 2rem;
    color: #ff0000;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.media-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: center;
    justify-items: center;
}

.how-to-buy-steps {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 0, 0, 0.2);
}

.gallery-image {
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

/* Modal/Lightbox for Image Expansion */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.media-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-family: var(--secondary-font);
}

/* Preview Gallery Styles */
.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.preview-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(255, 0, 0, 0.2);
    overflow: hidden;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

/* Preview Navigation */
.preview-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.preview-nav-btn:hover,
.preview-nav-btn:focus {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.preview-info {
    text-align: center;
    color: #fff;
    min-width: 200px;
}

#mediaCounter {
    font-family: var(--secondary-font);
    font-size: 1.1rem;
    color: #ff0000;
    font-weight: bold;
}

#mediaTitle {
    font-family: var(--primary-font);
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Thumbnail Strip */
.thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.5rem;
    scroll-behavior: smooth;
}

.thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail.active {
    border-color: #ff0000;
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OneDrive Integration Styles */
.onedrive-container {
    margin-top: 2rem;
    width: 100%;
}

.onedrive-placeholder {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px dashed rgba(255, 0, 0, 0.3);
    text-align: center;
    color: #fff;
}

.onedrive-placeholder h4 {
    color: #ff0000;
    margin-bottom: 1rem;
}

.onedrive-placeholder p {
    margin: 0;
    opacity: 0.8;
}

/* Admin Controls */
.admin-controls {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
    color: #fff;
}

.admin-controls h4 {
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.admin-controls .btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.admin-controls .btn:hover {
    background: rgba(255, 0, 0, 0.4);
}

/* Carousel Navigation */
.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.carousel-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.carousel-nav-btn:hover,
.carousel-nav-btn:focus {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.carousel-nav-btn[aria-selected="true"] {
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.1));
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* Carousel Arrow Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
}

.carousel-arrow-prev {
    left: -25px;
}

.carousel-arrow-next {
    right: -25px;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* Responsive Design for Carousel and Preview Gallery */
@media (max-width: 768px) {
    .media-carousel-container {
        padding: 1rem;
    }
    
    .carousel-book {
        min-height: 400px;
    }
    
    .carousel-page {
        min-height: 400px;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
    
    .page-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Preview Gallery Mobile */
    .preview-container {
        gap: 1rem;
    }
    
    .preview-image-wrapper {
        max-width: 100%;
        min-height: 200px;
    }
    
    .preview-image {
        max-height: 250px;
    }
    
    .preview-navigation {
        gap: 1rem;
        flex-direction: column;
    }
    
    .preview-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .preview-info {
        order: -1;
        min-width: auto;
    }
    
    #mediaTitle {
        font-size: 0.9rem;
    }
    
    .thumbnail-strip {
        gap: 0.3rem;
        padding: 0.3rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .carousel-navigation {
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .carousel-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow-prev {
        left: -20px;
    }
    
    .carousel-arrow-next {
        right: -20px;
    }
}

@media (max-width: 576px) {
    .how-to-buy-steps {
        grid-template-columns: 1fr;
    }
    
    .carousel-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-nav-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Additional spacing control for mobile */
@media (max-width: 576px) {
    .newsletter-container {
        padding: 1rem;
    }

    .newsletter-container h3 {
        font-size: 1.5rem;
    }
}

.about-infographic {
    position: relative;
    width: 55vw;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .about-infographic {
        width: 80vw;
    }
}

@media (max-width: 768px) {
    .about-infographic {
        width: 95vw;
    }
}

.tokenomics-logo {
    width: 55vw;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.tokenomics-infographic {
    width: 55vw;
    max-width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    .tokenomics-logo,
    .tokenomics-infographic {
        width: 80vw;
    }
}

@media (max-width: 768px) {
    .tokenomics-logo,
    .tokenomics-infographic {
        width: 95vw;
    }
}

/* Store Section Styles */
.store {
    background-color: #0d0d0d;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 120px; /* Account for fixed header */
    overflow-y: auto; /* Allow scrolling if content is too tall */
    scroll-behavior: smooth;
}

.store .content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    z-index: 1;
}

.store-coming-soon {
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.store-subtitle {
    color: #ff0000;
    font-family: var(--primary-font);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.store-description {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Merchandise Preview */
.merchandise-preview {
    margin: 1.5rem 0;
}

.merch-item {
    text-align: center;
    color: #fff;
}

.merch-placeholder {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    aspect-ratio: 1;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    width: var(--store-card-width, 100%);
    transform: scale(var(--store-card-scale, 0.7));
    transform-origin: center center;
}

.merch-placeholder:hover {
    transform: scale(calc(var(--store-card-scale, 1) * 1.05));
}

.merch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) opacity(0.7);
    transition: filter 0.3s ease;
}

.merch-placeholder:hover .merch-image {
    filter: grayscale(0%) opacity(1);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.coming-soon-overlay span {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-family: var(--secondary-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.merch-item h4 {
    color: #ff0000;
    font-family: var(--primary-font);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.merch-item p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

/* Store Carousel - sweeping lift to right */
.store-carousel {
    position: relative;
    margin: 3rem 0; /* extra space above and below */
}

.store-carousel .open-soon-banner {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(-12deg);
    z-index: 5;
    pointer-events: none;
}

.store-carousel .open-soon-banner span {
    display: inline-block;
    background: linear-gradient(45deg, rgba(255,0,0,.95), rgba(204,0,0,.95));
    color: #fff;
    padding: .35rem 1rem;
    border: 2px dashed rgba(255,255,255,.85);
    border-radius: 8px;
    font-family: var(--secondary-font);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(255,0,0,.35);
}

.store-carousel .carousel-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: min(1100px, 92vw); /* center and constrain for desktop */
    margin: 0 auto;
    padding: 2rem 0; /* more breathing room for banner */
}

.store-carousel .carousel-track {
    display: inline-flex;
    gap: 2rem;
    will-change: transform;
    transform: translate3d(0,0,0) rotate(-2deg);
    animation: store-scroll 24s linear infinite;
}

.store-carousel:hover .carousel-track {
    animation-play-state: paused; /* pause on hover */
}

.store-carousel .store-card {
    min-width: clamp(180px, 22vw, 300px); /* smaller default size */
    flex: 0 0 auto;
    /* base vertical lift per-card, rising to the right */
    --base-ty: calc(var(--i, 0) * var(--lift-step, 6px) * -1);
    transform: translateY(var(--base-ty));
    transition: transform .35s ease, filter .35s ease;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
}

.store-carousel .store-card:hover { transform: translateY(calc(var(--base-ty) - 2px)) scale(1.03); }

.store-card .store-card-meta { text-align: center; margin-top: .5rem; }
.store-card .store-card-meta h4 { margin-bottom: .25rem; }
.store-card .store-card-meta p { margin: 0; font-size: .9rem; color: #ccc; }

@keyframes store-scroll {
    from { transform: translate3d(0,0,0) rotate(-2deg); }
    to { transform: translate3d(-50%,0,0) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .store-carousel .carousel-track { animation: none !important; }
}

/* Store Notification Form */
.store-notify-container {
    background: rgba(255, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    margin-top: 1.5rem;
    position: relative;
    z-index: 10; /* Ensure form is above other elements */
}

.store-notify-container h4 {
    color: #ff0000;
    font-family: var(--primary-font);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.store-notify-container p {
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.store-notify-form {
    max-width: var(--store-form-max-width, 400px);
    margin: 0 auto;
    transform: scale(var(--store-form-scale, 1));
    transform-origin: left top;
}

.store-notify-form .form-control {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #fff;
    padding: var(--store-form-input-padding, 0.75rem) 1rem;
    border-radius: 25px;
    font-size: var(--store-form-font-size, 1rem);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

.store-notify-form .form-control:focus {
    background: rgba(0, 0, 0, 0.9);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    outline: none;
}

.store-notify-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.store-notify-form .btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: none;
    color: white;
    padding: var(--store-form-button-padding-y, 0.75rem) 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-family: var(--secondary-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: var(--store-form-button-font-size, 1rem);
    position: relative;
    z-index: 12;
    cursor: pointer;
}

.store-notify-form .btn:hover,
.store-notify-form .btn:focus {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .store {
        padding-top: 100px; /* Reduced for mobile */
    }
    
    .store-subtitle {
        font-size: 1.8rem;
    }
    
    .store-description {
        font-size: 0.9rem;
    }
    
    .store-coming-soon,
    .store-notify-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .merchandise-preview {
        margin: 1rem 0;
    }
    
    .merch-item h4 {
        font-size: 1rem;
    }
    
    .merch-item p {
        font-size: 0.8rem;
    }
    
    .store-notify-container h4 {
        font-size: 1.3rem;
    }
    
    .store-notify-container p {
        font-size: 0.8rem;
    }
    .store-carousel .open-soon-banner span {
        padding: .3rem .75rem;
        font-size: .9rem;
    }
    .store-carousel .carousel-track {
        gap: 1rem;
        animation-duration: 20s;
    }
    

/* Desktop landscape tuning */
@media (min-width: 1200px) and (orientation: landscape) {
    .store-carousel .carousel-track { transform: translate3d(0,0,0) rotate(-1.2deg); gap: 1.5rem; }
    .store-carousel .store-card { min-width: clamp(200px, 18vw, 260px); }
}

/* Tablet and below */
@media (max-width: 991.98px) {
    .store-carousel .store-card { min-width: clamp(160px, 40vw, 240px); }
}

/* Phones */
@media (max-width: 576px) {
    .store-carousel .store-card { min-width: clamp(140px, 70vw, 200px); }
    .store-carousel .carousel-track { gap: 0.75rem; }
}

/* Orientation-based tweaks */
@media (orientation: portrait) {
    .store-carousel .carousel-track { transform: translate3d(0,0,0) rotate(-1.5deg); }
}
    /* Ensure button is easily tappable on mobile */
    .store-notify-form .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 50px;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .store {
        padding-top: 90px;
        min-height: auto; /* Allow natural height */
    }
    
    .store .content {
        padding-top: 1rem;
        padding-bottom: 3rem; /* Extra bottom padding for scrolling */
    }
    
    .store-subtitle {
        font-size: 1.5rem;
    }
    
    .merchandise-preview .row {
        margin: 0 -5px; /* Reduce gutters */
    }
    
    .merchandise-preview .col-md-4 {
        padding: 0 5px;
        margin-bottom: 1rem;
    }
}

/* Twitter/X Feed Integration Styles */
.twitter-feed-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: var(--contact-twitter-max-width, 520px);
    transform: translate(var(--contact-twitter-tx, 0), var(--contact-twitter-ty, 0)) scale(var(--contact-twitter-scale, 1));
    transform-origin: center center;
    margin-left: auto;
    margin-right: auto;
}

.twitter-feed-container h3 {
    color: #ff0000;
    font-family: var(--primary-font);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.twitter-widget-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Twitter timeline customization */
.twitter-timeline {
    border-radius: 10px !important;
    overflow: hidden;
    flex: 1;
}

/* Fallback content styling */
.twitter-fallback {
    background: rgba(255, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed rgba(255, 0, 0, 0.3);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.twitter-fallback p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.twitter-fallback .btn {
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.twitter-fallback .btn:hover {
    background: linear-gradient(45deg, #0d8bd9, #0a7bc4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.3);
    text-decoration: none;
    color: white;
}

/* Mobile responsiveness for Twitter feed */
@media (max-width: 768px) {
    .twitter-feed-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .twitter-feed-container h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .twitter-timeline {
        height: 350px !important;
    }
    
    .twitter-fallback {
        height: 350px;
        padding: 1.5rem;
    }
    
    .twitter-fallback p {
        font-size: 1rem;
    }
}

/* Custom styling to match Dr Destruction theme */
@media (max-width: 991px) {
    .contact .row .col-md-6 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .twitter-feed-container {
        margin-top: 2rem;
    }
}

/* Game Navigation Link Styling */
.nav-link-game {
    background: linear-gradient(135deg, #f87272 0%, #fbbf24 100%) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    margin: 0 5px !important;
    color: #0e1326 !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(248, 114, 114, 0.3) !important;
}

.nav-link-game:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f87272 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(248, 114, 114, 0.5) !important;
    color: #0e1326 !important;
}

/* Ensure game link shows properly on mobile */
@media (max-width: 768px) {
    .nav-link-game {
        margin: 5px 0 !important;
        text-align: center !important;
    }
}

/* Portrait orientation overrides for How-To-Buy */
@media (orientation: portrait) {
    :root {
        --htb-grid-translate-y: 0vh;
        --htb-grid-gap: 13rem;
        --htb-card-scale: 1.3;
        --htb-card-width: 100%;
    }
}

/* Strongly reduce scale on smaller breakpoints */
@media (max-width: 991.98px) {
    :root { --store-card-scale: 0.6; }
}
@media (max-width: 576px) {
    :root { --store-card-scale: 0.5; }
}
@media (min-width: 1200px) and (orientation: landscape) {
    :root { --store-card-scale: 0.65; }
}

/* ==============================
     Store: Fresh Placeholder Hero
     ============================== */
.store-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(0,0,0,0.66), rgba(40,0,0,0.45));
    border: 2px solid rgba(255, 0, 0, 0.25);
    border-radius: 16px;
    padding: var(--store-hero-padding, clamp(1rem, 3vw, 2rem));
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    transform: translate(var(--store-hero-tx, 0), var(--store-hero-ty, 0)) scale(var(--store-hero-scale, 1));
    transform-origin: top left;
}

.store-hero .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ribbon-badge {
    align-self: flex-start;
    background: linear-gradient(45deg, rgba(255,0,0,.95), rgba(204,0,0,.95));
    color: #fff;
    padding: .35rem .9rem;
    border: 2px dashed rgba(255,255,255,.9);
    border-radius: 8px;
    font-family: var(--secondary-font);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(255,0,0,.35);
    transform: rotate(-3deg);
    margin-bottom: .75rem;
}

.store-title {
    font-family: var(--primary-font);
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    margin: .25rem 0 .5rem 0;
    text-shadow: 0 0 18px rgba(255,0,0,.35);
}

.store-tagline {
    color: #ddd;
    opacity: .9;
    margin-bottom: 1rem;
}

.launch-countdown {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: .5rem 0 1.25rem 0;
    transform: scale(var(--store-hero-countdown-scale, 1));
    transform-origin: left top;
}
.launch-countdown .count-block {
    text-align: center;
    min-width: 64px;
    padding: .3rem .4rem;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,0,0,.25);
    border-radius: 10px;
}
.launch-countdown .num {
    font-family: var(--primary-font);
    font-size: 1.4rem;
    line-height: 1;
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255,0,0,.35);
}
.launch-countdown .label {
    font-size: .72rem;
    color: #bbb;
    margin-top: .15rem;
}
.launch-countdown .sep {
    color: #ff4d4d;
    opacity: .7;
    font-weight: 700;
}

.privacy-note {
    color: #aaa;
    font-size: .8rem;
    margin-top: .4rem;
}

.store-hero .hero-right { display: grid; }
.sneak-peek-grid {
    display: grid;
    grid-template-columns: repeat(var(--store-hero-grid-cols, 3), 1fr);
    gap: var(--store-hero-grid-gap, .75rem);
    align-content: center;
    transform: scale(var(--store-hero-grid-scale, 1));
    transform-origin: right top;
}
.sneak-card {
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,0,0,.15);
    border-radius: 12px;
    padding: .6rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transform: scale(var(--store-hero-card-scale, 1));
    transform-origin: center;
}
.skeleton-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}
.skeleton-thumb.tall { aspect-ratio: 3/4; }
.skeleton-line {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}
.skeleton-line.short { width: 60%; }

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

/* Responsive tweaks for placeholder hero */
@media (max-width: 991.98px) {
    .store-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
    .sneak-peek-grid { grid-template-columns: repeat(3, 1fr); }
    .launch-countdown .count-block { min-width: 56px; }
}

@media (max-width: 576px) {
    .sneak-peek-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Portrait: prefer smaller scale and tighter spacing by default */
@media (orientation: portrait) {
    :root {
        --store-hero-grid-scale: var(--store-hero-grid-scale-portrait, 0.85);
        --store-hero-grid-gap: var(--store-hero-grid-gap-portrait, 0.6rem);
        --store-hero-countdown-scale: var(--store-hero-countdown-scale-portrait, 0.9);
        --store-hero-padding: var(--store-hero-padding-portrait, 1rem);
    --store-hero-scale: var(--store-hero-scale-portrait, 0.95);
    --store-hero-tx: var(--store-hero-tx-portrait, 0);
    --store-hero-ty: var(--store-hero-ty-portrait, 0);
    --store-hero-grid-cols: var(--store-hero-grid-cols-portrait, 2);
    --store-hero-card-scale: var(--store-hero-card-scale-portrait, 0.95);

    /* Notify form portrait defaults */
    --store-form-max-width: var(--store-form-max-width-portrait, 340px);
    --store-form-scale: var(--store-form-scale-portrait, 0.95);
    --store-form-font-size: var(--store-form-font-size-portrait, 0.95rem);
    --store-form-input-padding: var(--store-form-input-padding-portrait, 0.65rem);
    --store-form-button-font-size: var(--store-form-button-font-size-portrait, 0.95rem);
    --store-form-button-padding-y: var(--store-form-button-padding-y-portrait, 0.7rem);
    
    /* Contact portrait defaults */
    --contact-newsletter-scale: var(--contact-newsletter-scale-portrait, 0.85);
    --contact-newsletter-tx: var(--contact-newsletter-tx-portrait, 0vw);
    --contact-newsletter-ty: var(--contact-newsletter-ty-portrait, 0vh);
    --contact-newsletter-max-width: var(--contact-newsletter-max-width-portrait, 460px);

    --contact-twitter-scale: var(--contact-twitter-scale-portrait, 0.85);
    --contact-twitter-tx: var(--contact-twitter-tx-portrait, 0vw);
    --contact-twitter-ty: var(--contact-twitter-ty-portrait, 0vh);
    --contact-twitter-max-width: var(--contact-twitter-max-width-portrait, 460px);
    }
}

/* Small screens: width < 700px overrides */
@media (max-width: 700px) {
    :root {
        /* Contact: Twitter Block */
        --contact-twitter-scale: 0.85;
        --contact-twitter-tx: 0vw;
        --contact-twitter-ty: 2vh;
        --contact-twitter-max-width: 460px;

        /* Contact: Newsletter Block */
        --contact-newsletter-scale: 1;
        --contact-newsletter-tx: 0vw;
        --contact-newsletter-ty: 12.5vh;
        --contact-newsletter-max-width: 460px;
    }
}
