/* =================================================================
   GLOBAL STYLES & VARIABLES
   ================================================================= */
:root {
    --primary-color: #2A5C82;
    --secondary-color: #5c5ead;
    --accent-color: #ff6b35;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-light: #6c757d;
    --light-bg: #f8f9fa;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    --border-radius: 14px;
    --transition: all 0.3s ease;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding-top: 80px;
}

/*footer*/
main {
    margin-bottom: 4rem; /* ADDED: Creates space above the footer */
}

.footer {
    background: #1f2d3d;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
}

    .footer p {
        margin: 0;
    }






/* =================================================================
   HOMEPAGE SPECIFIC STYLES (INDEX.CSHTML)
   ================================================================= */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: white;
    padding: 2rem 0; /* EDITED: Reduced height */
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-color);
    color: white !important;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

    .hero-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(255, 107, 53, 0.4);
    }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 300px; /* ADDED: Ensures all cards have a consistent height */
}

    .tool-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    }

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.footer[b-ahb235n8fe] {
    position: static !important; /* Resets the position from absolute */
    line-height: normal !important; /* Resets the line-height */
    white-space: normal !important; /* Resets the white-space */
}


.tool-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

    .tool-link:hover {
        color: var(--accent-color);
    }

.sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: static;
    top: 100px;
}

    .sidebar h3 {
        font-size: 1.2rem;
        font-weight: 700;
        border-bottom: 2px solid #eee;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

    .sidebar li a {
        display: block;
        padding: 0.6rem 0.5rem;
        color: var(--text-light);
        text-decoration: none;
        border-radius: 6px;
        transition: var(--transition);
        font-weight: 500;
    }

        .sidebar li a:hover {
            background-color: #f1f3f5;
            color: var(--primary-color);
        }

        .sidebar li a i {
            width: 25px;
            color: var(--primary-color);
            margin-right: 8px;
        }


/* =================================================================
   FOOTER STYLES
   ================================================================= */

/* --- Main Footer Area --- */
.footer {
    background: #1f2d3d; /* A dark, professional blue-gray */
    color: rgba(255, 255, 255, 0.7); /* Light gray text for readability */
    padding: 2rem 0 2rem;
    font-size: 0.95rem;
    position: relative;
}

    /* --- Section Titles --- */
    .footer h5 {
        color: #ffffff; /* White titles to stand out */
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
    }

        .footer h5 i {
            color: var(--accent-color); /* Use your theme's accent color for icons */
            font-size: 1rem;
            margin-right: 10px;
        }

/* --- Links & Lists --- */
.footer-links {
    list-style: none;
    padding-left: 0;
}

    .footer-links li {
        margin-bottom: 0.8rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--accent-color); /* Highlight on hover */
            padding-left: 5px;
        }

/* --- Social Media Icons --- */
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: var(--transition);
}

    .social-links a:hover {
        background-color: var(--accent-color);
        color: #fff;
        transform: translateY(-3px); /* Slight lift effect on hover */
    }

/* --- Call to Action Box --- */
.footer-cta-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    height: 100%;
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

    .btn-cta:hover {
        background-color: #e65c2e; /* Slightly darker accent color on hover */
        transform: scale(1.05);
    }

/* --- Bottom Bar --- */
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}













/*-------------------*/
/* =================================================================
   ULTRA-MODERN PROFESSIONAL NAVBAR
   ================================================================= */
/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #2d3748;
    padding-top: 80px;
    overflow-x: hidden;
    width: 100%;
}

/* Modern Navbar Container */
.navbar-ultra-modern {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    /* SCROLL PROGRESS BAR - Main gradient bar */
    .navbar-ultra-modern::before {
        display: none; /* This hides the left-to-right animated line */
    }

    /* NEW SCROLL PROGRESS BAR */
    .navbar-ultra-modern::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 3px;
        width: var(--scroll-progress, 0%); /* Uses CSS variable from JavaScript */
        background: linear-gradient(90deg, #ff6b35 0%, #ffa500 50%, #ff6b35 100%);
        box-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
        transition: width 0.1s ease-out;
        z-index: 10;
        filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.6));
    }

    /* Add a subtle glow effect */
    .navbar-ultra-modern::after {
        filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.6));
    }

    /* Optional: Different color scheme for scrolled state */
    .navbar-ultra-modern.scrolled::after {
        background: linear-gradient(90deg, #ff8f5f 0%, #ffaa7f 50%, #ff8f5f 100%);
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Scrolled State */
.navbar-ultra-modern.scrolled {
    padding: 0.5rem 0;
    background: linear-gradient(135deg, #0a1821 0%, #1a2f3a 50%, #234152 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ===== BRAND SECTION ===== */
.navbar-brand {
    padding: 0;
    margin: 0;
    text-decoration: none;
    transition: transform 0.3s ease;
    gap: 12px;
}

    .navbar-brand:hover {
        transform: translateY(-2px);
    }

/* Animated Logo */
.brand-logo-wrapper {
    position: relative;
    margin-right: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    transition: all 0.4s ease;
    overflow: hidden;
}

    .brand-logo::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
        animation: logoShine 3s infinite;
    }

@keyframes logoShine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.brand-logo i {
    color: #ffffff;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
    filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.6);
}

/* Brand Text */
.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: -2px;
}

/* ===== MODERN NAVIGATION LINKS ===== */
.navbar-nav {
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    margin: 0;
}

.modern-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.65rem 1.2rem !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.link-icon {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
    z-index: 1;
}

.link-text {
    z-index: 1;
    position: relative;
}

/* Hover Effect Background */
.link-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 53, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
    z-index: 0;
}

.modern-link:hover .link-hover-effect {
    left: 100%;
}

.modern-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 143, 95, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

    .modern-link:hover .link-icon {
        transform: scale(1.2) rotate(5deg);
    }

.modern-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 143, 95, 0.15) 100%);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

/* CTA Button Style */
.nav-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5f 100%);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

    .nav-cta:hover {
        background: linear-gradient(135deg, #ff8f5f 0%, #ffaa7f 100%);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
        transform: translateY(-3px);
    }

/* ===== MODERN HAMBURGER MENU ===== */
.modern-toggler {
    border: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .modern-toggler::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 143, 95, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modern-toggler:hover::before {
        opacity: 1;
    }

    .modern-toggler:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.05);
    }

.toggler-line {
    width: 24px;
    height: 2.5px;
    background: linear-gradient(90deg, #ff6b35 0%, #ffffff 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(2) {
    opacity: 0;
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.modern-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* ===== MOBILE MENU ===== */
.navbar-collapse {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.98) 0%, rgba(32, 58, 67, 0.98) 50%, rgba(44, 83, 100, 0.98) 100%);
    margin-top: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Optimized transitions */
    transition: none;
    will-change: transform, opacity;
}

/* ===== RESPONSIVE STYLES ===== */

/* Mobile Default */
/* Mobile Animations - Optimized */
@media (max-width: 991.98px) {
    .navbar-collapse {
        /* Fast collapse animation */
        transition: height 0.25s ease-out;
    }

        .navbar-collapse.collapsing {
            transition: height 0.25s ease-out;
        }

    .navbar-nav {
        width: 100%;
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    }

    /* Fast staggered animation when menu opens */
    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

        .navbar-collapse.show .nav-item:nth-child(1) {
            transition-delay: 0.05s;
        }

        .navbar-collapse.show .nav-item:nth-child(2) {
            transition-delay: 0.08s;
        }

        .navbar-collapse.show .nav-item:nth-child(3) {
            transition-delay: 0.11s;
        }

        .navbar-collapse.show .nav-item:nth-child(4) {
            transition-delay: 0.14s;
        }

        .navbar-collapse.show .nav-item:nth-child(5) {
            transition-delay: 0.17s;
        }

        .navbar-collapse.show .nav-item:nth-child(6) {
            transition-delay: 0.20s;
        }

    .navbar-collapse.collapsing .nav-item,
    .navbar-collapse:not(.show) .nav-item {
        opacity: 0;
        transform: translateX(-20px);
        transition-delay: 0s;
        transition-duration: 0.1s;
    }

    .modern-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.85rem 1.2rem !important;
    }
}

/* Tablet */
@media (min-width: 768px) {
    body {
        padding-top: 85px;
    }

    .brand-name {
        font-size: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    body {
        padding-top: 90px;
    }

    .navbar-collapse {
        background: transparent;
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        border: none;
    }

    .navbar-nav {
        flex-direction: row;
        width: auto;
    }

    .nav-item {
        width: auto;
    }

    .modern-link {
        width: auto;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .navbar-nav {
        gap: 0.75rem;
    }

    .modern-link {
        padding: 0.75rem 1.4rem !important;
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    body {
        padding-top: 75px;
    }

    .navbar-ultra-modern {
        padding: 0.6rem 0;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

        .brand-logo i {
            font-size: 1.3rem;
        }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

    .modern-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem !important;
    }
}

/* Extra Small */
@media (max-width: 359.98px) {
    .brand-name {
        font-size: 1.1rem;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

        .brand-logo i {
            font-size: 1.2rem;
        }

    .modern-toggler {
        width: 44px;
        height: 44px;
    }
}

/* ===== ACCESSIBILITY ===== */
.modern-link:focus-visible,
.modern-toggler:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}


