/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f5f8ff;
    color: #1f2933;
}

/* NAVBAR */
header {
    width: 100%;
    padding: 18px 60px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 16px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo img {
    height: 70px;
    width:auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-size: 16px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #444e60;
    border-bottom-color: #91c1ff;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 100px 60px 120px;
    overflow: hidden;
}

/* gradient */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, #e3f0ff 0%, transparent 55%),
                radial-gradient(circle at bottom right, #f4f7ff 0%, transparent 60%);
    z-index: 0;
}

/* floating shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.45;
    filter: blur(35px);
    animation: float 9s infinite ease-in-out;
    z-index: 0;
}

.shape.one {
    width: 260px;
    height: 260px;
    background: #cfe0ff;
    top: -80px;
    left: -40px;
}

.shape.two {
    width: 320px;
    height: 320px;
    background: #dbe8ff;
    bottom: -120px;
    right: -80px;
    animation-delay: 2s;
}

.shape.three {
    width: 200px;
    height: 200px;
    background: #e4eeff;
    top: 45%;
    left: 60%;
    animation-delay: 4s;
}

/* flipping images */
.flip-img {
    position: absolute;
    width: 190px;
    height: 130px;
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    border-radius: 14px;
    filter: blur(1px);
    animation: floatFlip 10s infinite ease-in-out;
    z-index: 0;
}

.img1 { top: 10%; left: 6%; background-image: url("flip1.jpg"); }
.img2 { top: 18%; left: 70%; background-image: url("flip2.jpg"); animation-delay: 2s; }
.img3 { top: 65%; left: 15%; background-image: url("flip3.jpg"); animation-delay: 4s; }
.img4 { top: 60%; left: 65%; background-image: url("flip4.jpg"); animation-delay: 6s; }

/* flip animation */
@keyframes floatFlip {
    0% { transform: translateY(0) rotateY(0deg); opacity: 0.25; }
    50% { transform: translateY(-35px) rotateY(180deg); opacity: 0.55; }
    100% { transform: translateY(0) rotateY(360deg); opacity: 0.25; }
}

/* blob animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.hero-text h1 {
    font-size: 40px;
    color: #6c97d7;
}

.hero-text p {
    width: 70%;
    margin: 16px 0 26px;
    color: #92a1b7;
    font-size: 16px;
}

.btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3f55a8, #68a8ff);
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3);
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

.hero-visual { position: relative; }

.hero-glass-card {
    width: 280px;
    padding: 24px;
    background: rgba(203, 233, 243, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(43, 51, 61, 0.4);
}

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(88, 137, 205, 0.5);
    width: 260px;
    height: 260px;
    animation: spin 18s linear infinite;
}

.hero-orbit.small {
    width: 190px;
    height: 190px;
    animation-duration: 26s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* general card animations */
.tilt { transition: 0.25s ease; }
.tilt:hover { transform: translateY(-10px) rotate3d(1,1,0,7deg); }

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}
.float-up { animation: slideUpFade 1s ease forwards; }

.floating { animation: float 5s infinite ease-in-out; }

/* SECTIONS */
.solutions-3d,
.services,
.about,
.contact {
    padding: 70px 60px;
    text-align: center;
}

.sub-text {
    margin-top: 10px;
    font-size: 15px;
    color: #6b7280;
}

/* GRID */
.solutions-grid,
.service-container {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.solution-card,
.service-box,
.about-card {
    background: #a6acf0;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.25);
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 2fr 1.3fr;
    gap: 40px;
    text-align: left;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CONTACT */
.contact-form {
    width: 60%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #9dbbf6;
    background: #d1eae9;
    font-size: 14px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* FOOTER */
.npay-footer {
    background: #d6f0f1;
    padding: 60px 8%;
    margin-top: 80px;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    width: 30%;
    min-width: 260px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #181c1c;
}

.footer-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2d2929;
}

.footer-email {
    width: 80%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    margin-bottom: 10px;
}

.footer-btn {
    background: #92e0e8;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-btn:hover {
    background: rgb(83, 130, 230);
}

/* POLICY LINKS */
.policy-links a {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.policy-links a:hover {
    opacity: 0.6;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: #3768bd;
    margin: 30px 0;
}

.footer-copy {
    text-align: center;
    font-size: 14px;
    color: #2f2627;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    header { padding: 16px 20px; }

    .hero { padding: 80px 20px 100px; }

    .hero-content { flex-direction: column; text-align: center; }

    .hero-text p { width: 100%; }

    .solutions-3d,
    .services,
    .about,
    .contact {
        padding: 60px 20px;
    }

    .solutions-grid,
    .service-container {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-form { width: 100%; }

    .flip-img { width: 140px; height: 95px; }

    .footer-wrapper { flex-direction: column; }
    .footer-column { width: 100%; }
}








/* UPGRADED ABOUT SECTION */
.about-section {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    padding: 70px 60px;
    background: linear-gradient(135deg, #f3f7ff, #e9f3ff);
    border-radius: 22px;
    margin-top: 40px;
}

/* LEFT SIDE */
.about-section .about-left h2 {
    font-size: 34px;
    color: #3b4c63;
    margin-bottom: 22px;
}

.about-section .about-left p {
    color: #5d6b7a;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 16px;
}

/* RIGHT SIDE GRID */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    height: 100%;
}

.about-card {
    background: #a6acf0;
    padding: 26px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.25);
    transition: 0.3s ease;
}

/* ICON */
.about-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* HOVER EFFECT */
.about-card:hover {
    transform: translateY(-10px) rotate3d(1,1,0,6deg);
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* MOBILE VIEW */
@media(max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}



.policy-links a {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.policy-links a:hover {
    opacity: 0.6;
}


/* ------------------------------------
   SMOOTH SIDE-TO-SIDE + FLOAT ANIMATION
-------------------------------------- */

.card-wave {
    animation: waveMotion 4s ease-in-out infinite;
}

@keyframes waveMotion {
    0%   { transform: translateX(0) translateY(0); }
    25%  { transform: translateX(-8px) translateY(-6px); }
    50%  { transform: translateX(0) translateY(-12px); }
    75%  { transform: translateX(8px) translateY(-6px); }
    100% { transform: translateX(0) translateY(0); }
}

/* Hover 3D lift */
.card-wave:hover {
    transform: translateY(-14px) scale(1.03) rotate3d(1,1,0,5deg);
    transition: 0.35s ease;
}



/* ------------------------------------
   HOVER COLOR CHANGE ANIMATION
-------------------------------------- */

.card-wave {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.card-wave:hover {
    background-color: #8f96ff;   /* light new color */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}


/* ------------------------------------
   BACK-LIGHT GLOW ON HOVER
-------------------------------------- */

.card-wave {
    position: relative;
    transition: 0.4s ease;
}

/* the glow behind the card */
.card-wave::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(120,150,255,0.5), rgba(120,150,255,0));
    opacity: 0;
    filter: blur(18px);
    transition: opacity 0.4s ease;
    z-index: -1; /* keeps glow behind card */
}

.card-wave:hover::before {
    opacity: 1;
}


/* ------------------------------------
   ADD BACKGROUND IMAGE INSIDE CARDS
-------------------------------------- */

.card-wave {
    background-image: url("card-bgg.png");  /* your image file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;        /* text stays visible */
}
/* ------------------------------------
   CARD TEXT COLOR FIX — ALWAYS BLACK
-------------------------------------- */

.solution-card *,
.service-box * {
    color: #000 !important;   /* force text to black */
}
