:root {
    --primary-navy: #002B5B;
    --accent-blue: #0077B6;
    --text-dark: #1E293B;
    --bg-light: #F8FAFC;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

@keyframes subtlePan {
    0% { background-position: 50% 50%; }
    50% { background-position: 52% 48%; }
    100% { background-position: 50% 50%; }
}

.hero-section {
    position: relative;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.96) 35%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.3) 100%),
                url('../site-images/home.jpeg') no-repeat center center;
    background-size: cover;
    animation: subtlePan 20s infinite ease-in-out;
}

@keyframes shadowExpand {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 119, 182, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0); }
}

.shadow-expand-badge {
    animation: shadowExpand 2s infinite ease-in-out;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-navy);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.footer-link {
    position: relative;
    transition: color 0.3s ease;
}
.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #0077B6;
    transition: width 0.3s ease;
}
.footer-link:hover::after {
    width: 100%;
}

.interactive-card i,
header a i,
button i,
form i {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.interactive-card:hover i,
header a:hover i,
button:hover i,
form:hover i {
    transform: translate(4px, -2px);
}

.interactive-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}
.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 43, 91, 0.08);
    border-color: #002B5B !important;
}

.stats-card {
    transition: background-color 0.25s ease, color 0.25s ease;
}
.stats-card h4, .stats-card p, .stats-card i {
    transition: color 0.25s ease;
}
.stats-card:hover {
    background-color: #002B5B !important;
}
.stats-card:hover h4 { color: #ffffff !important; }
.stats-card:hover p { color: #E2E8F0 !important; }
.stats-card:hover i { color: rgba(255, 255, 255, 0.4) !important; }

.track-input:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 43, 91, 0.15);
}

.page-hero {
    background: linear-gradient(135deg, #002B5B 0%, #004080 50%, #0077B6 100%);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.prose-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #64748b;
}

.prose-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #002B5B;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.prose-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}
.prose-content ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0077B6;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 43, 91, 0.1);
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 600px;
}

/* Media gallery */
.gallery-tab {
    transition: all 0.2s ease;
}
.gallery-tab.active {
    background-color: #002B5B;
    color: #ffffff;
}
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 43, 91, 0.12);
}
.gallery-item.hidden {
    display: none;
}
.gallery-item img {
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.03);
}

#lightbox {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightbox.open {
    opacity: 1;
    visibility: visible;
}
#lightbox img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
}

/* Client logos */
.client-logo-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.client-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 43, 91, 0.08);
    border-color: #0077B6;
}
.client-logo-card img {
    transition: transform 0.3s ease;
}
.client-logo-card:hover img {
    transform: scale(1.05);
}

/* Certificate */
.cert-image-wrap {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}
.cert-image-wrap:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 43, 91, 0.15);
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 43, 91, 0.1);
    border-color: #0077B6;
}
.testimonial-quote {
    position: relative;
}
.testimonial-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: -0.25rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(0, 119, 182, 0.15);
    font-family: Georgia, serif;
}

/* Blog */
.blog-filter {
    transition: all 0.2s ease;
}
.blog-filter.active {
    background-color: #002B5B !important;
    color: #ffffff !important;
}
.blog-article ul, .blog-article ol {
    margin: 1rem 0 1rem 1.25rem;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.75;
}
.blog-article ul { list-style: disc; }
.blog-article ol { list-style: decimal; }
.blog-article li { margin-bottom: 0.5rem; }
.blog-article h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #002B5B;
    margin: 1.5rem 0 0.75rem;
}
.blog-article a {
    color: #0077B6;
    font-weight: 500;
}
.blog-article a:hover {
    color: #002B5B;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
