
/* Stage */
.design_galla_stage {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  perspective: var(--perspective);
/*  overscroll-behavior: none;
*/  -webkit-user-select: none;
  user-select: none;
}

/* Loader overlay */
.design_galla_loader {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity 0.2s var(--ease), visibility 0.2s linear;
}
.design_galla_loader--hide {
  opacity: 0;
  visibility: hidden;
}
.design_galla_loader_content {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 220px;
}
.design_galla_loader_ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #ddd;
  border-top-color: #333;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Background canvas (moving gradient) */
#design_galla_styles_bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(24px) saturate(1.05);
  pointer-events: none;
}

/* Only block native scrolling/gestures in carousel mode */
.design_galla_stage.carousel-mode {
  touch-action: pan-y; /* Changed from 'none' to allow vertical page scrolling */
  cursor: grab;
}
.design_galla_stage.carousel-mode.dragging {
  cursor: grabbing;
}

/* Cards container */
.design_galla_cards {
  position: absolute;
  inset: 0;
  z-index: 10;
  transform-style: preserve-3d;
}

/* Card */
.design_galla_card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(35vw, 480px);
  aspect-ratio: 4/5;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, filter;
  transform-origin: center;
  contain: layout paint; /* reduce layout/paint scope for perf */
}

.design_galla_card__img {
  border-radius: 15px;
  opacity: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* ==========================================================================
   Floating Page Modal (Iframe Overlay)
   ========================================================================== */
.floating-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Glassmorphism background */
.floating-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.floating-modal-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 1400px;
  background: var(--color-bg, #ffffff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-modal.active .floating-modal-content {
  transform: translateY(0) scale(1);
}

.floating-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.floating-modal-close:hover {
  background: rgba(255, 51, 51, 0.9);
  transform: scale(1.1);
}

#floating-page-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .design_galla_card {
    transition: none !important;
    animation: none !important;
  }
}
/* ==========================================================================
   Mobile Overrides for Carousel Cards
   ========================================================================== */
@media (max-width: 768px) {
  .design_galla_card {
    width: 60vw; /* Dramatically increases the card size on mobile */
  }
}

/* ==========================================================================
   YouTube Overlay Hover Effect
   ========================================================================== */
/*.design_galla_card__yt-overlay {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; 
  height: 130px; 
  background-color: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 39px; 
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease; 
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
  

  opacity: 0; 
  visibility: hidden; 
  pointer-events: none;
}

.design_galla_card:hover .design_galla_card__yt-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.design_galla_card__yt-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1); 
  background-color: rgba(0, 0, 0, 0.95);
  color: #ff3333;
}


.design_galla_card__yt-overlay i {
  font-size: 60px !important; 
}*/

/*icon bar*/
/* Container positioned where the yellow rectangle is */
.glass-icon-bar {
    position: fixed;
    top: 80%; 
    left: 50%;
    transform: translateX(-50%);
    
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 35px;
    width: fit-content;
    max-width: 90%;
    z-index: 305;

    /* Aerodynamic Glass Effect */
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    
    border: 1px solid rgba(212, 175, 55, 0.3); 
    border-top: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 50px;
    
    box-shadow: 
        0 10px 40px 0 rgba(0, 0, 0, 0.15),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.glass-icon-bar a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Master style for all icons - applies the gold pattern using CSS masks */
.brand-icon {
    display: inline-block;
    width: 34px; /* Size of the icons */
    height: 34px;
    
    /* Your Gold Gradient */
    background: linear-gradient(135deg, #D46D6D 0%, #DDC59B 50%, #F9D3E6 100%);
    
    /* Configures the CDN images to act as a cutout mask for the gold */
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* Hover Animation: Lifts up and glows */
.glass-icon-bar a:hover .brand-icon {
    transform: translateY(-5px) scale(1.5);
    filter: drop-shadow(0 5px 12px rgba(212, 175, 55, 0.6));
    background: linear-gradient(135deg, #6D6FD4 0%, #4BA8FF 50%, #D3F9E0 100%);
}

/* CDN Links to fetch the raw icon shapes from Simple Icons
   To change an icon later, just look up the name on simpleicons.org 
*/
.apple-music  { -webkit-mask-image: url('https://cdn.simpleicons.org/applemusic'); }
.spotify      { -webkit-mask-image: url('https://cdn.simpleicons.org/spotify'); }
.tiktok       { -webkit-mask-image: url('https://cdn.simpleicons.org/tiktok'); }
.instagram    { -webkit-mask-image: url('https://cdn.simpleicons.org/instagram'); }
.reels        { -webkit-mask-image: url('https://api.iconify.design/ph/film-strip-fill.svg'); } /* Reels uses a standard film strip */
.pandora      { -webkit-mask-image: url('https://cdn.simpleicons.org/pandora'); }
.amazon-music { -webkit-mask-image: url('https://api.iconify.design/fa6-brands/amazon.svg'); }
.tidal        { -webkit-mask-image: url('https://cdn.simpleicons.org/tidal'); }
.deezer       { -webkit-mask-image: url('https://cdn.simpleicons.org/deezer'); }
.iheartradio  { -webkit-mask-image: url('https://cdn.simpleicons.org/iheartradio'); }
.soundcloud   { -webkit-mask-image: url('https://cdn.simpleicons.org/soundcloud'); }
.pinterest    { -webkit-mask-image: url('https://cdn.simpleicons.org/pinterest'); }

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .glass-icon-bar {
        top:73%;
        gap: 20px;
        padding: 15px 20px;
        border-radius: 20px; 
        bottom: 12%;
        width: 80%;
    }
    .brand-icon {
        width: 34px;
        height: 34px;
    }
}

/* ========================================= */
/* FIX: iPad Black Edge Line & Overflow      */
/* ========================================= */

/* Prevent iOS from horizontally scrolling or scaling */
.digital-services,
.digital-services .container-fluid {
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove the negative margins pushing content off-screen */
.digital-services .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove default column padding so backgrounds touch the very edge */
.digital-services .col-lg-6,
.digital-services .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure columns properly stack to 100% width on iPad screens */
@media (max-width: 991px) {
    .digital-services .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

