/* ------------------ */
/* RESET & BASE STYLES */
/* ------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  html, body {
    height: 100%; /* Allow full-height layout for sticky footer */
    margin: 0;
  }
  
  body {
    background-color: #f3f6fa;
    color: #333;
    line-height: 1.6;
  }
  
  
  /* ------------------ */
  /* HEADER NAVIGATION */
  /* ------------------ */
  
  header {
    background-color: #2d2d2d;
    color: white;
    padding: 20px 0;
    text-align: center;
    flex-shrink: 0;  /* Prevent header from shrinking */
    flex-grow: 0;    /* Prevent header from stretching in flex layout */
  }
  
  .nav-container h1 {
    margin-bottom: 10px;
    font-size: 40px;
  }
  
  nav a {
    margin: 0 25px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 25px;
  }
  
  nav a:hover {
    color: #0077cc;
  }
  
  
  /* ------------------ */
  /* PRODUCTS SECTION */
  /* ------------------ */
  
  .products {
    margin-top: 40px;
    text-align: center;
  }
  
  .products h2 {
    font-size: 35px;
    margin-bottom: 20px;
  }
  
  
  /* ------------------ */
  /* PRODUCT GRID LAYOUT */
  /* ------------------ */
  
  .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  
  /* ------------------ */
  /* INDIVIDUAL PRODUCT CARD */
  /* ------------------ */
  
  .product-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 400px;
    height: 400px;
    text-align: center;
  }
  
  .product-card img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  
  .product-card a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
  }
  
  .product-card a:hover {
    color: #0077cc;
    text-decoration: underline;
  }
  
  .product-card h4 {
    font-size: 25px;
    margin-bottom: 5px;
  }
  
  .product-card h5 {
    font-size: 20px;
  }
  
  
  /* ------------------ */
  /* RINGING MACHINE CARD */
  /* ------------------ */
  
  .product-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }
  
  .ringing-machine-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    width: 600px;
    height: 550px;
    text-align: center;
  }
  
  .ringing-machine-card img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  
  .ringing-machine-card h4 {
    font-size: 25px;
    margin-bottom: 5px;
  }
  
  .ringing-machine-card h5 {
    font-size: 20px;
  }
  
  
  /* ------------------ */
  /* ABOUT PAGE SECTION */
  /* ------------------ */
  
  .about {
    text-align: center;
    font-size: 20px;
    padding: 50px 10px 20px;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .about img {
    margin: 20px auto;
    display: block;
    max-width: 250px;
  }
  
  
  /* ------------------ */
  /* FOOTER */
  /* ------------------ */
  
  footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
  }
  
  
  /* ------------------ */
  /* PAGE CONTAINER FOR STICKY FOOTER */
  /* ------------------ */
  
  .page-container {
    min-height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
  }
  
  /* Prevent header & section from stretching */
  .page-container > header,
  .page-container > section {
    flex: none;
  }
  

/* ------------------ */
/* MODERN LAYOUT UPGRADES */
/* ------------------ */

/* Use Google Font for a cleaner look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
}

/* Sticky header with shadow */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animated underline effect for nav links */
nav a {
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #0077cc;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Product card hover effects */
.product-card,
.ringing-machine-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.ringing-machine-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .product-card,
    .ringing-machine-card {
        width: 90%;
        height: auto;
    }

    nav a {
        display: block;
        margin: 10px 0;
        font-size: 20px;
    }

    .nav-container h1 {
        font-size: 28px;
    }
}

/* Responsive iframe container for videos */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
