/* src/static/css/main.css - UPDATED WITH NAVBAR OVERFLOW FIX */

/* Updated CSS Variables - Much Better Color Scheme */
:root {
    /* Primary Colors - Softer and More Professional */
    --primary-navy: #2563eb;        /* Changed from #0f172a - Much lighter blue */
    --secondary-blue: #3b82f6;      /* Changed from #1e40af - Brighter blue */
    --accent-gold: #f59e0b;         /* Kept same - Good color */
    --accent-green: #10b981;        /* Changed from #059669 - Brighter green */
    
    /* Background Colors - Much Lighter */
    --light-blue: #eff6ff;          /* Changed from #dbeafe - Very light blue */
    --warm-white: #ffffff;          /* Kept same - Pure white */
    --soft-gray: #f8fafc;           /* Changed from #f1f5f9 - Warmer gray */
    
    /* Text Colors - Better Contrast */
    --text-dark: #374151;           /* Changed from #1e293b - Much lighter dark */
    --text-light: #6b7280;          /* Changed from #64748b - Better contrast */
    --border-color: #e5e7eb;        /* Added for better borders */
    
    /* Gradients - Updated with new colors */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Shadows - Softer */
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-large: 20px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--warm-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography - Better Contrast */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ENHANCED NAVBAR SECTION - FIXED FOR OVERFLOW */

/* Navigation - Premium Professional Design */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-brand { 
    flex-shrink: 0; 
    margin-right: 1rem; 
    max-width: 200px; 
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0.5rem; /* FIXED: Add gap to prevent crowding */
}

/* Enhanced Logo Design */
.nav-brand .logo {
    max-width: 100%; height: 40px; width: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-brand .logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

/* Add subtle shine effect */
.logo-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-icon:hover::before {
    opacity: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Enhanced Navigation Links - FIXED FOR OVERFLOW */
.nav-links {
    margin-left: auto;
    display: flex;
    list-style: none;
    gap: 0.2rem; /* FIXED: Reduced gap to prevent overflow */
    align-items: center;
    flex: 1; /* FIXED: Allow to grow but maintain space */
    justify-content: center;
    overflow: hidden; /* FIXED: Prevent overflow */
}

.nav-links a {
    display: block;
    padding: 0.6rem 0.7rem; /* FIXED: Reduced padding from 0.75rem 1.25rem */
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem; /* FIXED: Reduced from 0.9rem */
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap; /* FIXED: Prevent text wrapping */
}

.nav-links a:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
}

/* Enhanced Navigation Actions - FIXED FOR OVERFLOW */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0; /* FIXED: Prevent shrinking */
    min-width: fit-content;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap; /* FIXED: Prevent text wrapping */
}

.user-greeting {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: fit-content;
}

/* Enhanced Buttons - FIXED FOR OVERFLOW */
.nav-actions .btn {
    padding: 0.6rem 1.2rem; /* FIXED: Slightly reduced from 0.65rem 1.4rem */
    font-size: 0.8rem; /* FIXED: Reduced from 0.85rem */
    font-weight: 600;
    border-radius: 22px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-actions .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
    border: none;
}

.nav-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.nav-actions .btn-secondary {
    background: #ffffff;
    color: #1e3a8a;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-actions .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(245, 158, 11, 0.1);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #374151;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile menu animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced Mobile Navigation - FIXED RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) { /* FIXED: Changed from 768px to 1024px for better mobile activation */
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f1f5f9;
    }
    
    .navbar .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
        font-size: 1rem;
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .user-greeting {
        display: none; /* FIXED: Hide greeting on mobile to save space */
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-brand { max-width: 150px; margin-right: 1rem; }
    .nav-brand .logo img { height: 35px; }
    
    .nav-actions .btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .logo-main {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0 1rem;
        gap: 0.25rem;
    }
    
    .nav-actions .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }
}

/* Add smooth scroll behavior when navbar links are clicked */
html {
    scroll-behavior: smooth;
}

/* Ensure proper spacing for fixed navbar */
body {
    padding-top: 80px;
}

/* Page sections to account for fixed navbar */
.hero {
    margin-top: -80px;
    padding-top: 140px;
}

/* Add subtle navbar entrance animation */
@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: navbarSlideDown 0.6s ease-out;
}

/* Buttons - Better Contrast */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--warm-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--warm-white);
    color: var(--primary-navy);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-blue);
    border-color: var(--primary-navy);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section - Lighter Background */
.hero {
    background: var(--gradient-primary);
    color: var(--warm-white);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.brand-highlight {
    display: inline-block;
    background: var(--gradient-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--warm-white);
}

.hero-tagline {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sections - Better Background */
section {
    padding: 100px 0;
}

.services-preview {
    background: var(--soft-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--warm-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--primary-navy);
}

/* Why Choose Section */
.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-choose-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.why-choose-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.benefits-list {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.visual-card {
    background: var(--warm-white);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    text-align: center;
    border: 1px solid var(--border-color);
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-green) 0deg 352.8deg, var(--soft-gray) 352.8deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    position: relative;
}

.progress-circle::before {
    content: '';
    width: 80px;
    height: 80px;
    background: var(--warm-white);
    border-radius: 50%;
    position: absolute;
}

.progress-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    position: relative;
    z-index: 1;
}

/* Calculator Preview */
.calculator-preview {
    background: var(--soft-gray);
}

.calculator-container {
    background: var(--warm-white);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.calculator-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: end;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
}

.calc-input-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.calc-input-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.calc-result {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.calc-result h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.result-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--accent-gold);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--warm-white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--warm-white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-medium);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid var(--accent-green);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background: var(--light-blue);
    color: var(--primary-navy);
    border: 1px solid var(--primary-navy);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    margin-top: 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}


.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #fbbf24;
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    filter: brightness(1.1);
}


.footer-logo .logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.footer-logo .logo-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.footer-logo .logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9); /* Increased opacity from 0.8 to 0.9 */
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--warm-white);
}


.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-container,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calc-row {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .calculator-container,
    .visual-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .flash-messages {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .flash-messages {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 18pt;
    }
    
    .card,
    .service-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
        break-inside: avoid;
    }
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--border-color);
    
    /* For placeholder initials */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--warm-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-title {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-1px);
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--border-color);
    
    /* For placeholder initials */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--warm-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-title {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-1px);
}

/* Google OAuth Button Styles */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.google-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
    text-decoration: none;
    color: #333;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e5e9;
}

.auth-divider span {
    padding: 0 1rem;
}

/* Complete Footer Contact Fix - Replace in src/static/css/main.css */

/* Footer Contact Alignment */
/* Contact Info Styling */
.footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer .contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer .contact-info .contact-icon {
    min-width: 28px;
    width: 28px;
    flex-shrink: 0;
    display: inline-flex;
    justify-content: center;
    font-size: 1.1rem;
    color: #fbbf24;
}

.footer .contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    display: inline-block;
    max-width: 100%;
    transition: color 0.3s ease;
}

.footer .contact-info a:hover {
    color: #fbbf24;
    text-decoration: none;
}

.footer .contact-info span {
    color: #cbd5e1;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.15);
    color: #94a3b8;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Specifically make contact section wider */
.footer-section:last-child {
    min-width: 280px;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section:last-child {
        min-width: auto;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 25px;
    }
}