
  * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #ff0080, #1a0033 60%),
    radial-gradient(circle at bottom, #00f2ff, #020617 60%);
  color: #fff;
  overflow-x: hidden;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Logo container */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #fff; /* Change as needed */
}

/* Responsive logo image */
.logo-img {
    /* Remove fixed height/width from HTML */
    max-width: 100%;
    height: auto;
    display: block;
    
    /* Smooth scaling */
    object-fit: contain;
    
    /* Responsive sizing */
    width: 100%;
    max-width: 450px; /* Your original width */
    
    /* Mobile-first approach */
    height: auto;
}

/* For very small screens (phones in portrait) */
@media (max-width: 480px) {
    .logo {
        padding: 0.75rem;
    }
    
    .logo-img {
        max-width: 90%;
        /* Optional: slightly smaller on very small screens */
        transform: scale(0.95);
        transform-origin: center;
    }
}

/* For tablets and small laptops */
@media (min-width: 481px) and (max-width: 768px) {
    .logo {
        padding: 1rem;
    }
    
    .logo-img {
        max-width: 85%;
    }
}

/* For desktop and larger screens */
@media (min-width: 769px) and (max-width: 1200px) {
    .logo {
        padding: 1.5rem;
    }
    
    .logo-img {
        max-width: 70%;
    }
}

/* For extra large screens */
@media (min-width: 1201px) {
    .logo {
        padding: 2rem;
    }
    
    .logo-img {
        max-width: 450px; /* Your original max size */
    }
}

/* For high-density displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        /* Ensure you have a high-res version available */
        /* Consider using srcset in HTML for different resolutions */
    }
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .logo-img {
        transition: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .logo {
        /* If logo has transparent background, you might want to adjust container */
        background-color: #1a1a1a; /* Dark background */
    }
    
    /* If the logo is white/light, you might need a different version */
    /* Consider using picture element with different sources for light/dark */
}
/* ===== ENHANCED NAVBAR ===== */

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #facc15;
}

.contact-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff0080, #6366f1);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(255, 0, 128, 0.3);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 0, 128, 0.4);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0px;
  margin-top: 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-text {
  max-width: 540px;
  animation: fadeLeft 1.4s ease forwards;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  background: linear-gradient(90deg, #facc15, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text span {
  color: #facc15;
}

.hero-text p {
  margin: 30px 0;
  line-height: 1.8;
  opacity: .9;
  font-size: 18px;
}

.hero-text button {
  padding: 16px 52px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff0080, #6366f1, #38bdf8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 25px 60px rgba(255,0,128,0.5);
  transition: .4s;
}

.hero-text button:hover {
  transform: scale(1.08);
  box-shadow: 0 30px 70px rgba(255,0,128,0.7);
}

/* ===== HERO CARDS ===== */
.hero-cards {
  position: relative;
  width: 480px;
  height: 640px;
  animation: fadeRight 1.4s ease forwards;
  z-index: 2;
}

.card-float {
  position: absolute;
  width: 260px;
  height: 380px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 90px rgba(0,0,0,0.7);
  cursor: pointer;
  animation: float 6s ease-in-out infinite;
  transition: .5s;
  border: 2px solid rgba(255,255,255,0.2);
}

.card-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* POSITIONS */
.card1 { top: 0; left: 120px; background-image: url('../images/Catalog/jcr2.jpg'); animation-delay: 0s; }
.card2 { top: 130px; left: 0; background-image: url('../images/jcr.jpg'); animation-delay: 1s; }
.card3 { top: 130px; left: 250px; background-image: url('../images/offset/offset\ \(8\).jpg'); animation-delay: 2s; }

.card-float:hover {
  transform: translateY(-20px) scale(1.15);
  z-index: 10;
  box-shadow: 0 50px 120px rgba(250,204,21,0.6);
  border-color: #facc15;
}

/* ===== SERVICES CARDS ===== */
.class-cards{
  background-color: white;
  height: 500px;
  margin-top: -60px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 60px auto 100px;
  padding: 0 20px;
}

.service-card {
  background:#ff0080;
  margin-top: 50px;
  color: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .6s ease, box-shadow .6s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.07);
  box-shadow: 0 25px 50px rgba(250, 204, 21, 0.3);
  border-color: #facc15;
}

.service-card i {
  font-size: 45px;
  margin-bottom: 20px;
  color: #facc15;
  transition: transform .4s ease, color .4s ease;
}

.service-card:hover i {
  transform: rotate(20deg) scale(1.2);
  color: #fff;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.service-card a {
  color: #facc15;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all .4s;
}

.service-card a i {
  margin-left: 8px;
  font-size: 16px;
  transition: transform .4s;
}

.service-card a:hover i {
  transform: translateX(8px);
}

.service-card::before {
  content: attr(data-number);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 60px;
  font-weight: 900;
  opacity: 0.1;
  color: #fff;
}

.service-card h3, .service-card p, .service-card a {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s forwards;
}

.service-card h3 { animation-delay: .2s; }
.service-card p { animation-delay: .5s; }
.service-card a { animation-delay: .8s; }

/* ===== GALLERY SECTION ===== */
.gallery {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(5, 5, 9, 0.9);
  position: relative;
  padding: 100px 20px;
}

/* ===== GALLERY TITLE ===== */
.gallery-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  background: linear-gradient(90deg, #facc15, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* ===== GALLERY SLIDER ===== */
.slider {
  width: 100%;
  max-width: 1400px;
  height: 440px;
  overflow: hidden;
  perspective: 1600px;
  position: relative;
}

.track {
  display: flex;
  gap: 40px;
  transition: transform .9s ease;
  cursor: grab;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== GALLERY CARD ===== */
.gallery-card {
  width: 280px;
  height: 400px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px rgba(0,0,0,.9);
  transition: .9s ease;
  filter: blur(3px) brightness(.5);
  opacity: .5;
  flex-shrink: 0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* ===== ACTIVE CENTER ===== */
.gallery-card.active {
  transform: translateZ(220px) scale(1.18);
  filter: blur(0) brightness(1.2);
  opacity: 1;
  z-index: 5;
}

/* ===== SIDES ===== */
.gallery-card.left {
  transform: rotateY(20deg) scale(.9);
}

.gallery-card.right {
  transform: rotateY(-20deg) scale(.9);
}

/* ===== OVERLAY ===== */
.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%);
}

/* ===== INFO ===== */
.gallery-card-info {
  position: absolute;
  bottom: 25px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.gallery-card-info h3,
.gallery-card-info p {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gallery-card-info h3 { 
  font-size: 20px; 
  margin-bottom: 5px;
}
.gallery-card-info p { 
  font-size: 13px; 
  opacity: .8; 
}

.gallery-nav {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  z-index: 10;
}

.gallery-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0080, #6366f1);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(255, 0, 128, 0.4);
}

/* ===== INFO SECTION ===== */
.info-section {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 100px 20px;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
  flex-wrap: wrap;
}

.info-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  animation: fadeInLeft 1s ease forwards;
}

.info-text {
  max-width: 600px;
  animation: fadeInRight 1s ease forwards;
}

.info-text h2 {
  font-size: 42px;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #facc15, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.info-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: .9;
}

.info-text button {
  padding: 14px 48px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff0080, #6366f1, #38bdf8);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(255,0,128,0.4);
  transition: .4s;
}

.info-text button:hover {
  transform: scale(1.08);
  box-shadow: 0 25px 60px rgba(255,0,128,0.6);
}

/* ===== ANIMATED CAROUSEL SECTION ===== */
.animated-section {
  padding: 100px 20px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.animated-section h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  background: linear-gradient(90deg, #facc15, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Infinite Scrolling Container */
.scroll-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.scroll-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 60s linear infinite;
}

/* Reverse scroll track for seamless effect */
.scroll-track.reverse {
  animation: scrollReverse 60s linear infinite;
}

.scroll-card {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.scroll-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(250, 204, 21, 0.3);
  border-color: #facc15;
}

.scroll-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0080, #6366f1);
}

.scroll-card-icon {
  font-size: 48px;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #facc15, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.scroll-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
}

.scroll-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
  opacity: 0.9;
}

.scroll-btn {
  background: linear-gradient(135deg, #ff0080, #6366f1);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.scroll-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 0, 128, 0.4);
}

/* ===== SCROLLING IMAGES SECTION ===== */
.scrolling-images-section {
  padding: 100px 20px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.scrolling-images-section h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  background: linear-gradient(90deg, #facc15, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 800;
}

.image-scroll-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.image-scroll-track {
  display: flex;
  height: 100%;
  animation: imageScroll 40s linear infinite;
  will-change: transform;
}

.image-scroll-track.reverse {
  animation: imageScrollReverse 40s linear infinite;
}

.image-scroll-item {
  flex: 0 0 auto;
  width: 400px;
  height: 100%;
  padding: 20px;
}

.image-scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-scroll-item img:hover {
  transform: scale(1.05);
  border-color: #facc15;
  box-shadow: 0 20px 50px rgba(250, 204, 21, 0.4);
}

/* ===== ENHANCED FOOTER ===== */
#footer-container {
  background: rgba(0, 0, 0, 0.9);
  padding: 80px 0 20px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, #facc15, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #facc15, #38bdf8);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-column ul li a:hover {
  color: #facc15;
  transform: translateX(5px);
}

.footer-column ul li i {
  color: #facc15;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(135deg, #ff0080, #6366f1);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-bottom p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== FULLSCREEN PREVIEW ===== */
.preview {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: .4s;
  z-index: 9999;
}

.preview.active {
  opacity: 1;
  pointer-events: auto;
}

.preview img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 30px;
  animation: zoomIn .5s ease;
  box-shadow: 0 50px 120px rgba(0,0,0,.9);
}

.close {
  position: absolute;
  top: 35px;
  right: 45px;
  font-size: 38px;
  cursor: pointer;
  color: white;
  z-index: 10000;
  transition: all 0.3s ease;
}

.close:hover {
  color: #facc15;
  transform: scale(1.1);
}


/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0080, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(255, 0, 128, 0.4);
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 0, 128, 0.6);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes letter {
  to { opacity: 1; }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-300px * 6 - 30px * 5)); }
}

@keyframes scrollReverse {
  0% { transform: translateX(calc(-300px * 6 - 30px * 5)); }
  100% { transform: translateX(0); }
}

@keyframes imageScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-400px * 8)); }
}

@keyframes imageScrollReverse {
  0% { transform: translateX(calc(-400px * 8)); }
  100% { transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Navbar specific animations */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes navLinkFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer specific animations */
@keyframes floatElement {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(250, 204, 21, 0.5); }
  50% { box-shadow: 0 0 20px rgba(250, 204, 21, 0.8); }
}

/* Pause animation on hover */
.scroll-track:hover,
.scroll-track.reverse:hover {
  animation-play-state: paused;
}

.image-scroll-track:hover {
  animation-play-state: paused;
}

/* =============================================== */
/* ========== ENHANCED RESPONSIVE DESIGN ========= */
/* =============================================== */

/* Extra Large Devices (1200px and above) */
@media (min-width: 1400px) {
  .hero-text h1 {
    font-size: 72px;
  }
  
  .cards-container {
    max-width: 1300px;
  }
  
  .gallery-card {
    width: 300px;
    height: 420px;
  }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .hero {
    padding: 0 60px;
  }
  
  header {
    padding: 0 60px;
  }
  
  header.scrolled {
    padding: 0 40px;
  }
  
  .hero-text h1 {
    font-size: 56px;
  }
  
  .hero-cards {
    width: 450px;
    height: 600px;
  }
  
  .card-float {
    width: 240px;
    height: 350px;
  }
  
  .card1 { left: 110px; }
  .card2 { left: 0; }
  .card3 { left: 230px; }
  .card4 { left: 80px; }
  .card5 { left: 210px; }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .hero {
    padding: 0 40px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 60px;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }
  
  header, header.scrolled {
    padding: 0 40px;
  }
  
  .hero-text {
    max-width: 90%;
  }
  
  .hero-text h1 {
    font-size: 48px;
  }
  
  .hero-cards {
    transform: scale(0.9);
    margin-top: 20px;
  }
  
  .gallery-title,
  .animated-section h2,
  .scrolling-images-section h2,
  .info-text h2 {
    font-size: 36px;
  }
  
  .slider {
    height: 380px;
  }
  
  .gallery-card {
    width: 240px;
    height: 340px;
  }
  
  .info-container {
    flex-direction: column;
    text-align: center;
  }
  
  .info-image, .info-text {
    max-width: 100%;
  }
  
  .scroll-card {
    flex: 0 0 280px;
    padding: 25px;
  }
  
  .image-scroll-container {
    height: 260px;
  }
  
  .image-scroll-item {
    width: 350px;
  }
  
  .class-cards {
    height: auto;
    padding-bottom: 60px;
  }
  
  .cards-container {
    margin: 40px auto 60px;
  }
  
  .service-card {
    margin-top: 30px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    padding: 20px;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links .contact-btn {
    margin-top: 20px;
  }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .hero {
    padding: 120px 30px 60px;
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }
  
  header, header.scrolled {
    padding: 0 30px;
    height: 80px;
  }
  
  .hero-text h1 {
    font-size: 42px;
  }
  
  .hero-text p {
    font-size: 16px;
    margin: 20px 0;
  }
  
  .hero-text button {
    padding: 14px 40px;
    font-size: 16px;
  }
  
  .hero-cards {
    width: 400px;
    height: 550px;
    transform: scale(0.8);
    margin-top: 40px;
  }
  
  .card-float {
    width: 220px;
    height: 320px;
  }
  
  .gallery-title,
  .animated-section h2,
  .scrolling-images-section h2,
  .info-text h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  
  .slider {
    height: 350px;
  }
  
  .gallery-card {
    width: 220px;
    height: 320px;
  }
  
  .gallery {
    padding: 80px 15px;
  }
  
  .info-section,
  .animated-section,
  .scrolling-images-section {
    padding: 80px 20px;
  }
  
  .info-text h2 {
    font-size: 32px;
  }
  
  .scroll-card {
    flex: 0 0 260px;
    padding: 20px;
  }
  
  .scroll-card h3 {
    font-size: 22px;
  }
  
  .image-scroll-container {
    height: 220px;
  }
  
  .image-scroll-item {
    width: 300px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-section {
    padding: 80px 20px 30px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    padding: 20px;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links .contact-btn {
    margin-top: 20px;
  }
}

/* Extra Small Devices (575px and below) */
@media (max-width: 575px) {
  .hero {
    padding: 100px 15px 40px;
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }
  
  header, header.scrolled {
    padding: 0 15px;
    height: 80px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .hero-text p {
    font-size: 15px;
    margin: 15px 0 25px;
  }
  
  .hero-text button {
    padding: 12px 35px;
    font-size: 15px;
    width: 100%;
    max-width: 250px;
  }
  
  .hero-cards {
    width: 320px;
    height: 480px;
    transform: scale(0.7);
    margin-top: 20px;
  }
  
  .card-float {
    width: 180px;
    height: 260px;
  }
  
  .card1 { left: 70px; }
  .card2 { left: 0; top: 100px; }
  .card3 { left: 160px; top: 100px; }
  .card4 { left: 50px; top: 280px; }
  .card5 { left: 170px; top: 280px; }
  
  .gallery-title,
  .animated-section h2,
  .scrolling-images-section h2,
  .info-text h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .gallery {
    padding: 60px 10px;
  }
  
  .slider {
    height: 300px;
  }
  
  .gallery-card {
    width: 180px;
    height: 260px;
  }
  
  .track {
    gap: 20px;
  }
  
  .info-section,
  .animated-section,
  .scrolling-images-section {
    padding: 60px 15px;
  }
  
  .info-text h2 {
    font-size: 28px;
  }
  
  .info-text p {
    font-size: 15px;
  }
  
  .info-text button {
    padding: 12px 35px;
    font-size: 15px;
    width: 100%;
    max-width: 250px;
  }
  
  .scroll-container {
    padding: 20px 0;
  }
  
  .scroll-card {
    flex: 0 0 240px;
    padding: 20px;
  }
  
  .scroll-card h3 {
    font-size: 20px;
  }
  
  .scroll-card p {
    font-size: 14px;
  }
  
  .scroll-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .image-scroll-container {
    height: 180px;
  }
  
  .image-scroll-item {
    width: 240px;
  }
  
  .class-cards {
    height: auto;
    padding-bottom: 40px;
    margin-top: -40px;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px auto 40px;
    padding: 0 15px;
  }
  
  .service-card {
    margin-top: 0;
    padding: 25px 20px;
  }
  
  .service-card i {
    font-size: 40px;
  }
  
  .service-card h3 {
    font-size: 22px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    transition: right 0.4s ease;
    padding: 20px;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links .contact-btn {
    margin-top: 20px;
  }
  
  .gallery-nav {
    gap: 15px;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  /* Hide some animations on mobile for performance */
  @media (hover: none) and (pointer: coarse) {
    .card-float:hover,
    .service-card:hover,
    .scroll-card:hover,
    .nav-link:hover,
    .contact-btn:hover,
    .scroll-btn:hover {
      transform: none;
    }
    
    .nav-link:hover::after,
    .nav-link.underline:hover::after {
      transform: none;
      width: 0;
    }
  }
}

/* Very Small Devices (375px and below) */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 32px;
  }
  
  .hero-cards {
    width: 280px;
    height: 420px;
    transform: scale(0.6);
  }
  
  .card-float {
    width: 150px;
    height: 220px;
  }
  
  .gallery-card {
    width: 150px;
    height: 220px;
  }
  
  .slider {
    height: 250px;
  }
  
  .gallery-title {
    font-size: 24px;
  }
  
  .scroll-card {
    flex: 0 0 220px;
  }
  
  .image-scroll-item {
    width: 200px;
  }
  
  .image-scroll-container {
    height: 150px;
  }
  
  .service-card h3 {
    font-size: 20px;
  }
  
  .footer-logo {
    font-size: 28px;
  }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 20px 40px;
  }
  
  .hero-cards {
    transform: scale(0.7);
  }
  
  .gallery {
    min-height: auto;
    padding: 60px 20px;
  }
  
  .slider {
    height: 300px;
  }
  
  .nav-links {
    overflow-y: auto;
    padding: 60px 20px 20px;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo,
  .hero-text h1,
  .gallery-title,
  .animated-section h2,
  .scrolling-images-section h2,
  .info-text h2,
  .footer-logo {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print Styles */
@media print {
  .hero-cards,
  .scroll-track,
  .image-scroll-track,
  .back-to-top,
  .menu-toggle,
  .contact-btn,
  .scroll-btn,
  .footer-bg-elements,
  .gallery-nav {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-text h1,
  .gallery-title,
  .animated-section h2,
  .scrolling-images-section h2,
  .info-text h2,
  .footer-logo {
    background: none !important;
    color: black !important;
    -webkit-text-fill-color: black !important;
  }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card-float,
  .scroll-track,
  .image-scroll-track {
    animation: none !important;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 80px 0; /* space for fixed header */
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
}

/* ===== VIDEO BACKGROUND ===== */
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

/* ===== DARK OVERLAY ===== */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -2;
}

/* ===== LEFT TEXT ===== */
.hero-text {
  max-width: 540px;
  position: relative;
  z-index: 2;

  /* NO animation by default */
  opacity: 1;
  transform: translateX(0);
}

.hero-text.animate {
  animation: fadeLeft 1.2s ease forwards;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  background: linear-gradient(90deg, #facc15, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text p {
  margin: 30px 0;
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.9;
}

.hero-text button {
  padding: 16px 52px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff0080, #6366f1, #38bdf8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 25px 60px rgba(255, 0, 128, 0.5);
  transition: 0.4s;
}

.hero-text button:hover {
  transform: scale(1.08);
  box-shadow: 0 30px 70px rgba(255, 0, 128, 0.7);
}

/* ===== RIGHT CARDS ===== */
.hero-cards {
  position: relative;
  width: 480px;
  height: 640px;
  z-index: 2;

  /* NO animation by default */
  opacity: 1;
  transform: translateX(0);
}

.hero-cards.animate {
  animation: fadeRight 1.2s ease forwards;
}

/* ===== FLOATING CARDS ===== */
.card-float {
  position: absolute;
  width: 260px;
  height: 380px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  animation: float 6s ease-in-out infinite;
  transition: 0.5s;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

.card-float:hover {
  transform: translateY(-20px) scale(1.15);
  z-index: 10;
  box-shadow: 0 50px 120px rgba(250, 204, 21, 0.6);
  border-color: #facc15;
}

/* ===== CARD POSITIONS ===== */
.card1 { top: 0; left: 120px; }
.card2 { top: 130px; left: 0; }
.card3 { top: 130px; left: 250px; }
.card4 { top: 350px; left: 90px; }
.card5 { top: 350px; left: 230px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 40px 0;
  }

  .hero-text {
    margin-bottom: 60px;
  }

  .hero-cards {
    width: 340px;
    height: 480px;
  }

  .card-float {
    width: 200px;
    height: 300px;
  }
}
.bill-section {
  padding: 80px 8%;
  background: #f8f9fb;
}

.bill-header {
  text-align: center;
  margin-bottom: 50px;
}

.bill-header h2 {
  font-size: 36px;
  font-weight: 700;
}

.bill-header p {
  color: #666;
  margin-top: 10px;
}

/* GRID */
.bill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* CARD */
.bill-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
  position: relative;
}

.bill-card:hover {
  transform: translateY(-8px);
}

/* BADGES */
.bill-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  font-size: 13px;
  color: #fff;
  border-radius: 20px;
  z-index: 2;
}

.duplicate { background: #ff9800; }
.triplicate { background: #9c27b0; }
.custom { background: #03a9f4; }
.pro { background: #4caf50; }

/* IMAGE */
.bill-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.bill-card:hover .bill-img {
  transform: scale(1.08);
}

/* INFO */
.bill-info {
  padding: 20px;
  text-align: center;
}

.bill-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.bill-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.bill-info a {
  display: inline-block;
  padding: 10px 18px;
  background: #25d366;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.bill-info a:hover {
  background: #1ebe5d;
}

/* IMAGE MODAL */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.img-modal.active {
  display: flex;
}

.img-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.img-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}
/* PRODUCTS DROPDOWN */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* DROPDOWN BOX */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  min-width: 230px;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* DROPDOWN LINKS */
.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #facc15;
  color: #000;
}

/* SHOW ON HOVER */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
