/* Modern Corporate Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Tokens - Ultra Premium Palette */
    --p-h: 220;
    /* Slightly deeper professional blue */
    --p-s: 90%;
    --p-l: 45%;
    --primary: hsl(var(--p-h), var(--p-s), var(--p-l));
    --primary-hover: hsl(var(--p-h), var(--p-s), 35%);
    --primary-soft: hsl(var(--p-h), var(--p-s), 97%);
    --accent: #f59e0b;
    /* Golden accent for "Senior" feel */

    --dark: #0f172a;
    --dark-surface: #1e293b;
    --dark-muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Advanced Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px rgba(15, 23, 42, 0.1);

    /* Layout */
    --header-height: 80px;
    --header-reduced: 65px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

/* Glassmorphism Header 2.0 */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2001;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, height 0.4s ease;
    will-change: transform, height;
}

/* Sub-pixel Gap Seal */
header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: inherit;
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    z-index: -1;
}

header.scrolled {
    transform: translateY(0);
    height: var(--header-reduced);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 991px) {

    /* Breakpoint where top-bar hides */
    header {
        transform: translateY(0) !important;
        height: var(--header-reduced);
    }

    .top-bar {
        display: none !important;
        transform: none !important;
    }

    .scrolled-header-placeholder {
        height: var(--header-reduced);
    }
}

/* Mobile Drawer Premium */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.mobile-has-submenu .mobile-submenu-toggle {
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
}

.mobile-has-submenu.active .mobile-submenu-toggle {
    transform: rotate(180deg);
}

.mobile-submenu {
    transition: all 0.3s ease;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Scrolled states handled above */

.top-bar {
    background: var(--dark);
    color: var(--white);
    height: 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2002;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    will-change: transform;
}

.top-bar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.scrolled+.top-bar {
    transform: translateY(-101%);
    /* Slightly more than 100% to ensure it tucks away */
}

.scrolled-header-placeholder {
    height: calc(var(--header-height) + 40px);
    transition: height 0.4s ease;
}

header.scrolled~.scrolled-header-placeholder {
    height: var(--header-reduced);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    text-decoration: none !important;
    border-bottom: none !important;
}

.logo-text:hover {
    text-decoration: none !important;
}

/* Premium Navigation Upgrade */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.top-social {
    display: flex;
    gap: 12px;
}

.top-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--white);
    font-size: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
}

.top-social a:hover {
    background: var(--primary);
    transform: scale(1.15) rotate(5deg);
    color: var(--white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.btn-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    border: none;
    vertical-align: middle;
}

.btn-cta:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4) !important;
}

.btn-cta:hover::after {
    display: none;
}

/* Hero Section Enhancement */
.hero {
    padding: 50px 0 100px;
    background: radial-gradient(circle at top right, var(--primary-soft), transparent),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Premium Cards */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.2);
}

/* Subpage Spacer */
.subpage-header-spacer {
    padding-top: 140px;
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.05);
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-content-premium {
    padding: 10px;
}

.service-title-premium {
    font-size: 1.4rem;
    margin-top: 10px;
}



/* Section Styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--dark-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Footer Premium Upgrade */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

footer h4,
footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

footer p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-link i {
    font-size: 0.8rem;
    margin-right: 8px;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(8px);
}

.footer-link:hover i {
    opacity: 1;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

/* Custom Buttons */
.btn-premium {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn-primary-premium {
    background: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 118, 255, 0.39);
}

.btn-primary-premium:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.23);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ultra Premium Service Cards */
.service-card-premium {
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Premium Support/Contact Card Global Styles */
.support-card-premium {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.support-card-premium .icon-pulse .pulse-inner {
    animation: premiumPulse 2s infinite;
    position: relative;
    z-index: 2;
}

@keyframes premiumPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.premium-decorative-bg {
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.4" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%);
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.service-card-premium:hover::before {
    transform: translateY(0);
}

.premium-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
}

.service-card-premium:hover .premium-icon-wrapper {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.service-title-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.service-card-premium:hover .service-title-link {
    color: var(--primary);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.premium-learn-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-card-premium:hover .premium-learn-more {
    gap: 12px;
}

/* Custom Pagination */
.custom-pagination .page-link {
    border: none;
    margin: 0 5px;
    border-radius: 12px;
    color: var(--dark);
    font-weight: 600;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.custom-pagination .page-link:hover:not(.active) {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.pointer-events-none {
    pointer-events: none !important;
}

/* Premium Spacing Utilities */
.py-7 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-8 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.mb-7 {
    margin-bottom: 5rem !important;
}

.mb-8 {
    margin-bottom: 6rem !important;
}

/* Premium Interaction Utilities */
.hover-up {
    transition: transform var(--transition);
}

.hover-up:hover {
    transform: translateY(-5px);
}

.hover-opacity {
    transition: opacity 0.3s ease;
}

.hover-opacity:hover {
    opacity: 0.8;
}

.w-fit {
    width: fit-content;
}