/* ========================
   EMERALD THEME VARIABLES
======================== */
:root {
  --emerald-light: #34d399;
  --emerald-primary: #10b981;
  --emerald-deep: #047857;
  --emerald-dark: #064e3b;
  --emerald-bg: #022c22; /* Very deep green/black */
  --gold-accent: #fbbf24;
  --text-light: #ecfdf5;
}

body.rt-emerald-theme {
  background-color: var(--emerald-bg);
  color: var(--text-light);
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================
   DYNAMIC HERO BACKGROUND (MOBILE FIRST)
======================== */
.rt-hero {
  position: relative;
  height: 85vh; /* Slightly taller on mobile for better scroll view */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--emerald-bg);
}

.rt-hero-dynamic-bg {
  position: absolute;
  inset: -50%;
  display: flex;
  gap: 4vw; /* Wider gap on mobile */
  justify-content: center;
  align-items: center;
  transform: rotate(-8deg) scale(1.2); /* Scaled to prevent edge clipping on small screens */
  z-index: 0;
  opacity: 0.5; /* Slightly brighter so they show through the glass better */
  pointer-events: none;
}

.rt-hero-col {
  display: flex;
  flex-direction: column;
  gap: 4vw;
  width: 45vw; /* Wider columns so images are actually recognizable on a phone */
  min-width: 140px;
  will-change: transform;
}

.rt-hero-col img {
  width: 100%;
  height: 220px; /* Shorter images for mobile pacing */
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.9);
}

/* Animations remain the same */
.rt-scroll-up { animation: bgScrollUp 60s linear infinite; }
.rt-scroll-down { animation: bgScrollDown 60s linear infinite; }
@keyframes bgScrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes bgScrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

/* ========================
   HERO OVERLAYS
======================== */
.rt-hero-overlay {
  position: absolute;
  inset: 0;
  /* Very subtle edge darkening, clear in the middle */
  background: radial-gradient(circle at center, rgba(2, 44, 34, 0.1) 0%, var(--emerald-bg) 100%);
  z-index: 1;
}

.rt-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; /* Smaller glow for mobile */
  height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%);
  z-index: 2;
  animation: pulseGlow 8s infinite alternate;
}

/* ========================
   FANCY ANIMATED HERO CONTENT (MOBILE FIRST - 440px)
======================== */
.rt-hero-content {
  position: relative;
  z-index: 3;
  padding: 0 15px; /* Tight padding for 440px width */
  width: 100%;
  display: flex;
  justify-content: center;
}

.rt-hero-glass-box {
  background: rgba(2, 44, 34, 0.35); /* MUCH more transparent */
  backdrop-filter: blur(8px); /* Reduced blur so scroll is visible */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 35px 20px; /* Snug fit for mobile */
  border-radius: 20px;
  width: 100%;
  max-width: 400px; /* Caps perfectly just under 440px */
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  
  opacity: 0;
  animation: slideUpFade 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, floatBox 6s ease-in-out infinite;
}

.rt-eyebrow-container { overflow: hidden; margin-bottom: 16px; }

.rt-eyebrow-animated {
  display: inline-block;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 3px; /* Tighter for mobile */
  font-size: 9px; /* Mobile size */
  font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(4, 120, 87, 0.4); /* Slightly darker background to compensate for glass transparency */
  transform: translateY(100%);
  animation: slideUpText 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.rt-brand-title {
  margin: 10px 0 0 0;
  font-size: 34px; /* Scaled perfectly for 440px */
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.9); /* Heavy shadow to separate from background */
  letter-spacing: -2px;
  opacity: 0;
  animation: cinematiqExpandMobile 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.rt-text-shimmer {
  background: linear-gradient(to right, #ffffff 20%, var(--emerald-light) 40%, var(--gold-accent) 60%, #ffffff 80%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineText 5s linear infinite;
}

.rt-gallery-subtitle {
  font-size: 20px; /* Mobile friendly */
  font-weight: 300;
  color: var(--text-light);
  margin: 8px 0 20px 0;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

.rt-divider-animated {
  width: 0px;
  height: 2px;
  background: var(--emerald-primary);
  margin: 0 auto 20px;
  box-shadow: 0 0 10px var(--emerald-primary);
  animation: drawLineMobile 1s cubic-bezier(0.8, 0, 0.2, 1) 1.2s forwards;
}

.rt-hero-desc {
  font-size: 13px; /* Perfect reading size for 440px */
  color: #a7f3d0;
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.8s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Ensures text doesn't get lost in bright photos */
}

/* Animations */
@keyframes cinematiqExpandMobile {
  0% { opacity: 0; letter-spacing: -5px; transform: scale(0.9); }
  100% { opacity: 1; letter-spacing: 2px; transform: scale(1); } /* Safer spacing for mobile widths */
}
@keyframes drawLineMobile { 0% { width: 0; } 100% { width: 80px; } }
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes floatBox { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes slideUpText { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }
@keyframes shineText { to { background-position: 200% center; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ========================
   DESKTOP SCALE-UP (Min-Width 768px)
======================== */
@media (min-width: 768px) {
  .rt-hero { height: 75vh; }
  .rt-hero-dynamic-bg { gap: 2vw; transform: rotate(-10deg); }
  .rt-hero-col { width: 20vw; max-width: 320px; gap: 2vw; }
  .rt-hero-col img { height: 350px; }
  .rt-hero-glow { width: 600px; height: 600px; }
  
  .rt-hero-glass-box {
    padding: 60px 50px;
    max-width: 850px;
    border-radius: 30px;
  }
  .rt-eyebrow-animated { font-size: 11px; letter-spacing: 5px; }
  .rt-brand-title { font-size: 72px; animation: cinematiqExpandDesktop 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards; }
  .rt-gallery-subtitle { font-size: 32px; margin-bottom: 30px; }
  .rt-hero-desc { font-size: 18px; line-height: 1.6; }
  
  @keyframes cinematiqExpandDesktop {
    0% { opacity: 0; letter-spacing: -10px; transform: scale(0.9); }
    100% { opacity: 1; letter-spacing: 8px; transform: scale(1); }
  }
  @keyframes drawLineDesktop { 0% { width: 0; } 100% { width: 120px; } }
  .rt-divider-animated { animation-name: drawLineDesktop; margin-bottom: 30px; }
}
/* ========================
   FUTURISTIC GALLERY (MOBILE FIRST 440px)
======================== */
.rt-gallery-section {
  position: relative;
  padding: 40px 15px; /* Snug padding for 440px screens */
  background-color: var(--emerald-bg);
  min-height: 100vh;
  z-index: 2;
}

/* Deep background ambient light */
.rt-gallery-ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.rt-gallery-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

/* Glass Header */
.rt-gallery-header-glass {
  display: flex;
  flex-direction: column; /* Stacks button under text on mobile */
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(2, 44, 34, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rt-cyber-subtitle {
  color: var(--emerald-light);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.rt-gallery-header-glass h2 {
  font-size: 24px; /* Perfect for 440px */
  font-weight: 300;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 15px rgba(16,185,129,0.5);
}

/* Cyber Button */
.rt-cyber-btn {
  position: relative;
  display: inline-flex;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  overflow: hidden;
  border-radius: 4px; /* Sharper corners for futuristic look */
  transition: all 0.3s ease;
  width: 100%; /* Full width on mobile for easy tapping */
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1), 0 0 10px rgba(16, 185, 129, 0.1);
}

.rt-btn-glow {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent);
  transform: skewX(-20deg);
  animation: cyberSweep 3s infinite;
}

.rt-cyber-btn:hover, .rt-cyber-btn:active {
  background: rgba(16,185,129,0.15);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.4);
  color: #fff;
}

@keyframes cyberSweep {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

/* ========================
   HOLOGRAPHIC MASONRY GRID
======================== */
.rt-cyber-masonry {
  column-count: 2; /* 2 columns is optimal for 440px to show density */
  column-gap: 10px; /* Tight gaps for mobile */
}

.rt-holo-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  /* Glassmorphic border effect */
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glow that appears on hover/tap */
.rt-card-border {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color 0.4s;
  pointer-events: none;
  z-index: 4;
}

.rt-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rt-image {
  width: 100%;
  display: block;
  filter: brightness(0.7) contrast(1.1) saturate(0.8); /* Dark, cinematic base */
  transition: all 0.5s ease;
}

/* The scanning line animation */
.rt-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(16,185,129,0.6);
  box-shadow: 0 0 10px var(--emerald-primary);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s;
  z-index: 2;
}

/* Text Overlay (Datapad style) */
.rt-holo-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px;
  z-index: 3;
  transform: translateY(10px);
  opacity: 1; /* Keep visible on mobile so users don't have to guess */
  background: linear-gradient(to top, rgba(2, 44, 34, 0.95), rgba(2, 44, 34, 0.4), transparent);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.rt-info-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.rt-holo-info h3 {
  margin: 0 0 4px 0;
  font-size: 12px; /* Small, technical font size */
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rt-author {
  font-size: 9px;
  color: var(--emerald-primary);
  font-family: monospace; /* Gives it that raw data feel */
  letter-spacing: 0.5px;
}

/* Cyber Tag */
/* ========================
   PREMIUM GOLD CYBER BADGE
======================== */
.rt-cyber-tag {
  position: absolute;
  top: 12px; 
  left: 12px;
  
  /* Flexbox for perfect alignment */
  display: flex;
  align-items: center;
  gap: 6px;
  
  /* Deep, neutral frosted glass makes the gold pop */
  background: rgba(10, 10, 10, 0.65); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  /* Cybernetic framing with Gold/Amber Accent */
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-left: 2px solid var(--gold-accent, #fbbf24); 
  border-radius: 4px; 
  
  /* Brilliant Gold Text */
  color: var(--gold-accent, #fbbf24);
  padding: 5px 10px;
  font-size: 9px;
  font-family: monospace;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  
  z-index: 4;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* The Live Pulsing Gold Dot */
.rt-cyber-tag::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background-color: var(--gold-accent, #fbbf24);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-accent, #fbbf24);
  animation: cyberTagPulse 1.5s ease-in-out infinite;
}

@keyframes cyberTagPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- HOVER & TAP INTERACTIONS --- */
.rt-holo-card:hover, .rt-holo-card:active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.9), 0 0 20px rgba(16,185,129,0.2);
}

.rt-holo-card:hover .rt-card-border, .rt-holo-card:active .rt-card-border {
  border-color: rgba(16,185,129,0.6);
}

.rt-holo-card:hover .rt-image, .rt-holo-card:active .rt-image {
  filter: brightness(1) contrast(1) saturate(1.2); /* Colors snap to life */
}

.rt-holo-card:hover .rt-scanline, .rt-holo-card:active .rt-scanline {
  opacity: 1;
  animation: scanDown 2s linear infinite;
}

@keyframes scanDown {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(300px); } /* Adjust based on max card height */
}

/* Futuristic Reveal Animation */
.reveal {
  opacity: 0;
  transform: perspective(500px) translate3d(0, 30px, -20px) rotateX(10deg);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: perspective(500px) translate3d(0, 0, 0) rotateX(0deg);
}

/* ========================
   DESKTOP SCALE-UP (768px+)
======================== */
@media (min-width: 768px) {
  .rt-gallery-section { padding: 80px 40px; }
  .rt-gallery-header-glass { flex-direction: row; justify-content: space-between; align-items: center; padding: 30px 40px; margin-bottom: 50px; }
  .rt-gallery-header-glass h2 { font-size: 36px; }
  .rt-cyber-btn { width: auto; font-size: 13px; padding: 14px 32px; }
  .rt-cyber-masonry { column-count: 3; column-gap: 24px; }
  .rt-holo-card { margin-bottom: 24px; border-radius: 16px; }
  .rt-holo-info {  transform: translateY(20px); opacity: 0; transition: all 0.3s; }
  .rt-holo-card:hover .rt-holo-info { transform: translateY(0); opacity: 1; } /* Hide text on desktop until hover */
  .rt-holo-info h3 { font-size: 16px; }
  .rt-author { font-size: 11px; }
}
/* ========================
   HOLOGRAPHIC LIGHTBOX
======================== */
.rt-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 44, 34, 0.95); /* Deep emerald blackout */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Flex display triggers on active, then opacity fades in */
.rt-lightbox.active {
  display: flex;
  opacity: 1;
}

.rt-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid var(--emerald-primary);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.2);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rt-lightbox.active img {
  transform: scale(1); /* Smooth pop-in effect */
}

.rt-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--emerald-light);
  font-size: 45px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  z-index: 10000;
}

.rt-lightbox-close:hover {
  color: #fff;
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.9);
}

/* Mobile Adjustment for the Close Button */
@media (max-width: 768px) {
  .rt-lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 35px;
  }
}

/* ========================
   HOME FEATURED GALLERY (MOBILE FIRST 440px)
   Theme: Emerald Cyber-Luxury
======================== */
.home-gallery.cyber-emerald-mode {
  position: relative;
  background-color: #022c22; /* Deep emerald background */
  padding: 60px 15px; /* Perfect for 440px mobile */
  overflow: hidden;
  color: #fff;
}
.home-gallery-container{margin-top: -50px;}

.cyber-ambient-glow {
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 100vw; height: 80vh;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Glassmorphic Header */
.cyber-emerald-mode .hg-header {
  display: flex;
  flex-direction: column; /* Stack on mobile */
  gap: 20px;
  background: rgba(2, 44, 34, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cyber-emerald-mode .hg-eyebrow {
  color: #10b981;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: monospace;
  display: block;
  margin-bottom: 5px;
}

.cyber-emerald-mode .hg-header h2 {
  font-size: 24px;
  font-weight: 300;
  margin: 0 0 5px 0;
  text-shadow: 0 0 15px rgba(16,185,129,0.5);
}

.cyber-emerald-mode .hg-header p {
  color: #a7f3d0;
  font-size: 12px;
  margin: 0;
}

/* Cyber Button Override */
.cyber-emerald-mode .cyber-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%; /* Full width for easy thumb tapping */
}

.cyber-btn-glow {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent);
  transform: skewX(-20deg);
  animation: cyberSweep 3s infinite;
}

.cyber-emerald-mode .cyber-btn:hover {
  background: rgba(16,185,129,0.15);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.4);
}

@keyframes cyberSweep { 0% { left: -100%; } 50%, 100% { left: 200%; } }

/* ========================
   BENTO BOX GRID (MOBILE)
======================== */
.cyber-emerald-mode .hg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for 440px */
  gap: 10px; /* Tight gaps */
}

.cyber-emerald-mode .hg-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dynamic Image Sizing */
.cyber-emerald-mode .hg-large {
  grid-column: span 2; /* Hero image spans full width */
  height: 240px;
}

.cyber-emerald-mode .hg-card:not(.hg-large) {
  grid-column: span 1; /* Other 4 images sit in a 2x2 grid below */
  height: 140px;
}

/* Image & Holographic Effects */
.hg-img-wrap {
  width: 100%; height: 100%; position: relative;
}

.cyber-emerald-mode .hg-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transition: all 0.5s ease;
}

.cyber-scanline {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(16,185,129,0.6); box-shadow: 0 0 10px #10b981;
  opacity: 0; transform: translateY(-10px); transition: opacity 0.3s; z-index: 2;
}

/* Datapad Text Overlay */
.cyber-emerald-mode .hg-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 10px; z-index: 3;
}

.hg-overlay-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2, 44, 34, 0.95), transparent);
  z-index: -1;
}

.cyber-emerald-mode .hg-overlay span {
  font-size: 11px;
  color: #fff;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Glowing Border Setup */
.cyber-card-border {
  position: absolute; inset: 0; border-radius: 12px;
  border: 2px solid transparent; transition: border-color 0.4s;
  pointer-events: none; z-index: 4;
}

/* Hover & Active Interactions */
.cyber-emerald-mode .hg-card:hover, .cyber-emerald-mode .hg-card:active {
  transform: translateY(-4px) scale(1.02);
  z-index: 10;
}
.cyber-emerald-mode .hg-card:hover .cyber-card-border, .cyber-emerald-mode .hg-card:active .cyber-card-border {
  border-color: rgba(16,185,129,0.6);
}
.cyber-emerald-mode .hg-card:hover img, .cyber-emerald-mode .hg-card:active img {
  filter: brightness(1) contrast(1);
}
.cyber-emerald-mode .hg-card:hover .cyber-scanline, .cyber-emerald-mode .hg-card:active .cyber-scanline {
  opacity: 1; animation: scanDown 2s linear infinite;
}
@keyframes scanDown { 0% { transform: translateY(-10px); } 100% { transform: translateY(250px); } }

/* ========================
   DESKTOP SCALE-UP (768px+)
======================== */
@media (min-width: 768px) {
  .home-gallery.cyber-emerald-mode { padding: 80px 40px; }
  .cyber-emerald-mode .hg-header { flex-direction: row; justify-content: space-between; align-items: flex-end; padding: 30px 40px; }
  .cyber-emerald-mode .hg-header h2 { font-size: 32px; }
  .cyber-emerald-mode .cyber-btn { width: auto; font-size: 13px; padding: 14px 32px; }
  
  /* Expands to 4-column Bento layout on Desktop */
  .cyber-emerald-mode .hg-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
  }
  .cyber-emerald-mode .hg-large { grid-column: span 2; grid-row: span 2; height: 100%; }
  .cyber-emerald-mode .hg-card:not(.hg-large) { grid-column: span 1; grid-row: span 1; height: 100%; }
  .cyber-emerald-mode .hg-overlay span { font-size: 14px; }
}


/* ==========================
for Home page special tour
=============================*/

/* ========================
   SPECIAL TOUR PACKAGES (MOBILE FIRST 440px)
======================== */
.rt-special-packages {
  /* Dark contrasting background to separate from other sections */
  background: #01110a; 
  padding: 60px 15px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.rt-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Title */
.rt-sp-title {
  text-align: center;
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* 4-Card Grid */
.rt-sp-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on 440px */
  gap: 20px;
  margin-bottom: 40px;
}

/* The Bright White Cards */
.rt-sp-card {
  display: flex;
  flex-direction: column;
  background: #ffffff; /* Bright white like reference */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rt-sp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3); /* Emerald glow on hover */
}

/* Image Setup */
.rt-sp-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.rt-sp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rt-sp-card:hover .rt-sp-img img {
  transform: scale(1.08); /* Cinematic zoom */
}

/* Card Content & Typography */
.rt-sp-content {
  padding: 20px;
  position: relative;
}

.rt-sp-tag {
  display: inline-block;
  background: #ecfdf5; /* Pale mint background */
  color: #10b981; /* Emerald text */
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.rt-sp-content h3 {
  color: #111827; /* Dark black text */
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 700;
  padding-right: 30px; /* Leaves room for the arrow */
}

/* The Orange Action Arrow */
.rt-sp-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: #f97316; /* Orange color from reference */
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.rt-sp-card:hover .rt-sp-arrow {
  transform: translate(4px, -4px); /* Moves up and right on hover */
}

/* Bottom Services Button */
.rt-sp-footer {
  text-align: center;
}

.rt-sp-btn {
  display: inline-block;
  color: #fff;
  border: 1px solid #10b981;
  padding: 14px 30px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(16, 185, 129, 0.1);
}

.rt-sp-btn:hover {
  background: #10b981;
  color: #fff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ========================
   DESKTOP SCALING
======================== */
@media (min-width: 768px) {
  .rt-sp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .rt-sp-grid { grid-template-columns: repeat(4, 1fr); }
  .rt-sp-title { width: 50%; margin: 0 auto 40px auto; }
}