/* --- Existing CSS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav {
    width: 100%;
    padding: 0.1rem 1%;
    background-color: white;
    border-bottom: 1px solid rgb(0, 0, 0);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

h1 {
    line-height: 70px;
    margin-left: 20px;
}

.logo-a {
    text-decoration: none;
    color: #3458FF;
    font-weight: 900;
    transition: 0.8s;
    text-decoration: none;
    color: #3458FF;
    font-weight: 900;
}

.logo-a:hover {
    color: #ca3f26;
    text-shadow: 0 0 2px #3458FF;
    border-color: aqua;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-top: 10px;
    flex-wrap: wrap;
    position: relative;
    left: 100px;
    top: px;
    justify-content: center;
}

.nav-links li a {
    font-family: sans-serif;
    position: relative;
    font-size: 1.1rem;
    text-decoration: none;
    color: black;
    /* align-items: center; */
    /* margin-top: 40px; */
    transition: 0.5s;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.nav-links li a:hover {
    color: #3458FF;
    text-shadow: 0 0 2px #3458FF;
    transform: translateY(-100px) scale(60);
    box-shadow: 0 5px 10px rgba(0, 68, 255, 0.3);
}

.nav-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.active {
        max-height: 500px;
        /* Adjust according to items */
    }

    .nav-links li {
        text-align: center;
        margin: 1rem 0;
    }

    .nav-icons {
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .nav-links li a {
        font-size: 1rem;
    }

    .img2 {
        width: 60px;
    }

    .img3 {
        width: 50px;
    }
}

.img1 {
    width: 50px;
    transition: transform 0.4s ease;
    margin-left: 20px;
}

.img1:hover {
    transform: translateY(-10px);
}

.img2 {
    width: 100px;
    transition: transform 0.4s ease;
}

.img2:hover {
    transform: translateY(-10px);
}

.img3 {
    width: 70px;
    transition: transform 0.4s ease;
}

.img3:hover {
    transform: translateY(-10px);
}

h6 {
    text-align: center;
}

marquee>h1 {
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4rem;
    line-height: 3rem;
}

.main {
    border-radius: 50px;
}

.m1 {
    margin-top: 2em;
}

.card {
    margin-top: 2em;
    margin-left: 3px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-body {
    margin-left: 8px;
}

.rafay {
    margin-left: 1.2em;
}

.rafay1 {
    background-color: #4400ff;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.rafay1:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- Responsive CSS --- */
@media screen and (max-width: 1200px) {
    nav {
        justify-content: center;
    }

    .nav-links {
        gap: 1rem;
        margin-top: 5px;
    }

    marquee>h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 992px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        line-height: 50px;
        text-align: center;
        margin: 10px 0;
    }

    marquee>h1 {
        font-size: 2.5rem;
    }

    .img1,
    .img2,
    .img3 {
        width: 50px;
        margin: 5px;
    }

    .card {
        width: 45% !important;
        margin: 1rem auto;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 0.5rem;
    }

    .nav-links {
        text-align: center;
    }

    marquee>h1 {
        font-size: 2rem;
    }

    .card {
        width: 90% !important;
        margin: 1rem auto;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
        line-height: 2.2rem;
        margin-left: 0;
    }

    .nav-links {
        gap: 0.5rem;
    }

    marquee>h1 {
        font-size: 1.5rem;
    }

    .img2 {
        width: 60px;
    }

    .img3 {
        width: 50px;
    }

    .card {
        width: 100% !important;
        margin: 1rem 0;
    }
}

#loader {
    width: 100%;
    height: 100%;
    background-color: #000000;
    position: fixed;
    z-index: 999;
    top: 0;
    transition: all ease-in-out 2s;
    display: flex;
    align-items: center;
    justify-content: center;
}


#loader>h1 {
    font-size: 4vw;
    color: aliceblue;
    background: linear-gradient(orange, orangered);
    -webkit-background-clip: text;
    position: absolute;
    opacity: 0;
    animation-name: load;
    animation-duration: 1s;
    animation-delay: 1s;
    animation-timing-function: linear;
}

#loader h1:nth-child(2) {
    animation-delay: 2s;

}

#loader h1:nth-child(3) {
    animation-delay: 3s;

}

@keyframes load {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}




input[type="text"], input[type="search"] {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}


input[type="text"]:focus, input[type="search"]:focus {
    border: 1px solid #3458FF;
    box-shadow: 0 0 5px rgba(52, 88, 255, 0.5);
}


@media screen and (max-width: 992px) {
    input[type="text"], input[type="search"] {
        font-size: 15px;
        padding: 9px 14px;
    }
}

@media screen and (max-width: 768px) {
    input[type="text"], input[type="search"] {
        font-size: 14px;
        padding: 8px 12px;
        width: 80%; 
        display: block;
        margin: 10px auto;
    }
}

@media screen and (max-width: 576px) {
    input[type="text"], input[type="search"] {
        font-size: 13px;
        padding: 7px 10px;
        width: 95%; 
        display: block;
        margin: 10px auto;
    }
}



.simple-btn {
    padding: 10px 20px;
    background-color: #3458FF; 
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}


.simple-btn:hover {
    background-color: #2a46cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 88, 255, 0.3);
}


.simple-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(52, 88, 255, 0.2);
}


@media screen and (max-width: 992px) {
    .simple-btn {
        font-size: 15px;
        padding: 9px 18px;
        right: 50px; /* adjust according to layout */
    }
}

@media screen and (max-width: 768px) {
    .simple-btn {
        font-size: 14px;
        padding: 8px 16px;
        right: 30px;
    }
}

@media screen and (max-width: 576px) {
    .simple-btn {
        font-size: 13px;
        padding: 7px 14px;
        right: 0;
        display: block;
        margin: 10px auto; /* center on mobile */
    }
}