/* ============================================================
   AllNicePay Fintech - Home / Landing Page Styles
   ============================================================ */

/* ========================
   Home Page Variables
   ======================== */
:root {
    --hero-gradient: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #10b981 100%);
}

/* ========================
   Navbar
   ======================== */
.home-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.home-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.home-navbar .navbar-brand {
    font-weight: 800;
    font-size: 24px;
    color: #fff;
}

.home-navbar.scrolled .navbar-brand {
    color: var(--primary);
}

.home-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 8px 18px !important;
    transition: all 0.3s;
    font-size: 15px;
}

.home-navbar.scrolled .nav-link {
    color: #555;
}

.home-navbar .nav-link:hover {
    color: #fff;
}

.home-navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

.home-navbar .btn-login-nav {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.home-navbar.scrolled .btn-login-nav {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.home-navbar .btn-login-nav:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.home-navbar.scrolled .btn-login-nav:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* ========================
   Hero Section
   ======================== */
.hero-section {
    min-height: 100vh;
    background: var(--hero-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: floatBg 15s infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(28,200,138,0.15) 0%, transparent 60%);
    animation: floatBg 20s infinite alternate-reverse;
}

@keyframes floatBg {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, -30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons .btn {
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    margin-right: 15px;
    transition: all 0.3s;
}

.btn-hero-primary {
    background: #fff;
    color: var(--primary);
    border: none;
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

.hero-stat-item {
    text-align: center;
    padding: 20px;
}

.hero-stat-item .stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.hero-stat-item .stat-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================
   Services Section
   ======================== */
.section-services {
    padding: 100px 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto;
    border-radius: 2px;
}

.home-service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: all 0.4s;
    border: 1px solid transparent;
    height: 100%;
}

.home-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.home-service-card .service-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    transition: all 0.3s;
}

.home-service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.home-service-card h5 {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.home-service-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Icon backgrounds by service type */
.icon-recharge { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.icon-dmt { background: linear-gradient(135deg, #10b981, #059669); }
.icon-bbps { background: linear-gradient(135deg, #f6c23e, #dda20a); }
.icon-aeps { background: linear-gradient(135deg, #e74a3b, #c0392b); }
.icon-pan { background: linear-gradient(135deg, #36b9cc, #1a8a99); }
.icon-insurance { background: linear-gradient(135deg, #6f42c1, #533399); }

/* ========================
   How It Works Section
   ======================== */
.section-how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(124,58,237,0.3);
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--gray);
    font-size: 14px;
}

.step-connector {
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 0;
    opacity: 0.3;
}

/* ========================
   Features Section
   ======================== */
.section-features {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
    color: #fff;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
    flex-shrink: 0;
}

.feature-item h6 {
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-item p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 0;
}

/* ========================
   Testimonials Section
   ======================== */
.section-testimonials {
    padding: 100px 0;
    background: var(--light);
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    margin: 10px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .testimonial-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .testimonial-author .author-name {
    font-weight: 700;
    font-size: 14px;
}

.testimonial-card .testimonial-author .author-role {
    font-size: 12px;
    color: var(--gray);
}

/* ========================
   CTA Section
   ======================== */
.section-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    color: #fff;
}

.section-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-cta p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta .btn-cta {
    background: var(--white);
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    transition: all 0.3s;
}

.section-cta .btn-cta:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ========================
   Footer
   ======================== */
.home-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.home-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
}

.home-footer p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact li i {
    color: var(--secondary);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    margin: 0 5px;
    transition: all 0.3s;
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ========================
   Responsive - Home Page
   ======================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-stat-item .stat-number {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .section-services,
    .section-how-it-works,
    .section-features,
    .section-testimonials {
        padding: 60px 0;
    }

    .section-cta h2 {
        font-size: 26px;
    }

    .home-footer {
        padding: 40px 0 20px;
    }
}

/* Mobile Hamburger */
.home-navbar .navbar-toggler {
    border: 2px solid rgba(255,255,255,0.5);
    padding: 5px 10px;
}

.home-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.home-navbar.scrolled .navbar-toggler {
    border-color: var(--primary);
}

.home-navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28124, 58, 237, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
