:root {
    --primary-color: #0056b3;
    --primary-dark: #020617;
    --secondary-color: #00a8ff;
    --accent-color: #ff9f43;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-secondary: #777;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border-color: #eee;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --bottom-nav-height: 65px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove sticky hover on mobile */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header */
#header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--card-bg);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-color);
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
    /* opacity: 0; */
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.open li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Manual staggered delay for first few items */
.mobile-nav.open li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.open li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.open li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.open li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav.open li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav.open li:nth-child(6) {
    transition-delay: 0.6s;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.mobile-nav a.btn-primary {
    margin-top: 20px;
    display: inline-block;
}

/* Bottom Navigation (Hidden on Desktop) */
.bottom-nav {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Full viewport height */
    min-height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    /* Since header is fixed/transparent-ish */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    /* Overlay for text readability */
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
    transition-delay: 0.5s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-hero {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-hero:hover {
    background: #e67e22;
    transform: scale(1.05);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 10;
    transform: translateY(-50%);
}

.slider-controls button {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    padding: 10px;
}

.slider-controls button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Sections General */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    color: #777;
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

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

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-info p {
    color: #666;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.team-card h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-card p {
    color: #777;
    font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 5px;
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Products Section */
.products-wrapper {
    position: relative;
    padding: 0 50px;
    margin: 40px 0;
}

.products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 350px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .products-wrapper {
        padding: 0;
    }

    .slider-btn {
        display: none;
        /* Hide buttons on mobile, use swipe */
    }

    .product-card {
        flex: 0 0 280px;
    }
}

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

.product-slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-images {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100%;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.product-images::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.product-images img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-images img:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.4;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    padding-bottom: 30px;
}

/* MEDIA QUERIES - THE MOBILE APP FEEL */
@media (max-width: 900px) {
    .container {
        padding: 0 25px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    .contact-info {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 25px;
    }

    .info-item {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: var(--bottom-nav-height);
        /* Space for bottom nav */
    }

    /* Mobile Header */
    #header {
        height: 60px;
        padding: 0;
    }

    .desktop-nav {
        display: none;
    }

    /* Toggle hidden on mobile as we have bottom nav, but overlay menu still exists if needed for 'More' */
    /* Let's keep toggle for full menu access (Testimonials, About etc not in bottom nav) */
    .mobile-toggle {
        display: block;
    }

    /* Bottom Nav Styles */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--bottom-nav-height);
        background: var(--card-bg);
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
        /* top shadow */
        z-index: 999;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid var(--border-color);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #555;
        font-size: 0.8rem;
        transition: 0.3s;
        flex: 1;
        /* equal width */
        height: 100%;
    }

    .nav-item i {
        font-size: 1.3rem;
        margin-bottom: 4px;
        transition: 0.3s;
    }

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-item.active i {
        transform: translateY(-3px);
    }

    /* Horizontal Scrolling for Cards (Instagram-story style or carousel) */
    .services-grid,
    .team-grid,
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        /* space for scrollbar or visual balance */
        margin: 0 -25px;
        /* Negative margin to pull to edges */
        padding: 0 25px 20px 25px;
        /* visual padding inside */
    }

    /* Hide scrollbar */
    .services-grid::-webkit-scrollbar,
    .team-grid::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card,
    .team-card,
    .testimonial-card {
        min-width: 280px;
        /* specific width for horizontal scroll */
        scroll-snap-align: center;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Mobile Spacing */
    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Contact Form */
    .contact-form input,
    .contact-form textarea {
        padding: 16px;
        font-size: 16px;
    }

    /* WhatsApp button adjustment - higher to avoid bottom nav */
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    footer {
        padding-bottom: 80px;
        /* Extra padding for bottom nav overlap */
    }
}

/* ----------------------------------------------- Preloader Styles ----------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

#loader-video {
    width: 85vw;
    /* Wider on mobile for better visibility */
    min-width: 250px;
    max-width: 400px;
    /* Cap width on tablet/desktop */
    height: auto;
    border-radius: var(--radius);
    display: block;
    object-fit: contain;
    background: transparent;
}

@media (min-width: 768px) {
    #loader-video {
        width: 85vw;
        height: 85vh;
        max-width: 85vw;
        border-radius: 0;
        /* object-fit: cover; */
    }
}

.packaging-box {
    width: 100px;
    height: 100px;
    background: #e67e22;
    /* Box Color */
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.box-lid-left,
.box-lid-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #d35400;
    transition: all 0.5s ease;
}

.box-lid-left {
    left: 0;
    animation: closeLidLeft 2s infinite alternate;
    transform-origin: left;
}

.box-lid-right {
    right: 0;
    animation: closeLidRight 2s infinite alternate;
    transform-origin: right;
}

.box-tape {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 15px;
    background: var(--primary-color);
    transform: translateY(-50%);
    opacity: 0.8;
    z-index: 10;
    animation: tapeBox 2s infinite;
}

@keyframes closeLidLeft {

    0%,
    20% {
        transform: rotateY(-120deg);
    }

    40%,
    100% {
        transform: rotateY(0deg);
    }
}

@keyframes closeLidRight {

    0%,
    20% {
        transform: rotateY(120deg);
    }

    40%,
    100% {
        transform: rotateY(0deg);
    }
}

@keyframes tapeBox {

    0%,
    40% {
        width: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

#preloader p {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulseText 1.5s infinite;
    margin-top: 10px;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ----------------------------------------------- Logo Styling ----------------------------------------------- */
.logo img {
    height: 40px;
    /* Adjust based on header height */
    width: auto;
    display: block;
}

/* ----------------------------------------------- Scroll Animations ----------------------------------------------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ----------------------------------------------- Updated Header Shadow ----------------------------------------------- */
#header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}