/* ===== Page / app styles (header moved to header.css) ===== */

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image: url('products/homebg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 29, 55, 0.85) 0%, rgba(10, 29, 55, 0.7) 50%, rgba(255, 136, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 1200px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #f5f5f5;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1.2s ease-out;
}

.btn-hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #B31E32, #9a1a2b);
    color: #ffffff;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(179, 30, 50, 0.4);
    animation: fadeInUp 1.4s ease-out;
}

.btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(179, 30, 50, 0.6);
    color: #ffffff;
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .btn-hero-cta {
        padding: 14px 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 80vh;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .btn-hero-cta {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Machine Cards Styling */
.machines-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
    justify-content: center;
}

.machine-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.machine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.machine-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.machine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.machine-card:hover .machine-card-image img {
    transform: scale(1.1);
}

.machine-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.machine-name {
    font-size: 20px;
    font-weight: 700;
    color: #0a1d37;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.machine-spec {
    font-size: 14px;
    color: #565973;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.btn-machine-learn {
    display: inline-block;
    background: linear-gradient(135deg, #345aca, #2847a8);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-machine-learn:hover {
    background: linear-gradient(135deg, #B31E32, #9a1a2b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 30, 50, 0.4);
    text-decoration: none;
    color: #ffffff;
}

.product-center .new-title {
    font-size: 42px;
    font-weight: 800;
    color: #0a1d37;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.product-center .new-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #B31E32, #345aca);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    .machines-grid {
        padding: 15px 0;
    }
    .machine-card-image {
        height: 200px;
    }
    .machine-name {
        font-size: 18px;
    }
    .machine-spec {
        font-size: 13px;
    }
    .product-center .new-title {
        font-size: 36px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .machines-grid {
        padding: 10px 0;
    }
    .machine-card-image {
        height: 180px;
    }
    .machine-card-content {
        padding: 20px;
    }
    .machine-name {
        font-size: 16px;
    }
    .machine-spec {
        font-size: 12px;
    }
    .btn-machine-learn {
        padding: 10px 24px;
        font-size: 13px;
    }
    .product-center .new-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

/* Testimonials Section Styling */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-title {
    font-size: 42px;
    font-weight: 800;
    color: #0a1d37;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #565973;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
}

.testimonials-swiper {
    padding: 20px 0 60px 0;
    position: relative;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.testimonial-quote-icon {
    font-size: 48px;
    color: #B31E32;
    opacity: 0.2;
    margin-bottom: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #0a1d37;
    margin-bottom: 24px;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #B31E32;
    flex-shrink: 0;
}

.testimonial-details {
    flex: 1;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    color: #0a1d37;
    margin: 0 0 4px 0;
}

.testimonial-company {
    font-size: 14px;
    color: #565973;
    margin: 0 0 8px 0;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 14px;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #B31E32, #9a1a2b);
    width: 32px;
    border-radius: 6px;
}

.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
    color: #B31E32;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-prev:hover,
.testimonials-swiper .swiper-button-next:hover {
    background: #B31E32;
    color: #ffffff;
    transform: scale(1.1);
}

/* Responsive Design - Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .testimonials-section {
        padding: 60px 0;
    }
    .testimonials-title {
        font-size: 36px;
    }
    .testimonial-card {
        padding: 32px 24px;
    }
    .testimonial-text {
        font-size: 15px;
    }
}

/* Responsive Design - Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0;
    }
    .testimonials-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    .testimonial-card {
        padding: 24px 20px;
    }
    .testimonial-text {
        font-size: 14px;
    }
    .testimonial-photo {
        width: 50px;
        height: 50px;
    }
    .testimonial-name {
        font-size: 16px;
    }
    .testimonial-company {
        font-size: 13px;
    }
    .testimonials-swiper .swiper-button-prev,
    .testimonials-swiper .swiper-button-next {
        display: none;
    }
}

/* Responsive Design - Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .testimonials-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 14px;
    }
    .testimonial-quote-icon {
        font-size: 36px;
    }
    .testimonial-client {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .machine-card-image {
        height: 160px;
    }
    .machine-card-content {
        padding: 16px;
    }
    .machine-name {
        font-size: 15px;
    }
    .btn-machine-learn {
        width: 100%;
    }
}

body {
    padding-top: 0;
    margin: 0;
    font-family: 'Open Sans', 'Inter', sans-serif;
    font-weight: 400;
    color: #333333;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .hero-subtitle,
.machine-name, .testimonials-title,
.section-title, .new-title {
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

body.has-hero {
    padding-top: 0;
}
 

/* Hero Section Styles */
.hero h1 {
    font-size: 48px;
    animation: fadeInDown 1s ease-in-out;
}

/* Products Section Styles */
.products {
    padding: 20px;
    text-align: center;
}

.products h2 {
    margin-bottom: 20px;
    font-weight: 700;
}

.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 20px;
}

.product-categories button {
    padding: 10px 20px;
    border: none;
    background-color: #0a1d37;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 15px; /* Adjust the value as needed for the desired roundness */
}

.product-categories button:hover {
    background-color: #B31E32;
    border-radius: 15px; /* Ensure the hover state also has rounded corners */
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-item {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    width: calc(33.333% - 40px); /* 3 items per row with some gap */
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item img {
    max-width: 100%;
    height: auto;
}

.product-item.show {
    opacity: 1;
    transform: scale(1);
    display: block; /* Ensure items are block-level elements */
}

.product-item.hide {
    display: none;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-item {
        width: calc(50% - 40px); /* 2 items per row with some gap */
    }
}

@media (max-width: 768px) {
    .product-item {
        width: calc(100% - 40px); /* 1 item per row with some gap */
    }

    .hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 10px;
    }

    .product-categories button {
        padding: 5px 10px;
        font-size: 14px;
    }

    .product-item {
        padding: 10px;
        width: calc(100% - 20px); /* Adjust for smaller padding */
    }

    .product-item h3, .product-item p {
        font-size: 14px;
    }

    .product-item button {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* Nav/menu responsive behaviours moved to header.css */

/* Keyframe Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filtering animations */
.product-item {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-item.show {
    opacity: 1;
    transform: scale(1);
    display: block;
}

.product-item.hide {
    display: none;
}

/* Additional styles for the buttons */
.product-categories button {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    background-color: #0a1d37;
    color: #fff;
    margin: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.product-categories button:hover {
    background-color: #B31E32;
    transform: translateY(-2px);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
  }

  .button:hover {
    background: linear-gradient(135deg, #B31E32, #9a1a2b);
  }

 
  body {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      background-color: #f5f5f5;
  }
     .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float img {
    width: 200px;
    height: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}
@media (max-width: 1024px) {
    .whatsapp-float img {
        width: 150px; /* Reduce size for tablets */
    }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
    .whatsapp-float img {
        width: 100px; /* Smaller size for mobile devices */
    }
}

/* Extra small screens (very small phones) */
@media (max-width: 480px) {
    .whatsapp-float img {
        width: 80px; /* Even smaller size for very small screens */
    }
}
