/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}


/********** Responsive CSS **********/

body {
    background: linear-gradient(to bottom right, #f0e8f8, #eaf0fd);
    font-family: 'Poppins', 'Times New Roman', Times, serif;
}

.hero-section {
    background: linear-gradient(to right, #f43b47, #453a94);
    /* background: linear-gradient(135deg, #2f5fff, #7a84f6); */
    color: white;
    padding: 60px 0;
    max-height: fit-content
}

.hero-title {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px;
}

.hero-description {
    font-size: 18px;
    margin-top: 15px;
    color: #fff;
}

.analyze-label {
    font-weight: 600;
    margin-top: 20px;
}

.hero-image-container {
    position: relative;
    display: inline-block;
}

.hero-image {
    width: 100%;
    border-top-left-radius: 200px;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 250px;
}

.floating-badge {
    position: absolute;
    background: white;
    color: #000;
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    animation: floatY 3s ease-in-out infinite;
    z-index: 10;
}

.floating-badge img {
    width: 20px;
    height: 20px;
}


/* Floating badge positions */

.badge-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.badge-2 {
    top: 35%;
    right: 0%;
    animation-delay: 0.4s;
}

.badge-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: 0.8s;
}

.badge-4 {
    top: 15%;
    left: 55%;
    animation-delay: 0s;
}

.badge-5 {
    top: 30%;
    right: 70%;
    animation-delay: 0.4s;
}

.badge-6 {
    bottom: 5%;
    left: 55%;
    animation-delay: 0.8s;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    /* Optional: reposition badges on smaller screens */
    .badge-1 {
        top: 5%;
        left: 5%;
    }
    .badge-2 {
        top: 32%;
        right: 5%;
    }
    .badge-3 {
        bottom: 10%;
        left: 10%;
    }
    .floating-badge {
        font-size: 14px;
        padding: 6px 12px;
    }
}


/*why choose us*/


/* Container Setup */

.seo-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    gap: 40px;
    margin-left: 30px;
}


/* Left image container */

.left-images {
    position: relative;
    flex: 1 1 45%;
    max-width: 600px;
    height: auto;
}

.main-img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}


/* Floating Images */

.floating-img {
    position: absolute;
    z-index: 3;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.img-1 {
    top: -20px;
    left: -30px;
    width: 140px;
    animation: floatY 4s ease-in-out infinite;
}

.img-2 {
    bottom: -20px;
    right: -30px;
    width: 160px;
    animation: floatX 4s ease-in-out infinite;
}

@media (max-width: 480px) {
    .img-2 {
        bottom: 10px;
        /* Adjusted alignment for mobile view */
        right: 10px;
        /* Adjusted alignment for mobile view */
        width: 120px;
        /* Reduced size for better fit */
    }
}


/* Right Content */

.right-content {
    flex: 1 1 45%;
    max-width: 600px;
}

.section-tag {
    display: inline-block;
    background: #ffeaea;
    color: #ff5722;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin: 0 auto 10px;
}

h2 {
    font-size: 2rem;
    margin: 15px 0;
    color: #1a1a1a;
}

p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cta-btn {
    margin-top: 20px;
    background: linear-gradient(to right, #ff5a5f, #ff9966);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: linear-gradient(to right, #ff9966, #ff5a5f);
}

.seo-section .right-content h2 {
    margin-bottom: 15px;
    text-align: left;
}

.seo-section .right-content .btn-gradient {
    width: max-content;
    margin-top: 20px;
}

.services-section .btn-gradient {
    display: inline-block;
}

.services-section .section-header h2 {
    margin-bottom: 20px;
}

.contact-methods a {
    text-decoration: none;
    width: calc(33.33% - 15px);
    word-break: break-all;
}

.contact-container button {
    border-radius: 30px;
}


/* Animations */

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatX {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}


/* Navbar */


/* Core Navbar Styling */

.navbar {
    padding: 20px 0;
    background: transparent;
    transition: background-color 0.5s ease, top 0.4s ease-in-out;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
}

.navbar-custom {
    background: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/* Logo */

nav .navbar-brand {
    margin: 0 0 0 10px;
}

.navbar-brand img {
    width: 100px;
    height: auto;
    object-fit: contain;
}


/* Links */

.nav-link {
    color: #111 !important;
    padding: 10px 15px;
    font-size: 18px;
}


/* Button */

.btn-gradient {
    background: linear-gradient(to right, #f43b47, #453a94);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-gradient:hover {
    background: linear-gradient(to right, #453a94, #f43b47);
    color: white;
}


/* Responsive Tweaks */

@media (max-width: 991px) {
    body,
    html {
        overflow-x: hidden;
    }
    .navbar-custom {
        border-radius: 0;
        margin: 0;
        padding: 10px 20px;
        box-shadow: none;
    }
    nav .navbar-brand {
        margin: 0;
    }
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 20px;
        margin-top: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    .nav-link {
        display: block;
        margin: 10px 0;
    }
    .btn-gradient {
        font-size: 14px;
        padding: 8px 16px;
    }
    .navbar-brand img {
        width: 90px;
        height: 90px;
    }
    .floating-badge {
        font-size: 12px;
        padding: 6px 10px;
    }
    .seo-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        /* Adjusted padding for mobile view */
    }
    .left-images {
        order: 2;
        margin-top: 30px;
    }
    .right-content {
        order: 1;
    }
    .floating-img {
        width: 90px;
    }
    .features-list {
        grid-template-columns: 1fr;
        text-align: center;
        /* Center align in mobile view */
    }
    .img-1 {
        left: -5px;
    }
    .footer-content {
        flex-direction: column;
    }
}


/* Style the custom X icon */

.close-icon {
    font-size: 30px;
    color: #000;
    line-height: 1;
}

.navbar-toggler {
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}


/* services */


/* Section Base */

.services-section {
    padding: 80px 20px;
    background: #f8f9ff;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.section-header {
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}

.section-badge {
    background: #ffe3dd;
    color: #ff5722;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(to right, #ff5e62, #ff9966);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    margin-top: 10px;
}

.cta-btn:hover {
    background: linear-gradient(to right, #ff9966, #ff5e62);
}


/* Grid */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    /* background: linear-gradient(to bottom right, #f0e8f8, #eaf0fd); */
    background: linear-gradient(to right, #7e8de3, #8d92b8);
    color: #fff;
}

.service-card:hover h3,
.service-card:hover p {
    color: #fff;
}

.service-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.2);
}

.icon-circle {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #eef0fa;
    color: #5e72eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}


/* Arrow */

.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(to right, #5e72eb, #7f8ff4);
    color: #fff;
    font-size: 1rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-card:hover .card-arrow {
    transform: scale(1.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cards per row on desktop */
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards per row on tablets */
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* 1 card per row on mobile */
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 25px 15px;
    }
    .card-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        bottom: 15px;
        right: 15px;
    }
}


/****contact form****/

.visiting-card {
    background: linear-gradient(to bottom right, #ddd2e7, #eaf0fd);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    animation: slideIn 1s ease forwards;
    text-align: center;
}

.visiting-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.visiting-desc {
    font-size: 20px;
    padding: 10px;
    margin-bottom: 40px;
    color: #000;
}

.contact-methods {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-box {
    flex: 1 1 auto;
    background: linear-gradient(135deg, #f43b47, #453a94);
    padding: 15px 10px;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    /* Adjust width to match content */
}

.contact-box:hover {
    transform: translateY(-5px);
}

.contact-box i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.contact-box a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visiting-card,
.contact-container {
    flex: 1 1 45%;
}

@media (max-width: 768px) {
    .visiting-card,
    .contact-container {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.contact-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    flex-direction: row;
}

.contactSection {
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 80px 20px;
    background: #f8f9ff;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.contact-container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    text-align: left;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    color: #1d1d1d;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f8f8;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background: linear-gradient(to right, #f43b47, #453a94);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 30px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #dd2476, #ff512f);
}

.response-message {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

.form-row {
    display: flex;
    gap: 20px;
}

.half-width {
    flex: 1;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.spinner {
    border: 4px solid #eee;
    border-top: 4px solid #ff512f;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.popup-close {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: inline-block;
    background: none;
    border: none;
    text-align: center;
}

.popup-close:hover {
    color: #ff512f;
}


/* footer */


/* Footer Section */

.footer-section {
    /* background: #f8f9ff; */
    padding: 10px 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.footer-line {
    border: none;
    border-top: 2px solid #000;
    margin: 20px auto;
    width: 80%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* .footer-social {
    position: absolute;
    right: 150px;
    bottom: 20px;
} */

.social-link {
    color: #555;
    font-size: 20px;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff512f;
}

@media (max-width: 768px) {
    .footer-social {
        position: static;
        justify-content: center;
        transform: none;
        margin-bottom: 15px;
    }
}


/* Typography scaling */

body {
    font-size: 16px;
}

@media (max-width: 991px) {
    body {
        font-size: 15px;
    }
    .navbar.container {
        margin: 0;
        width: 100%;
        max-width: unset;
        padding: 0;
        height: auto;
    }
    .seo-section .right-content h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-flex {
        flex-direction: column;
        align-items: center;
    }
    .contact-methods {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    .contact-methods a {
        width: calc(100% - 15px);
    }
    .contact-box {
        flex: 1 1 auto;
        margin-bottom: 0;
    }
    .contactSection {
        padding: 0 20px 40px;
    }
    .footer-section {
        padding: 0;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
        padding: 0 10px;
    }
    h1,
    h2,
    h3 {
        font-size: 90%;
    }
}


/* Hero section responsiveness */

@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    .hero-description {
        font-size: 16px;
    }
    .hero-image {
        border-radius: 150px 150px 200px 200px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-description {
        font-size: 15px;
    }
    .floating-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
}


/* Why Choose Us section */

@media (max-width: 768px) {
    .seo-section {
        padding: 40px 10px;
        margin-left: 0;
    }
    .features-list {
        gap: 10px;
        font-size: 14px;
    }
    .left-images {
        width: 100%;
        max-width: 100%;
    }
}


/* Navbar adjustments for small screens */

@media (max-width: 576px) {
    .nav-link {
        font-size: 16px;
    }
    .navbar-brand img {
        width: 70px;
        height: 70px;
    }
    .btn-gradient {
        padding: 8px 12px;
        font-size: 14px;
    }
    .navbar-collapse {
        padding: 15px;
    }
}


/* Services section responsiveness */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        padding: 20px 15px;
    }
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .service-card h3 {
        font-size: 1rem;
    }
    .service-card p {
        font-size: 0.9rem;
    }
}


/* Contact and visiting card layout on tablets and phones */

@media (max-width: 991px) {
    .contact-flex {
        flex-direction: column;
        align-items: center;
    }
    .visiting-card,
    .contact-container {
        max-width: 100%;
        padding: 25px;
    }
    .visiting-img {
        width: 150px;
        height: 150px;
    }
    .contact-box {
        flex: 1 1 100%;
    }
    .form-row {
        flex-direction: column;
    }
    .half-width {
        width: 100%;
    }
}


/* Footer responsiveness */

@media (max-width: 768px) {
    .footer-logo-img {
        width: 80px;
    }
    .footer-section {
        font-size: 14px;
        padding: 10px 10px;
    }
    body {
        padding: 0;
    }
}