@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;1,100;1,300;1,400;1,500&display=swap');

/* CSS Variables for reusable values */
:root {
    --primary-font: 'Poppins', sans-serif;
    --primary-color: #FFE522;
    --secondary-color: #00bfff;
    --dark-bg: #271144;
    --text-color: #fff;
    --transition: all 0.2s linear;
    --border-radius: 5rem;
    --shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.3);
}

/* Global Reset and Base Styles */
* {
    font-family: var(--primary-font);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: capitalize;
    transition: var(--transition);
    text-decoration: none;
}

html {
    font-size: 62.5%;
}

body {
    overflow-x: hidden;
    background: linear-gradient(90deg, #0F143A, #550D5F);
    scroll-behavior: smooth;
}

/* Headings */
.heading,
.clients .section-header h2,
.section-head h1,
.section-head-1 h4 {
    margin: 2rem 0 10rem;
    padding-top: 6rem;
    display: inline-block;
    font-size: 3.5rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 0.2rem;
}

.heading::before,
.heading::after,
.clients .section-header h2::before,
.clients .section-header h2::after,
.section-head h1::before,
.section-head h1::after,
.section-head-1 h4::before,
.section-head-1 h4::after {
    content: '';
    position: absolute;
    height: 2.5rem;
    width: 2.5rem;
    border-top: 0.4rem solid var(--primary-color);
    border-left: 0.4rem solid var(--primary-color);
}

.faq .heading::before,
.faq .heading::after {
    border-color: var(--secondary-color);
}

.heading::before,
.clients .section-header h2::before,
.section-head h1::before,
.section-head-1 h4::before {
    top: 5.8rem;
    left: -2rem;
}

.heading::after,
.clients .section-header h2::after,
.section-head h1::after,
.section-head-1 h4::after {
    bottom: -0.5rem;
    right: -2rem;
    transform: rotate(180deg);
}

/* Buttons */
.btn {
    outline: none;
    border: none;
    border-radius: var(--border-radius);
    background: #fff;
    border-style: groove;
    font-size: 1.5rem;
    cursor: pointer;
    height: 3.5rem;
    width: 15rem;
    box-shadow: var(--shadow);
}

.row .btn {
    border-color: var(--dark-bg);
}

.communicate .btn {
    border-color: #002e5f;
}

.btn:hover {
    letter-spacing: 0.1rem;
    opacity: 0.9;
    color: #fff;
}

.row .btn:hover {
    background: #002e5f;
}

.communicate .btn:hover {
    background: var(--primary-color);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header .logo img {
    max-height: 47px;
    padding-block: 0.5rem;
}

.header .navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.header .navbar ul li {
    margin: 0 1.5rem;
}

.header .navbar ul li a {
    font-size: 2rem;
    color: var(--text-color);
}

.header .navbar ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.header .fa-bars {
    color: var(--text-color);
    cursor: pointer;
    font-size: 3rem;
    display: none;
}

/* Home Section */
.home {
    min-height: 100vh;
    width: 100vw;
    background: url(../images/bg.webp) no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: -1; /* Ensure the gradient is below the content */
}


#home {
    position: relative; /* Ensure the section is a positioning context */
    overflow: hidden; /* Prevent overflow issues */
  }
  
.sidewing1, .sidewing2 {
    position: absolute;
    top: 50%; /* Center vertically, adjust as needed */
    transform: translateY(-60%); /* Offset for vertical centering */
    animation: fadeInTranslate 1s ease-in-out;
}

.sidewing1 {
    left: 0; /* Stick to the left edge of the viewport */
    transform: translateX(-50%) translateY(-30%) scale(110%); /* Adjust for rotation */
    rotate: 30deg; /* Rotate the sidewings */
}

.sidewing2 {
    right: 0; /* Stick to the right edge of the viewport */
    transform: translateX(60%) translateY(-30%) scale(110%); /* Adjust for rotation */
    rotate: -30deg; /* Rotate the sidewings */
}



@keyframes fadeInTranslate {
    0% {
        opacity: 0;
        transform: translateX(0%) translateY(0%) scale(100%);
        rotate: 0deg; /* Rotate the sidewings */
    }
    100% {
        opacity: 1;
    }
}
  
  /* Ensure the images scale appropriately */
  .logo-image {
    max-height: 48px; /* Limit height to viewport height */
  }

  .logo-image-double {
    max-height: 5px; /* Limit height to viewport height */
  }
  
  /* Optional: Adjust for smaller screens */
  @media (max-width: 768px) {
    .sidewing1, .sidewing2 {
        display:none; /* Hide sidewings on smaller screens */
    }
  }

.home h1 {
    color: var(--text-color);
    font-size: 5.5rem;
    z-index: 1; /* Ensure text is above the gradient */
}

.home h2 {
    color: var(--text-color);
    font-size: 3rem;
    z-index: 1; /* Ensure text is above the gradient */
}

.home .wave {
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    height: 11rem;
    width: 100%;
    background: url(../images/wave.webp);
    background-size: 100rem 11rem;
    background-repeat: repeat-x;
    animation: waves 8s linear infinite;
}

.home .wave2 {
    animation: waves 6s reverse linear infinite;
    opacity: 0.3;
    z-index: 1; /* Ensure text is above the gradient */
}

.home .wave3 {
    animation: waves 4s linear infinite;
    opacity: 0.5;
}

@keyframes waves {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 100rem;
    }
}

/* About Section */
.about {
    min-height: 55vh;
    width: 100vw;
    text-align: center;
    position: relative;
    overflow: hidden;
    line-height: 10rem;
    background: #300E6D;
}

.about .row {
    line-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4rem;
}

.about .row .content h3,
.about .row .content p,
.pt-5 .container .row .section-head p {
    font-size: 3rem;
    color: var(--text-color);
}

.about .row .content p,
.pt-5 .container .row .section-head p {
    font-size: 2rem;
    padding: 1rem 0;
}

/* Service Section */
.pt-4.pb-4 {
    background:
    /* soft purple glow top-right */
    radial-gradient(1200px 800px at 78% 36%, rgba(138,30,220,.75), rgba(138,30,220,0) 60%),
    /* indigo sweep across upper mid */
    radial-gradient(1200px 600px at 55% 10%, rgba(42,66,167,.55), rgba(42,66,167,0) 55%),
    /* darker violet belt crossing mid-right */
    radial-gradient(800px 500px at 85% 50%, rgba(107,11,191,.4), rgba(107,11,191,0) 60%),
    /* deep shadow bottom-left */
    radial-gradient(900px 700px at 5% 80%, rgba(0,0,0,.85), rgba(0,0,0,0) 70%),
    /* base gradient from navy to violet */
    linear-gradient(135deg, var(--ink) 0%, #10132a 35%, #241346 65%, var(--violet) 100%);
  background-repeat:no-repeat;
  background-attachment:fixed;
  min-height:100%;
    padding: 4rem 0;
  }
  
  .section-head {
    margin: 4rem 0;
    text-align: center;
  }
  
  .section-head h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
  }
  
  .section-head p {
    font-size: 2rem;
    color: var(--text-color);
    line-height: 2.8rem;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .item {
    background: var(--dark-bg);
    text-align: center;
    padding: 3rem 2.5rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.07);
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: all 0.7s ease;
    min-height: 100%;
  }
  
  .item .icon{
    margin-bottom: 2.5rem;
  }
  
  .item .icon img {
    max-height: 13%;
  }

  .item .icon-double img  {
    max-height: 8rem;
  }
  
  .item p {
    font-size: 1.5rem;
    color: var(--text-color);
    font-family: "Varela Round", Arial, sans-serif;
    line-height: 2.6rem;
  }

/* Project Items */
.item,
.item-project {
    background: var(--dark-bg);
    text-align: center;
    padding: 3rem 1.5rem;
    box-shadow: 0 0 25px #00000012;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: all 0.7s ease;
}

.item-project {
    background: #fff;
}

.logo-image-project {
    max-height: 128px;
    margin-bottom: 3rem;
  }

  .logo-image-project-lg {
    width: 100%;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
  }

.item .icon {
    font-size: 4rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    width: 9rem;
    height: 9rem;
    line-height: 9.6rem;
    border-radius: 50%;
}

.item .icon-double {
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

.item .icon-double img {
    padding: 2.3rem 1rem;
    margin-bottom: 1.5rem;
}

.item p{
    font-size: 1.5rem;
    color: var(--text-color);
    font-family: "Varela Round", Arial, sans-serif;
}

.item-project p {
    color: #000;
    font-size: 1.8rem;
}

.item h6,
.item-project h6 {
    margin-bottom: 2rem;
    font-family: "Varela Round", Arial, sans-serif;
}

/* Counters Section */
.counters {
    background: url(../images/bg3.webp) no-repeat center/cover fixed;
    color: var(--text-color);

    padding: 4rem 2rem;
}



.counters .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.counters i {
    margin-bottom: 0.5rem;
}

.counters .counter {
    font-size: 4.5rem;
    margin: 1rem 0;
}

/* Communicate Section */
.communicate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url(../images/bg6.webp) no-repeat center/cover fixed;
    color: var(--text-color);
    min-height: 35vh;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.communicate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.communicate h3 {
    margin-block: 3rem;
    font-size: 3rem;
    position: relative;
    z-index: 1; /* Ensure text is above the gradient */
}

.communicate p {
    font-size: 2rem;
    z-index: 1; /* Ensure text is above the gradient */
}

/* Clients Section */
.clients {
    padding: 20vh 0 8vh;
    text-align: center;
    margin: -10rem 0;
}

.clients .section-header p {
    margin-top: 2.5rem;
    font-size: 2rem;
    color: #333;
    padding: 1rem 0;
}

.clients img {
    max-width: 100%;
    transition: opacity 0.3s;
    padding: 1.5rem 0;
}

.clients img:hover {
    opacity: 0.5;
}

.clients .owl-dot {
    display: inline-block;
    margin: 8rem 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #ddd;
}

.clients .owl-dot.active {
    background: #4F84C4;
}

.client-logo-container {
    background: #fff;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15rem;
    width: 15rem;
    margin: 0 auto;
}

.client-logo-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Footer */
.footer {
    background: url(../images/bg1.webp) no-repeat center -65%/cover fixed;
    padding-bottom: 3rem;
}

.footer .footer-top {
    padding: 6rem 0 3rem;
}

.footer .footer-top h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1rem;
}

.footer .footer-top h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5rem;
    border-bottom: 0.2rem solid var(--text-color);
}

.footer .footer-top .footer-contact p {
    color: var(--text-color);
    line-height: 2.6rem;
}

.footer .social-links a {
    font-size: 1.8rem;
    display: inline-block;
    color: var(--text-color);
    margin-right: 0.4rem;
    width: 3.6rem;
    height: 3.6rem;
    line-height: 3.6rem;
    text-align: center;
    transition: 0.3s;
}

.footer .social-links a:hover {
    background: var(--secondary-color);
}

.footer .copyright {
    padding-top: 3rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    background: var(--secondary-color);
    color: var(--text-color);
    width: 4.5rem;
    height: 4.5rem;
    text-align: center;
    font-size: 4.4rem;
    right: 1.5rem;
    bottom: 1.5rem;
    transition: background 0.3s;
    z-index: 9;
}

.back-to-top i:hover {
    color: #000;
}

/* Media Queries */
@media (max-width: 1000px) {
    html {
        font-size: 50%;
    }

    .header .fa-bars {
        display: block;
        color: var(--text-color);
        margin-right: 1rem;
    }

    .header .fa-bars:hover {
        color: var(--secondary-color);
    }

    .header .navbar {
        position: fixed;
        top: -120%;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        z-index: 1000;
        border-top: 0.1rem solid rgba(0, 0, 0, 0.3);
    }

    .header .navbar ul {
        flex-flow: column;
    }

    .header .navbar ul li {
        margin: 1rem 0;
    }

    .header .navbar ul li a {
        color: var(--text-color);
        font-size: 2.4rem;
    }

    .header .navbar.nav-toggle {
        top: 8rem;
    }

    .home h1 {
        font-size: 4rem;
    }

    .home h2 {
        font-size: 2rem;
    }

    .about {
        min-height: 38vh;
        margin: -3rem 0 -2rem;
        line-height: 6rem;
    }

    .about .row {
        line-height: 2rem;
    }

    .about .row .content h3 {
        font-size: 2rem;
    }

    .about .row .content p {
        font-size: 1.3rem;
    }

    .clients {
        padding: 9rem 0;
        margin: -15rem 0 -8rem;
    }

    .back-to-top {
        width: 3rem;
        height: 3rem;
        font-size: 3rem;
    }
}

@media (max-width: 700px) {
    .counters .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .counters .container > div:nth-of-type(1),
    .counters .container > div:nth-of-type(2) {
        border-bottom: 0.1rem solid lightskyblue;
        padding-bottom: 2rem;
    }
}