﻿:root {
    --primary-color: #2E7D32;
    /* Deep Green */
    --secondary-color: #81C784;
    /* Light Green */
    --accent-color: #A5D6A7;
    /* Pale Green */
    --background-color: #E8F5E9;
    /* Very Light Green/Pastel */
    --text-color: #1B5E20;
    /* Dark Green Text */
    --text-light: #4CAF50;
    --white: #ffffff;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 4vw, 2rem);
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 60px;
    max-height: 120px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: clamp(32px, 5vw, 40px);
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: clamp(0.75rem, 3vw, 2rem);
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--primary-color);
}
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    padding: 40px 35px; /* Bigger padding */
    border-radius: 16px;
    width: 400px; /* Increased size */
    max-width: 90%;
    position: relative;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    text-align: center; /* Center align all text */
}

/* X button top right */
.close {
    position: absolute;
    right: 16px;
    top: 14px;
    cursor: pointer;
    font-size: 26px;
    font-weight: 700;
    color: #0F5132;
}

/* Bold and darker email */
.email {
    font-weight: 700;
    color: #0F5132;
    display: inline-block;
    margin-top: 5px;
    font-size: 17px;
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(8rem, 120px) clamp(1rem, 4vw, 2rem) 4rem;
    background: linear-gradient(135deg, #DCEDC8 0%, #0A5C36 100%);
    scroll-margin-top: max(8rem, 120px);
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 500px;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Partners Section */
.partners-section {
    padding: 4rem clamp(1rem, 4vw, 2rem);
    background-color: var(--white);
    scroll-margin-top: max(8rem, 120px);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}

.partners-section .section-title {
    margin-bottom: 1rem;
}

.partners-section .section-subtitle {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px;
    height: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%) opacity(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover .partner-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Save Section */
.save-section {
    padding: 6rem clamp(1rem, 4vw, 2rem);
    background-color: #F1F8E9;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: max(8rem, 120px);
}

.save-section>.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.save-section>.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.save-section>.section-footer-text {
    text-align: center;
    max-width: 700px;
    margin: 2rem auto 0;
}

.save-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.save-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.save-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.save-content {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.center-text {
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.goals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.goal-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-top-bar {
    height: 6px;
    width: 100%;
}

.goal-card-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    flex-grow: 1;
}

.goal-animation {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.goal-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    flex-grow: 1;
}

.section-footer-text {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Calculator Section */
.calculator-section {
    padding: 6rem clamp(1rem, 4vw, 2rem);
    background-color: var(--white);
    scroll-margin-top: max(8rem, 120px);
}

.calculator-section .container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.text-section {
    margin-bottom: 3rem;
}

.calculator-wrapper {
    width: 100%;
}

.calculator-card {
    background-color: #F9FBE7;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-color);
}

.input-group input[type="number"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.3s;
}

.input-group input[type="number"]:focus {
    border-color: var(--primary-color);
}

.input-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    color: var(--text-color);
    opacity: 0.8;
}

.result-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
}

.result-item.total .result-value {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.missed-opportunity {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(46, 125, 50, 0.3);
    text-align: center;
}

.missed-opportunity-text {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.star-sup {
    font-size: 0.7em;
    vertical-align: super;
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 2px;
}

.missed-opportunity-disclaimer {
    font-size: 0.7rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 0.75rem;
    font-weight: 400;
    font-style: italic;
}

.animated-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, #2E7D32 0%, #81C784 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

.graph-container {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.graph-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

#sipChart {
    max-height: 400px;
}


/* Desktop Layout */
@media (min-width: 992px) {
    .save-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .save-content {
        grid-column: 2;
        grid-row: 1;
    }

    .save-image-container {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: 120px;
    }

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

    .calculator-wrapper {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
    }

    .calculator-card {
        flex: 1;
        max-width: 50%;
        margin-top: 0;
    }

    .graph-container {
        flex: 1;
        max-width: 50%;
        margin-top: 0;
    }
}

/* Mobile Layout */
@media (max-width: 968px) {
    .main-header {
        padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1.5rem);
        min-height: 56px;
        max-height: 100px;
    }

    .main-nav {
        gap: clamp(0.5rem, 2vw, 1rem);
    }

    .hero-section {
        padding-top: max(6rem, 100px);
        scroll-margin-top: max(6rem, 100px);
    }

    .save-section,
    .calculator-section,
    .partners-section {
        scroll-margin-top: max(6rem, 100px);
    }

    .container,
    .save-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .save-image-container,
    .save-content {
        grid-column: auto;
    }

    .calculator-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .calculator-results {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 2rem;
    }

    .hero-content,
    .save-content {
        align-items: center;
    }

    .hero-title,
    .section-title {
        font-size: 3rem;
    }

    .goals-grid {
        text-align: left;
    }

    .goal-name {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 2vw, 1rem);
        min-height: 52px;
        max-height: 90px;
    }

    .hero-section {
        padding-top: max(5rem, 90px);
        padding-left: clamp(0.5rem, 2vw, 1.5rem);
        padding-right: clamp(0.5rem, 2vw, 1.5rem);
        padding-bottom: 3rem;
        scroll-margin-top: max(5rem, 90px);
    }

    .save-section,
    .calculator-section,
    .partners-section {
        padding-top: 4rem;
        padding-left: clamp(0.5rem, 2vw, 1.5rem);
        padding-right: clamp(0.5rem, 2vw, 1.5rem);
        padding-bottom: 3rem;
        scroll-margin-top: max(5rem, 90px);
    }

    .hero-title,
    .section-title {
        font-size: 2.5rem;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 1.1rem;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .partner-logo {
        max-width: 180px;
        height: 100px;
        padding: 1rem;
    }

    .partner-img {
        max-height: 60px;
    }
}

/* Footer Styles */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
    text-align: center;
}

.footer-registration {
    font-size: 1.1rem;
    line-height: 2.2;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
    line-height: 2;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
    opacity: 0.9;
    line-height: 2;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-separator {
    opacity: 0.7;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: linear-gradient(135deg, #ffffff 0%, #F1F8E9 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(46, 125, 50, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    text-align: center;
    padding: 1rem 0;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-text {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .modal-card {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 2rem;
    }

    .modal-text {
        font-size: 1rem;
    }
}