/* ========================================
   ROOT VARIABLES - ADVANCED THEME SYSTEM
======================================== */

/* Theme 1: Professional Blue */
:root[data-theme="professional-blue"] {
    /*    --primary-color: #2563EB;*/
    --primary-color: #667eea;
    /* Deep Blue like ElectricBill */
    --primary-rgb: 37, 99, 235;
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    /*    --secondary-color: #4F46E5;*/
    --secondary-color: #764ba2;
    --accent-color: #10B981;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-gradient-start: #F8FAFC;
    --bg-gradient-end: #EFF6FF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --glow-color: rgba(37, 99, 235, 0.2);
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Theme 2: Dark Mode Cosmic */
:root[data-theme="dark-mode"] {
    --primary-color: #3B82F6;
    --primary-rgb: 59, 130, 246;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --secondary-color: #A78BFA;
    --accent-color: #10B981;
    --bg-primary: #0A0E1A;
    --bg-secondary: #131823;
    --bg-tertiary: #1E293B;
    --bg-gradient-start: #0A0E1A;
    --bg-gradient-end: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --border-color: #1E293B;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
    --card-shadow-hover: 0 20px 60px rgba(59, 130, 246, 0.25);
    --glow-color: rgba(59, 130, 246, 0.4);
    --input-bg: #1E293B;
    --input-border: #334155;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Theme 3: Earthy Construction Pro */
:root[data-theme="earthy-construction"] {
    --primary-color: #EA580C;
    --primary-rgb: 234, 88, 12;
    --primary-dark: #C2410C;
    --primary-light: #FB923C;
    --secondary-color: #78716C;
    --accent-color: #EAB308;
    --bg-primary: #FFFBEB;
    --bg-secondary: #FEF3C7;
    --bg-tertiary: #FDE68A;
    --bg-gradient-start: #FFFBEB;
    --bg-gradient-end: #FEF3C7;
    --text-primary: #1C1917;
    --text-secondary: #44403C;
    --text-muted: #78716C;
    --border-color: #D6D3D1;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 10px 40px rgba(234, 88, 12, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(234, 88, 12, 0.2);
    --glow-color: rgba(234, 88, 12, 0.3);
    --input-bg: #FFFFFF;
    --input-border: #D6D3D1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Theme 4: Minimal Luxury */
:root[data-theme="minimal-light"] {
    --primary-color: #18181B;
    --primary-rgb: 24, 24, 27;
    --primary-dark: #09090B;
    --primary-light: #3F3F46;
    --secondary-color: #71717A;
    --accent-color: #0EA5E9;
    --bg-primary: #FAFAFA;
    --bg-secondary: #F4F4F5;
    --bg-tertiary: #E4E4E7;
    --bg-gradient-start: #FFFFFF;
    --bg-gradient-end: #F4F4F5;
    --text-primary: #18181B;
    --text-secondary: #3F3F46;
    --text-muted: #71717A;
    --border-color: #E4E4E7;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
    --glow-color: rgba(14, 165, 233, 0.2);
    --input-bg: #FFFFFF;
    --input-border: #E4E4E7;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Theme 5: Premium Gradient Paradise */
:root[data-theme="premium-gradient"] {
    --primary-color: #8B5CF6;
    --primary-rgb: 139, 92, 246;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary-color: #EC4899;
    --accent-color: #14B8A6;
    --bg-primary: #FEFEFE;
    --bg-secondary: #FAF5FF;
    --bg-tertiary: #F3E8FF;
    --bg-gradient-start: #FAF5FF;
    --bg-gradient-end: #FEE2F8;
    --text-primary: #1E1B4B;
    --text-secondary: #4C1D95;
    --text-muted: #7C3AED;
    --border-color: #E9D5FF;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
    --card-shadow-hover: 0 20px 60px rgba(139, 92, 246, 0.25);
    --glow-color: rgba(139, 92, 246, 0.3);
    --input-bg: #FFFFFF;
    --input-border: #E9D5FF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Default Theme (Fallback) */
:root {
    --primary-color: #2563EB;
    --primary-rgb: 37, 99, 235;
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    --secondary-color: #4F46E5;
    --accent-color: #10B981;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-gradient-start: #F8FAFC;
    --bg-gradient-end: #EFF6FF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --glow-color: rgba(37, 99, 235, 0.2);
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.lang-hi body {
    font-family: 'Noto Sans Devanagari', 'Hind', 'Poppins', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
/*    font-family: 'Poppins', sans-serif;*/
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

:root[data-theme="professional-blue"] body {
    /*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
/*    background: linear-gradient(135deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);*/
}
:root[data-theme="professional-blue"] .text-muted1{
    color:white;
}
/* Updated Card Styles */
.card,
.calculator-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    /*    transition: transform 0.3s ease;*/
}

.main-card {
    background: var(--card-bg);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
/*    animation: fadeInUp 0.8s ease-out;
    transition: all 0.4s ease;*/
    margin-bottom: 30px;
}

.card-header {
    background-color: var(--bg-secondary);
    padding: 50px 20px 30px 20px;

}

.card:hover {
    box-shadow: var(--card-shadow-hover);
/*    transform: translateY(-2px);*/
}

/* Form Controls - ElectricBill Style */
.form-control,
.form-select {
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: none;
    /*    transition: transform 0.2s ease;*/
}

.form-control:focus,
.form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Input Groups - Flexible for Appended and Prepended labels */
.input-group {
    border-radius: var(--radius-md);
}

.input-group-text {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--input-border);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Appended Text (e.g. Input + sq ft) */
.form-control + .input-group-text,
.form-select + .input-group-text {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

/* Prepended Text (e.g. ₹ + Input) */
.input-group-text:first-child {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.input-group-text + .form-control,
.input-group-text + .form-select {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

.input-group:focus-within .form-control {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 100px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(var(--primary-rgb), 0.3);
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);


}

/* List Groups - Theme Adaptive */
.list-group-item {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Quality Selectors */
.quality-selector-label {
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.quality-selector-label:hover {
    border-color: var(--primary-light);
    background-color: var(--bg-tertiary);
}

.btn-check:checked+.quality-selector-label {
    border-color: var(--primary-color) !important;
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

/* Special Card Styles */
.gradient-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* ========================================
   NAVIGATION BAR - ULTRA PREMIUM
======================================== */
.navbar-custom {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    box-shadow: var(--card-shadow);
    padding: 1.2rem 0;
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    /*    animation: slideDown 0.5s ease-out;*/
}

@keyframes slideDown {
    from {
/*        transform: translateY(-100%);*/
        opacity: 0;
    }

    to {
/*        transform: translateY(0);*/
        opacity: 1;
    }
}

.navbar-custom.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--card-shadow-hover);
}

.navbar-brand-custom {
    /*    font-family: 'Space Grotesk', sans-serif;*/
/*    font-family: 'Poppins', sans-serif;*/
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /*    transition: transform 0.3s ease;*/
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-custom i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
/*    animation: rotate3D 6s ease-in-out infinite;*/
}

@keyframes rotate3D {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }
}

.brand-logo {
    height: 35px;
    /* adjust size */
    width: auto;
    border-radius: 8px;
    /* optional */
}

.navbar-brand-custom:hover {
    transform: scale(1.05);
}

.nav-link-custom {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    /*    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

[data-theme="dark-mode"] .nav-link-custom {
    color: var(--text-secondary);
}

[data-theme="dark-mode"] .nav-link-custom:hover,
[data-theme="dark-mode"] .nav-link-custom.active {
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--glow-color);
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    bottom: 0;
    /*    left: 50%;*/
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    /*    transform: translateX(-50%);*/
    border-radius: 10px;
}

.nav-link-custom:hover::before {
    width: 80%;
}

.nav-link-custom.active::before {
    width: 80%;
}

/* ========================================
   CONTENT & SEO SECTION STYLING
======================================== */
.seo-article {
    color: var(--text-primary);
}

.seo-article h2 {
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color);
    font-size: 2rem;
}

.seo-article h3 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.seo-article h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.seo-article p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.seo-article ul,
.seo-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.seo-article ul li,
.seo-article ol li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Dark Mode Table Overrides */
[data-theme="dark-mode"] .table {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark-mode"] .table-hover>tbody>tr:hover>* {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark-mode"] .table-primary {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
    border-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark-mode"] .bg-light {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark-mode"] .bg-white {
    background-color: var(--bg-tertiary) !important;
}
[data-theme="dark-mode"] .breadcrumb .active{
    color: var(--text-primary) !important;
}
[data-theme="dark-mode"] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-primary) !important;
}

[data-theme="dark-mode"] .text-muted {
    color: var(--text-muted) !important;
}

/* Accordion Dark Mode */
[data-theme="dark-mode"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

[data-theme="dark-mode"] .accordion-button:not(.collapsed) {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

[data-theme="dark-mode"] .accordion-body {
    background-color: var(--card-bg);
    color: var(--text-secondary);
}

/* Card Overrides for Dark Mode */
[data-theme="dark-mode"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Custom List Item Correctness */
.list-group-item {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.nav-link-custom:hover {
    color: var(--primary-color);
/*    transform: translateY(-2px);*/
}

.nav-link-custom:hover::before {
    width: 80%;
}

/* Language Toggle - Premium Design */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-secondary);
    border-radius: 100px;
    padding: 0.3rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /*    transition: transform 0.3s ease;*/
}

.language-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.lang-option {
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    cursor: pointer;
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    /*    transition: opacity 0.4s ease;*/
    z-index: -1;
}

.lang-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px var(--glow-color);
    transform: scale(1.05);
}

.lang-option:hover:not(.active) {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Theme Selector - Stunning Design */
.theme-selector {
    position: relative;
}

.theme-btn {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: 100px;
    padding: 0.6rem 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    /*    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.theme-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 25px var(--glow-color);
/*    transform: translateY(-2px);*/
}

/*.theme-btn i {
    animation: spin 4s linear infinite;
}*/

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.theme-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    border: 2px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow-hover);
    padding: 1rem;
    min-width: 280px;
    display: none;
    z-index: 1000;
}

.theme-dropdown.show {
    display: block;
/*    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
}

@keyframes fadeInScale {
    from {
        opacity: 0;
/*        transform: scale(0.9) translateY(-10px);*/
    }

    to {
        opacity: 1;
/*        transform: scale(1) translateY(0);*/
    }
}

.theme-option {
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    /*    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /*    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);*/
    transition: left 0.5s ease;
}

.theme-option:hover::before {
    left: 100%;
}

.theme-option:hover {
    background: var(--bg-secondary);
/*    transform: translateX(5px);*/
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-color-preview {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /*    transition: transform 0.3s ease;*/
}

.theme-option:hover .theme-color-preview {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HERO SECTION - BREATHTAKING
======================================== */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
/*    animation: float 14s ease-in-out infinite;*/
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
/*    animation: float 14s ease-in-out infinite reverse;*/
}

/*@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}*/

.hero-content {
    position: relative;
    z-index: 1;
/*    animation: fadeInUp 1s ease-out;*/
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--card-bg), var(--bg-tertiary));
/*    backdrop-filter: blur(10px);*/
    border: 2px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
/*    animation: bounceIn 1s ease-out 0.3s both;*/
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.hero-badge i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
/*    animation: sparkle 2.5s ease-in-out infinite;*/
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
/*    animation: fadeInUp 1s ease-out 0.5s both;*/
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
/*    animation: expandWidth 1s ease-out 1.5s both;*/
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 100px;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.7;
/*    animation: fadeInUp 1s ease-out 0.7s both;*/
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    border: none;
    box-shadow: 0 10px 30px var(--glow-color);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--glow-color);
    color: white;
}

.btn-primary-custom i {
    transition: transform 0.3s ease;
}

.btn-primary-custom:hover i {
    transform: translateX(5px);
}

.btn-secondary-custom {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px);*/
    color: var(--text-primary);
    padding: 1.2rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
/*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--glow-color);
}

/* Hero Illustration Card - 3D Effect */
.hero-illustration {
    position: relative;
    z-index: 1;
/*    animation: fadeInRight 1s ease-out 0.5s both;*/
}

/*@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}*/

.hero-card {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--card-shadow-hover);
    border: 2px solid var(--border-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-card:hover {
/*    transform: translateY(-6px) rotateY(3deg);
    will-change: transform;*/
    box-shadow: 0 30px 80px var(--glow-color);
}

.hero-card-icon {
    font-size: 7rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
/*    animation: bounce 3s ease-in-out infinite;*/
}

/*@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}*/

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    /*    transition: transform 0.3s ease;*/
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   CALCULATOR SECTION - PREMIUM
======================================== */
.calculator-section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    background: linear-gradient(135deg, var(--card-bg), var(--bg-tertiary));
/*    backdrop-filter: blur(10px);*/
    border: 2px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.calculator-card {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    border-radius: 30px;
    padding: 4rem;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
    /*    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);*/
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
/*    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);*/
    opacity: 0;
    /*    transition: opacity 0.5s ease;*/
    pointer-events: none;
}

.calculator-card:hover::before {
    opacity: 0.3;
}

.calculator-card:hover {
    box-shadow: var(--card-shadow-hover);
    /*    transform: translateY(-10px);*/
    border-color: var(--primary-color);
}

.calculator-placeholder {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 20px;
    border: 3px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
}

.calculator-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
/*    animation: shimmer 2s infinite;*/
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.calculator-placeholder i {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
/*    animation: pulse 3s ease-in-out infinite;*/
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   TOOLS SECTION - STUNNING CARDS
======================================== */
.tools-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
}

.tool-card {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    border-radius: 25px;
    padding: 2.5rem;
    height: 100%;
    border: 2px solid var(--border-color);
    /*    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);*/
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
}

/* ========================================
   HARDENED DARK MODE OVERRIDES
   (Fixes for Bootstrap defaults)
======================================== */

[data-theme="dark-mode"] .form-control:focus,
[data-theme="dark-mode"] .form-select:focus {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

[data-theme="dark-mode"] .form-control,
[data-theme="dark-mode"] .form-select {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark-mode"] .form-control::placeholder {
    color: var(--text-muted);
}

/* Accordion Specifics */
[data-theme="dark-mode"] .accordion-item {
    background-color: transparent;
    border-color: var(--border-color);
}

[data-theme="dark-mode"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--text-primary);
    box-shadow: none;
}

[data-theme="dark-mode"] .accordion-button:not(.collapsed) {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

[data-theme="dark-mode"] .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark-mode"] .accordion-button:not(.collapsed)::after {
    filter: invert(1) grayscale(100%) brightness(200%) sepia(100%) hue-rotate(190deg) saturate(500%);
}

/* Table Specifics */
[data-theme="dark-mode"] .table {
    --bs-table-color: var(--text-secondary);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-active-color: var(--text-primary);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
    --bs-table-hover-color: var(--text-primary);
    color: var(--text-secondary) !important;
}

[data-theme="dark-mode"] .table> :not(caption)>*>* {
    background-color: transparent;
    /* Fixes Bootstrap's enforced bg on cells */
    color: inherit;
    border-bottom-color: var(--border-color);
}

[data-theme="dark-mode"] .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

[data-theme="dark-mode"] .table thead th {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

/* Ensure headings in dark mode form controls (if any) are correct */
[data-theme="dark-mode"] .dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark-mode"] .dropdown-item {
    color: var(--text-secondary);
}

[data-theme="dark-mode"] .dropdown-item:hover,
[data-theme="dark-mode"] .dropdown-item:focus {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.tool-card::after {

    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover::after {
    opacity: 0.2;
}

.tool-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-8px) scale(1.01);
/*    will-change: transform;*/
    border-color: var(--primary-color);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 30px var(--glow-color);
    /*    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);*/
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px var(--glow-color);
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /*    transition: color 0.3s ease;*/
}

.tool-card:hover .tool-title {
    color: var(--primary-color);
}

.tool-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========================================
   CITY LINKS - MODERN GRID
======================================== */
.city-section {
    padding: 6rem 0;
    position: relative;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.city-link {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    border: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.city-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    /*    transition: opacity 0.4s ease;*/
    pointer-events: none;
}

.city-link:hover::before {
    opacity: 1;
}

.city-link i,
.city-link span {
    position: relative;
    z-index: 1;
    /*    transition: transform 0.3s ease;*/
}

.city-link:hover {
    color: white;
    transform: translateY(-5px) scale(1.02);
/*    will-change: transform;*/
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.city-link i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

/* ========================================
   GUIDES SECTION - MAGAZINE STYLE
======================================== */
.guides-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.guide-card {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    /*    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);*/
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.guide-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-6px) scale(1.01);
/*    will-change: transform;*/
    border-color: var(--primary-color);
}

.guide-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.guide-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
/*    animation: shimmer 3s infinite;*/
    pointer-events: none;
}

.guide-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.guide-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
    /*    transition: color 0.3s ease;*/
}

.guide-card:hover .guide-title {
    color: var(--primary-color);
}

.guide-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /*    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
}

.read-more:hover {
    gap: 0.8rem;
}

/* ========================================
   FAQ SECTION - ELEGANT ACCORDION
======================================== */
.faq-section {
    padding: 6rem 0;
    position: relative;
}

.accordion-custom {
    max-width: 1200px;
    margin: 0 0;
}

.accordion-item-custom {
    background: var(--card-bg);
/*    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);*/
    border: 2px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    box-shadow: var(--card-shadow);
}

.accordion-item-custom:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.accordion-header-custom {
    background: var(--bg-secondary);
    padding: 1.8rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
}

.accordion-header-custom:hover {
    background: var(--bg-tertiary);
}

.accordion-header-custom.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.accordion-icon {
    /*    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    font-size: 1.5rem;
}

.accordion-header-custom.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body-custom {
    max-height: 0;
    overflow: hidden;
    /*    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
}

.accordion-body-custom.show {
    max-height: 500px;
    will-change: max-height;
}

.accordion-content {
    padding: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .blog-main-title {
        font-size: 2rem;
    }
}

/* ========================================
   FOOTER - PREMIUM DESIGN
======================================== */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 1rem 0 0 0;
    border-top: 2px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-brand {
/*    font-family: 'Poppins', sans-serif;*/
    /*        'Space Grotesk', sans-serif;*/
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 350px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
/*    transform: translateX(-10px);
    transition: all 0.3s ease;*/
}

.footer-links a:hover {
    color: var(--primary-color);
/*    transform: translateX(5px);*/
}

.footer-links a:hover::before {
    opacity: 1;
/*    transform: translateX(0);*/
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 0rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    border: 2px solid var(--border-color);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
/*    transform: translateY(-5px) rotate(10deg);*/
    box-shadow: 0 10px 30px var(--glow-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 0;
    border-top: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.footer-bottom i {
    color: var(--primary-color);
/*    animation: heartbeat 2s ease-in-out infinite;*/
}

.footer-link {
    text-align: center;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(0.9);
    }

    20%,
    40% {
        transform: scale(1.1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }

    .calculator-card {
        padding: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .city-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tool-icon {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand-custom {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .language-toggle {
        width: 100%;
        margin-top: 1rem;
    }

    .calculator-placeholder {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-brand {
        font-size: 1.5rem;
    }
}

/* ========================================
   SCROLL ANIMATIONS
======================================== */
/*@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}*/

/* ========================================
   CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

/* ========================================
   PREMIUM CALCULATOR HEADER
======================================== */
.premium-calc-header {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    /*    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color));*/
    background: linear-gradient(135deg, var(--card-bg) 30%, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    text-align: center;
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .premium-calc-header {
        font-size: 2.5rem;
    }
}

/* ========================================
   PREMIUM BLOG CONTENT STYLING
======================================== */
.blog-content-wrapper {
/*    font-family: 'Poppins', system-ui, -apple-system, sans-serif;*/
    /*        'Inter', system-ui, -apple-system, sans-serif;*/
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
}

.blog-content-wrapper h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0rem;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
}

.blog-content-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.blog-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-content-wrapper p {
    margin-bottom: 1.5rem;
}

.blog-content-wrapper ul,
.blog-content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content-wrapper li {
    margin-bottom: 0.5rem;
}

.blog-content-wrapper strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-section-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.tool-card,
.guide-card,
.city-link,
.hero-card,
.btn-primary-custom,
.btn-secondary-custom,
.calculator-card {
    backface-visibility: hidden;
/*    will-change: transform;
    transform: translateZ(0);*/
}

/* ========================================
   PRINT STYLES
======================================== */
/* ========================================
   PRINT STYLES
======================================== */
@media print {

    /* RESET PAGE */
    @page {
        size: auto;
        margin: 10mm;
    }

    /* GLOBAL RESET */
    html,
    body {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: white !important;
        overflow: visible !important;
    }

    /* HIDE NON-ESSENTIALS (Display None to remove space) */
    nav,
    footer,
    header,
    .navbar-custom,
    .hero-section,
    #inputCard,
    #resultPlaceholder,
    .btn,
    .theme-selector,
    .language-toggle,
    .scroll-reveal,
    .content-section,
    .state-links-section,
    .faq-section,
    .accordion-custom,
    .section-header,
    #btnText,
    #btnLoader,
    #calculateBtn {
        display: none !important;
        visibility: hidden !important;
    }

    /* LAYOUT RESET FOR RESULT */
    .calculator-section {
        padding: 0 !important;
        margin: 0 !important;
    }

    .container,
    .row,
    .col-12,
    .col-sm-12,
    .col-md-12,
    .col-lg-12,
    .col-xl-12 {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
        display: block !important;
    }

    /* SHOW RESULT SECTION */
    #resultSection {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* RESULT CONTENT STYLING */
    #resultSection * {
        visibility: visible !important;
        color: #000 !important;
        /* Force black text */
        text-shadow: none !important;
    }

    .card,
    .calculator-card,
    .card-body {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-bottom: 20px !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        page-break-inside: avoid;
    }

    #totalCostDisplay {
        font-size: 2.5rem !important;
        font-weight: 800 !important;
        border: 2px solid #000;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        margin: 20px 0;
    }

    /* GRID FOR PRINT */
    .row.g-4 {
        display: block !important;
        width: 100% !important;
    }

    /* Force 2-column layout for smaller cards if space allows, otherwise stack */
    .col-md-6,
    .col-lg-6 {
        width: 100% !important;
        flex: none !important;
        padding: 10px 0 !important;
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Chart & List Handling */
    .chart-container,
    canvas {
        max-width: 100% !important;
        height: 300px !important;
        /* Force a height for chart in print */
        overflow: visible !important;
    }

    ul,
    li {
        page-break-inside: auto !important;
        overflow: visible !important;
    }

    .list-group-item {
        border-bottom: 1px solid #eee !important;
        padding: 8px 0 !important;
        display: flex !important;
        justify-content: space-between !important;
    }
}

.lead {
    font-weight: 400 !important;
}

/*.card-body{
    padding:0px;
}*/