/* ========================================
   HQ POWER RWANDA - UNIVERSAL CSS FRAMEWORK
   Mobile-First Responsive Design System
   ======================================== */

/* === RESET & BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.7;
}

a {
  color: #2196f3;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #1976d2;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === UNIVERSAL NAVIGATION SYSTEM === */
.navbar-horizontal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1976d2;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-horizontal.scrolled {
  background: #1976d2;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2196f3;
  z-index: 1001;
}

.logo img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 50%;
  background: white;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Desktop Navigation */
.nav-links-horizontal {
  display: none;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-links-horizontal li {
  position: relative;
}

.nav-links-horizontal > li > a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links-horizontal > li > a:hover {
  background: #ffd600;
  color: #333;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 2px solid #2196f3;
  border-radius: 12px;
  padding: 0.8rem;
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1002;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 0.7rem 1rem;
  color: #333;
  font-size: 0.9rem;
  border-radius: 8px;
  margin: 0.2rem 0;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background: #ffd600;
  color: #333;
  text-decoration: none;
  transform: translateX(5px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(33, 150, 243, 0.1);
  border: 2px solid #2196f3;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  transition: all 0.3s ease;
  gap: 4px;
}

.menu-toggle:hover {
  background: rgba(33, 150, 243, 0.2);
  border-color: #1976d2;
  transform: scale(1.05);
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: #2196f3;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
}

.menu-toggle:hover span {
  background: #1976d2;
}

.menu-toggle.active {
  background: rgba(33, 150, 243, 0.2);
  border-color: #1976d2;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background: #1976d2;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: #1976d2;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet and Desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
  
  .nav-links-horizontal {
    display: flex !important;
  }
  
  .navbar-horizontal {
    padding: 1rem 2rem;
  }
  
  .logo img {
    height: 50px;
    width: 50px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  .navbar-horizontal {
    padding: 0.8rem 1rem;
    position: relative;
  }
  
  .menu-toggle {
    display: flex !important;
    order: 3;
  }
  
  .nav-links-horizontal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1976d2;
    border: 2px solid #ffd600;
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
  }
  
  .nav-links-horizontal.active {
    display: flex !important;
    animation: mobileSlideDown 0.4s ease-out;
  }
  
  @keyframes mobileSlideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav-links-horizontal li {
    margin: 0.3rem 0;
    width: 100%;
  }
  
  .nav-links-horizontal > li > a {
    display: block;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }
  
  .nav-links-horizontal > li > a:hover {
    background: #ffd600;
    color: #333;
    border-color: #ffd600;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.3);
  }
  
  /* Mobile Dropdown */
  .dropdown {
    width: 100%;
    position: relative;
  }
  
  .dropdown-content {
    position: static !important;
    display: none;
    background: #1976d2;
    border: 2px solid #ffd600;
    border-radius: 12px;
    margin-top: 0.8rem;
    padding: 0.8rem;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3);
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .dropdown:hover .dropdown-content,
  .dropdown.active .dropdown-content {
    display: block !important;
    animation: mobileDropdownFade 0.3s ease-out;
  }
  
  @keyframes mobileDropdownFade {
    from { 
      opacity: 0; 
      transform: translateY(-10px);
    }
    to { 
      opacity: 1; 
      transform: translateY(0);
    }
  }
  
  .dropdown-content a {
    padding: 1rem 1.2rem !important;
    font-size: 1rem !important;
    color: white !important;
    margin: 0.2rem 0 !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    display: block !important;
    text-align: left !important;
    line-height: 1.4 !important;
  }
  
  .dropdown-content a:hover {
    background: #ffd600 !important;
    color: #333 !important;
    transform: translateX(10px) !important;
    box-shadow: 0 3px 12px rgba(255, 214, 0, 0.4) !important;
  }
  
  /* Dropdown arrow indicator */
  .dropdown .dropbtn:after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
  }
  
  .dropdown.active .dropbtn:after {
    transform: rotate(180deg);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .navbar-horizontal {
    padding: 0.6rem 0.8rem;
  }
  
  .nav-links-horizontal {
    padding: 1.2rem;
    border-radius: 0 0 16px 16px;
  }
  
  .menu-toggle {
    width: 40px;
    height: 40px;
    gap: 3px;
  }
  
  .menu-toggle span {
    width: 20px;
    height: 2.5px;
  }
  
  .logo img {
    height: 40px;
    width: 40px;
  }
  
  .nav-links-horizontal > li > a {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  
  .dropdown-content a {
    padding: 0.9rem 1.1rem !important;
    font-size: 0.95rem !important;
    margin: 0.2rem 0 !important;
    line-height: 1.4 !important;
  }
}

/* === UTILITY CLASSES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
  color: #333;
}

/* === MAIN CONTENT SPACING === */
.main-content {
  margin-top: 80px;
}

@media (max-width: 768px) {
  .main-content {
    margin-top: 0;
  }
}

/* === SECTION STYLES === */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #1976d2;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #1976d2);
  border-radius: 2px;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(33, 150, 243, 0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.2);
}

.card-title {
  color: #1976d2;
  margin-bottom: 1rem;
}

/* === RESPONSIVE GRID === */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid {
    gap: 3rem;
  }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* === PROJECT PAGE SPECIFIC STYLES === */

/* Glass Navigation Enhancement */
.glass-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(25px) !important;
  border-bottom: 1px solid rgba(33, 150, 243, 0.15) !important;
}

/* Project Section Layout */
.project-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.media-fit {
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.media-flex {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.media-flex.reverse {
  grid-template-columns: 1fr 2fr;
}

.media-slider-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.media-text-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem;
  max-width: 450px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.media-text-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #ffd600);
  border-radius: 2rem 2rem 0 0;
}

.media-text-col:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.12);
}

/* Enhanced Media Window - Bigger and More Visible */
.media-window {
  width: 100%;
  max-width: 1200px;
  min-width: 500px;
  aspect-ratio: 16/9;
  border-radius: 2rem;
  box-shadow: 0 12px 40px rgba(33,150,243,0.2);
  background: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.media-window:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 50px rgba(33,150,243,0.3);
}

.media-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0; 
  top: 0;
  transition: opacity 0.6s;
  cursor: pointer;
}

.media-slide.active {
  display: flex;
  position: relative;
  opacity: 1;
  z-index: 2;
  animation: fadeInUp 1s;
}

.media-slide img, .media-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  background: #e3f2fd;
  box-shadow: 0 4px 24px rgba(33,150,243,0.10);
  cursor: pointer;
  transition: all 0.3s ease;
}

.media-slide img:hover, .media-slide video:hover {
  transform: scale(1.02);
}

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxSlideIn 0.4s ease;
}

@keyframes lightboxSlideIn {
  from { transform: scale(0.8) translateY(50px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-content video {
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-info {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* See Gallery Button */
.see-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
  letter-spacing: 0.5px;
}

.see-gallery-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.4);
  color: white;
  text-decoration: none;
}

.see-gallery-btn i {
  font-size: 1.2em;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Floating CTA Button */
.floating-cta-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  border-radius: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(33, 150, 243, 0.4);
  z-index: 999;
  backdrop-filter: blur(10px);
}

.floating-cta-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 35px rgba(33, 150, 243, 0.5);
  color: white;
  text-decoration: none;
}

.floating-cta-btn i {
  font-size: 1.1em;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.3));
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #077cdc, #077cdc);
  color: white;
  padding: 3rem 2rem 2rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffd600;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.footer-links a:hover {
  color: #ffd600;
  background: rgba(139, 167, 189, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

footer p {
  color: #fff;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design for Project Page */
@media (max-width: 1200px) {
  .media-flex {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .media-flex.reverse {
    grid-template-columns: 1fr;
  }
  
  .media-flex.reverse .media-text-col {
    order: 1;
  }
  
  .media-flex.reverse .media-slider-col {
    order: 2;
  }
  
  .project-section {
    padding: 3rem 1rem;
  }
  
  .media-fit {
    min-height: auto;
  }
  
  .media-window {
    max-width: 95vw;
    min-width: 350px;
  }
  
  .media-text-col {
    max-width: 100%;
    padding: 2rem;
    margin: 1rem 0;
  }
  
  .media-text-col .section-title-animated {
    font-size: 1.6em !important;
  }
  
  .media-text-col .section-subtitle {
    font-size: 1.05em !important;
    padding: 0.5em 1.2em !important;
  }
  
  .media-text-col .section-description {
    font-size: 1em !important;
    padding: 1.2em 1.5em !important;
  }
}

@media (max-width: 768px) {
  .media-text-col {
    padding: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .floating-cta-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .see-gallery-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-prev {
    left: -50px;
  }
  
  .lightbox-next {
    right: -50px;
  }
  
  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    top: -45px;
  }
  
  .lightbox-info {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    bottom: -50px;
  }
}

@media (max-width: 480px) {
  .project-section {
    padding: 2rem 0.5rem;
  }
  
  .floating-cta-btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .see-gallery-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    gap: 0.6rem;
  }
  
  .media-window {
    min-width: 280px;
    border-radius: 1.5rem;
  }
  
  .media-text-col {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
  
  .media-text-col .section-title-animated {
    font-size: 1.4em !important;
  }
  
  .media-text-col .section-subtitle {
    font-size: 1em !important;
    padding: 0.4em 1em !important;
  }
  
  .media-text-col .section-description {
    font-size: 0.95em !important;
    padding: 1em 1.2em !important;
  }
  
  .lightbox-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .lightbox-prev {
    left: -40px;
  }
  
  .lightbox-next {
    right: -40px;
  }
  
  .lightbox-close {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    top: -40px;
  }
  
  .lightbox-info {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    bottom: -45px;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
