/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00a0e9;
    --accent-color: #ff8800;
    --text-color: #333333;
    --background-color: #ffffff;
    --light-gray: #f7f7f7;
    --dark-gray: #444444;
    --border-color: #e5e5e5;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(45deg, #0056b3, #00a0e9);
    --gradient-accent: linear-gradient(45deg, #ff8800, #ffaa33);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.15);
    
    /* Animation variables */
    --anim-duration-fast: 0.3s;
    --anim-duration-medium: 0.5s;
    --anim-duration-slow: 0.8s;
    --anim-timing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    opacity: 1;
    visibility: visible;
    transition: transform var(--anim-duration-medium) var(--anim-timing), 
                opacity var(--anim-duration-medium) var(--anim-timing);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Enhanced animations for section elements */
section {
    position: relative;
}

section h2, 
section .section-intro,
section .btn {
    transition: transform var(--anim-duration-medium) var(--anim-timing),
                opacity var(--anim-duration-medium) var(--anim-timing);
}

/* Enhance hover effects throughout the site */
.btn:hover, 
.logo-item:hover, 
.product-card:hover {
    transform: translateY(-5px);
    transition: all var(--anim-duration-fast) var(--anim-timing);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.25);
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
}

.logo h1:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    margin: 0 18px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    font-size: 1.05rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-right a {
    margin-left: 25px;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.header-right a:hover {
    transform: scale(1.2);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle.active i::before {
    content: "\f00d";
}

body.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 160, 233, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 136, 0, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 100px 15px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content .slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
    margin-top: 5px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    animation: floatUpDown 5s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    transform: perspective(1000px) rotateY(-15deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.15), 
                -20px -20px 60px rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    transition: all 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 25px 25px 70px rgba(0, 0, 0, 0.2), 
                -25px -25px 70px rgba(255, 255, 255, 0.95);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}

.scroll-down span {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.scroll-down .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-down .mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { 
        transform: translateY(0);
        opacity: 1;
    }
    100% { 
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Featured Products Section */
.featured-products {
    padding: 150px 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, var(--light-gray) 0%, var(--background-color) 100%);
    z-index: 0;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.featured-products .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: var(--dark-gray);
    line-height: 1.8;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.product-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s ease;
    position: relative;
    isolation: isolate;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-strong);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(255, 255, 255, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.product-info {
    padding: 30px;
    position: relative;
    background-color: white;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.product-info p {
    margin-bottom: 25px;
    color: var(--dark-gray);
    line-height: 1.7;
}

.product-card:hover .product-info h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* About Section */
.about-section {
    padding: 150px 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 160, 233, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 136, 0, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.about-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.benefits-list {
    margin-bottom: 35px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.benefits-list li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.about-image:hover img {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    opacity: 0.1;
    border-radius: 20px;
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 20px;
    z-index: -1;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L40,112C80,128,160,160,240,181.3C320,203,400,213,480,202.7C560,192,640,160,720,154.7C800,149,880,171,960,186.7C1040,203,1120,213,1200,192C1280,171,1360,117,1400,90.7L1440,64L1440,320L1400,320C1360,320,1280,320,1200,320C1120,320,1040,320,960,320C880,320,800,320,720,320C640,320,560,320,480,320C400,320,320,320,240,320C160,320,80,320,40,320L0,320Z"></path></svg>');
    background-position: center bottom;
    background-size: cover;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    padding: 15px 35px;
}

.cta-section .btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3, .footer-column h4 {
    margin-bottom: 25px;
    color: white;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after, .footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.social-icons a:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

address p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

address p i {
    margin-right: 15px;
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 80px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 60px;
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-list li {
        justify-content: center;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Desktop Navigation - Ensure horizontal layout */
@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        flex-direction: column;
    }

    .main-nav.active {
        display: flex;
    }
    
    .main-nav li {
        margin: 10px 0;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active i::before {
        content: "\f00d";
    }

    body.no-scroll {
        overflow: hidden;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cta-section h2 {
        font-size: 2.5rem;
    }
    
    /* Ensure scroll-down icon is centered */
    .scroll-down {
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
    
    .certification-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        /* justify-items: center; /* Already inherited */
    }
    
    .logo-item {
        height: 120px;
        padding: 15px;
        max-width: none; /* Remove max-width on mobile */
    }
    
    .logo-item img {
        max-height: 90px;
    }
}

@media (max-width: 480px) {
    .certification-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }
    
    .logo-item {
        height: 90px;
        padding: 10px;
    }
    
    .logo-item img {
        max-height: 70px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Parallax Effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Page Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: none; /* Hide the loader by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-icon {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Certifications Section */
.certifications-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.certifications-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.certifications-section .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.certification-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    justify-items: center; /* Center items horizontally within their grid cells */
}

.logo-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    width: 100%; /* Ensure item takes full width of grid cell */
    max-width: 200px; /* Optional: Add max-width if needed */
    transition: all 0.4s ease;
    overflow: hidden;
    transform: scale(1);
}

.logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 1;
}

.logo-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
    filter: grayscale(30%);
}

.logo-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Animations for certification logos */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cert-animate {
    animation: fadeInScale 0.6s var(--anim-timing) forwards;
}

@media (max-width: 992px) {
    .certification-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .certification-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .logo-item {
        height: 120px;
        padding: 15px;
    }
    
    .logo-item img {
        max-height: 90px;
    }
    
    .certifications-section h2 {
        font-size: 2rem;
    }
    
    .certifications-section .section-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .certification-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }
    
    .logo-item {
        height: 90px;
        padding: 10px;
    }
    
    .logo-item img {
        max-height: 70px;
    }
}

/* Search Bar Styles */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 998;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
}

.search-bar form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

.search-bar button[type="submit"] {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-bar button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

.close-search {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark-gray);
    padding: 5px;
}
.close-search:hover {
    color: var(--primary-color);
}

/* Showcase Section Style - Fixed for Desktop */
.showcase-section {
    padding: 120px 0;
    background-color: var(--background-color);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.showcase-header {
    text-align: center;
    margin-bottom: 60px;
    display: block !important;
    visibility: visible !important;
}

.showcase-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}

.showcase-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--dark-gray);
    display: block;
}

.showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
    visibility: visible !important;
    opacity: 1 !important;
}

.showcase-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background-color: var(--light-gray);
    transition: all 0.5s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly below */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.showcase-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    background-color: white;
}

.showcase-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.showcase-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    top: -100%;
    left: -100%;
    border-radius: 50%;
    transition: all 0.8s ease;
}

.showcase-item:hover .showcase-icon {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

.showcase-item:hover .showcase-icon::before {
    top: 0;
    left: 0;
}

.showcase-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: block;
}

.showcase-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    display: block;
}

/* Responsive adjustments for Showcase Section */
@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .showcase-header h2 {
        font-size: 2.4rem;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .showcase-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Enhanced hero animations */
.hero-content h1 {
    animation: fadeInSlideUp 1s ease forwards;
}

.hero-content .slogan {
    animation: fadeInSlideUp 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-content p {
    animation: fadeInSlideUp 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-content .btn {
    animation: fadeInSlideUp 1s ease 0.9s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Add these styles to support dropdown menus */

.main-nav li.has-dropdown {
    position: relative;
}

.main-nav li.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.dropdown-menu li {
    margin: 0;
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover, 
.dropdown-menu a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile view for dropdown */
@media (max-width: 991px) {
    .main-nav.active .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        transform: none;
        padding-left: 15px;
        display: block;
        background-color: rgba(0,0,0,0.03);
    }
} 