:root {
    --primary-color: #0056FE; /* Main brand color - KEEPING EXISTING */
    --primary-accent: #00C2FF; /* cool cyan accent for the gradient */
    --primary-hover: #0045cc;
    --primary-light: #1a6eff;
    --secondary-color: #64748b;
    --dark-blue: #0b1630; /* footer background */
    --light-gray: #f4f6f9;
    --bg-color: #f8fafc; /* Clean, light background */
    --text-color: #111827;
    --text-muted: #64748b;
    --muted: #6c757d;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --success-color: #10b981;
    --danger-color: #ef4444;

    /* navbar sizing */
    --nav-height: 72px;
    --nav-height-shrink: 56px;
}

/* Reset / base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.6;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    transition: opacity .35s ease, visibility .35s ease;
}
#preloader.preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
    box-shadow: 0 6px 18px rgba(3,10,26,0.12);
    animation: preloader-spin 1.2s linear infinite;
}
@keyframes preloader-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(.92); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Utility skip link visibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-to-content:focus, .visually-hidden-focusable:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #fff;
    color: #000;
    padding: .5rem .75rem;
    z-index: 1050;
    border-radius: .25rem;
}

/* --- Navbar (primary) --- */
.navbar-primary {
    background-color: var(--primary-color);
    color: #fff;
    transition: all 0.25s ease;
    min-height: var(--nav-height);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-primary .navbar-brand, .navbar-primary .nav-link, .navbar-primary .btn {
    color: #fff;
}
.navbar-primary .nav-link {
    color: rgba(255,255,255,0.95);
    margin-right: 0.35rem;
    transition: color 0.15s ease;
}
.navbar-primary .nav-link:hover, .navbar-primary .nav-link:focus {
    color: #f8f9fa;
}

/* Logo scaling: smaller by default */
.logo-img {
    height: 34px; /* scaled down logo */
    width: auto;
    transition: height 0.22s ease;
    display: inline-block;
}

/* Navbar shrink state (when scrolling) */
.nav-shrink {
    min-height: var(--nav-height-shrink) !important;
    box-shadow: 0 6px 20px rgba(2,6,23,0.12);
    transform: translateZ(0);
}
.nav-shrink .logo-img { height: 28px; }

/* Buttons in navbar */
.navbar .btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}
.navbar .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

/* Client Portal button */
.navbar .btn-light {
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(3,10,26,0.08);
}

/* --- Hero Section: Modern gradient using brand colors --- */
.hero-section {
    /* Professional blue gradient using brand colors */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-accent) 100%);
    padding: 10rem 0 8rem;
    margin-top: var(--nav-height);
    position: relative;
    color: #fff;
    overflow: hidden;
}

/* Subtle animated overlay for depth */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .display-4 { 
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Modern Card Styles (matching ticketing system) --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Glass-style cards for hero/overlay contexts */
.card.glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(6px) saturate(120%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(3,10,26,0.08);
}

/* Modern gradient cards */
.card-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-accent) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 254, 0.3);
}

.card-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.card-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* CTA buttons - Modern styling */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 10px 20px;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-accent));
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 86, 254, 0.25);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Service cards - Enhanced with modern styling */
.service-card { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border-radius: var(--border-radius); 
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    padding: 0;
    overflow: hidden;
}

.service-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card .card-body {
    padding: 2rem;
}

.feature-icon { 
    width: 4.5rem; 
    height: 4.5rem; 
    border-radius: 12px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
    box-shadow: 0 4px 12px rgba(0, 86, 254, 0.3);
    margin-bottom: 1.5rem;
}

.service-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card .card-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Testimonials - Modern styling */
#testimonials {
    background-color: var(--bg-color);
}

#testimonials .card { 
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

#testimonials .card:hover {
    box-shadow: var(--shadow-md);
}

#testimonials .carousel-control-prev-icon, 
#testimonials .carousel-control-next-icon { 
    filter: invert(1) brightness(2);
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Reveal-on-scroll animation */
.reveal { opacity: 0; transform: translateY(18px) scale(.995); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1); will-change: transform, opacity; }
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 26px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
    color: #fff;
    box-shadow: 0 10px 28px rgba(3,10,26,0.16);
    transform: translateY(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1050;
    cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top i { font-size: 0.95rem; }

/* Footer - Modern styling */
footer { 
    background: linear-gradient(180deg, var(--dark-blue), #071022);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer a { 
    color: var(--primary-accent); 
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover { 
    color: #fff; 
    text-decoration: underline;
}

footer h5 {
    color: var(--primary-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

/* Inputs / Focus for accessibility */
input:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(0,86,254,0.12);
    outline-offset: 2px;
    box-shadow: none;
}

/* Section spacing - Modern minimalist */
section {
    padding: 5rem 0;
}

section.bg-light {
    background-color: var(--bg-color) !important;
}

/* Support Portal CTA Section - Integrated into hero or moved to footer area */
.support-portal-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-accent) 100%);
    color: white;
    padding: 3rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.support-portal-cta h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.support-portal-cta p {
    opacity: 0.95;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-primary { padding: 0.5rem 1rem; }
    .navbar .btn { padding: 0.35rem 0.6rem; font-size: .9rem; }
    .hero-section { padding: 6rem 0 4rem; margin-top: calc(var(--nav-height) + 8px); }
    section { padding: 3rem 0; }
    .support-portal-cta { padding: 3rem 1.5rem; margin: 3rem 0; }
}

/* Misc */
img { max-width: 100%; height: auto; display: block; }
small { color: var(--muted); }