* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

p {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #2E8B57, #4CAF50);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #f5f7fa;
}

.bg-animation span {
    position: absolute;
    bottom: -50px;
    width: 50px;
    height: 50px;
    background: rgba(0, 128, 0, 0.15);
    animation: float 60s linear infinite;
    border-radius: 50%;
}

/* Random positions & delays */
.bg-animation span:nth-child(1) {
    left: 10%;
    animation-duration: 20s;
}

.bg-animation span:nth-child(2) {
    right: 30%;
    animation-duration: 25s;
    width: 60px;
    height: 60px;
}

.bg-animation span:nth-child(3) {
    left: 50%;
    animation-duration: 30s;
}

.bg-animation span:nth-child(4) {
    right: 70%;
    animation-duration: 18s;
    width: 30px;
    height: 30px;
}

.bg-animation span:nth-child(5) {
    left: 70%;
    animation-duration: 35s;
}

.bg-animation span:nth-child(6) {
    right: 20%;
    animation-duration: 40s;
}

.bg-animation span:nth-child(7) {
    left: 0%;
    animation-duration: 50s;
}

.bg-animation span:nth-child(8) {
    right: 100%;
    animation-duration: 450s;
}

@keyframes float {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1.2;
    }

    100% {
        transform: translateY(-300vh);
        opacity: 1;
    }
}


.clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffffff;
    font-size: 1rem;
    flex-wrap: wrap;
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #2E8B57, #3b973e);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    margin-bottom: 30px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    margin-bottom: 80px;
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0;
    animation: loading 2s ease-in-out infinite;
}

.loader-text {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeInOut 2s infinite;
}

@keyframes loading {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #2E8B57, #4CAF50);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-toggle {
    display: flex;
    margin-left: 2rem;
    border: 1px solid #000;
    border-radius: 20px;
    overflow: hidden;
}

body.dark-mode .lang-toggle {
    border-color: #000000;
}

/* body.dark-mode .nav-links {
    background-color: #000;
    color: #ffffff;
} */

/* body.dark-mode button {
    color: #ffffff;
} */

/* body.dark-mode .nav-link a {
    color: #ffffff;
} */


.lang-btn {
    padding: 5px 10px;
    background-color: #4caf7d;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 800;
}

body.dark-mode section {
    background: rgba(30, 30, 30, 0.95);
}

body.dark-mode .lang-btn {
    background-color: #0a5c36;
    color: #ffffff;
}

.lang-btn.active {
    background-color: #0a5c36;
    color: #ffffff;
}

body.dark-mode .lang-btn.active {
    background-color: #4caf7d;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 1.6rem;
    color: #1a1a1a;
}

body.dark-mode .dark-mode-toggle {
    color: #e0e0e0;
}



/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    /* color: inherit; */
}

/* .logo-img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
} */

.logo-text h1 {
    font-size: 1.5rem;
    color: #2E8B57;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

.nav-links {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
    color: #2E8B57;
}

.dropdown {
    position: relative;
}

button>span {
    font-size: 1rem;
    font-weight: 500;
}

.dropdown-toggle {
    position: relative;
    padding-right: 3px;
}

.dropdown-icon {
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -50%;
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(46, 139, 87, 0.1);
    color: #2E8B57;
    padding-left: 40px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-icon {
    width: 25px;
    height: 3px;
    background: #2E8B57;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Breadcrumb Navigation */
.nav-breadcrumb {
    display: flex;
    padding: 20px 30px;
    gap: 10px;
    background: #2E8B57;
    align-items: center;
}

.nav-breadcrumb {
    color: white;
    font-size: 1.2rem;
}

.breadcrumb-link {
    color: rgb(255, 255, 255);
    text-decoration: none;
    opacity: 0.8;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
    opacity: 1;
}

.breadcrumb-separator {
    opacity: 0.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(#2E8B57, rgb(0, 217, 255)), url("https://plus.unsplash.com/premium_photo-1661382019197-94d5edb38186?q=80&w=872&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 9rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* .calculator-container {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
} */

.calculator-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 25px;
    text-align: center;
}

.calculator-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.calculator-body {
    display: flex;
    flex-wrap: wrap;
}

.input-section {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-right: 1px solid #eaeaea;
}

.result-section {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f9fafc;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.input-with-icon {
    position: relative;
    margin-bottom: 5px;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8a9e;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: #4a6491;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 100, 145, 0.1);
}

.slider-value {
    text-align: right;
    font-size: 0.9rem;
    color: #4a6491;
    font-weight: 600;
    margin-top: 5px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #dde1e7;
    border-radius: 3px;
    outline: none;
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: #1a2530;
}

.result-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.result-label {
    color: #7b8a9e;
    font-size: 1rem;
    margin-bottom: 5px;
}

.emi-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 10px 0;
}

.result-details {
    color: #7b8a9e;
    font-size: 0.95rem;
    margin-top: 8px;
}

.breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.breakdown-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.breakdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.breakdown-label {
    font-size: 0.9rem;
    color: #7b8a9e;
    margin-top: 5px;
}

.footer-note {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #7b8a9e;
    border-top: 1px solid #eaeaea;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .calculator-body {
        flex-direction: column;
    }

    .input-section {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }

    .emi-amount {
        font-size: 2.2rem;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo-text h3 {
    font-size: 1.3rem;
    color: white;
    margin: 0;
}

.footer-logo-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 400px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #FFD700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: #FFD700;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal a:hover {
    color: #FFD700;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E8B57, #4CAF50);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Animations for scroll reveal */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}


/* Mobile Responsiveness */
/* Navbar Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .top-bar-grid {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .top-bar-info {
        justify-content: center;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}