@charset "utf-8";
/* CSS Document */

/* CSS Reset and Accessibility Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #444;
    background-color: #f4f7f6;
    background-image: radial-gradient(circle at top left, rgba(0, 68, 124, 0.05), transparent 40%), radial-gradient(circle at bottom right, rgba(197, 48, 48, 0.04), transparent 40%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a:focus, button:focus {
    outline: 3px solid #005A9C;
    outline-offset: 3px;
    border-radius: 4px;
}
main:focus {
    outline: none;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #005A9C;
    color: white;
    padding: 10px 15px;
    z-index: 1000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    top: 0;
}
/* Header and Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}
.logo img {
    max-height: 80px;
    width: auto;
    vertical-align: middle;
}
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.main-nav a {
    color: #00447C;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
    display: inline-block;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #C53030;
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after {
    width: 100%;
}
.main-nav a:hover {
    color: #C53030;
}
.btn-primary {
    display: inline-block;
    background-color: #C53030;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}
.btn-primary:hover {
    background-color: #9B2C2C;
    transform: translateY(-2px);
}
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #00447C;
    padding: 0.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
.menu-toggle {
    display: block;
}
.logo img {
    max-height: 60px;
}
.main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
}
.main-nav.is-open {
    display: block;
}
.main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}
.main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
.main-nav a::after {
    display: none;
}
}
/* --- HERO WITH VIDEO BACKGROUND --- */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 3rem 2rem;
}
.hero-wrapper {
    box-shadow: 0 20px 40px rgba(0, 36, 68, 0.2);
    border-radius: 16px;
    margin-bottom: 4rem;
    background-color: #001f3f;
    overflow: hidden;
    position: relative;
}
.hero {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 36, 68, 0.95) 0%, rgba(0, 36, 68, 0.75) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    color: #ffffff;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.35rem;
    max-width: 800px;
    margin: 0 auto;
    color: #e2e8e5;
}
/* ACCESSIBLE VIDEO TOGGLE */
.video-toggle {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    background: rgba(0, 31, 63, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.video-toggle:hover, .video-toggle:focus {
    background: rgba(197, 48, 48, 0.9);
    border-color: #ffffff;
    transform: scale(1.05);
    outline: none;
}
/* --- ANIMATION CSS CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}
.gallery-item {
    transition: none !important;
}
}
/* Portfolio Filtering Controls */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}
.filter-btn {
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    color: #00447C;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn:focus {
    border-color: #00447C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
}
.filter-btn[aria-pressed="true"] {
    background-color: #00447C;
    color: #ffffff;
    border-color: #00447C;
}
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 2;
}
.gallery-item:focus {
    outline: 3px solid #C53030;
    outline-offset: 3px;
    z-index: 10;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item.hidden {
    display: none;
}
/* Accessible Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 63, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}
/* Lightbox Controls */
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover, .lightbox-close:focus, .lightbox-nav:focus {
    background-color: rgba(0, 0, 0, 0.8);
    color: #C53030;
    transform: scale(1.05);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.5);
}
.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1002;
}
.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}
.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
}
.lightbox-prev {
    left: 2rem;
}
.lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {
.lightbox-nav {
    padding: 0.5rem;
}
.lightbox-prev {
    left: 0.5rem;
}
.lightbox-next {
    right: 0.5rem;
}
.lightbox {
    padding: 1rem;
}
}
footer {
    background-color: #001f3f;
    color: #a0aec0;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: auto;
}
footer a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
footer a:hover {
    color: #63B3ED;
}