/* ================= HERO SECTION ================= */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero p:last-of-type {
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #fff;
  color: #764ba2;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.btn:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(-1px);
}

/* ================= FLOATING GEOMETRIC SHAPES ================= */
.shape {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.shape.circle {
  border-radius: 50%;
  background: white;
}

.shape.square {
  background: white;
}

.shape.triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid white;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation: float 9s infinite ease-in-out;
}

.shape:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 20%;
  animation: float 11s infinite ease-in-out 1s;
}

.shape:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 60%;
  animation: float 11s infinite ease-in-out 2s;
}

.shape:nth-child(4) {
  top: 40%;
  left: 80%;
  animation: float 12s infinite ease-in-out 1.5s;
}

.shape:nth-child(5) {
  width: 50px;
  height: 50px;
  top: 70%;
  left: 30%;
  animation: float 10s infinite ease-in-out 0.5s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-40px) rotate(180deg); 
  }
}

/* ================= MODAL PREVIEW ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #ccc;
  text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
  .hero {
     padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }
}

/* Desktop/Laptop (1024px - 1199px) */
@media screen and (max-width: 1199px) {
  .hero {
    padding: 3.5rem 1rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.15rem;
  }
}

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .shape:nth-child(1) {
    width: 60px;
    height: 60px;
  }

  .shape:nth-child(2) {
    width: 50px;
    height: 50px;
  }

  .shape:nth-child(3) {
    width: 80px;
    height: 80px;
  }

  .shape:nth-child(5) {
    width: 40px;
    height: 40px;
  }
}

/* Mobile Landscape / Small Tablet (641px - 767px) */
@media screen and (max-width: 767px) {
  .hero {
      padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
  }

  .hero p:last-of-type {
    margin-bottom: 2rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .modal-content {
    max-width: 90%;
    max-height: 70%;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 35px;
  }

  /* Hide some shapes on mobile for cleaner look */
  .shape:nth-child(4),
  .shape:nth-child(5) {
    display: none;
  }

  .shape:nth-child(1) {
    width: 50px;
    height: 50px;
  }

  .shape:nth-child(2) {
    width: 40px;
    height: 40px;
  }

  .shape:nth-child(3) {
    width: 60px;
    height: 60px;
  }
}

/* Mobile Portrait (481px - 640px) */
@media screen and (max-width: 640px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero p br {
    display: none; /* Remove line breaks on small screens */
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
    line-height: 1.5;
  }

  .hero p:last-of-type {
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 65%;
  }

  .close {
    top: 5px;
    right: 10px;
    font-size: 30px;
  }

  /* Further reduce shape sizes */
  .shape:nth-child(1) {
    width: 40px;
    height: 40px;
    opacity: 0.1;
  }

  .shape:nth-child(2) {
    width: 35px;
    height: 35px;
    opacity: 0.1;
  }

  .shape:nth-child(3) {
    width: 50px;
    height: 50px;
    opacity: 0.1;
  }

  .shape.triangle {
    border-left-width: 25px;
    border-right-width: 25px;
    border-bottom-width: 45px;
  }

  @keyframes float {
    0%, 100% { 
      transform: translateY(0px) rotate(0deg); 
    }
    50% { 
      transform: translateY(-25px) rotate(180deg); 
    }
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media screen and (max-width: 360px) {
  .hero {
    padding: 2.5rem 0.8rem;
  }

  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
  }

  .hero p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .hero p:last-of-type {
    margin-bottom: 1.3rem;
  }

  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* Print styles */
@media print {
  .hero {
    background: #667eea;
    padding: 2rem 1rem;
  }

  .shape {
    display: none;
  }

  .btn {
    border: 2px solid #764ba2;
    box-shadow: none;
  }
}

/* ===== PRODUCT GRID ===== */
.product-section {
  padding: 60px 20px;
  background: #f9fafc;
}
/* ===== PRODUCT GRID ===== */
.section-title {
  text-align: center;
  margin: 50px 0 30px;
  font-size: 28px;
  color: #111827;
}
.product-grid {
 display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.product-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s;
}
.product-card img:hover {
  transform: scale(1.05);
}

/* Responsive: 1 column on small screens */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

