/* --- CSS Variables & Reset --- */
:root {
    --color-navy: #1a2a44; /* Deep Navy for Header/Footer */
    --color-gold: #d4af37; /* Soft Gold */
    --color-gold-light: #f3e5ab;
    --color-coral: #ff7f50; /* Coral for Buttons/Accents */
    --color-coral-hover: #ff6347;
    --color-light-gray: #f4f6f8;
    --color-white: #ffffff;
    --color-text-dark: #333333;
    --color-text-light: #eeeeee;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-light-gray);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle background animation */
    background: linear-gradient(-45deg, #f4f6f8, #ffffff, #fdfbf7, #f4f6f8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Loader --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-gold);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loader-text {
    color: var(--color-white);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Advertisement Bar --- */
.ad-disclosure {
    background-color: #f0f0f0;
    text-align: center;
    font-size: 0.75rem;
    padding: 5px 10px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

/* --- Header --- */
.main-header {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-gold);
   
    letter-spacing: 1px;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--color-gold);
}

.btn-smart-budgeting {
    background-color: var(--color-coral);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin-left: 20px;
    border: 2px solid var(--color-coral);
    transition: all 0.3s ease;
}

.btn-smart-budgeting:hover {
    background-color: transparent;
    color: var(--color-coral);
    transform: translateY(-2px);
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: 0.3s;
}

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 75%; /* Requested 75% */
    height: 100vh;
    background-color: var(--color-white);
    z-index: 2000;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--color-navy);
    color: var(--color-white);
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gold);
}

.close-icon {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.2rem;
    color: var(--color-navy);
    font-weight: 600;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-navy);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #c5a028;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated Dashboard Graphic (CSS Only) */
.animated-dashboard-graphic {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #fdfbf7, #fff);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.dashboard-icon {
    font-size: 8rem;
    color: var(--color-gold-light);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    animation: floatCard 5s ease-in-out infinite alternate;
}

.card-1 {
    top: 40px;
    right: -20px;
}

.card-1 span { font-size: 0.8rem; color: #888; }
.card-1 strong { color: #2ecc71; font-size: 1.2rem; }

.card-2 {
    bottom: 40px;
    left: -20px;
    animation-delay: 1s;
}

.card-2 span { font-size: 0.8rem; color: #888; }
.card-2 strong { color: var(--color-coral); font-size: 1.2rem; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatCard {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* --- Sections General --- */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--color-navy);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-coral);
    margin: 15px auto 0;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- Features (Why Us) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    border-top: 4px solid var(--color-gold);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.feature-heading {
    color: var(--color-navy);
    margin-bottom: 15px;
}

/* --- Testimonials --- */
.testimonials-section {
    background-color: #fffaf0; /* Light variant of soft gold/white */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--color-coral);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.user-name {
    color: var(--color-navy);
    font-weight: 600;
}

/* --- FAQ --- */
.accordion {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: var(--color-white);
    padding: 20px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-navy);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fcfcfc;
    padding: 0 20px;
}

.accordion-content p {
    padding: 20px 0;
    color: #555;
}

.accordion-header.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-disclaimer {
    background-color: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 40px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 3px solid var(--color-coral);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    color: var(--color-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-text {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-link-contact {
    color: var(--color-white);
    text-decoration: underline;
    margin-bottom: 10px;
    display: block;
}

.footer-links .footer-li {
    margin-bottom: 10px;
}

.footer-link, .footer-btn-link {
    color: #ccc;
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: 0.3s;
}

.footer-link:hover, .footer-btn-link:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: var(--color-white);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 10px;
    z-index: 5000;
    border-left: 5px solid var(--color-gold);
    display: none; /* Controlled by JS */
}

.cookie-content h3 {
    margin-bottom: 10px;
    color: var(--color-navy);
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #666;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background-color: var(--color-gold);
    color: var(--color-navy);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cookie-reject {
    background-color: #eee;
    color: #555;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* --- Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 6000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--color-white);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #000;
}

/* --- Media Queries --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-image-container {
        margin-top: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .btn-smart-budgeting {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px; /* Optional: rounds the corners of your image */
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); /* Optional: adds a shadow */
}