/* @tailwind base;
@tailwind components;
@tailwind utilities; */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f4f9ff;
    color: #333;
    line-height: 1.6;
}

/* Top Info Bar */
.top-bar {
    /* background-color: #001f4d; */
    color: white;
    padding: 6px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.info-left span {
    margin-right: 20px;
}

@media (max-width: 600px) {
    .top-bar .container {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .info-left span {
        margin-left: 0;
        margin-right: 0; /* Remove right margin for stacking */
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.header {
    height: 75px; /* Fixed header height */
    display: flex;
    align-items: center;
    /* background: #002d72; */
    color: white;
    position: relative;
    z-index: 1000;
    padding: 0 20px; /* Add horizontal padding to header itself */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure container fills header width */
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* --- Mobile Specific Styles (Default for Mobile First) --- */

/* Hamburger Menu Toggle */
.menu-toggle {
    display: block; /* Show hamburger on mobile */
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    order: 2; /* Position after logo */
}

/* Main Navigation (Hidden by default on mobile) */
.main-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Below the header */
    left: 0;
    width: 100%;
    background: #002f9e; /* Solid background for mobile menu */
    flex-direction: column; /* Stack links vertically */
    padding: 15px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Ensure it's below top-bar but above content */
}

.main-nav.active {
    display: flex; /* Show when active */
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column; /* Stack items vertically for mobile */
    align-items: center; /* Center align items */
    gap: 15px; /* Space between links */
    width: 100%; /* Ensure ul takes full width of nav */
}

.main-nav ul li {
    width: 100%; /* Make list items take full width */
    text-align: center; /* Center text within list items */
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 15px; /* Increase padding for better tap area */
    display: block; /* Make link fill padding area */
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: #004080; /* Highlight on hover */
}

/* Dropdown Container for Mobile */
.main-nav .dropdown {
    position: relative;
    width: 100%; /* Ensure dropdown takes full width */
}

.main-nav .dropdown a {
    position: relative; /* For caret positioning */
}

.main-nav .dropdown a .fas.fa-caret-down {
    margin-left: 5px; /* Space for caret */
}

/* Dropdown Menu for Mobile */
.main-nav .dropdown-menu {
    display: none; /* Hidden by default */
    position: static; /* Stack naturally within the flow for mobile */
    background: #003a8d; /* Slightly different background for sub-menu */
    color: white; /* Text color for sub-menu */
    box-shadow: none; /* No shadow for mobile dropdown */
    min-width: unset; /* Remove min-width constraint */
    border-radius: 0; /* No border-radius */
    padding: 0; /* Remove padding */
    width: 100%; /* Take full width */
}

.main-nav .dropdown.active .dropdown-menu {
    display: block; /* Show when parent dropdown is active */
}

.main-nav .dropdown-menu li {
    padding: 0; /* Remove padding from li */
    width: 100%; /* Full width */
}

.main-nav .dropdown-menu li a {
    color: white; /* Ensure links are white */
    padding: 10px 20px; /* Adjust padding for sub-items */
    background-color: #003a8d; /* Same as dropdown menu background */
}

.main-nav .dropdown-menu li a:hover {
    background-color: #004d99; /* Hover effect for sub-items */
}

/* --- Desktop Styles (Media Query) --- */
@media (min-width: 768px) {
    /* Top Bar - Desktop */
    .top-bar {
        padding: 6px 0; /* Original padding */
        font-size: 14px; /* Original font size */
        text-align: right;
    }

    .top-bar .container {
        justify-content: flex-end;
        flex-direction: row;
    }

    .info-left span {
        margin-right: 20px;
    }

    /* Header - Desktop */
    .header {
        height: 75px;
        padding: 0; /* Remove padding as container handles it */
    }

    .header .container {
        justify-content: space-between;
        /* Revert to original justify */
        width: 90%; /* Restore original container width */
    }

    .logo img {
        height: 90px;
    }

    /* Hide hamburger menu on desktop */
    .menu-toggle {
        display: none;
    }

    /* Main Navigation - Desktop */
    .main-nav {
        display: block; /* Always visible on desktop */
        position: static; /* No absolute positioning */
        width: auto; /* Auto width */
        background: none; /* No background */
        box-shadow: none; /* No shadow */
        flex-direction: row; /* Horizontal links */
        padding: 0;
        z-index: auto;
    }

    .main-nav ul {
        flex-direction: row; /* Horizontal links */
        gap: 20px; /* Restore original gap */
        width: auto; /* Auto width for ul */
    }

    .main-nav ul li {
        width: auto; /* Auto width for list items */
        text-align: left; /* Revert text alignment */
    }

    .main-nav a {
        padding: 0; /* Remove extra padding from mobile */
        display: inline-block; /* Revert to inline-block for proper spacing */
        background-color: transparent; /* No background hover */
    }

    .main-nav a:hover {
        color: #00aaff;
        background-color: transparent; /* No background hover */
    }

    /* Dropdown Container for Desktop */
    .main-nav .dropdown {
        position: relative;
        width: auto; /* Auto width */
    }

    /* Dropdown Menu for Desktop */
    .main-nav .dropdown-menu {
        display: none; /* Hidden by default */
        position: absolute; /* Absolute positioning */
        top: 100%;
        left: 0;
        background: white; /* White background */
        color: black;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
        min-width: 180px; /* Restore min-width */
        border-radius: 5px;
        padding: 0; /* Ensure no padding on the ul itself */
    }

    /* Show Dropdown on Hover (Desktop) */
    .main-nav .dropdown:hover .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown-menu li {
        padding: 10px; /* Restore padding for desktop dropdown items */
    }

    .main-nav .dropdown-menu li a {
        color: #111827; /* Dark text for desktop dropdown items */
        padding: 0; /* Remove padding as li handles it */
        background-color: transparent; /* No background */
    }

    .main-nav .dropdown-menu li:hover {
        background-color: #004080;
        color: white;
    }

    .main-nav .dropdown-menu li:hover a {
        color: white;
    }
}

#whatsappicon {
    text-decoration: none;
    color: rgb(77, 232, 77);
}
#whatsapp {
    text-decoration: none;
    color: rgb(77, 232, 77);
}

/* Footer Styles */
.site-footer {
    /* background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%); */
    color: #fff;
    padding: 150px 0 20px; /* Increased top padding to accommodate floating section */
    position: relative;
    z-index: 1; /* Lower z-index than grow-business section */
    margin-top: -80px; /* Negative margin to pull footer up behind floating section */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
/* 
.footer-column ul li a:hover {
    color: #ff4b2b;
} */

.footer-column address,
.footer-column p {
    margin-bottom: 10px;
    font-family: "Segoe UI", sans-serif;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
}

.footer-column a:hover {
    color:orange;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color:#fff;
    font-size: 0.9em;
}

footer {
  background: #1a237e;
    /* background-color: #0d0d57; */
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column; /* Stack content vertically on mobile */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    /* background: linear-gradient(to right, #0049e6, #001d6c); */
    color: #fff;
    padding: 40px 20px; /* Adjusted padding for mobile */
    text-align: center; /* Center text on mobile */
    /* margin-top: 100px; */
    height: 400px;
}

.hero-text {
    max-width: 100%; /* Allow text to take full width */
    margin-bottom: 30px; /* Space between text and image on mobile */
}

.hero-text h1 {
    font-size: 35px; /* Smaller heading for mobile */
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;

}

.hero-text p {
    font-size: 12px; /* Smaller paragraph for mobile */
    margin-bottom: 15px;
}

.hero-text button {
    padding: 10px 20px;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    width: fit-content; /* Adjust button width to content */
    margin: 0 auto; /* Center the button */
}

.hero-image {
    order: -1; /* Place image above text on mobile */
    margin-bottom: 20px; /* Space below image */
}

.hero-image img {
    max-width: 200px; /* Smaller image for mobile */
    height: auto; /* Maintain aspect ratio */
    animation: float 4s ease-in-out infinite;
    padding-right: 0; /* Remove specific padding */
}

/* Floating Animation (keep as is) */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Desktop Hero Section */
@media (min-width: 768px) {
    .hero {
        flex-direction: row; /* Side-by-side layout */
        justify-content: space-between;
        padding: 60px 40px; /* Restore original padding */
        text-align: left; /* Align text to left */
    }

    .hero-text {
        max-width: 600px; /* Restore original max-width */
        margin-bottom: 0; /* No bottom margin */
    }

    .hero-text h1 {
        font-size: 48px; /* Restore original font size */
        font-weight: 700;
    }

    .hero-text p {
        font-size: 18px; /* Restore original font size */
    }

    .hero-text button {
        margin: 0; /* Remove center margin */
    }

    .hero-image {
        order: 0; /* Restore original order */
        margin-bottom: 0; /* No bottom margin */
    }

    .hero-image img {
        max-width: 600px; /* Restore original max-width */
        padding-right: 200px; /* Restore original padding */
    }
}

/* Top Section with Video Background */
.top {
    position: relative;
    height: 650px;
    overflow: hidden;
    width: 100%;
}

/* Video Background - Mobile Optimized */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the video covers the entire container */
    z-index: -1;
    filter: brightness(60%);
}

/* Mobile specific video adjustments */
@media (max-width: 767px) {
    .top {
        height: 100vh; /* Use full viewport height on mobile */
        min-height: 500px; /* Ensure minimum height */
    }
    
    #background-video {
        /* Force video to cover entire mobile screen */
        width: 100vw;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero {
        height: auto;
        min-height: 300px;
        padding: 20px 15px;
    }
    
    .hero-text h1 {
        font-size: 28px;
        margin-bottom: 20px;
        font-weight: 700;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .top {
        height: 600px;
    }
    
    #background-video {
        object-fit: cover;
        object-position: center;
    }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
    .top {
        height: 650px;
    }
    
    #background-video {
        object-fit: cover;
        object-position: center;
    }
}

header, .hero {
    position: relative;
    z-index: 1;
}

/* Grow Your Business Section Styles - FLOATING EFFECT */
.grow-business-section {
    /* background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); */
    background-image: url(./bg_images/business1.png);
    background-size: cover;
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 50; /* High z-index to float above footer */
    margin: 60px auto -100px auto; /* Negative bottom margin to overlap footer */
    border-radius: 20px;
    width: 85%;
    max-width: 1200px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grow-business-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3), 0 15px 30px rgba(0, 0, 0, 0.15);
}

.grow-business-section .container {
    width: 100%;
    padding: 0;
}

.grow-business-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grow-business-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
    margin-left: 250px;
}

.grow-business-section marquee {
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 20px;
}

.get-started-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.get-started-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7043);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
}

/* --- Responsive Adjustments for Floating Section --- */

/* For screens smaller than 768px (e.g., tablets and mobile) */
@media (max-width: 768px) {
    .grow-business-section {
        padding: 30px 20px;
        width: 90%;
        margin: 40px auto -80px auto;
        border-radius: 15px;
    }

    .grow-business-section h2 {
        font-size: 1.5rem;
    }

    .grow-business-section p {
        font-size: 1rem;
        margin-bottom: 20px;
        margin-left: auto;
 
    }

    .get-started-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .site-footer {
        padding: 120px 0 20px;
        margin-top: -60px;
    }
}

/* For screens smaller than 480px (e.g., mobile phones) */
@media (max-width: 480px) {
    .grow-business-section {
        padding: 25px 15px;
        width: 95%;
        margin: 30px auto -70px auto;
        border-radius: 12px;
    }

    .grow-business-section h2 {
        font-size: 1.3rem;
    }

    .grow-business-section p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .get-started-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .site-footer {
        padding: 100px 0 20px;
        margin-top: -50px;
    }
}

/* For screens larger than 1200px (e.g., large desktops) */
@media (min-width: 1400px) {
    .grow-business-section {
        width: 80%;
        padding: 50px 40px;
        margin: 80px auto -120px auto;
    }

    .grow-business-section h2 {
        font-size: 2.5rem;
    }

    .grow-business-section p {
        font-size: 1.2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer {
        padding: 180px 0 20px;
        margin-top: -100px;
    }
}


/* Hide checkbox inputs */
.show-more-checkbox {
  display: none;
}

/* Base Grid Styles */
.products-grid,
.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.5s ease-in-out;
}

/* Responsive Grid Layout */
/* Mobile First - Single Column */
.products-grid,
.services-grid {
  grid-template-columns: 1fr;
}

/* Small Tablets - 2 columns */
@media (min-width: 640px) {
  .products-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
}

/* Large Tablets and Desktop - 3 columns */
@media (min-width: 1024px) {
  .products-grid,
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
  }
}

/* Extra Large Screens - Maintain 3 columns with better spacing */
@media (min-width: 1280px) {
  .products-grid,
  .services-grid {
    gap: 2.5rem;
  }
}

/* Card Styles */
.product-card,
.service-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  position: relative;
  overflow: hidden;
  height: fit-content;
}

/* Responsive Card Hover Effects */
@media (min-width: 768px) {
  .product-card:hover,
  .service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
}

/* Mobile - Reduced hover effects */
@media (max-width: 767px) {
  .product-card:hover,
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
  }
}

/* Card Content */
.card-content {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .card-content {
    padding: 2rem;
  }
}

/* Icon Container */
.icon-container {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .icon-container {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
  }
}

/* Icon hover effects only on larger screens */
@media (min-width: 768px) {
  .product-card:hover .icon-container,
  .service-card:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
  }
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
  stroke-width: 2;
}

@media (min-width: 640px) {
  .icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Typography */
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.card-description {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .card-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (min-width: 640px) {
  .feature-item {
    font-size: 0.875rem;
  }
}

.feature-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Hidden cards initially */
.hidden-card {
  display: none;
  animation-delay: 0.3s;
}

/* Show hidden cards when checkbox is checked */
.show-more-checkbox:checked ~ .products-grid .hidden-card,
.show-more-checkbox:checked ~ .services-grid .hidden-card {
  display: block;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation for hidden cards */
.show-more-checkbox:checked ~ .products-grid .hidden-card:nth-of-type(4) {
  animation-delay: 0.1s;
}
.show-more-checkbox:checked ~ .products-grid .hidden-card:nth-of-type(5) {
  animation-delay: 0.2s;
}
.show-more-checkbox:checked ~ .products-grid .hidden-card:nth-of-type(6) {
  animation-delay: 0.3s;
}
.show-more-checkbox:checked ~ .products-grid .hidden-card:nth-of-type(7) {
  animation-delay: 0.4s;
}

.show-more-checkbox:checked ~ .services-grid .hidden-card:nth-of-type(4) {
  animation-delay: 0.1s;
}
.show-more-checkbox:checked ~ .services-grid .hidden-card:nth-of-type(5) {
  animation-delay: 0.2s;
}
.show-more-checkbox:checked ~ .services-grid .hidden-card:nth-of-type(6) {
  animation-delay: 0.3s;
}
.show-more-checkbox:checked ~ .services-grid .hidden-card:nth-of-type(7) {
  animation-delay: 0.4s;
}
.show-more-checkbox:checked ~ .services-grid .hidden-card:nth-of-type(8) {
  animation-delay: 0.5s;
}
.show-more-checkbox:checked ~ .services-grid .hidden-card:nth-of-type(9) {
  animation-delay: 0.6s;
}

/* View More Button */
.view-more-container {
  text-align: center;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .view-more-container {
    margin-top: 2rem;
  }
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .view-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

.products-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.products-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.services-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.services-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Mobile - Reduced button hover effects */
@media (max-width: 767px) {
  .products-btn:hover,
  .services-btn:hover {
    transform: translateY(-1px) scale(1.02);
  }
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  stroke-width: 2;
}

@media (min-width: 640px) {
  .btn-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Toggle button text */
.btn-text-more {
  display: flex;
  align-items: center;
}

.btn-text-less {
  display: none;
  align-items: center;
}

.show-more-checkbox:checked ~ .view-more-container .btn-text-more {
  display: none;
}

.show-more-checkbox:checked ~ .view-more-container .btn-text-less {
  display: flex;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Visible cards animation */
.visible-card:nth-child(1) {
  animation-delay: 0.1s;
}
.visible-card:nth-child(2) {
  animation-delay: 0.2s;
}
.visible-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Mobile - Faster animations */
@media (max-width: 767px) {
  .visible-card {
    animation-delay: 0s !important;
    animation-duration: 0.6s;
  }
  
  .hidden-card {
    animation-delay: 0s !important;
    animation-duration: 0.6s;
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Button focus states for accessibility */
.view-more-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Additional hover effects for larger screens */
@media (min-width: 768px) {
  .product-card::before,
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .product-card:hover::before,
  .service-card:hover::before {
    opacity: 1;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover,
  .service-card:hover {
    transform: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  .product-card:hover .icon-container,
  .service-card:hover .icon-container {
    transform: none;
  }
  
  .view-more-btn:hover {
    transform: none;
  }
}

/* Improved spacing for mobile */
@media (max-width: 639px) {
  .products-grid,
  .services-grid {
    gap: 1.25rem;
  }
}

/* Better text readability on small screens */
@media (max-width: 479px) {
  .card-title {
    font-size: 1rem;
  }
  
  .card-description {
    font-size: 0.8rem;
  }
  
  .feature-item {
    font-size: 0.75rem;
  }
  
  .card-content {
    padding: 1.25rem;
  }
}