/* ================= RESET ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ================= GLOBAL CONTAINER ================= */
.container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    margin: auto;
    width: 80%;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 80px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: orange;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ================= HERO ================= */
.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #ffb347, #ffcc33, #ff8c00, #ffb347);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;

    border-bottom-right-radius: 30% 10%;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.home-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
}

.intro h1,
.dynamic-text,
.btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.intro h1 {
    animation-delay: 0s;
    font-size: 3rem;
}

.highlight {
    color: white;
}

.dynamic-text {
    animation-delay: 0.4s;
    font-size: 1.5rem;
    margin-top: 10px;
    min-height: 1.8em;
}

.btn {
    animation-delay: 0.8s;
    margin-top: 30px;
    padding: 14px 28px;
    font-size: 1.2rem;
    border-radius: 50px;
    border: none;
    background-color: orange;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.5);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatShapes {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5
    }

    50% {
        opacity: 1
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0
    }
}

/* ======== PRODUCTS SECTION ======== */
.products {
    background-color: #fff3e0;
    text-align: center;
    padding: 120px 0 80px 0;
    /* more top padding for curve */
    border-top-left-radius: 30% 10%;
    position: relative;
    /* allows safe stacking */
    z-index: 1;
    transform: translateY(-50px);
    /* subtle lift */
    margin-bottom: 0;
    /* remove default margin that causes overlap */
}

/* ======== CLIENTS SECTION ======== */
#clients {
    background-color: #f5f5f5;
    background-image: url('Background-clients.png');
    background-position: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 120px 20px 80px 20px;
    /* extra padding to separate from products */
    position: relative;
    z-index: 0;
    margin-bottom: -90px;
}

#clients h2 {
    font-size: 2rem;
    margin-bottom: 80px;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 80px;

}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Improved card layout */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 280px;

    position: relative;
    padding: 30px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);

    text-decoration: none;
    color: inherit;

    transition: all 0.35s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.98);
}

/* When visible */
.card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;

    background: linear-gradient(120deg, transparent, orange, transparent);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.4s ease;
}

/* Activate on hover */
.card:hover::before {
    opacity: 1;
    animation: cardGlowMove 2s linear infinite;
}

@keyframes cardGlowMove {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.15);
}

.card i {
    font-size: 1.8rem;
    color: orange;

    background: rgba(255, 165, 0, 0.1);
    padding: 15px;
    border-radius: 50%;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    transition: all 0.3s ease;
}

.card:hover i {
    background: orange;
    color: white;
    transform: scale(1.1);
}

.card h3 {
    color: orange;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(255, 165, 0, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}

/* ======= TRUSTED BRANDS SLIDER ======= */
.trusted-brands {
    padding: 80px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.trusted-brands h2 {
    font-size: 2rem;
    margin-bottom: 50px;
}

.logo-slider {
    display: flex;
    gap: 50px;
    overflow: hidden;
    scroll-behavior: smooth;
    cursor: grab;
}

.logo-slider .slide {
    flex: 0 0 auto;
    width: 180px;
    /* uniform width */
    height: 80px;
    /* uniform height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.3s ease;
}

.logo-slider .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* keep aspect ratio, no stretching */
    filter: grayscale(0%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-slider .slide img:hover {
    filter: grayscale(100%);
    transform: scale(1.1);
}

/* ================= CONTACT ================= */
.contact-form {
    max-width: 500px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: orange;
}

.contact-form button {
    align-self: center;
}

.contact {
    text-align: center;
    background-color: bisque;
    padding: 100px 20px 60px 20px;
    /* push contact down from clients */
    position: relative;
    z-index: 0;
}

.contact h2 {
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 20px;
    color: #555;
}

/* ======== FOOTER ======== */
.footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
    /* extra padding so it doesn’t clash */
    position: relative;
    z-index: 0;
}

/* ================= ANIMATIONS ================= */
.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/*===========WhatsApp======================*/
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
}

.call-float::after {
    content: "Call Us";
    position: absolute;
    right: 65px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
    white-space: nowrap;
}

.call-float:hover::after {
    opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media(max-width:1000px) {
    .intro h1 {
        font-size: 2.5rem;
        margin-top: 100px;
    }
}

@media(max-width:768px) {
    .container {
        width: 90%;
    }

    .logo-slider .slide {
        width: 90px;
        height: 60px;
    }

    .navbar .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        flex-direction: column;
        width: 220px;
        padding: 20px;
        display: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .banner {
        padding: 60px 20px;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .dynamic-text {
        font-size: 1.2rem;
    }

    .products {
        transform: translateY(-30px);
        padding: 100px 10px 60px 10px;
    }

    #clients {
        padding: 100px 10px 60px 10px;
    }

    .contact {
        padding: 80px 10px 40px 10px;
    }
}

@media(max-width:400px) {

    .container {
        width: 90%;
    }

    .logo-slider .slide {
        width: 70px;
        height: 50px;
        gap: 15px;
    }
}

@media(min-width:1400px) {
    .products {
        border-top-left-radius: 30% 10%;
        transform: translateY(-100px);

    }
}