 :root {
            --primary: #e63946; /* NBit Red */
            --secondary: #1d3557; /* NBit Dark Blue */
            --accent: #457b9d; /* NBit Light Blue */
            --dark: #2b2d42;
            --light: #ffffff;
            --gray: #f8f9fa;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--light);
            color: #333;
            overflow-x: hidden;
        }
        
        /* Header Styles */
        header {
            position: fixed;
            top: 0;
            left: 0;
            height: 17.8%;
            width: 100%;
            z-index: 1000;
            background-color: rgba(255, 255, 255, 0.98);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease; /* smoother animation for shrinking */
            border-bottom: 3px solid var(--primary);
            display: flex;
            align-items: center;
        }

        header.scrolled {
            background-color: rgba(255, 255, 255, 0.98);
            opacity: 70%; /* slightly transparent when scrolled */
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
            height: 10%; /* shrink height when scrolling */
        }

        .logo img {
            font-size: 2rem;
            transition: font-size 0.3s ease;
        }

        header.scrolled logo img {
            font-size: 1.5rem; /* make logo smaller when scrolled */
        }

        /* Adjust navigation padding when scrolled */
        header nav a {
            padding: 20px;
            transition: padding 0.3s ease;
        }

        header.scrolled nav a {
            padding: 10px;
        }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
        }
        
        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--secondary);
            text-decoration: none;
            display: flex;
            align-items: center;
            size: 50%;
        }

        .logo img {
            width: 80px;
            height: auto;
            transition: width 0.3s ease, height 0.3s ease;
        }

        header.scrolled .logo img {
            width: 50px; /* smaller when scrolled */
        }

        .logo span {
            color: var(--primary);
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 30px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            font-size: 16px;
            transition: var(--transition);
            position: relative;
        }
        
        .nav-links a:hover {
            color: var(--primary);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background: var(--primary);
            bottom: -5px;
            left: 0;
            transition: var(--transition);
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 24px;
            color: var(--secondary);
        }
        
        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(29, 53, 87, 0.05) 100%);
            position: relative;
            overflow: hidden;
            margin-top: 80px;
            background-size: 120%; /* slightly zoomed in */
            background-position: center center;
            opacity: 0;
            transition: opacity 1.5s ease, background-size 2s ease, background-position 2s ease;
        }

        .hero.animate-bg {
            background-size: 100%; /* zoom out smoothly */
            background-position: center 30%; /* move image down a bit */
            opacity: 1;
        }

        /* Dark overlay */
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6); /* Dark transparent overlay */
            opacity: 0; /* start invisible */
            transition: opacity 1.5s ease; /* fade in smoothly */
        }

        /* Fade overlay in with animation */
        .hero.animate-bg::before {
            opacity: 1;
        }

        /* Ensure content is above overlay */
        .hero-content,
        .container {
            position: relative;
            z-index: 2;
        }

        .hero-content {
            max-width: 600px;
        }

        
        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
            line-height: 1.2;
            color: var(--light);        
        }
        
        .hero h1 span {
            color: var(--primary);
        }
        
        .hero p {
            font-size: 18px;
            margin-bottom: 30px;
            color: var(--light);
            line-height: 1.6;
            text-align: justify;
            text-justify: inter-word;

        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: var(--primary);
            color: var(--light);
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
            background: #d62839;
        }
        
        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            margin-left: 15px;
        }
        
        .btn-outline:hover {
            background: var(--primary);
            color: var(--light);
        }
        
        .hero-image {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 50%;
            max-width: 700px;
            z-index: 1;
            opacity: 0.9;
        }

        .hero-bg {
        background-size: cover;
        background-position: center;
        transition: background-image 1s ease-in-out;
        min-height: 80vh;
        display: flex;
        align-items: center;
        }


        /* Shared animation defaults */
        .fade-in, .fade-in-img, .hero{
        opacity: 0;
        transform: translateY(30px); /* start slightly below */
        transition: opacity 1s ease, transform 1s ease;
        }

        /* Final state after animation */
        .fade-in.show, .fade-in-img.show, .hero.show {
        opacity: 1;
        transform: translateY(0);
        }        
        
        /* Section Styles */
        section {
            padding: 100px 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-title h2 {
            font-size: 36px;
            margin-bottom: 15px;
            color: var(--secondary);
            position: relative;
            display: inline-block;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            width: 50px;
            height: 3px;
            background: var(--primary);
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .section-title p {
            color: #777;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        /* Services Section */
        .services-section {
            min-height: 100vh; /* full screen height */
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
        }
        
        .services {
            background-color: var(--gray);
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .service-card {
            background-color: var(--light);
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            text-align: center;
            border-top: 3px solid var(--accent);
        }
        
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(29, 53, 87, 0.1);
            border-top-color: var(--primary);
        }
        
        .service-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--secondary);
            border-radius: 50%;
            color: var(--light);
            font-size: 32px;
        }
        
        .service-card h3 {
            font-size: 22px;
            margin-bottom: 15px;
            color: var(--secondary);
        }
        
        .service-card p {
            color: #777;
            line-height: 1.6;
        }


/* ================= PRODUCTS SECTION ================= */
.products {
  padding: 60px 0;
  background: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 16px;
  color: #555;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 28px;
  color: #333;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

/* Hide arrows when disabled */
.carousel-btn.hidden {
  display: none;
}

/* Scrollable Grid */
.products-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
}

.products-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Product Card */
.product-card {
  min-width: 280px;
  max-width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: auto;  /* FIXED: removed fixed 420px so content fits naturally */
}

  .product-card-2 {
            background-color: var(--light);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            border: 1px solid #eee;
        }

/* Image */
.product-image {
  height: 200px;  /* FIXED: keep all images same height */
  width: 100%;    /* FIXED: removed conflicting width:100px */
  background-size: cover;
  background-position: center;
  flex-shrink: 0; /* ensures image area stays fixed */
}

/* Content */
.product-content {
  padding: 15px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  min-height: 24px;
}

.product-content h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--primary);
  min-height: 20px;   /* FIXED: sync subheading height */
}

.product-content p {
  font-size: 14px;
  color: #555;
  flex-grow: 1;       /* FIXED: pushes button down so layout stays neat */
  margin-bottom: 15px;
}

/* Learn More Button */
.product-content .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: center;
}

.product-content .btn:hover {
  background: #005a9e;
}




        /* About Section */
        .about {
            background-color: var(--gray);
        }
        
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }
        
        .about-text h2 {
            font-size: 36px;
            margin-bottom: 20px;
            color: var(--secondary);
        }
        
        .about-text p {
            color: #777;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        
        .about-mission {
            margin-top: 40px;
        }
        
        .mission-card {
            background-color: var(--light);
            padding: 25px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-left: 4px solid var(--primary);
        }
        
        .mission-card h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--primary);
        }
        
        .mission-card p {
            color: #777;
            line-height: 1.6;
        }
        
        .about-image {
            position: relative;
            height: 500px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border: 5px solid var(--light);
        }
        
        .about-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* Partners Section */
        .partners {
            text-align: center;
        }

        .partners-section {
            min-height: 100vh; /* full screen height */
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
        }
        
        .partner-logos {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 40px;
            margin-top: 40px;
        }
        
        .partner-logo {
            max-width: 150px;
            filter: grayscale(100%);
            opacity: 0.7;
            transition: var(--transition);
        }
        
        .partner-logo:hover {
            filter: grayscale(0);
            opacity: 1;
        }


/* ===== Client Section ===== */
        .client {
            text-align: center;
        }

        .client-section {
            min-height: 100vh; /* full screen height */
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
        }

        .client-logos {
            display: grid;
            grid-template-columns: repeat(5, 1fr); /* 5 logos per row */
            gap: 30px;                             /* space between logos */
            justify-items: center;                 /* center logos in each grid cell */
            align-items: center;
            margin-top: 40px;
        }

        .client-logo {
            max-width: 150px;
            max-height: 100px;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .client-logo:hover {
            filter: grayscale(0);
            opacity: 1;
             transform: scale(1.1);
        }

        
        /* Careers Section */
        .careers {
            background-color: var(--gray);
        }

        .careers-section {
            min-height: 100vh; /* full screen height */
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
        }
        
        .career-card {
            background-color: var(--light);
            border-radius: 8px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-left: 4px solid var(--accent);
        }
        
        .career-card h3 {
            font-size: 22px;
            margin-bottom: 10px;
            color: var(--secondary);
        }
        
        .career-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
            color: #777;
        }
        
        .career-card p {
            color: #777;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        
        /* Contact Section */
        .contact {
            position: relative;
        }
        
        .contact-section {
            min-height: 100vh; /* full screen height */
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
        }
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
        }
        
        .contact-info h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--secondary);
        }
        
        .contact-details {
            margin-bottom: 30px;
        }
        
        .contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
        }
        
        .contact-icon {
            width: 40px;
            height: 40px;
            background: var(--secondary);
            color: var(--light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .contact-text h4 {
            font-size: 18px;
            margin-bottom: 5px;
            color: var(--secondary);
        }
        
        .contact-text p {
            color: #777;
            line-height: 1.6;
        }
        
        .contact-form {
            background-color: var(--light);
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border: 1px solid #eee;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--secondary);
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            transition: var(--transition);
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
        }
        
        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }
        
        /* Footer */
        footer {
            background-color: var(--secondary);
            color: var(--light);
            padding: 70px 0 20px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }
        
        .footer-column h3 {
            font-size: 20px;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
            color: var(--light);
        }
        
        .footer-column h3::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 2px;
            background: var(--primary);
            bottom: 0;
            left: 0;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: var(--light);
            padding-left: 5px;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
        }
        
        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: var(--light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .back-to-top.active {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-5px);
            background: #d62839;
        }
        
        /* Responsive Styles */
        @media (max-width: 992px) {
            .hero h1 {
                font-size: 42px;
            }
            
            .about-content {
                grid-template-columns: 1fr;
            }
            
            .about-image {
                height: 400px;
                margin-top: 40px;
            }
            
            .contact-container {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }
            
            .nav-links {
                position: fixed;
                top: 80px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 80px);
                background-color: var(--light);
                flex-direction: column;
                align-items: center;
                padding: 40px 0;
                transition: var(--transition);
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            }
            
            .nav-links.active {
                left: 0;
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .hero {
                text-align: center;
                padding-top: 100px;
            }
            
            .hero-content {
                max-width: 100%;
            }
            
            .hero-image {
                display: none;
            }
            
            .section-title h2 {
                font-size: 32px;
            }
            
            .btn-group {
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            
            .btn-outline {
                margin-left: 0;
            }
        }
        
        @media (max-width: 576px) {
            .hero h1 {
                font-size: 36px;
            }
            
            .btn {
                padding: 10px 25px;
                font-size: 14px;
            }
            
            .section-title h2 {
                font-size: 28px;
            }
            
            .service-card, .product-card {
                padding: 20px;
            }
            
            .contact-form {
                padding: 30px 20px;
            }
            
            .about-image {
                height: 300px;
            }
        }
        
        /* Animation */
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }
        
        .floating {
            animation: float 6s ease-in-out infinite;
        }

        /* Section Layout */
        .feature-section {
            padding: 80px 20px;
            background: linear-gradient(135deg, rgba(230, 57, 70, 0.03), rgba(29, 53, 87, 0.03));
        }

        .feature-content {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10%;
            flex-wrap: wrap; /* mobile responsive */
        }

        /* Image Styling */
        .feature-image {
            max-width: 850px;
            max-height: 650px;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 8px 20px var(--secondary);
            flex: 1;
        }

        .feature-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .feature-image img:hover {
            transform: scale(1.05);
            transition: transform 0.3s ease;
        }

        /* Text Block */
        .feature-text {
            max-width: 450px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feature-text h3 {
            font-size: 32px;
            font-weight: 600;
            color: var(--secondary);
        }

        .feature-point h4 {
            font-size: 20px;
            font-weight: 500;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .feature-point span {
            font-size: 16px;
            color: #555;
            line-height: 1.6;
        }

        .features {
            padding: 80px 20px;
            background-color: #f8f9fa;
            text-align: center;
        }

        .features h2 {
            font-size: 2.5rem;
            margin-bottom: 40px;
            color: #333;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .feature-item {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .feature-item:hover {
            transform: translateY(-10px);
        }       

        .feature-item h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #1d3557;
        }

        .feature-item p {
            color: #555;
            font-size: 1rem;
        }




/* ===== AI.html Specific Animation ===== */
        .ai-page .hero {
            position: relative;
            overflow: hidden;
        }

    /* Background video */
        .ai-page .bg-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* Fill area while keeping aspect ratio */
            transform: translateX(-100%);
            animation: slideInBg 1.5s ease forwards;
            z-index: -1; /* Behind content */
        }

        @keyframes slideInBg {
            to {
                transform: translateX(0);
            }
        }

    /* Hero content fade-in */
        .ai-page .hero-content {
            position: relative;
            z-index: 1;
            opacity: 0;
            animation: fadeInContent 1s ease forwards;
            animation-delay: 1.5s;
        }

        @keyframes fadeInContent {
            to {
                opacity: 1;
            }
        }

/* ai card */
        .ai-page .products-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 30px;
        }

        .ai-page .product-card {
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            text-align: center;
            transition: transform 0.3s ease;
        }

        .ai-page .product-card:hover {
            transform: translateY(-5px);
        }

        .ai-page .product-image {
            width: 100%;
            height: 200px;
            background-size: cover;
            background-position: center;
        }

        .ai-page .product-content {
            padding: 15px;
        }

        .ai-page .product-content h3 {
            margin-top: 10px;
            font-size: 1.2rem;
        }

        .ai-page .product-content p {
            font-size: 0.95rem;
            color: #555;
        }

/* responsive layout */
        @media (max-width: 900px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            .products-grid {
                grid-template-columns: 1fr;
            }
        }

            
        .product-card {
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            text-align: center;
            transition: transform 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-5px);
        }

        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .product-content {
            padding: 15px;
        }

        .product-content h3 {
            margin-top: 10px;
            font-size: 1.2rem;
        }

        .product-content p {
            font-size: 0.95rem;
            color: #555;
        }

        html {
            scroll-behavior: smooth; /* smooth scroll */
        }

        body {
            scroll-snap-type: y mandatory; /* vertical snapping */
            overflow-y: scroll;
        }

        section {
            scroll-snap-align: start; /* snap each section to top */
        }

        /* Scroll Animation Base State */
        /* Base hidden state for all reveals */
        .reveal,
        .reveal-left,
        .reveal-right,
        .reveal-zoom {
            opacity: 0;
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        /* Variations starting positions */
        .reveal {
            transform: translateY(30px);
        }
        .reveal-left {
            transform: translateX(-30px);
        }
        .reveal-right {
            transform: translateX(30px);
        }
        .reveal-zoom {
            transform: scale(0.9);
        }

        /* Active state (when in view) */
        .reveal.active,
        .reveal-left.active,
        .reveal-right.active,
        .reveal-zoom.active {
            opacity: 1;
            transform: none;
        }


/* Cloud Section Grid */
.cloud-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* always 3 per row */
    gap: 15px;          /* tighter spacing */
    padding: 20px;      /* smaller padding */
    margin-top: 20px;
}

.cloud-card {
    background: #fff;
    padding: 18px;      /* slightly smaller inside padding */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 320px;   /* keeps card smaller */
    margin: auto;
}

/* Image frame - same for all */
.cloud-image {
    width: 100%;
    height: 180px;      /* fixed uniform height */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 12px;
}

.cloud-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* crop nicely without stretching */
    display: block;
}

.cloud-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image */
.cloud-image {
    position: relative;
    overflow: hidden;
}

.cloud-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.cloud-card:hover .cloud-image img {
    transform: scale(1.08);
}

/* Overlay on Hover */
.cloud-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75); /* Darker background for text visibility */
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.cloud-card:hover .cloud-info {
    opacity: 1;
}

.cloud-info h3 {
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    margin-bottom: 10px;
}

.cloud-info p {
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Title Below Image */
.cloud-title {
    font-size: 1.15rem;
    font-weight: bold;
    padding: 15px 10px;
    color: #1d3557; /* Dark Blue for strong contrast */
    text-align: center;
}

.cloud-solution-panel img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* Divider */
.cloud-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #e63946, transparent);
    margin: 60px 0;
}

/*fas feature*/

/*fas feature*/

.fas {
    background: linear-gradient(135deg, var(--light));
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.03), rgba(29, 53, 87, 0.03));
    padding: 60px 0;
    width: 100%; /* Ensure full width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;/* ensures text aligns center */

}

.fas .container {
    max-width: 1200px;
    margin: 0 auto; /* centers container itself */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fas-timeline,
.fas-solution-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glassmorphism */
.fas-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
}

.fas-glass:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 35px var(--secondary);
}

.fas h3 {
    font-size: 1 rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.fas p {
    color: #777;
    line-height: 1.5rem; /* Fixed: Added 'rem' unit */
    margin: 30px;
    font-weight: normal; /* Ensures text is not bold */
    text-align: justify;
    justify-content: left;
}

/* Timeline Grid */
.fas-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center; /* Center grid items horizontally */
}

/* Timeline Item with image + text */
.fas-timeline-item {
    width: 100%;
    max-width: 500px;
    min-height: 150px; /* Set a minimum height */
    display: flex;
    align-items: center; /* Vertically center content */
    padding: 20px;
    box-sizing: border-box;
    gap: 20px; 
}

.fas-timeline-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Solution Grid */
.fas-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0;
    width: 100%;
    justify-items: center;
    margin-top: 0  !important;
}

.fas-solution-panel {
    width: 100%;
    max-width: 400px;
    min-height: 350px; /* Set a fixed height or min-height */
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

/* Ensure content inside panels is properly spaced */
.fas-solution-panel > div {
    flex: 1; /* Makes this element grow to fill available space */
    display: flex;
    flex-direction: column;
}

.fas-solution-panel img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    margin-right: 20px; /* Add margin to the right */
}

/* Style for text content to handle overflow */
.fas-timeline-item p,
.fas-solution-panel p {
    margin: 10px 0 0;
    flex-grow: 1; /* Allows paragraph to expand */
    overflow: hidden; /* Hide overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .fas-timeline {
        grid-template-columns: 1fr;
    }
    .fas-timeline-item {
        grid-template-columns: 60px auto;
    }
}

/* Media query for responsive adjustments */
@media (max-width: 768px) {
    .fas-timeline-item {
        min-height: auto; /* Allow natural height on mobile */
    }
    
    .fas-solution-panel {
        min-height: 300px;
    }
    
}

/* ERP Features Section */
.erp-features {
  padding: 60px 0;
  background-color: #f8fafc;
}

.erp-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.erp-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.erp-section-header h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 15px;
}

.erp-section-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

.erp-features-container {
  display: flex;
  gap: 30px;
}

.erp-feature-tabs {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.erp-tab-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  background: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  max-height: 93.5px;
}

.erp-tab-btn:hover {
  background: #f1f5f9;
}

.erp-tab-btn.erp-active {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.erp-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.erp-tab-btn.erp-active .erp-icon {
  color: white;
}

.erp-feature-content {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  max-height: 500px;
}

.erp-feature-panel {
  display: none;
  animation: erp-fadeIn 0.5s ease;
}

.erp-feature-panel.erp-active {
  display: flex;
  gap: 30px;
}

.erp-feature-text {
  flex: 1;
}

.erp-feature-text h3 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 20px;
}

.erp-feature-text p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 25px;
}

.erp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.erp-feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
}

.erp-feature-list i {
  color: #3b82f6;
}

.erp-feature-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-height: 450px;
}

.erp-feature-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.erp-feature-image:hover img {
  transform: scale(1.03);
}

@keyframes erp-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .erp-features-container {
    flex-direction: column;
  }
  
  .erp-feature-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }
  
  .erp-feature-panel.erp-active {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .erp-section-header h2 {
    font-size: 2rem;
  }
  
  .erp-feature-content {
    padding: 30px 20px;
  }
  
  .erp-tab-btn {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .erp-icon {
    font-size: 1rem;
  }
}

/* HIS Section Styles */
.his-section {
  padding: 80px 0;
  background-color: #f8fafc;
  overflow: hidden;
}

.his-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.his-header {
  text-align: center;
  margin-bottom: 60px;
}

.his-header h2 {
  font-size: 2.5rem;
  color: #1a365d;
  margin-bottom: 15px;
  font-weight: 700;
}

.his-header p {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
}

.his-table {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.his-row {
  display: flex;
  align-items: center;
  gap: 40px;
  gap : 0;
}

.his-row-white {
  background-color: var(--light);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.his-row-red {
  background-color: var(--secondary);
  border-radius: 12px;
  padding: 30px;
}

.his-row-red .his-text h3 {
  color: var(--light);
}

.his-row-red .his-text p {
  color: var(--light);
}

.his-row-red .his-features li:before {
  color: var(--light);
}

.his-col {
  flex: 1;
  padding: 20px;
}

.his-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.his-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.his-text h3 {
  font-size: 1.8rem;
  color: #1a365d;
  margin-bottom: 20px;
}

.his-text p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
}

.his-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.his-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #2d3748;
}

.his-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3182ce;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
  .his-row {
    flex-direction: column;
    gap: 30px;
  }
  
  .his-row:nth-child(even) {
    flex-direction: column-reverse;
  }

  .erp-feature-tabs {
    flex: 0 0 220px; /* Smaller on tablet */
  }
}

@media (max-width: 768px) {
  .his-header h2 {
    font-size: 2rem;
  }
  
  .his-text h3 {
    font-size: 1.5rem;
  }

  .erp-features {
    padding: 40px 0;
  }

  .erp-feature-content {
    padding: 20px; /* Even more compact on mobile */
  }
}

@media (max-width: 480px) {
  .his-section {
    padding: 60px 0;
  }
  
  .his-header {
    margin-bottom: 40px;
  }
}

