/* Base Styles */
:root {
    /* Light Theme (Default) */
    --primary-color: #4a6bdf;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
    --border-color: #e0e0e0;
    --hover-color: #3a56c4;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #4a6bdf 0%, #3a56c4 100%);
}

/* Theme Variables */
[data-theme="light"] {
    --primary-color: #4a6bdf;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
    --border-color: #e0e0e0;
    --hover-color: #3a56c4;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #4a6bdf 0%, #3a56c4 100%);
}

[data-theme="dark"] {
    --primary-color: #6c5ce7;
    --secondary-color: #2d3436;
    --text-color: #ffffff;
    --text-light: #dcdde1;
    --background: #1e272e;
    --card-bg: #2d3436;
    --nav-bg: #2d3436;
    --footer-bg: #1e272e;
    --border-color: #3d3d3d;
    --hover-color: #5f27cd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #5f27cd 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

/* Ensure only text elements use Segoe UI, not icons */
p, h1, h2, h3, h4, h5, h6, span, div, a, button, input, textarea, select {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Let Font Awesome icons use their own font */
i, .fas, .fab, .far, .fa-solid, .fa-regular, .fa-brands {
    /* Keep Font Awesome's original font for icons */
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands";
}

.fas, .fa-solid, .far, .fa-regular {
    font-family: "Font Awesome 6 Free";
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

button, .btn {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn, .login-btn, .invest-btn, .login-submit, .register-submit, .reset-submit {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
}

.cta-btn:hover, .login-btn:hover, .invest-btn:hover, .login-submit:hover, .register-submit:hover, .reset-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 223, 0.4);
    background: var(--hover-color);
}

/* Navigation */
.navbar {
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo img {
    height: 80px;
    vertical-align: middle;
}

.logo-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-text {
    color: var(--hover-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-color) !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg) !important;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(74, 107, 223, 0.2);
}

.calculators-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color) !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg) !important;
}

.dropdown-toggle:hover {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(74, 107, 223, 0.2);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.calculators-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg) !important;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.theme-switcher {
    display: flex;
    gap: 8px;
    margin: 0 20px;
    align-items: center;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 107, 223, 0.3);
}

.theme-btn.active {
    background: var(--gradient);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: var(--secondary-color);
}

.hamburger.active {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .navbar .container {
        padding: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        font-size: 1.1rem;
    }
    
    .nav-link:hover, .nav-link.active {
        background: var(--secondary-color);
        transform: none;
    }
    
    .calculators-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 10px;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
        background: var(--card-bg);
        margin: 5px 0;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .theme-switcher {
        margin: 20px 0;
        justify-content: center;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
    }
    
    .login-btn {
        margin: 20px 0;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1001;
        width: 45px;
        height: 45px;
        background: var(--secondary-color);
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 10px 15px;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .logo-text {
        font-size: 5rem;
    }
    
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .hamburger {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .theme-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Hero Section - MOVED to pages.css for consolidation */

/* Hero .container - MOVED to pages.css for consolidation */

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Funds Section */
.funds {
    padding: 80px 0;
}

.funds h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-color);
}

.fund-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fund-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fund-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.fund-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.return {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 15px;
}

.fund-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section p, .footer-section a {
    color: var(--footer-text);
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--footer-text);
}

/* Quotes Section */
.quotes-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background) 100%);
    position: relative;
    overflow: hidden;
}

.quotes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.quotes-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.quotes-section .section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.quotes-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.quotes-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.quote-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.quote-content {
    text-align: center;
    max-width: 600px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.3;
}

.quote-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 300;
    position: relative;
    padding: 0 20px;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    font-family: Georgia, serif;
}

.quote-text::before {
    top: -20px;
    left: -10px;
}

.quote-text::after {
    bottom: -40px;
    right: -10px;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
    text-align: right;
    display: block;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
}

.carousel-control:hover {
    background: var(--hover-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Quote Indicators */
.quote-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quotes-section {
        padding: 60px 0;
    }
    
    .quotes-section h2 {
        font-size: 2rem;
    }
    
    .quotes-carousel {
        margin: 0 20px;
        border-radius: 15px;
    }
    
    .quotes-container {
        height: 350px;
    }
    
    .quote-slide {
        padding: 30px 20px;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .quote-author {
        font-size: 1rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .quotes-section {
        padding: 40px 0;
    }
    
    .quotes-section h2 {
        font-size: 1.8rem;
    }
    
    .quotes-section .section-intro {
        font-size: 1rem;
        margin: 0 auto 30px;
    }
    
    .quotes-carousel {
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .quotes-container {
        height: 400px;
    }
    
    .quote-slide {
        padding: 25px 15px;
    }
    
    .quote-text {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .quote-text::before,
    .quote-text::after {
        font-size: 2rem;
    }
    
    .quote-text::before {
        top: -15px;
        left: -5px;
    }
    
    .quote-text::after {
        bottom: -30px;
        right: -5px;
    }
    
    .quote-author {
        font-size: 0.9rem;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-control.prev {
        left: 5px;
    }
    
    .carousel-control.next {
        right: 5px;
    }
    
    .quote-indicators {
        bottom: 15px;
        gap: 6px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Calculator Section */
.calculator {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.calculator h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--text-color);
}

.calculator-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Calculator Container - Moved to calculators.css for better mobile responsiveness */
/*
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
*/

/* Calculator Form - Moved to calculators.css for better mobile responsiveness */
/*
.calculator-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
*/

.calculator-form h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--background);
    color: var(--text-color);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 107, 223, 0.2);
}

.calculate-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
    margin-top: 20px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 223, 0.4);
    background: var(--hover-color);
}

.calculator-results {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.calculator-results h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.allocation-summary {
    background: var(--gradient);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.total-amount .amount {
    font-size: 1.8rem;
    font-weight: 700;
}

.fund-categories {
    margin-bottom: 30px;
}

.fund-category {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.fund-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fund-category-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.fund-category-percentage {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.fund-category-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.fund-category-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.projections {
    margin-bottom: 25px;
}

.projections h4 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.3rem;
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.projection-card {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.projection-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.projection-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.disclaimer {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.disclaimer strong {
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: 0.5s;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        margin: 10px 0;
        font-size: 1.2rem;
    }
    
    .theme-switcher {
        margin: 20px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .login-btn {
        margin-top: 20px;
    }
    
    /* Calculator Container - Moved to calculators.css for better mobile responsiveness */
    /*
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    */
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .projection-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .fund-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* Hero hero padding - REMOVED (handled in pages.css) */
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-btn, .login-btn, .invest-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Auto-calculated Input Field Styling */
.auto-calculated {
    background: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.auto-calculated:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.1) !important;
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.auto-calculated.auto-updated {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(74, 107, 223, 0.4);
}

/* About Us Page Styles */
.about-section {
    padding: 80px 0;
    background: var(--background);
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-content .card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
}

.about-content .card h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-content .card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.credential-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--primary-color);
}

.approach-list, .support-card, .cta-card {
    background: var(--card-bg) !important;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(74, 107, 223, 0.15);
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.support-card::before, .cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.support-card .card-icon, .cta-card .card-icon {
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
    transform: scale(1.1);
}

.support-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    margin-bottom: 10px;
}

.support-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.support-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 107, 223, 0.2);
    border-color: var(--primary-color);
    background: var(--secondary-color) !important;
}

.support-list li:hover::before {
    transform: scaleY(1);
}

.support-list li i {
    color: var(--primary-color) !important;
    width: 20px;
    height: 20px;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-card p {
    color: var(--text-color) !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cta-card p strong {
    color: var(--text-color) !important;
    font-weight: 600;
}

.section-intro {
    color: var(--text-color) !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.why-choose-card {
    background: var(--card-bg) !important;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(74, 107, 223, 0.15);
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.why-choose-card .card-icon {
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
    transform: scale(1.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 107, 223, 0.2);
    border-color: var(--primary-color);
    background: var(--secondary-color) !important;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item i {
    color: var(--primary-color) !important;
    width: 20px;
    height: 20px;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feature-content strong {
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.feature-content span {
    color: var(--text-light) !important;
    font-size: 0.8rem;
    line-height: 1.3;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 107, 223, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content .card {
        padding: 25px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .about-content .card {
        padding: 20px 15px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-content .card h2 {
        font-size: 1.3rem;
    }
    
    .credential-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Fund Selection Styles - Compact Design */
select[multiple] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select[multiple]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 107, 223, 0.2);
}

select[multiple] option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    background: var(--background);
    color: var(--text-color);
}

select[multiple] option:checked {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.fund-selection-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--secondary-color);
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-funds-display,
.average-return-display {
    font-size: 0.9rem;
    flex: 1;
    min-width: 140px;
}

.selected-funds-display span,
.average-return-display span {
    color: var(--primary-color);
    font-weight: 600;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    select[multiple] {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .fund-selection-summary {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .selected-funds-display,
    .average-return-display {
        min-width: auto;
        flex: none;
    }
    
    .form-hint {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    select[multiple] {
        font-size: 0.85rem;
        padding: 8px;
    }
    
    .fund-selection-summary {
        padding: 10px 12px;
    }
    
    .selected-funds-display,
    .average-return-display {
        font-size: 0.85rem;
    }
}

/* Fund Selection Info Styles */
.fund-selection-info {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.fund-selection-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.fund-selection-info p:last-child {
    margin-bottom: 0;
}

.fund-selection-info strong {
    color: var(--primary-color);
}

/* Calculator Dashboard Styles */
.calculators-dashboard {
    padding: 80px 0;
    background: var(--secondary-color);
}

.calculators-dashboard h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.calculator-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.calculator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.calculator-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.calculator-icon i {
    font-size: 1.5rem;
    color: white;
}

.calculator-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.calculator-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.calculator-card .features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.calculator-card .features li {
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.calculator-card .features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.calculator-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.calculator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 223, 0.4);
    background: var(--hover-color);
}

/* Calculator Page Header */
.calculator-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.calculator-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.calculator-header .calculator-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* Result Highlight Styles */
.result-highlight {
    background: var(--gradient);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.result-item .label {
    font-size: 1rem;
    opacity: 0.9;
}

.result-item .value {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Chart Section */
.chart-section {
    margin: 30px 0;
}

.chart-section .chart-wrapper {
    max-width: 400px;
    margin: 0 auto;
    height: 400px;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 15px 0;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        margin: 10px 0;
        text-align: center;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-color);
    }
    
    .hamburger.active {
        color: var(--primary-color);
    }
    
    /* Hero Section - REMOVED (handled in pages.css) */
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-btn, .login-btn, .invest-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        margin: 5px;
    }
    
    /* Calculator Sections */
    .calculator-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .calculator-header .calculator-intro {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 0.95rem;
        padding: 12px;
    }
    
    /* Results */
    .result-highlight {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .result-item .label {
        font-size: 0.9rem;
    }
    
    .result-item .value {
        font-size: 1.1rem;
    }
    
    /* Tables */
    .summary-table table {
        font-size: 0.9rem;
    }
    
    .summary-table th,
    .summary-table td {
        padding: 10px 8px;
    }
    
    .table-wrapper {
        font-size: 0.85rem;
    }
    
    .table-wrapper th,
    .table-wrapper td {
        padding: 8px 6px;
    }
    
    /* Charts */
    .chart-wrapper {
        height: 250px;
        margin: 20px 0;
    }
    
    /* Fund Selection */
    select[multiple] {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .fund-selection-summary {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .selected-funds-display,
    .average-return-display {
        min-width: auto;
        flex: none;
    }
    
    /* Dashboard */
    .calculators-dashboard h2 {
        font-size: 2rem;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .calculator-card h3 {
        font-size: 1.3rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Hero Section - REMOVED (handled in pages.css) */
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .cta-btn, .login-btn, .invest-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    /* Calculator Header */
    .calculator-header h1 {
        font-size: 1.6rem;
    }
    
    .calculator-header .calculator-intro {
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Results */
    .result-highlight {
        padding: 15px;
    }
    
    .result-item .value {
        font-size: 1rem;
    }
    
    /* Charts */
    .chart-wrapper {
        height: 200px;
    }
    
    /* Fund Selection */
    select[multiple] {
        font-size: 0.85rem;
        padding: 8px;
    }
    
    .fund-selection-summary {
        padding: 10px 12px;
    }
    
    .selected-funds-display,
    .average-return-display {
        font-size: 0.85rem;
    }
    
    /* Dashboard */
    .calculators-dashboard {
        padding: 40px 0;
    }
    
    .calculators-dashboard h2 {
        font-size: 1.6rem;
    }
    
    .calculator-card {
        padding: 15px;
    }
    
    .calculator-card h3 {
        font-size: 1.2rem;
    }
    
    .calculator-card p {
        font-size: 0.9rem;
    }
    
    .calculator-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .calculators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .calculator-header h1 {
        font-size: 2.2rem;
    }
    
    .chart-wrapper {
        height: 350px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .calculators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Enhanced Touch Targets for Mobile */
@media (max-width: 768px) {
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="text"],
    select,
    button,
    .calculate-btn,
    .toggle-btn,
    .back-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .theme-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Improved Form Validation Messages */
@media (max-width: 768px) {
    .form-group input:invalid,
    .form-group select:invalid {
        border-color: #e74c3c;
        background-color: rgba(231, 76, 60, 0.05);
    }
    
    .form-group input:focus:invalid,
    .form-group select:focus:invalid {
        outline: 2px solid #e74c3c;
        outline-offset: 2px;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --hover-color: #0052a3;
        --text-color: #000000;
        --background: #ffffff;
        --card-bg: #ffffff;
        --border-color: #000000;
    }
}

/* Dark Mode Enhancements - Disabled to prevent auto-dark theme */
/* @media (prefers-color-scheme: dark) {
    html:not([data-theme]):not([data-theme="light"]) {
        --primary-color: #4a90e2;
        --hover-color: #357abd;
        --text-color: #ffffff;
        --background: #1a1a1a;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
} */

/* Theme Circles */
.theme-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-btn:hover .theme-circle {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.theme-btn.active .theme-circle {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
    border: 2px solid var(--primary-color) !important;
}

/* Responsive theme circles */
@media (max-width: 768px) {
    .theme-circle {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .theme-circle {
        width: 14px;
        height: 14px;
    }
}

/* Modern Carousel Styles */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-arrow {
    font-size: 18px;
    font-weight: 300;
    color: #333;
    line-height: 1;
    user-select: none;
    transition: color 0.3s ease;
}

.carousel-control:hover .carousel-arrow {
    color: var(--primary-color);
}

/* Modern Dot Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-dot {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.carousel-dot span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    transform: scale(1.2);
    background: rgba(0, 0, 0, 0.5);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.carousel-dot.active span {
    background: var(--primary-color);
}

/* Responsive Carousel Controls */
@media (max-width: 768px) {
    .carousel-control {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.85);
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .carousel-arrow {
        font-size: 16px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
        padding: 6px 12px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .carousel-control {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.8);
    }
    
    .carousel-control.prev {
        left: 8px;
    }
    
    .carousel-control.next {
        right: 8px;
    }
    
    .carousel-arrow {
        font-size: 14px;
    }
    
    .carousel-indicators {
        bottom: 12px;
        gap: 6px;
        padding: 4px 8px;
    }
    
    .carousel-dot {
        width: 5px;
        height: 5px;
    }
}

/* Touch/Swipe Support */
.blog-carousel-container {
    touch-action: pan-y pinch-zoom;
    cursor: grab;
}

.blog-carousel-container.dragging {
    cursor: grabbing;
    user-select: none;
}

/* Hide old carousel styles */
.blog-carousel-control {
    display: none !important;
}

.blog-indicators {
    display: none !important;
}

/* Print Styles */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fund Search Styles */
.fund-search-container {
    position: relative;
    margin-bottom: 15px;
}

.fund-search-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.fund-search-container input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.fund-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow);
}

.fund-search-results.active {
    display: block;
}

.fund-search-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.fund-search-item:last-child {
    border-bottom: none;
}

.fund-search-item:hover {
    background-color: var(--secondary-color);
}

.fund-search-item .fund-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
}

.fund-search-item .fund-amc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.selected-fund {
    margin-top: 10px;
    padding: 10px;
    background: var(--secondary-color);
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    display: none;
}

.selected-fund.active {
    display: block;
}

.selected-fund .selected-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.selected-fund .selected-amc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.selected-fund .remove-fund {
    float: right;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.selected-fund .remove-fund:hover {
    background: var(--hover-color);
}

/* Calculator Sections Styles */
.calculators-section {
    padding: 80px 0;
    background: var(--background);
}

.calculators-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.calculator-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Additional Calculator Dashboard Styles */

/* Calculator Results Styles */
.main-result {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.summary-box {
    margin-bottom: 30px;
}

.summary-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.summary-table th {
    background: var(--secondary-color);
    padding: 12px;
    text-align: left;
    color: var(--text-color);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.summary-table td {
    padding: 12px;
    text-align: right;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.chart-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    height: 300px;
}

.table-card {
    margin-top: 30px;
}

.toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background: var(--hover-color);
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-wrapper th {
    background: var(--secondary-color);
    padding: 10px;
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.table-wrapper td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.table-wrapper tr:nth-child(even) {
    background: var(--secondary-color);
}

/* Responsive Design for Calculators */
@media (max-width: 768px) {
    .calculators-section h2 {
        font-size: 2rem;
    }
    
    .dropdown-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .table-wrapper {
        font-size: 0.9rem;
    }
    
    .table-wrapper th,
    .table-wrapper td {
        padding: 6px;
    }
}

/* Fund Search Styles */
.fund-search-container {
    position: relative;
    margin-bottom: 15px;
}

.fund-search-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.fund-search-container input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.fund-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow);
}

.fund-search-results.active {
    display: block;
}


.selected-fund {
    margin-top: 10px;
    padding: 10px;
    background: var(--secondary-color);
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    display: none;
}

.selected-fund.active {
    display: block;
}

.selected-fund .selected-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.selected-fund .selected-amc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.selected-fund .remove-fund {
    float: right;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.selected-fund .remove-fund:hover {
    background: var(--hover-color);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Only Hover Effect for Social Links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #0d6efd;
}

/* Optional: Platform specific hover colors */
.social-links a[href*="facebook"]:hover   { color: #1877f2; }
.social-links a[href*="x.com"]:hover      { color: #000000; }
.social-links a[href*="linkedin"]:hover   { color: #0a66c2; }

/* Floating Dashboard Button */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-dark {
    background-color: #3a5bcf !important;
}

/* Mobile responsive adjustments for floating button */
@media (max-width: 640px) {
    .fixed.bottom-6.right-6 {
        bottom: 1rem !important;
        right: 1rem !important;
    }
    
    .px-4.py-3 {
        padding: 0.75rem 1rem !important;
    }
}
