/* ========================================
   VETKAD FINCONS - Modern Design System 3.0
   Theme: Electric Authority (Bold & Trustworthy)
   Colors: Electric Blue, Navy Blue, Deep Violet
   ======================================== */

/* --- CSS Variables --- */
:root {
    /* Brand Colors - High Contrast & Energy */
    --primary: #0019F6;        /* Electric Blue - Primary Action/Brand */
    --primary-dark: #00006B;   /* Navy Blue - Trust/Stability/Headings */
    --primary-light: #4D64FF;  /* Softened Electric Blue */
    
    --accent: #00E5FF;         /* Cyan - Vibrant Accent (compliments Electric Blue) */
    --accent-dark: #00B8D4;
    
    --secondary: #1A0033;      /* Deep Violet - Premium/Depth/Backgrounds */
    
    /* Neutral System */
    --dark: #00006B;           /* Using Navy Blue as the new "Black" */
    --text-main: #1E293B;      /* Slate 800 - Readable Body Text (Navy is too saturated for body) */
    --text-light: #64748B;     /* Slate 500 */
    --light: #F2F4FF;          /* Cool White (Blue tinted) */
    --surface: #FFFFFF;        /* Pure White */
    --border: #E0E7FF;         /* Light Indigo Border */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0019F6 0%, #1A0033 100%);
    --gradient-hover: linear-gradient(135deg, #00006B 0%, #0019F6 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    --gradient-dark: linear-gradient(135deg, #1A0033 0%, #00006B 100%);
    --gradient-hero: linear-gradient(135deg, #0F0524 0%, #000045 100%); /* Even darker for contrast */
    --gradient-text-pop: linear-gradient(135deg, #00E5FF 0%, #4D64FF 100%); /* Bright Cyan to Soft Blue */

    /* Modern Shadows (Electric Glow) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 25, 246, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 107, 0.1), 0 2px 4px -1px rgba(0, 0, 107, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 25, 246, 0.1), 0 4px 6px -2px rgba(0, 25, 246, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(26, 0, 51, 0.1), 0 10px 10px -5px rgba(26, 0, 51, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 25, 246, 0.4);

    /* Glassmorphism */
    --backdrop-blur: blur(16px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.7);

    /* Spacing & Sizing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.25; /* Improved line height */
    font-weight: 700;
    letter-spacing: -0.01em; /* Tighter headings */
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem; /* Slightly larger body text */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Utility Classes --- */
.gradient-text {
    background: var(--gradient-text-pop);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3)); /* Glow effect for readability */
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background: #F1F5F9;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0.5rem 0; /* Compact but allows logo visibility */
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 0.4rem 0; /* Slightly smaller on scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.logo-img {
    height: 65px;      /* Clear visible logo */
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 8px; /* Rectangular with slight rounded corners */
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-nav):hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:not(.btn-nav):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--dark);
    color: var(--surface) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--surface);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--bounce), opacity 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* --- Hero Section --- */
.hero {
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    color: var(--surface);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.hero .badge-pill {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.hero-text h1 {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--surface);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Lift text off background */
}

.subheadline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9); /* Increased opacity for readability */
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: #0019F6; /* Pure Electric Blue for max pop */
    color: var(--surface);
    box-shadow: 0 0 20px rgba(0, 25, 246, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 25, 246, 0.6);
    background: #0010A0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--surface);
    color: var(--surface);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(0, 25, 246, 0.1);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    width: fit-content;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--surface);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85); /* Increased opacity */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* --- Glass Card / Form --- */
.glass-card {
    background: rgba(255, 255, 255, 0.95); /* High opacity white for readability on dark hero */
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #00006B; /* Force Navy Blue */
}

.card-header p {
    color: #64748B; /* Force Slate 500 */
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B; /* Force Slate 800 */
    margin-bottom: 0.5rem;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    transition: var(--transition);
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--surface);
    transition: var(--transition);
}

.input-wrapper input,
.input-wrapper select {
    padding-left: 3rem;
}

input:hover, select:hover {
    border-color: #CBD5E1;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- Features Section --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
}

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

.feature-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.icon-blue { background: #EFF6FF; color: var(--primary); }
.icon-green { background: #ECFDF5; color: var(--accent); }
.icon-purple { background: #F5F3FF; color: var(--secondary); }

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--dark); /* Ensuring dark text on white card */
}

.feature-card p {
    color: var(--text-main); /* Darker than text-light for better readability */
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Calculators & Tools --- */
.calculators-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.calculator-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.highlight-card {
    border: 2px solid var(--primary-light);
    position: relative;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border);
}

.calc-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dark);
}

.range-group {
    margin-bottom: 1.5rem;
}

.range-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.calc-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.calc-result h4 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
}

.text-success { color: var(--accent) !important; }

/* --- Footer --- */
footer {
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    color: var(--surface);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--surface);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85); /* Increased opacity */
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--surface);
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 25, 246, 0.5);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-content {
    background: var(--surface);
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s var(--bounce);
    box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.btn-close-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.btn-close-icon:hover {
    background: var(--light);
    color: var(--dark);
}

.result-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ECFDF5;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px #F0FDF4;
}

/* --- Blob Animations --- */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: floatBlob 10s infinite alternate;
    mix-blend-mode: screen; /* Makes them glow on dark background */
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #0019F6; /* Electric Blue Glow */
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #00E5FF; /* Cyan Glow */
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- Tables (For Business Loans) --- */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th {
    background: var(--light);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: #F8FAFC;
}

/* --- About Page Styles --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    height: 500px;
    background: #F1F5F9;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-wrapper > i {
    font-size: 8rem;
    color: #CBD5E1;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.about-content .section-label {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.mission-box {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    border-left: 4px solid var(--primary);
    margin-top: 2rem;
}

.mission-box > i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.mission-box h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.mission-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-icon.icon-blue { background: #EFF6FF; color: var(--primary); }
.stat-icon.icon-green { background: #ECFDF5; color: var(--accent); }
.stat-icon.icon-purple { background: #F5F3FF; color: var(--secondary); }
.stat-icon.icon-orange { background: #FFF7ED; color: #F97316; }

.stat-card h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- Page Header Section --- */
.page-header {
    padding-top: 8rem;
    padding-bottom: 3rem;
    text-align: center;
}

.page-header .badge-pill {
    margin: 0 auto 1.5rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Responsive --- */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .logo-img {
        height: 55px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text h1 { font-size: 2.75rem; }
    .subheadline { margin: 0 auto 2rem; }
    
    .hero-cta { 
        justify-content: center; 
    }
    
    .hero-stats {
        margin: 0 auto;
        justify-content: center;
        width: 100%;
        max-width: 500px;
    }
    
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .calculators-wrapper {
        grid-template-columns: 1fr;
    }

    /* About page grid fix */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        height: 350px;
        order: -1;
    }

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

    .about-content h2 {
        font-size: 2rem;
    }

    .mission-box {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }

    /* Stats grid on about page */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Contact page form grid */
    .form-grid[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Section padding reduction for tablets */
    .section-padding {
        padding: 4rem 0;
    }

    /* Section header adjustments */
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Navigation fixes */
    .navbar {
        padding: 0.4rem 0;
    }

    .logo-img {
        height: 48px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* Mobile Menu styling */
    .mobile-menu {
        top: 60px;
        padding: 1rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .mobile-menu a {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        display: block;
    }

    .mobile-menu a:hover,
    .mobile-menu a:active {
        background: var(--light);
        color: var(--primary);
    }

    /* Hero section */
    .hero { 
        padding: 6rem 0 3rem;
    }

    .hero-text h1 { 
        font-size: 2rem; 
        line-height: 1.2;
    }

    .subheadline {
        font-size: 1rem;
        max-width: 100%;
    }

    .badge-pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Form fixes */
    .form-grid { 
        grid-template-columns: 1fr; 
        gap: 0;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .glass-card { 
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

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

    .card-header p {
        font-size: 0.9rem;
    }

    input, select, textarea {
        padding: 0.75rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .input-wrapper input,
    .input-wrapper select {
        padding-left: 2.75rem;
    }

    .input-icon {
        left: 1rem;
    }

    /* Hero Stats */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
    }
    
    .stat-divider { 
        width: 60%; 
        height: 1px; 
    }

    .stat-val {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* CTA Buttons */
    .hero-cta { 
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary, .btn-secondary { 
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

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

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Calculators */
    .calculators-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .calc-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .calc-header h3 {
        font-size: 1.1rem;
    }

    .calc-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .calc-result {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .calc-result h4 {
        font-size: 1.6rem;
    }

    .range-group {
        margin-bottom: 1rem;
    }

    .range-group label {
        font-size: 0.85rem;
    }

    /* About page specific */
    .about-grid {
        gap: 1.5rem;
    }

    .about-image-wrapper {
        height: 250px;
    }

    .about-image-wrapper > i {
        font-size: 5rem;
    }

    .experience-badge {
        bottom: 15px;
        right: 15px;
        padding: 1rem;
    }

    .exp-number {
        font-size: 1.75rem;
    }

    .exp-text {
        font-size: 0.8rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .mission-box {
        padding: 1rem;
        gap: 0.75rem;
    }

    .mission-box > i {
        font-size: 1.5rem;
    }

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

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 0.8rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* Contact page specific */
    .contact-info h2 {
        font-size: 1.5rem;
    }

    .social-contact .social-links {
        justify-content: flex-start;
    }

    .social-contact .social-links a {
        width: 40px;
        height: 40px;
    }

    /* Page headers */
    section.section-padding.bg-light h1 {
        font-size: 2rem !important;
    }

    section.section-padding.bg-light p {
        font-size: 1rem !important;
    }

    /* Tables responsive */
    .comparison-table-wrapper {
        border-radius: var(--radius-md);
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    .comparison-table {
        min-width: 600px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    /* Modal fixes */
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .result-icon-wrapper {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    /* Section padding mobile */
    .section-padding {
        padding: 3rem 0;
    }

    /* Section header mobile */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Tools page cards list items */
    .feature-card ul {
        font-size: 0.85rem !important;
    }

    .feature-card ul li {
        padding: 0.25rem 0;
    }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.875rem;
    }

    .logo-img {
        height: 42px;
    }

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

    .hero {
        padding: 5.5rem 0 2.5rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .badge-pill {
        font-size: 0.75rem;
    }

    .glass-card {
        padding: 1rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-stats {
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .stat-item {
        padding: 0.5rem 0;
    }

    /* About page mobile */
    .about-image-wrapper {
        height: 200px;
    }

    .about-image-wrapper > i {
        font-size: 4rem;
    }

    .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 0.75rem;
    }

    .exp-number {
        font-size: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.35rem;
    }

    /* Calculator result extra info */
    .calculator-card > div:last-child {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Feature card adjustments */
    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* Modal */
    .modal-content {
        padding: 1.5rem 1rem;
    }

    .amount-wrapper {
        padding: 0.75rem !important;
    }

    .amount-display {
        font-size: 1.5rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-primary, .btn-secondary, .btn-nav {
        min-height: 48px;
    }

    input, select, textarea {
        min-height: 48px;
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover effects that cause sticky states on mobile */
    .feature-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    /* Active states for touch feedback */
    .btn-primary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .btn-secondary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .feature-card:active {
        transform: scale(0.99);
    }

    .mobile-menu a:active {
        background: var(--light);
    }
}
