/* Modern Header Styles */
:root {
    --primary-tech: #0ea5e9;
    --secondary-tech: #3994A8;
    --dark-bg: #dbdde0;
    --glass-bg: rgba(247, 247, 247, 0.964);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-glow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.header {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    /* Semi-transparent to show Vegas background */
    overflow: hidden;
    padding-bottom: 94px;
    /* Keep original padding */
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through */
}

.footer-canvas {
    opacity: 0.35;
    mix-blend-mode: screen;
}

/* Glassmorphism Navbar */
.navbar-default {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border) !important;
    border-top: none !important;
    transition: all 0.3s ease;
}

.navbar-default .navbar-nav>li>a {
    color: #061427 !important;
    font-weight: 700 !important;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-default .navbar-nav>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background-color: var(--primary-tech);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--primary-tech);
}

.navbar-default .navbar-nav>li>a:hover {
    color: var(--primary-tech) !important;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.navbar-default .navbar-nav>li>a:hover::after {
    width: 80%;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
    background-color: transparent !important;
    color: var(--primary-tech) !important;
}

.navbar-default .navbar-nav>.active>a::after {
    width: 80%;
}

/* Fix navbar on top for internal pages (except index) */
.web .navbar-default,
.standalone .navbar-default {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.web .header.hero-modern,
.standalone .header.hero-modern {
    padding-top: 110px;
}

/* Hero Text Enhancements */
.header .container.h {
    position: relative;
    z-index: 1;
    /* Above canvas */
}

.header .container h1 {
    font-family: 'Montserrat', sans-serif;
    /* Ensure modern font */
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.header .container h1 span {
    color: var(--primary-tech);
    text-shadow: var(--text-glow);
}

.header .container h2 {
    color: #cbd5e1;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Modern Button */
.h .btn-success {
    background: linear-gradient(135deg, var(--secondary-tech), var(--primary-tech));
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    text-transform: none;
    /* Disable uppercase */
}

.h .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, var(--primary-tech), var(--secondary-tech));
}

.h .btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.h .btn-success:hover::before {
    left: 100%;
}

/* Top Bar Adjustments */
.top {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 101;
    /* Above navbar */
}

.top p,
.top a {
    color: #94a3b8;
}

.top a:hover {
    color: var(--primary-tech);
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(139, 93, 138, 0.6)), url('../img/header.png') center/cover no-repeat;
    background-blend-mode: overlay;
    backdrop-filter: blur(10px);
    /* Glass effect */
    -webkit-backdrop-filter: blur(10px);
    color: #f1f5f9;
    /* Slate 100 */
    padding: 50px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0;
    /* Remove default margin if any */
    position: relative;
    overflow: hidden;
}

.modern-footer .container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
}

.modern-footer .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 18px;
    align-items: flex-start;
}

.modern-footer .footer-grid>[class*="col-"] {
    flex: 1 1 220px;
}

.hero-modern {
    padding: 70px 0 120px;
    color: #0f172a;
}

.hero-modern .h {
    position: relative;
    z-index: 2;
}

.hero-modern h1 {
    font-size: 44px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hero-modern h1 span {
    color: var(--primary-tech);
}

.hero-modern h2 {
    font-size: 20px;
    color: #334155;
    margin-top: 12px;
}

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
    color: #fff !important;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
    transition: transform .2s ease, box-shadow .2s ease
}

.contact-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
    color: #fff !important
}

/* General Button Alignment Fix */
.btn-success {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern-footer .footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-footer .footer-desc {
    color: #94a3b8;
    /* Slate 400 */
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 0;
}

.modern-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer .footer-links li {
    margin-bottom: 8px;
}

.modern-footer .footer-links a {
    color: #cbd5e1;
    /* Slate 300 */
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

.modern-footer .footer-links a:hover {
    color: var(--primary-tech);
    padding-left: 5px;
}

.modern-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 18px;
}

.modern-footer .social-links a:hover {
    background: var(--primary-tech);
    transform: translateY(-3px);
    color: white;
}

.modern-footer .footer-brand-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.modern-footer .footer-brand-block {
    max-width: 320px;
}

.modern-footer .footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.modern-footer .footer-payments img {
    max-height: 183px;
    max-width: 486px;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.2));
}

.modern-footer .whtop-badge {
    margin-top: 14px;
}

.modern-footer .copyright {
    margin-top: 14px;
    color: #64748b;
    /* Slate 500 */
    font-size: 13px;
}

/* Our Systems Section */
.system-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.2) !important;
}