/* ==========================================
   SPHEREXA - STYLE.CSS (PART 3A)
========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   RESET
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #08111F;
    color: #fcfcfc;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.portfolio-card {

    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;

}

.portfolio-card a {

    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;

}

.portfolio-card img {

    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: .5s;

}

.portfolio-card:hover img {

    transform: scale(1.08);

}



.overlay {

    position: absolute;
    inset: 0;

    background: rgba(8, 17, 31, .82);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    opacity: 0;

    transition: .4s;

}

.portfolio-card:hover .overlay {

    opacity: 1;

}

.overlay h3 {

    color: #fff;

    margin-bottom: 20px;

    font-size: 24px;

}

.visit-btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 12px 24px;

    background: #4F6DF5;

    color: #fff;

    border-radius: 40px;

    font-weight: 600;

    transition: .3s;

}

.visit-btn:hover {

    background: #7C3AED;

    transform: translateY(-3px);

}

.visit-btn i {

    transition: .3s;

}

.visit-btn:hover i {

    transform: translateX(6px);

}

.portfolio {

    padding: 100px 0;

    background: #08111F;

}

.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.portfolio-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 20px;
    text-align: center;
}

.portfolio-card a {
    display: block;
    text-decoration: none;
}

.portfolio-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    /* Image cut nahi hogi */
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    transition: .4s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}



.portfolio-card:hover img {

    transform: scale(1.08);

}

.overlay {

    position: absolute;

    inset: 0;

    background: rgba(13, 17, 23, .88);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    opacity: 0;

    transition: .4s;

}

.portfolio-card:hover .overlay {

    opacity: 1;

}

.overlay h3 {

    color: #fff;

    font-size: 26px;

    margin-bottom: 8px;

}

.overlay p {

    color: #ddd;

    margin-bottom: 25px;

}

.visit-btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 12px 25px;

    border-radius: 40px;

    background: linear-gradient(90deg, #4F6DF5, #7C3AED);

    color: #fff;

    font-weight: 600;

    transition: .3s;

}

.visit-btn i {

    transition: .3s;

}

.portfolio-card:hover .visit-btn i {

    transform: translateX(8px);

}

@media(max-width:991px) {

    .portfolio-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:768px) {

    .portfolio-grid {

        grid-template-columns: 1fr;

    }

}


.testimonial {

    padding: 100px 0;

    background: #F8F9FC;

}

.testimonial-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.testimonial-card {

    background: #fff;

    border-radius: 20px;

    padding: 35px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .4s;

}

.testimonial-card:hover {

    transform: translateY(-8px);

}

.quote {

    font-size: 55px;

    color: #E5E7EB;

    margin-bottom: 20px;

}

.testimonial-card p {

    color: #666;

    line-height: 1.8;

    margin-bottom: 30px;

}

.testimonial-card h3 {

    font-size: 28px;

    color: #ffffff;

    margin-bottom: 8px;

}

.testimonial-card span {

    color: #777;

}

@media(max-width:991px) {

    .testimonial-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:768px) {

    .testimonial-grid {

        grid-template-columns: 1fr;

    }

}

/* ===============================
   FAQ WhatsApp CTA
================================ */

.faq-contact {

    margin-top: 60px;

}

.faq-contact-content {

    background: linear-gradient(135deg, #08111F, #16243D);

    border-radius: 20px;

    padding: 35px 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);

}

.faq-icon {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: #25D366;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #fff;

    font-size: 34px;

    flex-shrink: 0;

}

.faq-text {

    flex: 1;

}

.faq-text h3 {

    color: #fff;

    font-size: 28px;

    margin-bottom: 8px;

}

.faq-text p {

    color: #cfd8e3;

    line-height: 1.7;

}

.faq-btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 16px 28px;

    border-radius: 50px;

    background: #25D366;

    color: #fff;

    text-decoration: none;

    font-weight: 600;

    transition: .3s;

}

.faq-btn:hover {

    background: #1EBE5D;

    transform: translateY(-4px);

}

@media(max-width:768px) {

    .faq-contact-content {

        flex-direction: column;

        text-align: center;

        padding: 30px 20px;

    }

    .faq-text {

        margin: 10px 0;

    }

    .faq-btn {

        width: 100%;

        justify-content: center;

    }

}

/* ===========================
   Popup Overlay
=========================== */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Full screen overlay */
    background: rgba(0, 0, 0, .65);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* ===========================
   Popup Box
=========================== */

.popup-content {
    width: 90%;
    max-width: 500px;
    /* Normal popup size */
    background: #fff;
    border-radius: 20px;
    padding: 30px;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===========================
   Close Button
=========================== */

.close {
    position: absolute;
    right: 25px;
    top: 18px;
    font-size: 32px;
    cursor: pointer;
    font-weight: 700;
    color: #111;
    transition: .3s;
}

.close:hover {
    color: #6C63FF;
    transform: rotate(90deg);
}

/* ===========================
   Heading
=========================== */

.popup-content h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #021657;
    margin-bottom: 30px;
}

/* ===========================
   Form
=========================== */

.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===========================
   Inputs
=========================== */

.popup-content input,
.popup-content select,
.popup-content textarea {

    width: 100%;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 16px 18px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    transition: .3s;
    outline: none;
    box-sizing: border-box;

}

.popup-content input,
.popup-content select {
    height: 58px;
}

.popup-content textarea {
    resize: none;
    min-height: 120px;
}

/* Focus */

.popup-content input:focus,
.popup-content select:focus,
.popup-content textarea:focus {

    border-color: #6C63FF;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, .15);

}

/* Placeholder */

.popup-content input::placeholder,
.popup-content textarea::placeholder {
    color: #777;
}

/* Select */

.popup-content select {
    appearance: none;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 18px center;
}

/* ===========================
   Submit Button
=========================== */

.submit-btn {

    width: 100%;
    height: 58px;
    border: none;
    border-radius: 15px;
    background: #12026e;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;

}

.submit-btn:hover {

    background: #6C63FF;
    transform: translateY(-2px);

}

/* ===========================
   Responsive
=========================== */

@media(max-width:768px) {

    .popup-content {

        padding: 25px;
        border-radius: 20px;

    }

    .popup-content h2 {

        font-size: 30px;

    }

    .popup-content input,
    .popup-content select,
    .popup-content textarea,
    .submit-btn {

        font-size: 15px;

    }

}



/* ===========================
   VARIABLES
=========================== */

:root {

    --primary: #5B6CFF;
    --secondary: #7B3EF3;
    --green: #00C2A8;

    --bg: #08111F;
    --card: #101C31;
    --card2: #16243D;

    --white: #ffffff;
    --text: #c8d2e2;

    --shadow: 0 15px 40px rgba(0, 0, 0, .35);

    --radius: 18px;

}

/* ===========================
   CONTAINER
=========================== */

.container {

    width: 90%;
    max-width: 1250px;
    margin: auto;

}

/* ===========================
   LOADER
=========================== */

#loader {

    position: fixed;
    inset: 0;
    background: #08111F;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

}

.spinner {

    width: 60px;
    height: 60px;

    border: 5px solid rgba(255, 255, 255, .15);
    border-top: 5px solid var(--primary);

    border-radius: 50%;

    animation: spin 1s linear infinite;

}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}

/* ===========================
   HEADER
=========================== */

header {

    position: fixed;

    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    background: rgba(8, 17, 31, .88);

    backdrop-filter: blur(12px);

    transition: .3s;

}

nav {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 90px;

}

.logo img {

    height: 55px;

}

.nav-links {

    display: flex;

    gap: 40px;

}

.nav-links li a {

    font-size: 16px;

    font-weight: 500;

    transition: .3s;

    color: #fff;

}

.nav-links li a:hover {

    color: var(--primary);

}

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 34px;

    background: linear-gradient(90deg, var(--primary), var(--secondary));

    border-radius: 50px;

    font-weight: 600;

    transition: .4s;

    color: #fff;

    box-shadow: 0 10px 25px rgba(91, 108, 255, .35);

}

.btn:hover {

    transform: translateY(-5px);

}

.btn-outline {

    display: inline-flex;

    padding: 14px 34px;

    border: 2px solid var(--primary);

    border-radius: 50px;

    margin-left: 15px;

    transition: .4s;

}

.btn-outline:hover {

    background: var(--primary);

}

.menu-toggle {

    display: none;

    font-size: 28px;

    cursor: pointer;

}

/* ===========================
   HERO
=========================== */

.hero {

    padding-top: 170px;

    padding-bottom: 110px;

}

.hero-content {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 60px;

}

.tagline {

    display: inline-block;

    padding: 10px 18px;

    background: #13223c;

    border-radius: 40px;

    color: var(--green);

    margin-bottom: 20px;

    font-size: 14px;

}

.hero h1 {

    font-size: 64px;

    line-height: 1.15;

    font-weight: 800;

    margin-bottom: 20px;

}

.hero h1 span {

    background: linear-gradient(90deg, #6b7cff, #9a54ff);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}

.hero p {

    font-size: 18px;

    line-height: 1.9;

    color: var(--text);

    margin-bottom: 35px;

    max-width: 580px;

}

.hero-buttons {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

}

.hero-right {

    display: flex;

    justify-content: center;

}

.hero-right img {

    width: 100%;

    max-width: 540px;

    animation: float 4s ease-in-out infinite;

}

@keyframes float {

    0% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-18px);

    }

    100% {

        transform: translateY(0);

    }

}

/*==========================
 HERO STATS
==========================*/

.hero {
    position: relative;
    padding-bottom: 140px;
}

.hero-stats {

    position: relative;
    margin-top: -80px;
    z-index: 20;

}

.hero-right img {
    width: 100%;
    max-width: 600px;
    height: auto;

    border-radius: 24px;

    border: 2px solid rgba(110, 92, 255, 0.35);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(110, 92, 255, 0.35);

    transition: all 0.4s ease;
}

.stats-box {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;

    padding: 8px;
    /* 5px-10px rakh sakte ho */
}

.stat-item {
    position: relative;
    padding: 40px 20px;
    text-align: center;
    transition: .35s;
    margin: 5px;
    border: none;
}

.stat-item::after {
    content: "";
    position: absolute;
    top: 15px;
    right: -5px;
    width: 1px;
    height: calc(100% - 30px);
    background: #eee;
}

.stat-item:last-child::after {
    display: none;
}

.stat-item:hover {

    transform: translateY(-8px);

}

.stat-icon {

    width: 65px;
    height: 65px;

    margin: auto;

    border-radius: 50%;

    background: #EEF2FF;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #4F6DF5;

    font-size: 26px;

    margin-bottom: 18px;

}

.stat-item h2 {

    font-size: 36px;

    color: #0D1117;

    font-weight: 700;

}

.stat-item p {

    color: #666;

    margin-top: 8px;

}

/* Tablet */

@media(max-width:991px) {

    .stats-box {

        grid-template-columns: repeat(2, 1fr);

    }

    .stat-item:nth-child(2) {

        border-right: none;

    }

    .stat-item {

        border-bottom: 1px solid #eee;

    }

    .stat-item:nth-last-child(-n+2) {

        border-bottom: none;

    }

}

/* Mobile */

@media(max-width:576px) {

    .hero {

        padding-bottom: 80px;

    }

    .hero-stats {

        margin-top: -40px;

    }

    .stats-box {

        grid-template-columns: 1fr;

    }

    .stat-item {

        border-right: none;

        border-bottom: 1px solid #000000;

    }

    .stat-item:last-child {

        border-bottom: none;

    }

}



/* ===========================
SECTION TITLE
=========================== */

.section-title {

    text-align: center;

    margin-bottom: 70px;

}

.section-title span {

    color: var(--green);

    font-weight: 600;

    letter-spacing: 1px;

}

.section-title h2 {

    font-size: 44px;

    margin-top: 12px;

    margin-bottom: 15px;

}

.section-title p {

    max-width: 700px;

    margin: auto;

    color: var(--text);

}

/* ===========================
SERVICES
=========================== */

.services {

    padding: 110px 0;

}

.services-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.service-card {

    background: var(--card);

    padding: 40px;

    border-radius: 20px;

    transition: .35s;

    border: 1px solid rgba(255, 255, 255, .06);

}

.service-card:hover {

    transform: translateY(-12px);

    background: var(--card2);

    box-shadow: var(--shadow);

}

.icon {

    width: 70px;

    height: 70px;

    background: linear-gradient(90deg, var(--primary), var(--secondary));

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    margin-bottom: 25px;

}

.service-card h3 {

    font-size: 24px;

    margin-bottom: 15px;

}

.service-card p {

    color: var(--text);

    line-height: 1.8;

}

/* ===========================
SMALL UTILITIES
=========================== */

.text-center {

    text-align: center;

}

.mt-50 {

    margin-top: 50px;

}

.mb-50 {

    margin-bottom: 50px;

}

/* ===========================
RESPONSIVE (BASE)
=========================== */

@media(max-width:992px) {

    .hero-content {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .hero p {

        margin: auto auto 30px;

    }

    .hero-buttons {

        justify-content: center;

    }

    .services-grid {

        grid-template-columns: repeat(2, 1fr);

    }

    .nav-links {

        display: none;

    }

    .menu-toggle {

        display: block;

    }

}

@media(max-width:768px) {

    .hero h1 {

        font-size: 42px;

    }

    .section-title h2 {

        font-size: 34px;

    }

    .services-grid {

        grid-template-columns: 1fr;

    }

    .btn {

        width: 80%;

    }

    .btn-outline {

        width: 100%;
        margin-left: 0;
    }

    .hero-buttons {

        flex-direction: column;

    }

}

@media(max-width:480px) {

    .container {

        width: 92%;

    }

    .hero {

        padding-top: 130px;

    }

    .hero h1 {

        font-size: 34px;

    }

    .hero p {

        font-size: 16px;

    }

    nav {

        height: 75px;

    }

    .logo img {

        height: 45px;

    }

}

/* ==========================================
   ABOUT SECTION
========================================== */

.about {
    padding: 120px 0;
    background: #0b1527;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.about-content span {
    color: var(--green);
    font-weight: 600;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 46px;
    margin: 20px 0;
    line-height: 1.3;
}

.about-content p {
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 30px;
}

.about-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.about-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-list i {
    color: var(--green);
    font-size: 18px;
}

/* ==========================================
   WHY CHOOSE US
========================================== */

.why {
    padding: 120px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--card);
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px;
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, .06);
}

.why-card:hover {
    transform: translateY(-12px);
    background: var(--card2);
    box-shadow: var(--shadow);
}

.why-card i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text);
    line-height: 1.8;
}

/* ==========================================
   TECHNOLOGIES
========================================== */

.technologies {
    padding: 120px 0;
    background: #0b1527;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
   
    gap: 25px;
}

.tech-grid div {
    background: var(--card);
    padding: 22px;
    text-align: center;
    border-radius: 15px;
    font-weight: 600;
    transition: .35s;
    border: 1px solid rgba(255, 255, 255, .05);
}

.tech-grid div:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateY(-8px);
}

/* ==========================================
   PORTFOLIO
========================================== */

.portfolio {
    padding: 120px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.portfolio-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: .5s;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s;
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: #fff;
    font-size: 26px;
}

@media (max-width:768px){

.hero-content{
    display:flex !important;
    flex-direction:column !important;
}

.hero-left{
    order:1 !important;
}

.hero-right{
    order:2 !important;
}

}

/* ==========================================
   COUNTER
========================================== */

.counter {
    padding: 110px 0;
    background: #0b1527;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-grid div {
    background: var(--card);
    padding: 40px 20px;
    border-radius: 20px;
}

.counter-grid h2 {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 12px;
}

.counter-grid p {
    color: var(--text);
}

/* ==========================================
   HOVER EFFECTS
========================================== */

.service-card,
.why-card,
.tech-grid div,
.counter-grid div {
    transition: .35s ease;
}

.counter-grid div:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card:hover .icon {
    transform: rotate(360deg);
    transition: .8s;
}

/* ==========================================
   SCROLL ANIMATION
========================================== */

.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all .8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media(max-width:992px) {

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-list {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media(max-width:768px) {

    .about-content h2 {
        font-size: 34px;
    }

    .about-list {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .counter-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card img {
        height: 260px;
    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media(max-width:480px) {

    .about {
        padding: 80px 0;
    }

    .why {
        padding: 80px 0;
    }

    .technologies {
        padding: 80px 0;
    }

    .portfolio {
        padding: 80px 0;
    }

    .counter {
        padding: 80px 0;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .counter-grid h2 {
        font-size: 40px;
    }

    .overlay h3 {
        font-size: 20px;
    }

}

/* ==========================================
   TESTIMONIAL SECTION
========================================== */

.testimonial {
    padding: 120px 0;
    background: #08111F;
}

.testimonial-card {
    max-width: 850px;
    margin: auto;
    background: var(--card);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .05);
}

.testimonial-card p {
    color: var(--text);
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.testimonial-card h4 {
    color: var(--primary);
    font-size: 22px;
}

/* ==========================================
   FAQ
========================================== */

.faq {
    padding: 120px 0;
    background: #0b1527;
}

.faq-box {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: var(--card);
    margin-bottom: 20px;
    border-radius: 15px;
    padding: 25px;
    transition: .3s;
    border: 1px solid rgba(255, 255, 255, .05);
}

.faq-item:hover {
    background: var(--card2);
}

.faq-item h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 22px;
}

.faq-item p {
    color: var(--text);
    line-height: 1.8;
}

/* ==========================================
   CONTACT
========================================== */

.contact {
    padding: 120px 0;
}

.contact form {
    max-width: 900px;
    margin: auto;
    display: grid;
    gap: 20px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: .3s;
}

.contact textarea {
    resize: none;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--primary);
}

.contact button {
    width: 220px;
    justify-self: center;
}

/* ==========================================
   CALL TO ACTION
========================================== */

.cta {
    padding: 70px 0;
    /* Pehle 100px tha */
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.cta h2 {
    font-size: 46px;
    margin-bottom: 15px;
}

.cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: #f3f3f3;
}

.cta .btn {
    background: #fff;
    color: #111;
}

.cta .btn:hover {
    transform: translateY(-5px);
}

/* ==========================================
   FOOTER
========================================== */

footer {
    background: #050B16;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-grid img {
    margin-bottom: 20px;
}

.footer-grid p {
    color: var(--text);
    line-height: 1.8;
}

.footer-grid h3 {
    margin-bottom: 20px;
}

.footer-grid ul li {
    margin-bottom: 12px;
    color: var(--text);
    transition: .3s;
    cursor: pointer;
}

.footer-grid ul li:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    padding-top: 25px;
    color: var(--text);
}

/* ==========================================
   SCROLL TO TOP
========================================== */

#topBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: .3s;
}

#topBtn:hover {
    transform: translateY(-6px);
}

/* ==========================================
   CUSTOM SCROLLBAR
========================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #08111F;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

/* ==========================================
   SELECTION
========================================== */

::selection {
    background: var(--primary);
    color: #fff;
}

/* ==========================================
   EXTRA ANIMATIONS
========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.about,
.services,
.why,
.technologies,
.portfolio,
.counter,
.testimonial,
.contact,
footer {
    animation: fadeIn .8s ease;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta h2 {
        font-size: 36px;
    }

    .contact button {
        width: 100%;
    }

}

@media(max-width:768px) {

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid img {
        margin: auto auto 20px;
    }

    .testimonial-card {
        padding: 35px;
    }

    .cta h2 {
        font-size: 30px;
    }

    .cta p {
        font-size: 16px;
    }

    .faq-item h3 {
        font-size: 18px;
    }

}

@media(max-width:480px) {

    .contact,
    .testimonial,
    .faq,
    .cta {
        padding: 80px 0;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonial-card p {
        font-size: 16px;
    }

    .cta h2 {
        font-size: 26px;
    }

    #topBtn {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    .footer-grid {
        gap: 30px;
    }

    .copyright {
        font-size: 14px;
    }

}

.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple .6s linear;
    background: rgba(255, 255, 255, .4);
}

@keyframes ripple {

    to {
        transform: scale(4);
        opacity: 0;
    }

}

.nav-links a.active {
    color: #5B6CFF;
    font-weight: 600;
}