
/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------ */
/* SCROLLBAR STYLES */
/* ------------------------------ */
html::-webkit-scrollbar {
    width: 1rem;
}

html::-webkit-scrollbar-track {
    background: linear-gradient(to bottom right, #F8F9FA, #E1F5C4);
}

html::-webkit-scrollbar-thumb {
    background: #426589;
    border-radius: 10px;
    /* rounded edges */
    border: 2px solid transparent;
    /* space around thumb */

}

html::-webkit-scrollbar-thumb:hover {
    background: #2e4663;
    /* darker on hover */
}

:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --accent-color: #ff6b6b;
    --success-color: #4CAF50;
    --warning-color: #ff9f43;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #2d3436;
    --text-light: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Color scheme based on body background */
    --body-color-1: #F8F9FA;
    --body-color-2: #E1F5C4;
    --card-bg: rgba(211, 239, 255, 0.33);
    --section-bg: #e3ecd5;
    --heading-color: #2b4c59;
    --text-color: #3a4a42;
    --highlight: #4361ee;
    --highlight-gradient: linear-gradient(135deg, #4361ee, #3a0ca3);
}

body {
    font-family: 'Montserrat';
    background: linear-gradient(to bottom right, #7fafe054, #ffffff7d);
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;

}

html {
    scroll-behavior: smooth;
}

h1,
h2 {
    font-size: 40px;
    margin-top: 40px;
    font-weight: 500;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    background: var(--section-bg);
    border-radius: 92px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--heading-color);
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--highlight-gradient);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--highlight-gradient);
    margin: 15px auto;
    border-radius: 2px;
}

/* Purpose Section */
.purpose-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.purpose-content p {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.purpose-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.518);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--highlight);
    background: var(--highlight-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

/* Mission Section */
.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.511);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--highlight-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Team Section */
.team-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-content p {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.team-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

.collapsible {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 40px auto;
    background: linear-gradient(to bottom right, #F8F9FA, #E1F5C4);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: var(--section-bg);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.collapsible h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #2b4c59;
    position: relative;
    padding-bottom: 15px;
}

.collapsible h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    border-radius: 2px;
}

details {
    background: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

details[open] {
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid #4361ee;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

summary {
    font-weight: 600;
    cursor: pointer;
    color: #2b4c59;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    padding: 10px 0;
    list-style: none;
    position: relative;
    transition: color 0.3s ease;
}

summary:hover {
    color: #4361ee;
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #4361ee;
    transition: all 0.3s ease;
}

details[open] summary:after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

details p {
    padding: 15px 0 5px;
    color: #3a4a42;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid rgba(67, 97, 238, 0.1);
    margin-top: 10px;
}

#contact {
    padding: 80px 20px;
    background: var(--section-bg);
    text-align: center;
}

#contact .container {
    max-width: 600px;
    margin: auto;
}

#contact h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: #2b4c59;
    position: relative;
    padding-bottom: 15px;
}

#contact p {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 25px;
}

#contact .email-link {
    display: inline-block;
    padding: 14px 30px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

#contact .email-link:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--highlight), transparent);
    margin: 40px auto;
    width: 80%;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive Design - Every 100px breakpoint */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    section {
        padding: 55px 0;
        border-radius: 85px;
    }

    h1,
    h2 {
        font-size: 38px;
    }
}

@media (max-width: 1100px) {
    section {
        padding: 50px 0;
        border-radius: 78px;
    }

    h1,
    h2 {
        font-size: 36px;
    }

    .feature-card,
    .stat-item {
        padding: 25px;
    }
}

@media (max-width: 1000px) {
    section {
        padding: 45px 0;
        border-radius: 70px;
    }

    h1,
    h2 {
        font-size: 34px;
        margin-top: 35px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .collapsible {
        padding: 50px 18px;
    }
}

@media (max-width: 900px) {
    section {
        padding: 40px 0;
        border-radius: 62px;
    }

    h1,
    h2 {
        font-size: 32px;
        margin-top: 30px;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .feature-icon {
        font-size: 2.8rem;
    }

    .mission-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 25px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .collapsible h2 {
        font-size: 2rem;
    }
}

@media (max-width: 800px) {

    section {
        padding: 35px 0;
        border-radius: 54px;
    }

    h1,
    h2 {
        font-size: 30px;
        margin-top: 25px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .feature-card,
    .stat-item {
        padding: 20px;
    }

    .mission-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .collapsible {
        padding: 40px 15px;
        margin: 30px auto;
    }

    .collapsible h2 {
        font-size: 1.8rem;
    }

    details {
        padding: 18px 22px;
    }

    summary {
        font-size: 1.1rem;
    }

    #contact {
        padding: 70px 18px;
    }

    #contact h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 700px) {
    section {
        padding: 30px 0;
        border-radius: 46px;
    }

    h1,
    h2 {
        font-size: 28px;
        margin-top: 20px;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-icon {
        font-size: 2.6rem;
    }

    .mission-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.6rem;
    }

    .purpose-content p,
    .team-content p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 11px 28px;
        font-size: 0.95rem;
    }

    .collapsible h2 {
        font-size: 1.7rem;
    }

    #contact h2 {
        font-size: 2rem;
    }

}

@media (max-width: 600px) {


    section {
        padding: 25px 0;
        border-radius: 38px;
        margin-bottom: 25px;
    }

    h1,
    h2 {
        font-size: 26px;
        margin-top: 15px;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 18px;
    }

    .feature-icon {
        font-size: 2.4rem;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .stat-item {
        padding: 18px;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .collapsible {
        padding: 35px 12px;
        margin: 25px auto;
        border-radius: 10px;
    }

    .collapsible h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    details {
        padding: 15px 20px;
        margin-bottom: 15px;
    }

    summary {
        font-size: 1.05rem;
        padding-right: 25px;
    }

    #contact {
        padding: 60px 15px;
    }

    #contact h2 {
        font-size: 1.8rem;
    }

    #contact .email-link {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {
    section {
        padding: 20px 0;
        border-radius: 30px;
    }

    h1,
    h2 {
        font-size: 24px;
    }

    .feature-card,
    .stat-item {
        padding: 15px;
    }

    .feature-icon {
        font-size: 2.2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .collapsible {
        padding: 30px 10px;
    }

    .collapsible h2 {
        font-size: 1.5rem;
    }

    details {
        padding: 12px 18px;
    }

    summary {
        font-size: 1rem;
    }

    #contact h2 {
        font-size: 1.7rem;
    }

    #contact p {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {


    section {
        padding: 18px 0;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    h1,
    h2 {
        font-size: 22px;
        margin-top: 12px;
    }

    .feature-card,
    .stat-item {
        padding: 12px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .purpose-content p,
    .team-content p {
        font-size: 14px;
    }

    .mission-content {
        font-size: 14px;
    }

    .btn {
        padding: 9px 22px;
        font-size: 0.85rem;
    }

    .collapsible {
        padding: 25px 8px;
        margin: 20px auto;
    }

    .collapsible h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    details {
        padding: 10px 15px;
    }

    summary {
        font-size: 0.95rem;
    }

    #contact {
        padding: 50px 12px;
    }

    #contact h2 {
        font-size: 1.6rem;
    }

    #contact .email-link {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}

@media (max-width: 300px) {


    section {
        padding: 15px 0;
        border-radius: 18px;
    }

    .mission-content {
        font-size: 14px;
    }

    h1,
    h2 {
        font-size: 20px;
    }

    .feature-card,
    .stat-item {
        padding: 10px;
    }

    .feature-icon {
        font-size: 1.8rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .collapsible {
        padding: 20px 5px;
    }

    .collapsible h2 {
        font-size: 1.3rem;
    }

    details {
        padding: 8px 12px;
    }

    summary {
        font-size: 0.9rem;
    }

    #contact {
        padding: 40px 10px;
    }

    #contact h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 200px) {


    section {
        padding: 12px 0;
        border-radius: 12px;
    }

    h1,
    h2 {
        font-size: 18px;
    }

    .feature-card,
    .stat-item {
        padding: 8px;
    }

    .feature-icon {
        font-size: 1.6rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .btn {
        padding: 7px 18px;
        font-size: 0.75rem;
    }

    .collapsible {
        padding: 15px 5px;
    }

    .collapsible h2 {
        font-size: 1.2rem;
    }

    details {
        padding: 6px 10px;
        margin-bottom: 10px;
    }

    summary {
        font-size: 0.85rem;
    }

    #contact {
        padding: 30px 8px;
    }

    #contact h2 {
        font-size: 1.4rem;
    }

    #contact .email-link {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 100px) {


    section {
        padding: 8px 0;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    h1,
    h2 {
        font-size: 16px;
        margin-top: 8px;
    }

    .container {
        padding: 0 5px;
    }

    .feature-card,
    .stat-item {
        padding: 5px;
    }

    .feature-icon {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .purpose-content p,
    .team-content p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .collapsible {
        padding: 10px 3px;
        margin: 10px auto;
    }

    .collapsible h2 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    details {
        padding: 5px 8px;
        margin-bottom: 8px;
    }

    summary {
        font-size: 0.8rem;
    }

    details p {
        font-size: 0.8rem;
        padding: 10px 0 3px;
    }

    #contact {
        padding: 20px 5px;
    }

    #contact h2 {
        font-size: 1.2rem;
    }

    #contact p {
        font-size: 0.8rem;
    }

    #contact .email-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===== IMPROVED NAVIGATION SYSTEM ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    width: 90%;
    height: 9vh;
    max-width: 1100px;
    margin: 0.5rem auto;
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: #7aacde93;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Slight hover lift */
.navbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 2100;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 35px;
    height: 3px;
    background: rgb(0, 0, 0);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Side Menu */
.calculator-nav {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #3c4a59, #34495e);
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1500;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
}

.calculator-nav.active {
    right: 0;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Category styles */
.nav-category {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.category-btn {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-btn i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.category-btn .arrow {
    transition: transform 0.3s ease;
}

.category-btn.active .arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.submenu.active {
    max-height: 500px;
}

.submenu .nav-btn {
    background: none;
    border: none;
    text-align: left;
    color: #ddd;
    padding: 12px 20px 12px 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.submenu .nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 55px;
}

.nav-btn.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.nav-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Keep "always-open" category expanded */
.nav-category.always-open .submenu {
    max-height: none !important;
    /* no collapse */
    background: rgba(0, 0, 0, 0.2);
}

.nav-category.always-open .category-btn {
    cursor: default;
    justify-content: flex-start;
}

.nav-category.always-open .arrow {
    display: none;
    /* hide arrow since no toggle */
}


/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Header Styling */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 10px;
}

.ppf-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0e0e0e;
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Make main grow to push footer down */
main {
    flex: 1;
}

.custom-heading {
    text-align: center;

    padding: 60px 20px;
    max-width: 100%;
    position: relative;
    border-radius: 5rem;
    overflow: hidden;
    padding: 0.8rem 1.5rem;
    width: 90%;
    max-width: 1100px;
    margin: 1.5rem auto;

    /* Background image */
    background-image: url("https://img.freepik.com/free-photo/top-view-finance-business-elements_23-2148793757.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ✅ Overlay */
.custom-heading::before {
    content: "";
    position: absolute;

    border-radius: 10px;
    z-index: 1;
}

/* ✅ Text stays above overlay */
.custom-heading h2,
.custom-heading p {
    position: relative;
    z-index: 2;
    color: #000000;
}

/* Main Heading */
.custom-heading h2 {
    font-size: 2.5rem;
    font-family: 'Montserrat';
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-align: center;
    font-weight: 500;

}

.custom-heading h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--highlight-gradient);
    margin: 10px auto 0;
    border-radius: 10px;
}

/* Optional: Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .custom-heading h2 {
        letter-spacing: 1px;
        font-size: clamp(20px, 7vw, 28px);
    }

    .custom-heading p {
        font-size: 14px;
        padding: 0 10px;
    }

    .text-box h1 {
        font-size: clamp(18px, 6vw, 24px);
        letter-spacing: 0.5px;
        padding: 0 10px;
    }

    .navbar {
        padding: 1rem;
    }

    .calculator-nav {
        width: 300px;
        right: -300px;
    }


    .submenu .nav-btn {
        padding: 10px 15px 10px 45px;
    }

    .submenu .nav-btn:hover {
        padding-left: 50px;
    }
}

/* Preloader overlay */
.preloaderBg {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #439af6, #8fb4da);
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

/* Loader wrapper */
.loader {
    width: clamp(100px, 30vw, 200px);
    height: clamp(100px, 30vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo (centered inside loader) */
.preloader {
        background: url("../logo/logo.png") no-repeat center;
    background-size: contain;
    width: 60%;
    height: 60%;
    position: absolute;
    animation: pulse 1s ease-in-out infinite;
}

/* Spinner (circle around logo) */
.preloader2 {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #000;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 1s linear infinite;
    position: absolute;
}

/* Spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulse animation for logo */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Hidden state (fade out) */
.preloaderBg.hide {
    opacity: 0;
    visibility: hidden;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: linear-gradient(135deg, #4b6d91, #3c5774);
    color: #fff;
    text-align: center;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

#ppp {
    color: white;
}



.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Social Icons */
.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    text-decoration: none;
    height: 45px;
    margin: 0 8px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-4px);
    background: #7777778f;
    color: #000;
}

/* Footer Links */
.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

/* Tooltip from data-desc */
.footer-links a::after {
    content: attr(data-desc);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-links a:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -35px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 20px;
    padding-top: 15px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.footer-bottom span {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-links a::after {
        display: none;
        /* hide tooltips on small screens */
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .popular-links a {
        color: #fff;
        font-size: 12px;
        text-decoration: none;
        transition: color 0.3s ease;
    }
}

/* Popular Links */
.popular-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-links a:hover {
    color: #c4c1c1f0;
    text-decoration: underline;
}
