/* Global Styles */
:root {
    -primary-color: #0056b3;
    -secondary-color: #003366;
    -accent-color: #00a0e9;
    -light-color: #f8f9fa;
    -dark-color: #212529;
    -text-color: #333;
    -text-light: #777;
    -white: #fff;
    -gray: #e9ecef;
    -shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    -transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Header Styles */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i, .social-icons i {
    margin-right: 5px;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
}

.social-icons a:hover {
    color: var(--accent-color);
}

nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 28px;
    color: var(--secondary-color);
}

.logo h1 span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 30px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #17202a;
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    transition: background-image 1s ease-in-out;
}


.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--light-color);
}

.features .container {
    display: grid;
    grid-template-columns: repeat( 12, minmax(250px, 1fr) );
    gap: 30px;
    justify-content: center;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/*Picture small*/
/* Make the image smaller */
.feature-box img {
  width: 250px;        /* Fixed smaller size */
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Products Section */
.products {
    padding: 80px 0;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures consistent card height */
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 15px 20px 0;
    margin: 0;
    text-align: center; /* Center the title */
}

.category-card p {
    padding: 0 20px;
    color: var(--text-light);
    margin: 10px 0;
    text-align: center; /* Center the description */
    flex-grow: 1; /* Pushes button to bottom */
}

.category-card a {
    display: inline-block;
    margin: 20px;
}
.category-card a.btn-small {
    display: inline-block;
    margin: 0 auto 20px; /* Centers horizontally with auto margins */
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition);
    /* Remove align-self if previously set */
}

.category-card a.btn-small:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: shadow;
    transition: transition;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items:  start; /* Changed from 'center' to prevent vertical jumps */
  /* Static layout guarantees */
  min-height: 600px; /* Fixed height based on content */
  overflow: hidden; /* Prevents content overflow shifts */
}

.about-image {
    margin-top: 30px;
    position: relative;
    aspect-ratio: 4/3; /* Match your image's aspect ratio (adjust if needed) */
    background: #f5f5f5; /* Fallback color while loading */
}

.about-image img {
    width: 100%;
    border-radius: 10px;                   
    box-shadow: var(shadow);
    display: block !important; /* Overrides any lazy-loading */
    opacity: 1 !important; /* Prevents fade-in effects */                       
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    background-color: var(--light-color);
    border-radius: 5px;
}

.stat-item h3 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Promotions Section */

.promotions {
    padding: 60px 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.promotion-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.promotion {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.promotion img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.promo-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.promo-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.promo-info p {
    color: #555;
    margin-bottom: 15px;
}

.promo-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0074D9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.promo-btn:hover {
    background-color: #0056b3;
}

.slider {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 15px;
    box-sizing: border-box;
}

.slider button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


/*End of Promotion Section */


/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
}

.contact-card {
    flex: 0 0 auto;
    min-width: 300px;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.info-item i {
    color: #007BFF;
    min-width: 20px;
    margin-top: 3px;
}

.contact-map {
    margin-top: 1rem;
}

.contact-map iframe {
    border-radius: 8px;
}


.contact-info h3, .contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Newsletter Section */
/*.newsletter {
    padding: 50px 0;
    background-color: var(--secondary-color);
    color: var(--white);
}

.newsletter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    width: 50%;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
}
/*About Us*/
.about-image {
  position: relative;
  width: 100%;          /* Full width of the container */
  max-width: 800px;     /* Set your desired maximum size */
  height: auto;
  margin: 2rem auto;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}


/* Collaboration with company */

.collaboration {
    padding: 60px 20px;
    background-color: #f2f2f2;
    text-align: center;
}

.collaboration .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.collaboration .section-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.collab-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.collab-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.collab-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.collab-logo:hover {
    transform: scale(1.05);
}


/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    color: var(--text-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-light);
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about .container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .newsletter .container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        margin-top: 20px;
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        
    }
    
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: #ccd1d1;
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
}
/* Responsive Styles */
@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}