/* --- 1. GLOBAL RESET & FONTS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --accent-red: #dc2626;
    --accent-yellow: #fbbf24;
    --light-gray: #f3f4f6;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #374151;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- 2. HEADER & NAVIGATION (FINAL VALID VERSION) --- */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* TOP BAR STYLES */
.top-bar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 8px 0;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.top-info-group {
    display: flex;
    gap: 20px;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info-item i {
    color: var(--accent-yellow);
}

/* MAIN NAVIGATION BAR */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: #f3f4f6;
    /* border: 1px solid #e5e7eb; */
}

.logo-text h1 {
    font-size: 1.5rem !important;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.logo-text span {
    display: block;
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-red);
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
}

/* --- 3. MOBILE MENU SIDEBAR --- */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-container.active {
    right: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* --- 4. RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
    .top-bar {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle-btn {
        display: block;
    }
}

/* --- 5. BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b91c1c 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-modern {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
}

.btn-modern-red {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-modern-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.5);
}

.btn-modern-teal {
    background: #0d9488;
    color: white;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3);
}

.btn-modern-teal:hover {
    transform: translateY(-3px);
    background: #0f766e;
}

.btn-modern-amber {
    background: #f59e0b;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-modern-amber:hover {
    background: #d97706;
    transform: translateY(-3px);
}

/* --- 6. HERO SECTION --- */
.hero-section {
    padding-top: 110px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.hero-slide-item {
    position: relative;
    height: 85vh;
    min-height: 600px;
    outline: none;
    display: flex !important;
    align-items: center;
}

/* Slide 1: Diagonal */
.diagonal-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.diagonal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 55%);
    z-index: 1;
}

/* Slide 2: Industrial */
.industrial-bg {
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.industrial-overlay {
    background: linear-gradient(to right, #0f172a 0%, rgba(15, 23, 42, 0.9) 40%, rgba(15, 23, 42, 0.4) 100%);
}

/* Slide 3: Pill */
.pill-bg {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
}

.pill-image-mask {
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.2);
}

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(20, 184, 166, 0.3);
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Floating Card */
.floating-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 6px solid #f59e0b;
}

/* --- 7. SLIDER ANIMATIONS (MOBILE SAFE) --- */
@media (max-width: 768px) {

    .animate-fade,
    .animate-zoom,
    .animate-slide-right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .mobile-reverse {
        flex-direction: column-reverse;
    }

    .mobile-order-img {
        order: -1;
        margin-bottom: 2rem;
    }

    .content-pad {
        padding: 2rem 1rem;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 769px) {
    .slick-active .animate-fade {
        animation: fadeInUp 1s ease forwards;
    }

    .slick-active .animate-zoom {
        animation: zoomIn 1s ease 0.2s forwards;
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes zoomIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

.hero-slider .slick-dots {
    bottom: 30px;
    z-index: 10;
}

.hero-slider .slick-dots li button:before {
    font-size: 14px;
    opacity: 0.5;
    color: #1e3a8a;
}

.hero-slider .slick-dots li.slick-active button:before {
    color: var(--accent-red);
    opacity: 1;
}

/* --- 8. COMMON ELEMENTS --- */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.5;
}

/* --- 9. CARDS STYLES --- */
.stat-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.industry-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.industry-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.value-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    height: 100%;
}

.value-box:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.leader-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.leader-card:hover {
    transform: translateY(-10px);
}

/* --- 10. MASONRY GALLERY --- */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 16px;
    transition: transform 0.5s;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* --- 11. FORM STYLES --- */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    border: 1px solid #ddd;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
}

/* --- WHATSAPP FLOATING BUTTON STYLE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20ba5a;
    color: white;
}

/* Mobile Adjustments (Optional) */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}