/*
Theme Name: Nova Credit
Theme URI: https://novacredit.co.in
Author: Nova Credit Team
Author URI: https://novacredit.co.in
Description: A modern, SEO-optimized WordPress theme for Nova Credit financial services with Elementor support, dynamic header/footer, and form handling capabilities.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nova-credit
Tags: finance, business, loan, credit, elementor, responsive, seo-optimized
*/

/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}


/* NAVIGATION BAR */
.main-nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.99);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* LOGO */
.logo {
    flex-shrink: 0;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* MENU */
.menu {
    display: flex;
    align-items: center;
    gap: 40px;
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.menu li {
    list-style: none;
    position: relative;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
}

.menu li > a,
.menu li {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.menu li > a::after,
.menu li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #15e39b, #0cd17e);
    transition: width 0.3s ease;
}

.menu li:hover > a,
.menu li:hover {
    color: #15e39b;
}

.menu li:hover > a::after,
.menu li:hover::after {
    width: 100%;
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    padding: 12px 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    animation: dropdownFadeIn 0.3s ease forwards;
}

@keyframes dropdownFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown a:hover {
    color: #15e39b;
    background: rgba(21, 227, 155, 0.05);
    border-left-color: #15e39b;
    padding-left: 25px;
}

.menu li:hover .dropdown {
    display: block;
}

/* BUTTONS */
.btns {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.login-btn {
    border: 2px solid #000;
    padding: 10px 24px;
    border-radius: 50px;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #15e39b, #0cd17e);
    transition: left 0.3s ease;
    z-index: -1;
}

.login-btn:hover {
    border-color: #15e39b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 227, 155, 0.3);
}

.login-btn:hover::before {
    left: 0;
}

.login-btn i {
    font-size: 14px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* HERO SECTION */
.hero-section {
    width: 100%;
    padding: 60px 8%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background-color: #3b3b3b;
}

.hero-left h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #0c2f21;
}

.hero-left h1 span {
    color: #15e39b;
}

/* STATS */
.stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.highlight {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.subtext {
    color: #fff;
    opacity: 60%;
    font-size: 15px;
}

/* SLIDER */
.slider {
    width: 460px;
    max-width: 100%;
    background: linear-gradient(135deg, #0cd17e, #78ffb1);
    padding: 30px;
    border-radius: 20px;
    color: #062c1d;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* LOAN CARDS */
.loan-cards {
    width: 100%;
    background-color: #fff;
    padding: 40px 8%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    flex: 1 1 260px;
    max-width: 320px;
    min-width: 240px;
    border: 1px solid rgba(15, 227, 155, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tag {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #fff27e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.apply-btn {
    margin-top: 15px;
    padding: 10px 18px;
    border: 1px solid #0cd17e;
    background: transparent;
    color: #0e4a36;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.apply-btn:hover {
    background: #0cd17e;
    color: white;
}

/* FOOTER */
.main-footer {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #fff;
    padding: 70px 20px 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #15e39b, #0cd17e, #15e39b);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
    max-width: 350px;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: linear-gradient(135deg, #15e39b, #0cd17e);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(21, 227, 155, 0.4);
    border-color: #15e39b;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #15e39b, #0cd17e);
    border-radius: 2px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #15e39b;
}

.footer-menu a:hover {
    color: #15e39b;
    padding-left: 25px;
}

.footer-menu a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 20px;
    color: #15e39b;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #15e39b;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.footer-links a:hover {
    color: #15e39b;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* Scroll to top button */
#scrollTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #15e39b, #0cd17e);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(21, 227, 155, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

#scrollTopBtn.show {
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 30px rgba(21, 227, 155, 0.6);
}

#scrollTopBtn i {
    font-size: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-left h1 {
        font-size: 38px;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 15px 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 12px 20px;
    }

    .logo img {
        height: 60px;
    }

    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        display: flex;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .menu.active {
        left: 0;
    }
    
    .menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(21, 227, 155, 0.3), transparent);
    }

    .menu li {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }

    .menu li > a::after,
    .menu li::after {
        display: none;
    }

    .dropdown {
        position: relative;
        border: none;
        box-shadow: none;
        padding-left: 20px;
        top: 0;
        margin-top: 10px;
        background: rgba(21, 227, 155, 0.05);
        border-radius: 8px;
    }

    .hamburger {
        display: flex;
    }

    .login-btn span {
        display: none;
    }

    .login-btn {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-menu {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    #scrollTopBtn {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Elementor Compatibility */
.elementor-page .site-content {
    padding: 0;
}

/* CIBIL BANNER */
.credit-banner {
    width: 95%;
    margin: 40px auto;
    background: white;
    border-radius: 25px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid #e5e5e5;
    gap: 20px;
}

.credit-banner::before,
.credit-banner::after {
    content: "";
    position: absolute;
    background: #0f8a4b;
    border-radius: 50%;
    z-index: 0;
    transition: 0.3s ease;
}

.credit-banner::before {
    left: -100px;
    top: -40px;
    width: 350px;
    height: 350px;
}

.credit-banner::after {
    right: -120px;
    bottom: -80px;
    width: 380px;
    height: 380px;
}

.left-part, .right-part {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.person-img {
    height: 230px;
    max-width: 100%;
    object-fit: contain;
}

.score-img {
    height: 240px;
    max-width: 100%;
    object-fit: contain;
}

.content {
    text-align: center;
    position: relative;
    z-index: 3;
    width: 40%;
    min-width: 250px;
}

.content h2 {
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
    margin: 0;
}

.green {
    color: #16d797;
}

.strike {
    text-decoration: line-through;
    color: #444;
    font-weight: 600;
}

.content p {
    margin-top: 10px;
    font-size: 15px;
    color: #444;
}

.cta-btn {
    margin-top: 20px;
    background: black;
    color: white;
    padding: 13px 35px;
    border-radius: 40px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    opacity: 0.8;
}

/* FINANCIAL PRODUCT SECTION */
.section-container {
    text-align: center;
    padding: 60px 8%;
}

.section-container h2 {
    font-size: 42px;
    font-weight: 700;
}

.section-container h2 span {
    color: #15e39c;
}

.section-container p {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}

.financial-cards {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.financial-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.icon-box img {
    width: 35px;
    height: 35px;
}

.financial-cards .card h3 {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 700;
}

.financial-cards .card p {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.btn {
    margin-top: 20px;
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.green-btn {
    background: #16e29f;
    color: black;
}

.black-btn {
    background: black;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

/* Form Styles */
.nova-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nova-form .form-group {
    margin-bottom: 20px;
}

.nova-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.nova-form input,
.nova-form select,
.nova-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.nova-form button {
    width: 100%;
    padding: 15px;
    background: #19e08c;
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.nova-form button:hover {
    background: #0ed67c;
}

.nova-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Additional Modern Enhancements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: all 0.3s ease;
}

button, .btn, .apply-btn, .login-btn {
    transition: all 0.3s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(21, 227, 155, 0.3);
    color: #000;
}

::-moz-selection {
    background: rgba(21, 227, 155, 0.3);
    color: #000;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #15e39b;
    outline-offset: 2px;
}
img.custom-logo {
    height: 80px !important;
    width: 80px !important;
}
/* Print styles */
@media print {
    .main-nav,
    .main-footer,
    #scrollTopBtn,
    .hamburger {
        display: none !important;
    }
}

