/************************************/
/***        04. Hero CSS          ***/
/************************************/

.hero {
	position: relative;
	background-image: url(../documents/images/banners/Banner2.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	margin-top: -120px;
	overflow: hidden;
	border-radius: 15px;

	/* Centering setup */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 85vh;
	/* full screen height */
	padding: 0 20px;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(2deg, rgb(7, 0, 0) 65.37%, #000000 100.18%),
		linear-gradient(270deg, rgb(11 22 22 / 40%) 59.75%, #000000eb 100%);
	z-index: 1;
}

/* Hero section sits on the wall (bottom of banner) */
.hero-section {
  position: absolute;
  bottom: -93px;             
  left: 35%;
  transform: translateX(-50%);
  z-index: 2;
  animation: floatUp 1.2s ease-out; 
  width: 100%;
  text-align: center;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ============================================
   TEXT STYLES - RESPONSIVE
   ============================================ */

/* Desktop styles (unchanged) */
.hero-content {
  color: #fff;
}

.hero-content .section-title h3 {
  color: #ffffff;
  font-size: 100px;
  font-weight: 600;
  letter-spacing: 1px;
  width: max-content;
  text-align: center;
  justify-self: center;
}

.section-title-gallery {
  text-align: center;
  margin-bottom: 60px;
  margin-top: -50px;
  margin-left: 390px;
}

.hero-content .section-title-gallery h3 {
  color: #ffffff;
  font-size: 100px;
  font-weight: 600;
  letter-spacing: 1px;
  width: max-content;
  text-align: center;
  justify-self: center;
}

.hero-content .section-title h2 {
  color: #ed1c24;
  -webkit-text-stroke: 0.8px white;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.3;
  margin: 0 auto;
}

/* ============================================
   TABLET VIEW (768px - 991px)
   ============================================ */
@media (max-width: 991px) {
  .hero-content .section-title h3 {
    font-size: 70px;
    width: 100%;
    text-align: center;
    justify-self: center;
    letter-spacing: 0.5px;
  }
  
  .section-title-gallery {
    margin-left: 0;
    margin-top: -30px;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
  }
  
  .hero-content .section-title-gallery h3 {
    font-size: 70px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
	margin-left: 200px;
  }
  
  .hero-content .section-title h2 {
    font-size: 32px;
    -webkit-text-stroke: 0.6px white;
    line-height: 1.2;
    max-width: 90%;
  }
}

/* ============================================
   TABLET SMALL (576px - 767px)
   ============================================ */
@media (max-width: 767px) {
  .hero-content .section-title h3 {
    font-size: 50px;
    width: 100%;
    letter-spacing: 0.3px;
    margin: 0 auto;
    text-align: center;
  }
  
  .section-title-gallery {
    margin-left: 0;
    margin-top: -20px;
    margin-bottom: 30px;
  }
  
  .hero-content .section-title-gallery h3 {
    font-size: 50px;
    width: 100%;
    text-align: center;

  }
  
  .hero-content .section-title h2 {
    font-size: 26px;
    -webkit-text-stroke: 0.5px white;
    line-height: 1.2;
    max-width: 95%;
  }
}

/* ============================================
   MOBILE VIEW (480px - 575px)
   ============================================ */
@media (max-width: 575px) {
  .hero-content .section-title h3 {
    font-size: 40px;
    width: 100%;
    letter-spacing: 0.2px;
    text-align: center;
    margin: 0 auto;
    padding: 0 10px;
  }
  
  .section-title-gallery {
    margin-left: 0;
    margin-top: -15px;
    margin-bottom: 25px;
    padding: 0 15px;
  }
  
  .hero-content .section-title-gallery h3 {
    font-size: 40px;
    width: 100%;
    text-align: center;
    padding: 0 10px;
  }
  
  .hero-content .section-title h2 {
    font-size: 22px;
    -webkit-text-stroke: 0.4px white;
    line-height: 1.1;
    padding: 0 15px;
    text-align: center;
  }
}

/* ============================================
   SMALL MOBILE (Below 480px)
   ============================================ */
@media (max-width: 479px) {
  .hero-content .section-title h3 {
    font-size: 32px;
    letter-spacing: 0;
    padding: 0 5px;
  }
  
  .section-title-gallery {
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .hero-content .section-title-gallery h3 {
           font-size: 40px;
        padding: 0 5px;
        margin-left: 95px;
        margin-bottom: 62px;
  }
  
  .hero-content .section-title h2 {
    font-size: 20px;
    -webkit-text-stroke: 0.3px white;
    padding: 0 10px;
    line-height: 1.1;
  }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-content .section-title h3 {
    font-size: 45px;
  }
  
  .hero-content .section-title-gallery h3 {
    font-size: 55px;
	margin-left: 258px;
    margin-bottom: 48px;
  }
  
  .hero-content .section-title h2 {
    font-size: 24px;
  }
  
  .section-title-gallery {
    margin-top: -15px;
    margin-bottom: 25px;
  }
}

/* ============================================
   EXTRA LARGE SCREENS (Above 1600px)
   ============================================ */
@media (min-width: 1600px) {
  .hero-content .section-title h3 {
    font-size: 120px;
  }
  
  .hero-content .section-title-gallery h3 {
    font-size: 120px;
	margin-left: 165px;
    margin-bottom: 48px;
  }
  
  .hero-content .section-title h2 {
    font-size: 45px;
    -webkit-text-stroke: 1px white;
  }
}

/* ============================================
   UTILITY CLASSES FOR BETTER RESPONSIVENESS
   ============================================ */

/* Ensure text doesn't overflow on small screens */
.text-overflow-fix {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Center alignment helper */
.center-mobile {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FIX FOR GALLERY TITLE MARGIN ISSUE
   ============================================ */

@media (max-width: 991px) {
  .section-title-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-content .section-title-gallery h3 {
    display: inline-block;
  }
}

/* Video Layer */
.hero.hero-video .hero-bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.hero.hero-video .hero-bg-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Optional: Slight bottom-centered look */
.hero.bottom-center {
	align-items: flex-end;
	padding-bottom: 120px;
}

/* Responsive tweaks */
@media (max-width: 992px) {
	.hero {
		height: 85vh;
	}

	.hero-content .section-title h2 {
		font-size: 28px;
	}
}

@media (max-width: 576px) {
	.hero-content .section-title h3 {
		font-size: 16px;
	}

	.hero-content .section-title h2 {
		font-size: 22px;
		-webkit-text-stroke: 0.6px white;
	}
}


 /* Gallery Section */
        .sedax-gallery {
            position: relative;
            padding: 80px 20px;
            background-image: url('../documents/images/image gallery/backgroundgallaryimg.png');
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            overflow: hidden;
            min-height: 500px;
            z-index: 1;
        }

        /* Background overlay */
        .sedax-gallery::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.85);
            z-index: -1;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        /* Section Title */
        .section-title-grid {
            font-size: 2.5rem;
            font-weight: 700;
            color: #ad4a4dfc;
            margin-bottom: 30px;
            text-align: center;
            opacity: 0;
            animation: fadeInHero 1.2s ease forwards;
            animation-delay: 1s;
        }

        @keyframes fadeInHero {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Filter Buttons - Mobile Responsive */
        .filter-btns {
            margin-bottom: 40px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            padding: 0 15px;
        }

        .filter-btn {
            background: #f5c6c699;
            color: #ab1111;
            border: 1px solid #ffffff87;
            padding: 10px 18px;
            border-radius: 30px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            min-width: 80px;
            text-align: center;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: #ffffff99;
            color: #ab1111;
            border-color: #ff9a9a87;
            transform: translateY(-2px);
        }

        /* Gallery Grid */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            justify-items: center;
            transition: opacity 0.3s ease;
        }

        /* Gallery Item */
        .gallery-item {
            width: 100%;
            position: relative;
            overflow: hidden;
            border-radius: 10px;
        }

        .gallery-card {
            background: #000000;
            border-radius: 10px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .gallery-card img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
            flex-grow: 1;
        }

        .gallery-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }

        .gallery-card:hover img {
            transform: scale(1.05);
        }

        /* Model and Size Info */
        .model-number {
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            color: #ffffff;
            padding: 2px 8px;
            background: #cf1e1eb6;
            position: relative;
            z-index: 2;
            margin: 0;
            border-top: 2px solid rgba(255, 255, 255, 0.2);
        }

        .model-size {
            font-size: 12px;
            text-align: center;
            color: white;
            padding: 2px 8px;
            background: #cf1e1eb6;
            position: relative;
            z-index: 2;
            margin: 0;
        }

        /* Card Overlay */
        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 174, 239, 0.85);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 20px;
            text-align: center;
        }

        .gallery-card:hover .card-overlay {
            opacity: 1;
        }

        .card-badge {
            background: #ff6b6b;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 15px;
            display: inline-block;
        }

        /* Pagination */
        .pagination-controls {
            margin-top: 40px;
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .page-btn {
            background: #0056b3;
            color: #fff;
            border: none;
            padding: 12px 30px;
            border-radius: 30px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s ease;
            min-width: 120px;
        }

        .page-btn:hover {
            background: #003f88;
            transform: translateY(-2px);
        }

        .page-btn:disabled {
            background: #999;
            cursor: not-allowed;
            transform: none;
        }

        /* Lightbox */
        #lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.98);
            z-index: 999999;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #lightbox.active {
            display: flex;
            opacity: 1;
        }

        .lightbox-content {
            max-width: 90vw;
            max-height: 90vh;
            position: relative;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        }

        .image-container {
            width: 90vh;
            height: 90vh;
            overflow: hidden;
            position: relative;
            background: #243341;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        #lightboxImage {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            cursor: zoom-in;
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform-origin: center center;
        }

        /* Lightbox Controls */
        .close-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 35px;
            cursor: pointer;
            z-index: 1000000;
            background: rgba(0, 0, 0, 0.6);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s;
        }

        .close-btn:hover {
            background: rgba(255, 0, 0, 0.8);
            transform: rotate(90deg);
        }

        /* Zoom Controls */
        .zoom-controls {
            position: fixed;
            bottom: 100px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1000000;
        }

        .zoom-btn {
            width: 45px;
            height: 45px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            font-size: 22px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .zoom-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        /* Lightbox Info */
        .lightbox-info {
            padding: 20px;
            background: #111;
            border-top: 1px solid #333;
            color: white;
            text-align: center;
            min-height: 80px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        #lightboxModel {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 5px;
            color: #fff;
        }

        #lightboxSize {
            font-size: 1rem;
            color: #aaa;
        }

        /* Navigation Arrows */
        .nav-arrow {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            z-index: 1000000;
            transition: all 0.3s;
            opacity: 0.7;
        }

        .nav-arrow:hover {
            background: rgba(255, 255, 255, 0.2);
            opacity: 1;
            transform: translateY(-50%) scale(1.1);
        }

        .prev-arrow {
            left: 20px;
        }

        .next-arrow {
            right: 20px;
        }

        /* Reset Zoom Button */
        .reset-zoom-btn {
            position: fixed;
            bottom: 40px;
            right: 20px;
            width: 45px;
            height: 45px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            z-index: 1000000;
            transition: all 0.3s;
        }

        .reset-zoom-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        /* Empty Gallery Message */
        .empty-gallery {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px;
            color: #666;
            font-size: 18px;
        }

        /* Mobile Responsive Design */
        @media (max-width: 1200px) {
            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 18px;
            }
            
            .section-title-grid {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 992px) {
            .gallery-grid {
                grid-template-columns: repeat(3, 1fr); /* 3 per row on tablet */
                gap: 16px;
            }
            
            .section-title-grid {
                font-size: 2rem;
            }
            
            .filter-btn {
                padding: 9px 16px;
                font-size: 13px;
                min-width: 70px;
            }
            
            .gallery-card img {
                height: 180px;
            }
        }

        @media (max-width: 768px) {
            .sedax-gallery {
                padding: 60px 15px;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr); /* 2 PER ROW ON MOBILE */
                gap: 15px;
            }
            
            .section-title-grid {
                font-size: 1.8rem;
                margin-bottom: 25px;
            }
            
            .filter-btns {
                gap: 8px;
                margin-bottom: 30px;
            }
            
            .filter-btn {
                padding: 8px 14px;
                font-size: 12px;
                min-width: 65px;
            }
            
            .gallery-card img {
                height: 160px;
            }
            
            .model-number {
                font-size: 13px;
                padding: 8px;
            }
            
            .model-size {
                font-size: 11px;
                padding: 6px;
            }
            
            .pagination-controls {
                margin-top: 30px;
                gap: 15px;
            }
            
            .page-btn {
                padding: 10px 25px;
                font-size: 14px;
                min-width: 100px;
            }
        }

        @media (max-width: 576px) {
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr); /* STILL 2 PER ROW */
                gap: 12px;
            }
            
            .section-title-grid {
                font-size: 1.6rem;
            }
            
            .filter-btns {
                padding: 0 10px;
                gap: 6px;
            }
            
            .filter-btn {
                padding: 7px 12px;
                font-size: 11px;
                min-width: 60px;
            }
            
            .gallery-card img {
                height: 140px;
            }
            
            .model-number {
                font-size: 12px;
                padding: 6px;
            }
            
            .model-size {
                font-size: 10px;
                padding: 5px;
            }
            
            .card-badge {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            /* Lightbox adjustments for mobile */
            .image-container {
                width: 100%;
                height: 70vh;
                padding: 10px;
            }
            
            .close-btn,
            .zoom-btn,
            .reset-zoom-btn,
            .nav-arrow {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            
            .zoom-controls {
                bottom: 80px;
                right: 15px;
            }
            
            .reset-zoom-btn {
                bottom: 30px;
                right: 15px;
            }
        }

        @media (max-width: 400px) {
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr); /* ALWAYS 2 PER ROW */
                gap: 10px;
            }
            
            .gallery-card img {
                height: 120px;
            }
            
            .filter-btn {
                padding: 6px 10px;
                font-size: 10px;
                min-width: 55px;
            }
            
            .section-title-grid {
                font-size: 1.4rem;
            }
            
            .page-btn {
                padding: 8px 20px;
                font-size: 13px;
                min-width: 90px;
            }
        }

        /* Landscape Mobile Optimization */
        @media (max-height: 500px) and (orientation: landscape) {
            .sedax-gallery {
                padding: 40px 15px;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 10px;
            }
            
            .gallery-card img {
                height: 120px;
            }
        }

        /* Touch-friendly improvements */
        @media (hover: none) and (pointer: coarse) {
            .gallery-card:hover {
                transform: none;
            }
            
            .filter-btn:active,
            .page-btn:active {
                transform: scale(0.95);
            }
            
            .gallery-card:active {
                opacity: 0.8;
            }
        }