:root {
    --page-bg: #eef7fb;
    --header-bg: #282a2d;
    --header-border: #315566;
    --text-light: #ffffff;
    --muted-light: #cad9dd;
    --accent: #3be8f1;
    --search-bg: #f4fbff;
    --search-text: #788f92;
    --hero-tint: rgba(8, 40, 54, 0.50);
    --hero-fallback-a: #8ad7e8;
    --hero-fallback-b: #3f8fa1;
    --hero-image: image-set(
        url("images/nqstvc-hero.webp") type("image/webp"),
        url("images/nqstvc.png") type("image/png")
    );
    --surface: #f3f8f8;
    --surface-strong: #dcebec;
    --surface-border: rgba(28, 40, 67, 0.14);
    --shadow-soft: 0 18px 40px rgba(20, 23, 38, 0.12);
    --header-offset: 76px;
}

/* Homepage refresh aligned with ui reference pages */
:root {
    --surface-elevated: rgba(250, 254, 254, 0.9);
    --shadow-strong: 0 28px 60px rgba(8, 30, 34, 0.16);
    --text-muted: #4b6666;
    --panel-dark: #152224;
    --panel-border: rgba(216, 254, 255, 0.14);
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(50, 222, 228, 0.14), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(28, 61, 64, 0.08), transparent 24%),
        linear-gradient(180deg, #e9f5f3 0%, #dcedef 100%);
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.intro-copy h1,
.project-showcase-title,
.section-heading h2,
.training-copy h1,
.contact-intro h2,
.banner-content .message h1,
.hero-panel-header h2 {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
}

.content-section {
    position: relative;
}

.intro-section,
.services-section,
.training-section,
.contact-section {
    border-bottom: 0;
}

.first.section.backgroung-image {
    position: relative;
    overflow: hidden;
    padding-bottom: clamp(54px, 8vw, 84px);
}

.first.section.backgroung-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(50, 204, 228, 0.24), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 18%);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.78fr);
    align-items: end;
    gap: clamp(28px, 4vw, 42px);
    max-width: 1180px;
    padding: clamp(10px, 2vw, 22px) clamp(20px, 4vw, 40px) 0;
}

@media (max-width: 900px) {
    .banner-content {
        grid-template-columns: 1fr;
    }
}

.banner-content .message {
    gap: 18px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 30px;
    background: linear-gradient(150deg, rgba(7, 30, 34, 0.78), rgba(13, 43, 45, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 54px rgba(4, 18, 30, 0.24), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.banner-content .message h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 6vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.message p {
    max-width: 56ch;
    color: rgba(236, 249, 250, 0.92);
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.75;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button-primary {
    border-width: 1px;
    background: #2ee8d6;
    box-shadow: 0 14px 28px rgba(17, 36, 38, 0.18);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(50, 228, 225, 0.3);
    background: #46f0ff;
}

.button-secondary {
    border: 1px solid rgba(209, 255, 253, 0.32);
    background: rgba(244, 255, 255, 0.12);
    color: #f8ffff;
}

.button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(244, 255, 255, 0.18);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.hero-stat {
    padding: 16px 16px 14px;
    border-radius: 20px;
    background: rgba(247, 253, 255, 0.12);
    border: 1px solid rgba(209, 255, 253, 0.14);
}

.hero-stat strong {
    display: block;
    color: #f8ffff;
    font-size: 1rem;
    line-height: 1.3;
}

.hero-stat span {
    display: block;
    margin-top: 8px;
    color: rgba(218, 243, 245, 0.86);
    font-size: 0.9rem;
    line-height: 1.6;
}

.banner-side-column {
    display: grid;
    gap: 18px;
    align-self: stretch;
}

.banner-video {
    max-width: none;
    margin-top: 0;
}

.banner-video video {
    min-height: 320px;
    border-radius: 28px;
    border: 1px solid rgba(222, 249, 255, 0.34);
    box-shadow: var(--shadow-strong);
}

.hero-panel-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid var(--panel-border);
    background:
        radial-gradient(circle at 10% 12%, rgba(50, 219, 228, 0.22), transparent 26%),
        linear-gradient(145deg, #102b44 0%, #071a2d 52%, #04111f 100%);
    box-shadow: 0 24px 50px rgba(9, 19, 20, 0.28);
    color: #f8ffff;
}

.hero-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hero-panel-header .section-kicker {
    color: rgba(174, 255, 248, 0.86);
}

.hero-panel-header h2 {
    margin: 6px 0 0;
    font-size: clamp(1.45rem, 2.3vw, 1.9rem);
    line-height: 1.06;
    color: #f8ffff;
}

.hero-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(223, 249, 255, 0.12);
    border: 1px solid rgba(137, 230, 255, 0.22);
    color: #b8fbff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-panel-text {
    margin: 0;
    color: rgba(226, 247, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.65;
}

.hero-panel-links {
    display: grid;
    gap: 10px;
}

.hero-panel-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(160, 236, 255, 0.14);
    background: rgba(247, 253, 255, 0.1);
    color: #f8ffff;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-panel-links a::after {
    content: ">";
    color: #8be7df;
    font-weight: 700;
}

.hero-panel-links a:hover {
    transform: translateX(3px);
    border-color: rgba(50, 201, 228, 0.38);
    background: rgba(246, 254, 255, 0.12);
}

.intro-shell,
.services-shell-card,
.training-shell-card,
.contact-shell-card,
.project-showcase-shell {
    position: relative;
    border-radius: 36px;
    border: 1px solid rgba(38, 83, 87, 0.14);
    background:
        radial-gradient(circle at top right, rgba(50, 225, 228, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(48, 102, 101, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(247, 255, 255, 0.96), rgba(223, 243, 241, 0.98));
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.intro-shell,
.project-showcase-shell {
    padding: clamp(28px, 4vw, 42px);
}

.services-shell-card,
.training-shell-card,
.contact-shell-card {
    padding: clamp(26px, 4vw, 40px);
}

.intro-copy p,
.section-heading p,
.training-copy p,
.contact-intro p,
.project-showcase-lead {
    color: var(--text-muted);
}

.project-showcase-shell {
    display: grid;
    gap: clamp(24px, 4vw, 34px);
    margin-top: clamp(20px, 3vw, 28px);
}

.project-showcase-header {
    max-width: 780px;
}

.project-showcase-title {
    margin: 8px 0 0;
    color: #0f2224;
    font-size: clamp(2.2rem, 4.8vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.project-showcase-lead {
    margin: 14px 0 0;
    max-width: 64ch;
    font-size: clamp(0.98rem, 1.5vw, 1.04rem);
    line-height: 1.75;
}

.project-overview,
.services-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 20px);
}

.overview-card,
.service-overview-card {
    padding: clamp(20px, 3vw, 24px);
    border-radius: 24px;
    border: 1px solid rgba(38, 83, 87, 0.14);
    background: var(--surface-elevated);
    box-shadow: 0 16px 32px rgba(8, 30, 34, 0.08);
}

.overview-card h3,
.service-overview-card h3 {
    margin: 0;
    color: #10282b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.24rem, 2vw, 1.5rem);
    line-height: 1.15;
}

.overview-card p:last-child,
.service-overview-card p:last-child {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.72;
}

.project-carousel {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
    padding: 36px 30px 40px; /* Tightened padding safely */
    border-radius: 24px;
    /* Base background behind the animated orbs */
    background: linear-gradient(135deg, rgba(9, 38, 43, 0.92) 0%, rgba(6, 23, 26, 0.96) 100%);
    background-size: cover;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 251, 255, 0.15);
    border-top: 1px solid rgba(200, 249, 255, 0.25);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay for extra depth */
.project-carousel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.project-carousel > * {
    position: relative;
    z-index: 2; /* Increased z-index to stay above the animated glow */
}

/* Animated glowing orbs */
.project-carousel::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(50, 183, 228, 0.6) 0%, transparent 25%),
        radial-gradient(circle at 70% 20%, rgba(80, 252, 255, 0.5) 0%, transparent 20%),
        radial-gradient(circle at 50% 60%, rgba(60, 210, 240, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(20, 185, 200, 0.5) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(120, 251, 255, 0.3) 0%, transparent 35%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
    /* Soft rotating and breathing animation */
    animation: 
        rotateGlow 20s linear infinite,
        pulseGlow 8s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg) scale(0.9);
    }
    50% {
        transform: rotate(180deg) scale(1.15);
    }
    100% {
        transform: rotate(360deg) scale(0.9);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.6;
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        filter: blur(25px);
    }
}

.project-name {
    color: #eefcfd;
}

.carousel-slide img {
    border: 2px solid rgba(221, 245, 252, 0.28);
    filter: brightness(1.16) contrast(1.06) saturate(1.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.carousel-slide.prev,
.carousel-slide.next {
    opacity: 0.86;
}

.carousel-slide.active img {
    filter: brightness(1.2) contrast(1.06) saturate(1.05);
}

.carousel-button {
    border-color: rgba(209, 255, 253, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #e9fbfc;
}

.view-more-link {
    border-radius: 999px;
}

.services-layout {
    gap: 0;
}

.services-shell-card {
    display: grid;
    gap: 28px;
}

.section-heading {
    max-width: 760px;
}

.section-heading h2,
.training-copy h1,
.contact-intro h2,
.intro-copy h1 {
    color: #10282b;
    letter-spacing: -0.03em;
}

.service-group-title {
    font-size: clamp(1.55rem, 2vw, 2rem);
    letter-spacing: 0.04em;
}

.service-grid {
    gap: 18px;
}

.service-card,
.training-card {
    border-radius: 18px;
    border: 1px solid rgba(38, 83, 87, 0.14);
    background: rgba(250, 254, 254, 0.9);
    box-shadow: 0 14px 24px rgba(8, 30, 34, 0.06);
}

.service-card {
    min-height: 190px;
}

.training-shell-card {
    background:
        radial-gradient(circle at top right, rgba(59, 232, 241, 0.14), transparent 22%),
        linear-gradient(135deg, rgba(250, 254, 254, 0.96), rgba(232, 243, 244, 0.98));
}

.training-content {
    gap: clamp(22px, 3vw, 36px);
}

.training-grid {
    gap: 18px;
}

.training-card {
    min-height: 156px;
    padding: 52px 16px 16px;
}

.training-why {
    padding: 52px 18px 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 14%, rgba(59, 232, 241, 0.24), transparent 24%),
        linear-gradient(150deg, #122c2f 0%, #071a2d 100%);
    box-shadow: 0 20px 36px rgba(8, 30, 34, 0.18);
}

.training-why p {
    margin-top: 6px;
    line-height: 1.55;
}

.contact-shell-card {
    display: grid;
    gap: 26px;
}

.contact-intro {
    max-width: 720px;
    margin: 0;
    text-align: left;
}

.contact-intro h2 {
    margin: 8px 0 0;
}

.contact-grid {
    gap: clamp(1rem, 3vw, 1.5rem);
}

.contact-card {
    border: 1px solid rgba(38, 83, 87, 0.14);
    box-shadow: 0 16px 34px rgba(8, 30, 34, 0.08);
}

.contact-info-card {
    background:
        radial-gradient(circle at 8% 12%, rgba(59, 232, 241, 0.18), transparent 22%),
        linear-gradient(145deg, #122c2f 0%, #0d282b 52%, #071a2d 100%);
    color: #f5fbff;
}

.contact-info-card .contact-label,
.contact-info-card a,
.contact-info-card p {
    color: inherit !important;
}

.contact-form-card {
    background: rgba(247, 253, 255, 0.94);
    color: #10282b;
}

.contact-form-card label {
    color: #29464a;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    background: #f8fdff;
    border: 1px solid rgba(38, 83, 87, 0.16);
    color: #10282b;
}

.office-hours-card {
    background: rgba(247, 253, 255, 0.94);
}

.site-footer {
    border-top: 1px solid rgba(209, 255, 253, 0.1);
    background: #282a2d;
}

@media (max-width: 1024px) {
    .banner-content,
    .project-overview,
    .services-overview,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .banner-side-column {
        grid-template-columns: 1fr;
    }

    .project-carousel {
        padding-inline: 46px;
    }
}

@media (max-width: 768px) {
    .banner-content .message,
    .intro-shell,
    .project-showcase-shell,
    .services-shell-card,
    .training-shell-card,
    .contact-shell-card {
        border-radius: 26px;
    }

    .banner-content {
        padding-inline: 0;
    }

    .project-carousel {
        padding: 84px 28px 52px;
    }

    .hero-panel-card,
    .featured-panel {
        border-radius: 22px;
    }
}

@media (max-width: 640px) {
    .banner-content .message {
        padding: 20px 18px;
    }

    .banner-video video {
        min-height: 240px;
    }

    .hero-actions {
        width: 100%;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .project-carousel {
        padding: 92px 18px 46px;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-y: auto;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100svh;
    padding: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background: var(--page-bg);
    color: #102534;
}

/* Global Heading Styles - Consistent across all pages */
h1 {
    margin: 0.67em 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    margin: 0.75em 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    margin: 0.83em 0;
    font-size: 1.17rem;
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    margin: 1em 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

h5 {
    margin: 1.17em 0;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.4;
}

h6 {
    margin: 1.33em 0;
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1.4;
}

.maintenance-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    backdrop-filter: blur(2px);
}

.maintenance-content {
    text-align: center;
    color: #102534;
}

.maintenance-content h1 {
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    color: #3be8f1;
    font-weight: bold;
}

.maintenance-content p {
    font-size: 1.2rem;
    margin: 0;
    color: #315566;
}

.page-shell {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

main {
    display: block;
    padding-top: var(--header-offset);
    margin: 0;
}

#banner-inquiry {
    padding-top: calc(var(--header-offset) + 18px) !important;
    margin-top: 0 !important;
}

.site-header {
     position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 22px;
    background: var(--header-bg);
    border: 0; 
    border-bottom: none;  
    color: var(--text-light);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.brand-mark-core {
    position: relative;
    z-index: 1;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--muted-light);
}

.brand-copy {
    min-width: 0;
}

.brand-copy > a {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
}

.brand-copy > a:visited {
    color: var(--text-light);
}

.brand-title,
.brand-tagline {
    margin: 0;
}

.brand-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    letter-spacing: 0.03em;
}

.brand-accent {
    color: var(--accent);
}

.brand-tagline {
    margin-top: 3px;
    max-width: 240px;
    color: var(--muted-light);
    font-size: 0.64rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(14px, 2vw, 22px);
    flex-wrap: wrap;
    min-width: 0;
}

.site-nav a {
    color: var(--text-light);
    font-size: clamp(0.92rem, 1.3vw, 0.98rem);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2001;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 6px 14px;
    background: var(--search-bg);
    border-radius: 999px;
}

.search-icon {
    width: 12px;
    height: 12px;
    border: 2px solid #a9c7d3;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: #a9c7d3;
    border-radius: 999px;
    transform: rotate(45deg);
    transform-origin: center;
}

.search-form input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--search-text);
    font: inherit;
    outline: none;
    box-shadow: none;
}

.search-form input:focus,
.search-form input:focus-visible {
    outline: none;
    box-shadow: none;
}

.search-form input::-webkit-search-decoration,
.search-form input::-webkit-search-cancel-button,
.search-form input::-webkit-search-results-button,
.search-form input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.search-form input::placeholder {
    color: var(--search-text);
}

.menu-button {
    display: grid;
    align-content: space-between;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 40px;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--text-light);
}


.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1b1c1d;  /* Dark opaque background */
    border: 1px solid rgba(59, 232, 241, 0.3);
    border-radius: 8px;
    min-width: 200px;
    max-height: min(320px, calc(100vh - 110px));
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    margin-top: 8px;
    backdrop-filter: blur(10px);  /* Optional: adds glass effect */
    pointer-events: auto;
}

.dropdown-content.active {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .dropdown-content {
        min-width: 180px;
        right: -10px;
        margin-top: 4px;
    }
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(59, 232, 241, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(59, 232, 241, 0.2);
    color: var(--accent);
}
.is-loading,
.is-loading body,
html:has(.loader:not(.is-hidden)),
body:has(.loader:not(.is-hidden)) {
    overflow: hidden;
    overscroll-behavior: none;
}

/* HTML: <div class="loader"></div> */
.loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    z-index: 9999;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader::after {
    content: "";
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(farthest-side,#16f7ff 94%,#0000) top/8px 8px no-repeat,
        conic-gradient(#0000 30%,#3be8f1);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: l13 1s infinite linear;
}
@keyframes l13{ 
    100%{transform: rotate(1turn)}
}
#banner-inquiry .first.section.background-image,
.first.section.backgroung-image {
    min-height: 100svh;
    width: 100vw;
    margin-top: -1px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: var(--hero-fallback-b);
    background-image:
        linear-gradient(var(--hero-tint), var(--hero-tint)),
        var(--hero-image),
        linear-gradient(135deg, var(--hero-fallback-a), var(--hero-fallback-b));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-offset) + 18px) clamp(20px, 4vw, 40px) clamp(32px, 6vw, 56px);
    box-sizing: border-box;
}



.content-section {
    padding: clamp(42px, 7vw, 84px) 20px;
}

.section-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.intro-section {
    
    border-bottom: 1px solid var(--surface-border);
}



.project-text {
    margin: 40px 0 20px;
    text-align: center;
}

.project-text h2 {
    margin: 0;
    color: #0f2633;
    font-size: 2rem;
    font-weight: 700;
}

.project-carousel h2 {
    margin: 10px 0 20px 0; /* Tighter margins to reduce overall height */
    color: #e9fbfc; /* Bright color to contrast the dark glass */
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.intro-layout {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(16px, 2.4vw, 28px);
}

.intro-copy {
    flex: 1 1 560px;
    max-width: 620px;
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.intro-copy h1,
.section-heading h2,
.contact-panel h2,
.training-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    line-height: 1.08;
    color: #0f2633;
}

.intro-copy p,
.section-heading p,
.service-card p,
.contact-panel p,
.training-copy p {
    margin: 0 0 16px;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.7;
    color: #3f5968;
}

.welcome-image{
    flex: 0 0 min(300px, 30vw);
    display: flex;
    justify-content: center;
}
.welcome-image img,
.welcome-image video,
.welcome-placeholder {
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 21 / 26;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(247, 253, 255, 0.9);
    box-shadow: 0 18px 42px rgba(8, 30, 34, 0.2);
}

.welcome-image img,
.welcome-image video {
    display: block;
    object-fit: cover;
}

.welcome-placeholder {
    display: grid;
    place-items: center;
    padding: 24px;
    color: #607889;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    border-style: dashed;
}

.featured-panel {
    flex: 0 0 min(340px, 30vw);
    width: min(100%, 340px);
    max-height: 560px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px 18px;
    border: 1px solid rgba(38, 83, 87, 0.16);
    border-radius: 24px;
    background: rgba(247, 253, 255, 0.78);
    box-shadow: 0 18px 42px rgba(8, 30, 34, 0.12);
    backdrop-filter: blur(10px);
}

.featured-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.featured-panel-header .section-kicker {
    margin-bottom: 6px;
}

.featured-panel-header h2 {
    margin: 0;
    color: #0f2633;
    font-size: 1.45rem;
    line-height: 1.1;
}

.featured-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(59, 232, 241, 0.16);
    color: #08737a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-panel-scroll {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding-right: 6px;
    overflow-y: auto;
}

.featured-panel-scroll::-webkit-scrollbar {
    width: 8px;
}

.featured-panel-scroll::-webkit-scrollbar-thumb {
    background: rgba(77, 112, 128, 0.34);
    border-radius: 999px;
}

.featured-post-list {
    display: grid;
    gap: 12px;
}

.featured-post-card {
    display: grid;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(38, 83, 87, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.featured-post-card[data-post-url],
.featured-post-card[data-preview-image] {
    cursor: pointer;
}

.featured-post-card[data-post-url]:hover,
.featured-post-card[data-preview-image]:hover {
    border-color: rgba(8, 115, 122, 0.3);
    box-shadow: 0 12px 24px rgba(8, 30, 34, 0.08);
    transform: translateY(-1px);
}

.featured-post-card:focus-visible {
    outline: 3px solid rgba(8, 115, 122, 0.24);
    outline-offset: 3px;
}

.featured-post-image-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    width: 100%;
    text-align: left;
}

.featured-post-primary img,
.featured-post-secondary img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 14px;
}

.featured-post-primary img {
    width: min(100%, 190px);
    height: 150px;
    margin: 0 auto;
    object-fit: contain;
    background: #edf7fb;
    border: 1px solid rgba(38, 83, 87, 0.12);
}

.featured-post-secondary {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
}

.featured-post-secondary img {
    height: 84px;
    aspect-ratio: 1;
}

.featured-post-copy h3 {
    margin: 0 0 8px;
    color: #102534;
    font-size: 0.98rem;
    line-height: 1.3;
}

.featured-post-copy p {
    margin: 0;
    color: #4f6877;
    font-size: 0.92rem;
    line-height: 1.55;
}

.featured-post-summary.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.featured-post-toggle {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #183244;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.featured-post-toggle:hover {
    color: #0a646b;
}

.featured-post-toggle:focus-visible {
    outline: 3px solid rgba(8, 115, 122, 0.22);
    outline-offset: 3px;
}

.featured-post-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: #08737a;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.featured-post-link:hover {
    color: #0a646b;
}

.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 4100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
}

.image-viewer-modal.active {
    display: flex;
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 16, 26, 0.82);
    backdrop-filter: blur(2px);
}

.image-viewer-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 100%;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.image-viewer-dialog img {
    width: 100%;
    max-height: calc(100vh - 64px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 22px 54px rgba(4, 18, 30, 0.34);
}

.image-viewer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 26, 45, 0.92);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.image-viewer-close:hover {
    background: rgba(4, 18, 30, 0.98);
}

.featured-socials {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(38, 83, 87, 0.14);
}

.featured-socials-label,
.featured-social-note {
    margin: 0;
}

.featured-socials-label {
    color: #0f2633;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.featured-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.featured-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(38, 83, 87, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: #0f2633;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.featured-social-links a:hover {
    color: #08737a;
    border-color: rgba(59, 232, 241, 0.5);
    transform: translateY(-1px);
}

.featured-social-note {
    margin-top: 10px;
    color: #607889;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Point Card Styles */
.point-card {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin: 20px 0 0;
    flex-wrap: wrap;
}

.point-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    min-width: 100px;
    width: clamp(100px, 12vw, 122px);
    min-height: 92px;
    background: #ffffff;
    border: 1px solid rgba(38, 83, 87, 0.22);
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(8, 30, 34, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.point-card-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(59, 232, 241, 0.15);
}

.point-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #1b73e8);
    color: #ffffff;
}

.point-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.point-card-item h3 {
    margin: 0;
    color: #0f2633;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .point-card {
        gap: 12px;
    }

    .point-card-item {
        min-width: 96px;
        width: clamp(96px, 28vw, 116px);
        min-height: 86px;
        padding: 12px 10px;
    }

    .point-card-icon {
        width: 34px;
        height: 34px;
    }

    .point-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .point-card-item h3 {
        font-size: 0.76rem;
    }

    .featured-panel {
        width: 100%;
        max-width: none;
        max-height: none;
    }

    .featured-post-secondary {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .featured-post-secondary img {
        height: 72px;
    }
}

@media (max-width: 480px) {
    .point-card {
        flex-direction: column;
        gap: 16px;
    }

    .point-card-item {
        width: min(100%, 160px);
    }

    .featured-post-secondary {
        grid-template-columns: 1fr;
    }

    .featured-post-secondary img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

.services-layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.section-heading {
    max-width: 760px;
}

.service-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-group-title {
    margin: 0;
    color: #102534;
    font-size: clamp(1.8rem, 2vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.service-group-title span {
    position: relative;
    display: inline-block;
}

.service-group-title span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.06em;
    height: 0.22em;
    background: rgba(50, 219, 228, 0.92);
    z-index: -1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 170px;
    padding: 68px 18px 20px;
    background: #f8fdff;
    border: 1px solid rgba(38, 83, 87, 0.28);
    border-radius: 16px;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-image-card {
    position: relative;
    grid-column: span 2;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 1;
    width: 100%;
    min-height: 190px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(38, 83, 87, 0.18);
    border-radius: 16px;
    background: #e8f4f5;
    box-shadow: 0 14px 24px rgba(8, 30, 34, 0.08);
}

.service-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 38, 43, 0.12), transparent 36%),
        linear-gradient(0deg, rgba(9, 38, 43, 0.12), transparent 42%);
    pointer-events: none;
}

.service-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-height: 0;
    object-fit: contain;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(8, 30, 34, 0.12);
    border-color: var(--accent);
}

.service-card:focus-visible {
    outline: 3px solid rgba(50, 213, 228, 0.42);
    outline-offset: 2px;
    border-color: var(--accent);
}

.service-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #102534;
    color: #ffffff;
}

.service-icon svg {
    width: 19px;
    height: 19px;
}

.service-card h4 {
    margin: 0 0 10px;
    color: #102534;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: auto;
    padding: 8px 14px;
    border: 1px solid rgba(19, 140, 155, 0.24);
    border-radius: 999px;
    background: rgba(47, 203, 211, 0.12);
    color: var(--accent-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.service-card:hover .service-card-action,
.service-card:focus-visible .service-card-action {
    background: linear-gradient(135deg, #2fcbd3 0%, #138c9b 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

.service-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-card-link .service-card {
    height: 100%;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover .service-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(8, 30, 34, 0.12);
    border-color: var(--accent);
}

.service-card-link .service-icon {
    pointer-events: none;
}

.service-modal-open {
    overflow: hidden;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
}

.service-modal.active {
    display: flex;
}

.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 16, 26, 0.66);
    backdrop-filter: blur(2px);
}

.service-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 28px 24px 24px;
    background: #f7fbff;
    border: 1px solid rgba(33, 39, 53, 0.25);
    border-radius: 20px;
    box-shadow: 0 22px 54px rgba(13, 17, 25, 0.34);
    animation: serviceModalIn 0.22s ease-out;
}

.service-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #102534;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.service-modal-close:hover {
    background: #071a2d;
}

.service-modal-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 14px;
    background: #0f2c3d;
    color: #ffffff;
}

.service-modal-icon svg {
    width: 28px;
    height: 28px;
}

.service-modal h4 {
    margin: 0 0 10px;
    color: #102534;
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.service-modal p {
    margin: 0;
    color: #3f5968;
    line-height: 1.6;
}

.service-modal-inquire {
    margin-top: 16px;
    align-self: flex-start;
    width: fit-content;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: #3be8f1;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.service-modal-inquire:hover {
    background: #21cfcc;
}

.service-modal-inquire:active {
    transform: translateY(1px);
}

.service-modal-inquire:focus-visible {
    outline: 3px solid rgba(50, 210, 228, 0.32);
    outline-offset: 2px;
}

@keyframes serviceModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Contact section */
.contact-intro {
    max-width: 680px;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.contact-info-card .contact-item p.contact-label {
    color: #d9d9d9 !important;
}
.contact-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr);
    align-items: stretch;
}

.contact-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 1.5rem);
    height: 100%;
}

.contact-card {
    border-radius: clamp(16px, 4vw, 28px);
    padding: clamp(1.2rem, 4vw, 2rem);
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(22, 28, 38, 0.08);
}

.contact-info-card {
    background: #0f2633;
    color: #f5f7fb;
}

.contact-form-card {
    background: #f7fbff;
    color: #0f2633;
}

.contact-form-card label {
    color: #0f2633;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    background: #0f2633;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: #bdbdbd;
}

.contact-info-card h3,
.contact-form-card h3,
.office-hours-card h3 {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
}

.contact-item {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    align-items: flex-start;
    margin-bottom: clamp(0.8rem, 2.5vw, 1.25rem);
}



.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.3rem, 3vw, 1.6rem);
    height: clamp(1.3rem, 3vw, 1.6rem);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
}

.contact-item p,
.contact-item a {
    margin: 0;
    line-height: 1.5;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}
.contact-item a,
.contact-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-item a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.contact-item a:hover,
.contact-links a:hover {
    color: var(--accent);
}
.office-hours-card {
    background: #ffffff;
}

.office-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.7rem, 2vw, 0.95rem) 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.office-hours-row:last-child {
    border-bottom: none;
}

.contact-form-card {
    background: #f9f9fb;
}

.contact-form {
    display: grid;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.form-group {
    display: grid;
    gap: clamp(0.4rem, 1.5vw, 0.5rem);
}

.form-group label {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: #315566;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: clamp(12px, 3vw, 16px);
    padding: clamp(0.7rem, 2.5vw, 0.95rem) clamp(0.75rem, 2vw, 1rem);
    background: #ffffff;
    color: #102534;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-message-modal {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 28px);
}

.contact-message-modal.active {
    display: flex;
}

.contact-message-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 45, 0.42);
    backdrop-filter: blur(6px);
}

.contact-message-dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    padding: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid rgba(38, 83, 87, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(247, 253, 255, 0.98), rgba(232, 245, 250, 0.98));
    box-shadow: 0 24px 70px rgba(4, 18, 30, 0.28);
    text-align: center;
    animation: contactMessageIn 0.22s ease-out;
}

.contact-message-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #102534;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.contact-message-close:hover {
    background: #102534;
}

.contact-message-close:active {
    transform: translateY(1px);
}

.contact-message-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--accent), #159aa3);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(59, 232, 241, 0.28);
}

.contact-message-badge svg {
    width: 34px;
    height: 34px;
}

.contact-message-eyebrow {
    margin: 0 0 0.35rem;
    color: #4b6666;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-message-dialog h4 {
    margin: 0 0 0.6rem;
    color: #102534;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.contact-message-dialog p {
    color: #4f6877;
    line-height: 1.65;
}

.contact-message-action {
    min-width: 150px;
    margin-top: 1.1rem;
}

.contact-message-modal.is-error .contact-message-badge {
    background: linear-gradient(145deg, #dc2626, #991b1b);
    box-shadow: 0 18px 30px rgba(220, 38, 38, 0.22);
}

body.contact-modal-open {
    overflow: hidden;
}

body.contact-modal-open .page-shell {
    filter: blur(10px);
    transition: filter 0.2s ease;
}

@keyframes contactMessageIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    :root {
        --header-offset: 76px;
    }

    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .search-form {
        max-width: 280px;
    }

    .banner-content {
        flex-direction: column;
        gap: 20px;
    }

    .intro-layout,
    .contact-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-image-card {
        grid-column: 1 / -1;
    }
}

/* Mobile breakpoint - responsive adjustments */
@media (max-width: 768px) {
    :root {
        --header-offset: 64px;
    }

    .site-header {
        padding: 8px 12px;
        gap: 10px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 10px 14px;
        justify-content: flex-start;
    }

    .site-nav a {
        font-size: 0.88rem;
    }

    .menu-button {
        display: grid;
    }

    .search-form {
        min-width: min(240px, 100%);
        max-width: 280px;
        flex: 1 1 220px;
    }

    .header-actions {
        gap: 12px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-tagline {
        font-size: 0.54rem;
        max-width: 140px;
    }

    .contact-grid {
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }

    .contact-card {
        padding: clamp(1rem, 3.5vw, 1.5rem);
    }

    .contact-info-card h3,
    .contact-form-card h3,
    .office-hours-card h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    }
}

@media (max-width: 640px) {
    :root {
        --header-offset: 60px;
    }

    .site-header {
        padding: 8px 10px;
        gap: 8px;
    }

    .brand {
        align-items: center;
    }

    .brand img {
        width: 36px !important;
        height: 36px !important;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-tagline {
        font-size: 0.5rem;
        max-width: 120px;
    }

    .first.section.backgroung-image {
        min-height: 300px;
    }

    .banner-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .banner-video {
        flex: 0 0 min(240px, 70vw);
    }

    .content-section {
        padding: 34px 16px;
    }

    .intro-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro-copy h1,
    .section-heading h2,
    .contact-panel h2,
    .training-copy h1 {
        font-size: 2rem;
    }

    .welcome-image {
        width: min(100%, 300px);
        flex-basis: auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-image-card {
        grid-column: 1;
        min-height: 92px;
    }

    .service-card,
    .contact-panel,
    .contact-note {
        padding: 20px;
    }

    .service-card {
        min-height: 0;
        padding-top: 64px;
    }
}

.banner-content .message {
    flex: 1 1 56%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0;
    gap: 1.1rem;
    text-align: left;
    max-width: 640px;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 5vw, 72px);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px) clamp(20px, 4vw, 40px) 0;
}

.banner-video {
    flex: 0 0 clamp(220px, 24vw, 300px);
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 21 / 26;
    margin-top: clamp(10px, 1.8vw, 22px);
}

.banner-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 18px 42px rgba(8, 30, 34, 0.2);
}

.banner-content .message h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.btn-banner {
    font-size: clamp(1rem, 2vw, 1.125rem);
    padding: clamp(0.9rem, 2.5vw, 1.1rem) clamp(1.5rem, 3.5vw, 2rem);
}

.message p {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    margin: 0;
    color: var(--muted-light);
    max-width: 34rem;
    font-weight: 500;
}

.banner-tagline {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
    opacity: 0.9;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #72f4f8);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
    z-index: 0;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(59, 232, 241, 0.35);
}

.button-primary:hover::before {
    left: 100%;
}

.button-primary span {
    position: relative;
    z-index: 1;
}

.project-image {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px;
  margin: 0 auto;
  width: 95%;
}

.project-image img {
  width: calc(15% - 10px);
  height: auto;
  min-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  transition: all 0.5s ease-in-out;
}

.project-image img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.project-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 92px 80px 60px;
  margin: 0 auto;
  width: 100%;
  max-width: 1000px; /* Minimize the max-width in PC */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  overflow: visible;
  min-height: 420px; /* Reduced from 480px, strictly enough to fit reflection footprint */
  perspective: 1200px; /* Gives the 3D depth */
  transform-style: preserve-3d;
}

.carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.75);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: absolute;
  width: 240px;
}

.carousel-slide.prev-outer {
  left: 5%;
  opacity: 0.3;
  transform: scale(0.65) translateX(-40px) translateZ(-200px) rotateY(35deg);
  z-index: 0;
  filter: blur(4px);
}

.carousel-slide.prev {
  left: 20%;
  opacity: 0.7;
  transform: scale(0.85) translateX(-20px) translateZ(-100px) rotateY(25deg);
  z-index: 1;
  filter: blur(2px);
}

.carousel-slide.active {
  position: relative;
  left: 0 !important;
  opacity: 1;
  transform: scale(1.05) translateZ(50px);
  z-index: 10;
  filter: blur(0px);
}

.carousel-slide.next {
  right: 20%;
  opacity: 0.7;
  transform: scale(0.85) translateX(20px) translateZ(-100px) rotateY(-25deg);
  z-index: 1;
  filter: blur(2px);
}

.carousel-slide.next-outer {
  right: 5%;
  opacity: 0.3;
  transform: scale(0.65) translateX(40px) translateZ(-200px) rotateY(-35deg);
  z-index: 0;
  filter: blur(4px);
}

.carousel-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  transition: all 0.5s ease;
  cursor: pointer;
  /* Floor reflection effect */
  -webkit-box-reflect: below 5px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.2));
}

.carousel-slide img:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
}

.project-name {
  margin: 0;
  color: #0f2633;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.active .project-name {
  opacity: 1;
  transform: translateY(0);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  /* Glassmorphism Button */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 25;
  pointer-events: auto;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 40px rgba(59, 232, 241, 0.4);
  color: #3be8f1;
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-button span {
  display: block;
  line-height: 1;
  pointer-events: none;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-counter {
  position: absolute;
  bottom: -60px;
  bottom: 20px;
  right: 50%;
  transform: translateX(50%);
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 20;
}

.carousel-counter .current-slide {
  color: #3be8f1;
  font-weight: 700;
}

.view-more {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 15;
}

.view-more-link {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.08); /* Frosted background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px; /* Pill-shaped for modern appeal */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.view-more-link:hover {
  background: rgba(59, 232, 241, 0.4); /* Glowy teal hover */
  border-color: rgba(59, 232, 241, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 232, 241, 0.3);
  color: #fff;
}
@media (max-width: 1024px) {
  .project-image img {
    width: calc(25% - 10px);
  }
}
@media (max-width: 768px) {
  .project-image img {
    width: calc(45% - 10px);
  }
}
@media (max-width: 480px) {
  .container img {
    width: 90%;
  }

  .project-carousel {
    padding: 20px 10px 80px; /* Tighter padding for mobile */
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carousel-container {
    min-height: 280px; /* Reduced vertical space on mobile */
  }

  .carousel-slide {
    width: 200px;
  }

  .carousel-slide img {
    height: 240px;
    -webkit-box-reflect: below 5px linear-gradient(transparent 80%, rgba(255, 255, 255, 0.15));
  }

  /* Make side cards stay tighter and less extreme on mobile */
  .carousel-slide.prev-outer {
    transform: scale(0.5) translateX(-80px) translateZ(-200px) rotateY(45deg);
    opacity: 0; /* Hide outer cards completely on mobile to save space */
  }
  .carousel-slide.next-outer {
    transform: scale(0.5) translateX(80px) translateZ(-200px) rotateY(-45deg);
    opacity: 0;
  }

  .carousel-slide.prev {
    left: -5%;
    transform: scale(0.65) translateX(0) translateZ(-100px) rotateY(35deg);
    opacity: 0.5;
  }
  .carousel-slide.next {
    right: -5%;
    transform: scale(0.65) translateX(0) translateZ(-100px) rotateY(-35deg);
    opacity: 0.5;
  }

  .carousel-prev {
    left: 10px;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-next {
    right: 10px;
    left: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-counter {
    bottom: 20px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .project-carousel h2 {
    order: -2; /* Guarantee the title is at the absolute top */
    margin: 10px 0 0 0;
    font-size: 1.8rem;
  }

  .view-more {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 20px; /* Puts it nicely above the carousel */
    order: -1; /* Ensure it stays right under the title */
    z-index: 15;
  }

  .view-more-link {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}


.training-shell .intro-layout {
    flex-direction: row;
}

.training-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(16px, 2.6vw, 36px);
}

.training-left {
    flex: 1 1 560px;
    max-width: 680px;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.training-card {
    position: relative;
    min-height: 140px;
    padding: 48px 14px 14px;
    background: #f8fdff;
    border: 1px solid rgba(38, 83, 87, 0.28);
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.training-card.training-card-media {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.training-card.training-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(8, 30, 34, 0.12);
    border-color: var(--accent);
}

.training-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #0f2c3d;
    color: #ffffff;
}

.training-icon svg {
    width: 18px;
    height: 18px;
}

.training-card h4 {
    margin: 0 0 8px;
    color: #102534;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-card p {
    margin: 0;
    color: #3f5968;
    font-size: 0.82rem;
    line-height: 1.4;
}

.training-image {
    flex: 0 0 min(340px, 30vw);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    gap: 12px;
}

.training-image img {
    width: min(100%, 340px);
    height: auto;
    aspect-ratio: 21 / 26;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(247, 253, 255, 0.9);
    box-shadow: 0 18px 42px rgba(8, 30, 34, 0.2);
    display: block;
    object-fit: cover;
}

.training-why {
    position: relative;
    min-height: 140px;
    padding: 48px 14px 14px;
    background: #071a2d;
    border: 1px solid rgba(59, 232, 241, 0.3);
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.3s ease;
    width: 100%;
}

.training-why:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(59, 232, 241, 0.15);
    border-color: var(--accent);
}

.training-why-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
}

.training-why-icon svg {
    width: 18px;
    height: 18px;
}

.training-why h4 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-why p {
    margin: 0;
    color: #d9eef6;
    font-size: 0.82rem;
    line-height: 1.4;
}

.training-enroll {
    width: 100%;
    padding: 16px;
    background: #f8fdff;
    border: 1px solid rgba(59, 232, 241, 0.38);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(8, 30, 34, 0.08);
}

.training-enroll-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.training-enroll-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
}

.training-enroll-icon svg {
    width: 19px;
    height: 19px;
}

.training-enroll .section-kicker {
    margin: 0 0 2px;
}

.training-enroll h4 {
    margin: 0;
    color: #102534;
    font-size: 1rem;
    line-height: 1.2;
}

.training-enroll-form {
    display: grid;
    gap: 10px;
}

.training-enroll-field {
    display: grid;
    gap: 5px;
}

.training-enroll-field label {
    color: #0f2c3d;
    font-size: 0.78rem;
    font-weight: 700;
}

.training-enroll-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(38, 83, 87, 0.24);
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    color: #102534;
    font: inherit;
}

.training-enroll-field input::placeholder {
    color: rgba(49, 85, 102, 0.52);
}

.training-enroll-button {
    width: 100%;
    min-height: 42px;
    margin-top: 2px;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .training-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .training-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.carousel-slide img{
    transition: all ease-in-out 0.5s;
}

.site-footer {
    background: #282a2d;
    color: var(--text-light);
}

.footer-shell {
    padding: 34px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 32px;
    align-items: start;
}

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

.footer-brand,
.footer-intro,
.footer-description,
.footer-bottom p,
.footer-links,
.footer-contact-list {
    margin: 0;
}

.footer-brand {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.footer-intro {
    margin-top: 8px;
    max-width: 300px;
    color: var(--muted-light);
    font-size: 0.98rem;
    line-height: 1.45;
}

.footer-description {
    margin-top: 14px;
    max-width: 360px;
    color: var(--muted-light);
    font-size: 0.96rem;
    line-height: 1.6;
}

.footer-contact-list,
.footer-links {
    padding: 0;
    list-style: none;
}

.footer-contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex: 0 0 18px;
    margin-top: 2px;
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-contact-list a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact-list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.footer-contact-list a:hover,
.footer-links a:hover {
    color: var(--accent);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted-light);
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    color: var(--muted-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-legal-item {
    position: relative;
}

.footer-legal-label {
    display: inline-flex;
    align-items: center;
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-light);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-legal-label:focus {
    outline: 2px solid rgba(59, 232, 241, 0.7);
    outline-offset: 4px;
    border-radius: 6px;
}

.footer-legal-item:hover .footer-legal-label,
.footer-legal-item:focus-within .footer-legal-label {
    color: var(--accent);
}

.footer-legal-card {
    position: absolute;
    left: 0;
    bottom: calc(100% + 14px);
    width: min(320px, calc(100vw - 40px));
    padding: 14px 16px;
    background: #f8ffff;
    border: 1px solid rgba(38, 83, 87, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(4, 18, 30, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.footer-legal-card::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 100%;
    width: 12px;
    height: 12px;
    background: #f8ffff;
    border-right: 1px solid rgba(38, 83, 87, 0.18);
    border-bottom: 1px solid rgba(38, 83, 87, 0.18);
    transform: rotate(45deg) translateY(-6px);
}

.footer-legal-item:hover .footer-legal-card,
.footer-legal-item:focus-within .footer-legal-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-legal-card strong {
    display: block;
    margin-bottom: 6px;
    color: #10282b;
    font-size: 0.95rem;
}

.footer-legal-card p {
    margin: 0;
    color: #4b6666;
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-block {
        max-width: none;
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .footer-shell {
        padding: 30px 16px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        font-size: 1.7rem;
    }

    .footer-legal {
        gap: 16px;
    }

    .footer-legal-card {
        left: 50%;
        bottom: calc(100% + 12px);
        width: min(320px, calc(100vw - 32px));
        transform: translateX(-50%) translateY(10px);
    }

    .footer-legal-card::after {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateX(-50%) translateY(0);
    }

}

/* Responsive refinements */
img,
video {
    max-width: 100%;
}

@media (max-width: 1180px) {
    :root {
        --header-offset: 132px;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: center;
        gap: 16px 22px;
        padding-top: 4px;
    }

    .banner-content {
        gap: clamp(24px, 4vw, 40px);
    }

    .project-carousel {
        padding: 56px 56px 72px;
    }

    .carousel-slide.prev {
        left: 20px;
    }

    .carousel-slide.next {
        right: 20px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-offset: 174px;
    }

    .site-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 16px;
    }

    .brand,
    .site-nav,
    .header-actions {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .site-nav a {
        font-size: 0.95rem;
    }

    .header-actions {
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-form {
        flex: 1 1 240px;
        min-width: 0;
        max-width: none;
    }

    .dropdown-content {
        min-width: min(220px, calc(100vw - 32px));
    }

    .first.section.backgroung-image {
        min-height: auto;
        padding: calc(var(--header-offset) + 10px) 16px 40px;
    }

    .banner-content,
    .intro-layout,
    .training-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-content {
        padding: 0;
    }

    .banner-content .message {
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .banner-video,
    .training-image,
    .welcome-image {
        width: min(100%, 360px);
        max-width: 100%;
        margin-top: 0;
    }

    .service-grid,
    .training-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-carousel {
        padding: 56px 24px 80px;
    }

    .carousel-container {
        min-height: 330px;
        overflow: visible;
    }

    .carousel-slide {
        width: min(220px, 36vw);
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        display: flex !important;
        opacity: 0.78;
        transform: scale(0.72);
    }

    .carousel-slide.prev {
        left: 0;
    }

    .carousel-slide.next {
        right: 0;
    }

    .carousel-slide img {
        height: 280px;
    }

    .carousel-button {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .view-more {
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-offset: 0px;
    }

    body {
        font-size: 15px;
    }

    main {
        padding-top: 0;
    }

    .site-header {
        position: relative;
        top: auto;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-tagline {
        max-width: 160px;
        font-size: 0.52rem;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 10px 14px;
    }

    .site-nav a {
        font-size: 0.92rem;
    }

    .header-actions {
        align-items: stretch;
    }

    .search-form {
        order: 1;
        width: 100%;
    }

    .menu-button {
        order: 2;
        justify-self: end;
    }

    .dropdown-content {
        top: calc(100% + 6px);
        right: 0;
    }

    .first.section.backgroung-image {
        padding: 32px 16px 30px;
    }

    .banner-content {
        align-items: center;
        text-align: center;
        gap: 18px;
        justify-content: flex-start;
    }

    .banner-content .message {
        align-items: center;
        text-align: center;
        order: 1;
        justify-content: flex-start;
        padding-top: 0;
    }

    .message p {
        max-width: 28rem;
    }

    .btn-banner {
        width: 100%;
        max-width: 240px;
    }

    .banner-video {
        flex-basis: auto;
        width: min(100%, 250px);
        order: 2;
    }

    .content-section {
        padding: 30px 16px;
    }

    .contact-card,
    .service-card,
    .training-card,
    .training-why {
        border-radius: 18px;
    }

    .service-grid,
    .training-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: clamp(1rem, 3vw, 1.25rem);
    }

    .office-hours-row {
        gap: clamp(8px, 2vw, 10px);
        align-items: flex-start;
        flex-direction: column;
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }

    .project-carousel {
        padding: 28px 12px 84px;
        gap: 22px;
    }

    .carousel-container {
        min-height: 250px;
        width: 100%;
        overflow: visible;
    }

    .carousel-slide {
        position: absolute;
        width: min(118px, 30vw);
        max-width: 100%;
    }

    .carousel-slide img {
        height: 165px;
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        display: flex;
        opacity: 0.78;
        transform: scale(0.72);
        z-index: 1;
    }

    .carousel-slide.prev {
        left: 0;
    }

    .carousel-slide.next {
        right: 0;
    }

    .carousel-slide.active {
        position: relative;
        left: 0 !important;
        right: auto !important;
        width: min(150px, 42vw);
        transform: scale(1);
        z-index: 10;
    }

    .project-name {
        font-size: 0.9rem;
        line-height: 1.2;
        max-width: 100%;
    }

    .carousel-button {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .carousel-button:hover,
    .carousel-button:active {
        transform: translateY(-50%);
    }

    .carousel-prev {
        left: -2px;
    }

    .carousel-next {
        right: -2px;
    }

    .carousel-counter {
        bottom: -42px;
        bottom: 10px;
    }

    .view-more {
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .view-more-link {
        width: auto;
        max-width: 220px;
        padding: 10px 14px;
        font-size: 0.82rem;
        text-align: center;
    }

}

@media (max-width: 420px) {
    :root {
        --header-offset: 0px;
    }

    .brand {
        gap: 10px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-tagline {
        max-width: 160px;
        font-size: 0.52rem;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .banner-content .message h1 {
        font-size: clamp(2rem, 11vw, 2.6rem);
    }

    .message p {
        font-size: 1rem;
    }

    .carousel-slide {
        width: min(98px, 28vw);
    }

    .carousel-slide.prev {
        left: -2px;
    }

    .carousel-slide.next {
        right: -2px;
    }

    .carousel-slide.active {
        width: min(136px, 40vw);
    }

    .carousel-slide img {
        height: 150px;
    }

    .carousel-button {
        width: 32px;
        height: 32px;
    }

    .project-name {
        font-size: 0.82rem;
    }
}

/* Homepage refresh final overrides */
body {
    background:
        radial-gradient(circle at top left, rgba(59, 232, 241, 0.14), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(7, 30, 34, 0.08), transparent 24%),
        linear-gradient(180deg, #e9f5f3 0%, #dcedef 100%);
}

.first.section.backgroung-image {
    padding-bottom: clamp(54px, 8vw, 84px);
}

.banner-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.78fr);
    align-items: start;
    gap: clamp(28px, 4vw, 42px);
    max-width: 1180px;
    padding: clamp(10px, 2vw, 22px) clamp(20px, 4vw, 40px) 0;
    text-align: left;
}

.banner-content .message {
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 30px;
    background: linear-gradient(150deg, rgba(7, 30, 34, 0.78), rgba(13, 43, 45, 0.58));
    border: 1px solid rgba(209, 255, 253, 0.16);
    box-shadow: 0 24px 54px rgba(8, 30, 34, 0.22);
    backdrop-filter: blur(8px);
}

.banner-side-column {
    display: grid;
    gap: 18px;
    align-self: start;
}

.banner-content .message h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 6vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.message p {
    max-width: 56ch;
    color: rgba(236, 249, 250, 0.92);
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.75;
    font-weight: 400;
}

.button-primary,
.button-secondary {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
}

.button-primary {
    border-width: 1px;
    background: var(--accent);
    box-shadow: 0 14px 28px rgba(8, 30, 34, 0.18);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(209, 255, 253, 0.32);
    background: rgba(244, 255, 255, 0.12);
    color: #f8ffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(244, 255, 255, 0.18);
}

.banner-video {
    max-width: none;
    margin-top: 0;
}

.banner-video video {
    min-height: 320px;
    border-radius: 28px;
    border: 1px solid rgba(209, 255, 253, 0.34);
}

.intro-shell,
.services-shell-card,
.training-shell-card,
.contact-shell-card,
.project-showcase-shell {
    border-radius: 36px;
    border: 1px solid rgba(38, 83, 87, 0.14);
    background:
        radial-gradient(circle at top right, rgba(59, 232, 241, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(7, 30, 34, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(250, 254, 254, 0.96), rgba(232, 243, 244, 0.98));
    box-shadow: 0 28px 60px rgba(8, 30, 34, 0.16);
}

.intro-shell,
.project-showcase-shell {
    padding: clamp(28px, 4vw, 42px);
}

.services-shell-card,
.training-shell-card,
.contact-shell-card {
    padding: clamp(26px, 4vw, 40px);
}

.project-showcase-shell {
    display: grid;
    gap: clamp(24px, 4vw, 34px);
    margin-top: clamp(20px, 3vw, 28px);
}

.project-overview,
.services-overview,
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.project-carousel {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    gap: 28px;
    padding: 60px 40px 40px; /* Reduced padding substantially */
    border-radius: 30px;
    /* Redesigned base background (orbs are animated via ::after) */
    background: linear-gradient(135deg, rgba(9, 38, 43, 0.92) 0%, rgba(6, 23, 26, 0.96) 100%);
    background-size: cover;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(209, 255, 253, 0.15);
    border-top: 1px solid rgba(209, 255, 253, 0.25);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project-name {
    color: #eefcfd;
}

.carousel-slide img {
    border: 2px solid rgba(220, 255, 255, 0.24);
    filter: brightness(1.16) contrast(1.06) saturate(1.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide:not(.active) {
    cursor: pointer;
}

.carousel-slide:not(.active) img {
    pointer-events: none;
    filter: brightness(0.6) contrast(1) saturate(0.6);
}

.carousel-slide.prev,
.carousel-slide.next {
    opacity: 0.86;
}

.carousel-slide.active img {
    filter: brightness(1.2) contrast(1.06) saturate(1.05);
    filter: brightness(1.15) contrast(1.1) saturate(1.1);
    box-shadow: 0 20px 40px rgba(59, 232, 241, 0.24), 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 232, 241, 0.5);
}

.carousel-slide.active img:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 25px 50px rgba(59, 232, 241, 0.38), 0 15px 30px rgba(0, 0, 0, 0.7);
    border-color: rgba(59, 232, 241, 0.8);
}

.carousel-button {
    border-color: rgba(209, 255, 253, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #e9fbfc;
}

.view-more-link {
    border-radius: 999px;
}

.services-layout {
    gap: 0;
}

.services-shell-card {
    display: grid;
    gap: 28px;
}

.service-grid {
    gap: 18px;
}

.service-card,
.training-card {
    border-radius: 18px;
    border: 1px solid rgba(38, 83, 87, 0.14);
    background: rgba(250, 254, 254, 0.9);
    box-shadow: 0 14px 24px rgba(8, 30, 34, 0.06);
}

.service-card {
    min-height: 190px;
}

.training-content {
    gap: clamp(22px, 3vw, 36px);
}

.training-grid {
    gap: 18px;
}

.training-card {
    min-height: 156px;
    padding: 52px 16px 16px;
}

.training-why {
    padding: 52px 18px 18px;
    border-radius: 18px;
}

.contact-intro {
    max-width: 720px;
    margin: 0;
    text-align: left;
}

.contact-shell-card {
    display: grid;
    gap: 26px;
}

.contact-card {
    border: 1px solid rgba(38, 83, 87, 0.14);
    box-shadow: 0 16px 34px rgba(8, 30, 34, 0.08);
}

.contact-info-card {
    background:
        radial-gradient(circle at 8% 12%, rgba(59, 232, 241, 0.18), transparent 22%),
        linear-gradient(145deg, #122c2f 0%, #0d282b 52%, #071a2d 100%);
    color: #f5fbff;
}

.contact-info-card .contact-label,
.contact-info-card a,
.contact-info-card p {
    color: inherit !important;
}

.contact-form-card {
    background: rgba(247, 253, 255, 0.94);
    color: #102534;
}

.contact-form-card label {
    color: #315566;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    background: #f8fdff;
    border: 1px solid rgba(38, 83, 87, 0.16);
    color: #102534;
}

@media (max-width: 1024px) {
    .banner-content,
    .project-overview,
    .services-overview,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .project-carousel {
        padding-inline: 46px;
    }
}

@media (max-width: 768px) {
    .banner-content {
        grid-template-columns: 1fr;
        padding-inline: 0;
    }

    .banner-content .message,
    .intro-shell,
    .project-showcase-shell,
    .services-shell-card,
    .training-shell-card,
    .contact-shell-card {
        border-radius: 26px;
    }

    .project-carousel {
        padding: 84px 28px 52px;
    }
}

@media (max-width: 640px) {
    #banner-inquiry {
        padding-top: 32px !important;
    }

    .banner-content .message {
        padding: 20px 18px;
    }

    .hero-actions {
        width: 100%;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .project-carousel {
        padding: 92px 18px 46px;
    }
}

/* Keep the home hero inside the first viewport. */
#banner-inquiry.first.section.backgroung-image {
    min-height: 100svh;
    padding-top: calc(var(--header-offset) + clamp(10px, 2svh, 18px)) !important;
    padding-bottom: clamp(18px, 3svh, 34px);
}

#banner-inquiry .banner-content {
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    max-width: 1120px;
    padding-top: 0;
}

#banner-inquiry .banner-content .message {
    gap: clamp(10px, 1.6svh, 14px);
    padding: clamp(16px, 2vw, 24px);
}

#banner-inquiry .banner-content .message h1 {
    max-width: 16ch;
    font-size: clamp(2.35rem, 4.6vw, 4.15rem);
    line-height: 0.98;
    letter-spacing: 0;
}

#banner-inquiry .message p {
    font-size: clamp(0.92rem, 1.15vw, 1rem);
    line-height: 1.5;
}

#banner-inquiry .hero-actions {
    gap: 10px;
}

#banner-inquiry .button-primary,
#banner-inquiry .button-secondary {
    min-height: 42px;
    padding: 10px 18px;
}

#banner-inquiry .hero-stats {
    gap: 10px;
    margin-top: 0;
}

#banner-inquiry .hero-stat {
    padding: 12px;
    border-radius: 16px;
}

#banner-inquiry .hero-stat strong {
    font-size: 0.92rem;
}

#banner-inquiry .hero-stat span {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.4;
}

#banner-inquiry .banner-side-column {
    gap: 12px;
}

#banner-inquiry .banner-video {
    aspect-ratio: 16 / 9;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#banner-inquiry .banner-video video {
    display: block;
    width: 100%;
    min-height: 0;
    height: clamp(170px, 31svh, 260px);
    border-radius: 20px;
}

#banner-inquiry .hero-panel-card {
    gap: 10px;
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
}

#banner-inquiry .hero-panel-header h2 {
    font-size: clamp(1.18rem, 1.75vw, 1.45rem);
    line-height: 1.08;
}

#banner-inquiry .hero-panel-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

#banner-inquiry .hero-panel-links {
    gap: 7px;
}

#banner-inquiry .hero-panel-links a {
    min-height: 36px;
    padding-inline: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    #banner-inquiry .banner-content {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 0.65fr);
    }

    #banner-inquiry .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 861px) and (max-width: 1100px) and (orientation: portrait) {
    :root {
        --header-offset: 132px;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px 16px;
        padding: 12px 16px;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .search-form {
        min-width: min(220px, 34vw);
        max-width: 260px;
    }

    #banner-inquiry.first.section.backgroung-image {
        min-height: auto;
        padding-top: calc(var(--header-offset) + 18px) !important;
        padding-bottom: 36px;
    }

    #banner-inquiry .banner-content {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
        max-width: 820px;
    }

    #banner-inquiry .banner-content .message h1 {
        max-width: 18ch;
        font-size: clamp(2.45rem, 6vw, 3.65rem);
    }

    #banner-inquiry .banner-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
    }

    #banner-inquiry .banner-video video {
        height: 100%;
        max-height: none;
    }

    .intro-layout {
        grid-template-columns: 1fr;
    }

    .intro-copy,
    .welcome-image,
    .point-card,
    .featured-panel {
        grid-column: 1;
    }

    .welcome-image {
        grid-row: 2;
        justify-self: start;
    }

    .point-card {
        grid-row: 3;
    }

    .featured-panel {
        grid-row: 4;
        max-height: none;
    }
}

@media (min-width: 861px) and (max-width: 1100px) and (max-height: 720px) {
    :root {
        --header-offset: 112px;
    }

    .site-header {
        gap: 8px 16px;
        padding: 8px 16px;
    }

    .brand img {
        width: 36px !important;
        height: 36px !important;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .brand-tagline {
        max-width: 210px;
        font-size: 0.52rem;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 8px 16px;
        padding-top: 0;
    }

    .site-nav a {
        font-size: 0.88rem;
    }

    .search-form {
        min-width: 190px;
        max-width: 230px;
        padding: 5px 12px;
    }

    .menu-button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    #banner-inquiry.first.section.backgroung-image {
        min-height: auto;
        padding-top: calc(var(--header-offset) + 12px) !important;
        padding-bottom: 24px;
    }

    #banner-inquiry .banner-content {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr);
        gap: 14px;
        max-width: 980px;
    }

    #banner-inquiry .banner-content .message {
        gap: 8px;
        padding: 14px;
    }

    #banner-inquiry .banner-content .message h1 {
        max-width: 18ch;
        font-size: clamp(2rem, 4vw, 2.55rem);
        line-height: 1;
    }

    #banner-inquiry .message p {
        font-size: 0.82rem;
        line-height: 1.36;
    }

    #banner-inquiry .button-primary,
    #banner-inquiry .button-secondary {
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.84rem;
    }

    #banner-inquiry .hero-stats {
        gap: 6px;
    }

    #banner-inquiry .hero-stat {
        padding: 8px;
    }

    #banner-inquiry .hero-stat strong {
        font-size: 0.76rem;
    }

    #banner-inquiry .hero-stat span {
        font-size: 0.64rem;
        line-height: 1.2;
    }

    #banner-inquiry .banner-side-column {
        gap: 8px;
    }

    #banner-inquiry .banner-video video {
        height: 142px;
        border-radius: 16px;
    }

    #banner-inquiry .hero-panel-card {
        gap: 7px;
        padding: 12px;
        border-radius: 16px;
    }

    #banner-inquiry .hero-panel-header h2 {
        font-size: 1.05rem;
    }

    #banner-inquiry .hero-panel-text {
        font-size: 0.7rem;
        line-height: 1.25;
    }

    #banner-inquiry .hero-panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    #banner-inquiry .hero-panel-links a {
        min-height: 30px;
        padding-inline: 8px;
        font-size: 0.74rem;
    }
}

@media (max-width: 860px) {
    #banner-inquiry.first.section.backgroung-image {
        padding-bottom: 20px;
    }

    #banner-inquiry .banner-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #banner-inquiry .banner-content .message {
        padding: 16px;
    }

    #banner-inquiry .banner-content .message h1 {
        max-width: 18ch;
        font-size: clamp(2rem, 6vw, 3rem);
    }

    #banner-inquiry .banner-side-column {
        grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1fr);
        align-items: stretch;
        width: 100%;
    }

    #banner-inquiry .banner-video video {
        height: 100%;
        max-height: 210px;
    }
}

@media (max-width: 640px) {
    #banner-inquiry.first.section.backgroung-image {
        min-height: auto;
        padding-top: 12px !important;
        padding-bottom: 14px;
    }

    #banner-inquiry .banner-content {
        gap: 8px;
    }

    #banner-inquiry .banner-content .message {
        order: 1;
        gap: 7px;
        padding: 12px;
    }

    #banner-inquiry .banner-content .message h1 {
        max-width: 18ch;
        font-size: clamp(1.6rem, 7.4vw, 2.05rem);
        line-height: 1;
    }

    #banner-inquiry .banner-tagline {
        font-size: 0.64rem;
        letter-spacing: 0.12em;
    }

    #banner-inquiry .message p {
        font-size: 0.78rem;
        line-height: 1.32;
    }

    #banner-inquiry .hero-actions {
        flex-wrap: nowrap;
    }

    #banner-inquiry .button-primary,
    #banner-inquiry .button-secondary {
        flex: 1 1 0;
        width: auto;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    #banner-inquiry .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    #banner-inquiry .hero-stat {
        padding: 7px;
        border-radius: 12px;
    }

    #banner-inquiry .hero-stat strong {
        font-size: 0.7rem;
        line-height: 1.16;
    }

    #banner-inquiry .hero-stat span {
        margin-top: 4px;
        font-size: 0.58rem;
        line-height: 1.18;
    }

    #banner-inquiry .banner-side-column {
        order: 2;
        grid-template-columns: minmax(104px, 0.6fr) minmax(0, 1fr);
        gap: 8px;
    }

    #banner-inquiry .banner-video {
        order: 0;
    }

    #banner-inquiry .banner-video video {
        height: 100%;
        max-height: 150px;
        border-radius: 16px;
    }

    #banner-inquiry .hero-panel-card {
        padding: 12px;
        border-radius: 16px;
    }

    #banner-inquiry .hero-panel-header h2 {
        font-size: 1.05rem;
    }

    #banner-inquiry .hero-panel-text {
        display: block;
        font-size: 0.64rem;
        line-height: 1.2;
    }

    #banner-inquiry .hero-panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    #banner-inquiry .hero-panel-links a {
        min-height: 32px;
        padding-inline: 10px;
        font-size: 0.75rem;
    }
}

/* About section balance */
.intro-section {
    padding-top: clamp(0px, 1vw, 12px);
    scroll-margin-top: calc(var(--header-offset) + 12px);
}

.intro-shell {
    padding: clamp(0px, 1vw, 12px) 0 clamp(8px, 2vw, 22px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.intro-layout {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(320px, 360px) minmax(250px, 280px);
    align-items: start;
    gap: clamp(14px, 1.8vw, 22px);
}

.welcome-image {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 360px;
    flex: initial;
    justify-content: flex-end;
    justify-self: end;
}

.welcome-image img,
.welcome-image video,
.welcome-placeholder {
    width: 100%;
    max-width: 360px;
}

.intro-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
}

.featured-panel {
    grid-column: 3;
    grid-row: 1;
}

.intro-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(2.55rem, 4.2vw, 3.55rem);
    line-height: 1.04;
}

.intro-copy p {
    max-width: none;
    margin-bottom: 14px;
    font-size: 0.96rem;
    line-height: 1.6;
}

.point-card {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.point-card-item {
    width: auto;
    min-width: 0;
    min-height: 78px;
    padding: 10px 8px;
}

.point-card-icon {
    width: 34px;
    height: 34px;
}

.featured-panel {
    width: 100%;
    min-height: 430px;
    max-height: 460px;
    flex: initial;
    gap: 14px;
    padding: 18px 14px 14px;
    border-radius: 20px;
}

.featured-panel-header h2 {
    font-size: 1.35rem;
}

.featured-panel-badge {
    min-width: 50px;
    padding: 6px 11px;
}

.featured-panel-scroll {
    gap: 12px;
    padding-right: 4px;
}

.featured-post-card {
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
}

.featured-post-primary img {
    width: min(100%, 155px);
    height: 120px;
    border-radius: 12px;
}

.featured-post-copy h3 {
    margin-bottom: 7px;
    font-size: 0.92rem;
}

.featured-post-copy p {
    font-size: 0.86rem;
    line-height: 1.48;
}

.featured-socials {
    padding-top: 12px;
}

.featured-social-links {
    gap: 8px;
    margin-top: 10px;
}

.featured-social-links a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
}

@media (max-width: 940px) {
    .intro-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .intro-copy,
    .welcome-image,
    .point-card,
    .featured-panel {
        grid-column: 1;
    }

    .intro-copy {
        grid-row: 1;
    }

    .welcome-image {
        max-width: 380px;
        grid-row: 2;
        justify-self: start;
    }

    .point-card {
        grid-row: 3;
        margin-top: 0;
    }

    .welcome-image img,
    .welcome-image video,
    .welcome-placeholder {
        max-width: 380px;
    }

    .featured-panel {
        grid-row: 4;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .point-card {
        grid-template-columns: 1fr;
    }

    .point-card-item {
        width: min(100%, 180px);
    }
}

/* Footer legal popovers must stay inside the viewport. */
.footer-legal,
.footer-legal-item {
    max-width: 100%;
    overflow: visible;
}

.footer-legal-card {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
}

.footer-legal-item:last-child .footer-legal-card {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.footer-legal-item:last-child .footer-legal-card::after {
    left: auto;
    right: 28px;
}

.footer-legal-item:last-child:hover .footer-legal-card,
.footer-legal-item:last-child:focus-within .footer-legal-card {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .footer-bottom {
        align-items: stretch;
    }

    .footer-legal {
        position: relative;
        width: 100%;
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .footer-legal-item {
        position: static;
    }

    .footer-legal-label {
        white-space: normal;
    }

    .footer-legal-card {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 32px));
        transform: translateY(10px);
    }

    .footer-legal-card::after {
        left: 24px;
        right: auto;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateY(0);
    }

    .footer-legal-item:last-child .footer-legal-card {
        left: auto;
        right: 0;
        transform: translateY(10px);
    }

    .footer-legal-item:last-child .footer-legal-card::after {
        left: auto;
        right: 28px;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:last-child:hover .footer-legal-card,
    .footer-legal-item:last-child:focus-within .footer-legal-card {
        transform: translateY(0);
    }
}

/* Balanced cool theme polish */
:root {
    --page-bg: #edf8fa;
    --header-bg: #10272f;
    --header-border: rgba(151, 226, 229, 0.22);
    --text-light: #f7fcfd;
    --muted-light: #b8d5d8;
    --accent: #31d4dc;
    --accent-deep: #0f7f8c;
    --accent-soft: #d9f6f7;
    --ink: #102a33;
    --ink-soft: #4d6870;
    --surface: #f8fcfc;
    --surface-strong: #e6f3f4;
    --surface-elevated: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(23, 76, 87, 0.14);
    --panel-dark: #10272f;
    --panel-border: rgba(188, 239, 241, 0.2);
    --shadow-soft: 0 16px 34px rgba(19, 54, 62, 0.1);
    --shadow-strong: 0 26px 56px rgba(15, 43, 51, 0.16);
    --text-muted: var(--ink-soft);
    --hero-tint: rgba(8, 34, 43, 0.56);
    --hero-fallback-a: #7fd7de;
    --hero-fallback-b: #2d8d99;
}

body {
    background: #f8fbfb;
    color: var(--ink);
}

.site-header,
.site-footer {
    background:
        linear-gradient(135deg, rgba(16, 39, 47, 0.98), rgba(23, 59, 66, 0.98));
    border-color: var(--header-border);
    box-shadow: 0 12px 30px rgba(5, 22, 28, 0.18);
}

.site-header {
    background: linear-gradient(0deg, rgb(0 0 0 / 98%), rgb(16 57 65 / 98%));
}

.site-footer {
    background: #282a2d;
}

.brand-title,
.footer-brand {
    color: #f9feff;
}

.brand-accent,
.site-nav a:hover,
.footer-links a:hover,
.footer-contact-list a:hover {
    color: #7ce8ea;
}

.site-nav a::after {
    background: linear-gradient(90deg, #7ce8ea, #d8fbfb);
}

.search-form {
    background: rgba(247, 253, 253, 0.96);
    border: 1px solid rgba(158, 211, 217, 0.72);
}

.search-form input {
    color: var(--ink);
}

.dropdown-content {
    background: #282a2d;
    border-color: rgba(124, 232, 234, 0.16);
    box-shadow: 0 20px 44px rgba(4, 20, 26, 0.28);
}

.first.section.backgroung-image::before {
    background: rgba(255, 255, 255, 0.18);
}

.banner-content .message,
#banner-inquiry .banner-content .message {
    background:
        linear-gradient(145deg, rgba(12, 42, 50, 0.88), rgba(16, 68, 76, 0.68));
    border-color: rgba(209, 250, 252, 0.2);
    box-shadow: 0 24px 52px rgba(8, 31, 39, 0.24);
}

.banner-tagline,
.section-kicker,
.overview-label {
    color: var(--accent-deep);
}

.banner-content .message .banner-tagline,
.hero-panel-header .section-kicker {
    color: #aaf6f6;
}

.button-primary,
.Inquire,
.training-enroll-button,
.contact-message-action {
    background: linear-gradient(135deg, #2fcbd3 0%, #138c9b 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(19, 140, 155, 0.22);
}

.button-primary:hover,
.Inquire:hover,
.training-enroll-button:hover,
.contact-message-action:hover {
    background: linear-gradient(135deg, #45dfe4 0%, #159cab 100%);
    box-shadow: 0 18px 34px rgba(19, 140, 155, 0.3);
}

.button-secondary {
    background: rgba(243, 253, 253, 0.14);
    border-color: rgba(220, 253, 253, 0.42);
}

.hero-stat,
.hero-panel-links a {
    background: rgba(247, 253, 253, 0.12);
    border-color: rgba(207, 248, 249, 0.2);
}

.hero-panel-card,
.contact-info-card,
.training-why {
    background:
        linear-gradient(150deg, #153943 0%, #102a33 58%, #0b1e29 100%);
    border-color: rgba(178, 236, 239, 0.18);
}

.services-shell-card,
.training-shell-card,
.contact-shell-card,
.project-showcase-shell {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 246, 247, 0.94));
    border-color: var(--surface-border);
    box-shadow: var(--shadow-strong);
}

.intro-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.overview-card,
.service-overview-card,
.service-card,
.training-card,
.contact-form-card,
.office-hours-card,
.featured-post-card,
.point-card-item {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(23, 76, 87, 0.13);
    box-shadow: var(--shadow-soft);
}

.service-card:hover,
.training-card:hover,
.featured-post-card:hover,
.point-card-item:hover {
    border-color: rgba(49, 212, 220, 0.36);
    box-shadow: 0 18px 38px rgba(19, 140, 155, 0.14);
}

.intro-copy h1,
.project-showcase-title,
.section-heading h2,
.training-copy h1,
.contact-intro h2,
.overview-card h3,
.service-overview-card h3,
.service-card h4,
.training-card h3,
.contact-card h3 {
    color: var(--ink);
}

.intro-copy p,
.section-heading p,
.training-copy p,
.contact-intro p,
.project-showcase-lead,
.overview-card p:last-child,
.service-overview-card p:last-child,
.service-card p,
.training-card p,
.featured-post-copy p {
    color: var(--ink-soft);
}

.featured-panel {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(231, 246, 247, 0.92));
    border-color: rgba(23, 76, 87, 0.14);
    box-shadow: var(--shadow-strong);
}

.featured-panel-badge,
.point-card-icon,
.contact-icon {
    background: rgba(49, 212, 220, 0.14);
    color: var(--accent-deep);
}

.featured-social-links a,
.featured-post-link,
.featured-post-toggle {
    color: var(--accent-deep);
}

.project-carousel {
    background:
        linear-gradient(135deg, rgba(16, 45, 53, 0.96) 0%, rgba(10, 28, 39, 0.98) 100%);
    border-color: rgba(214, 251, 252, 0.2);
    box-shadow: 0 28px 54px rgba(5, 22, 28, 0.34);
}

.project-carousel::after {
    opacity: 0.42;
    filter: saturate(0.82);
}

.carousel-slide.active img {
    border-color: rgba(124, 232, 234, 0.56);
    box-shadow: 0 20px 36px rgba(49, 212, 220, 0.22), 0 10px 20px rgba(0, 0, 0, 0.42);
}

.carousel-button,
.view-more-link {
    background: rgba(247, 253, 253, 0.12);
    border-color: rgba(214, 251, 252, 0.28);
    color: #f7feff;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea,
.training-enroll input,
.training-enroll select,
.training-enroll textarea {
    background: #fbfefe;
    border-color: rgba(23, 76, 87, 0.18);
    color: var(--ink);
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus,
.training-enroll input:focus,
.training-enroll select:focus,
.training-enroll textarea:focus {
    border-color: rgba(49, 212, 220, 0.72);
    box-shadow: 0 0 0 4px rgba(49, 212, 220, 0.16);
}

.loader::after {
    background:
        radial-gradient(farthest-side, #7ce8ea 94%, #0000) top / 8px 8px no-repeat,
        conic-gradient(#0000 30%, #31d4dc);
}

.site-header .brand-tagline {
    color: #ffffff;
}

/* Carousel performance tuning */
.project-carousel {
    contain: layout paint;
}

.carousel-slide {
    backface-visibility: hidden;
    transition: transform 0.42s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.32s ease;
    will-change: transform, opacity;
}

.carousel-slide.prev,
.carousel-slide.next,
.carousel-slide.prev-outer,
.carousel-slide.next-outer,
.carousel-slide.active {
    filter: none;
}

.carousel-slide img {
    backface-visibility: hidden;
    transition: transform 0.32s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.project-name {
    transition: transform 0.32s ease, opacity 0.24s ease;
}

@media (hover: none), (max-width: 768px), (prefers-reduced-motion: reduce) {
    .project-carousel {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 18px 34px rgba(5, 22, 28, 0.26);
    }

    .project-carousel::after {
        animation: none;
        filter: none;
        opacity: 0.26;
        transform: none;
    }

    .carousel-slide.prev-outer,
    .carousel-slide.next-outer {
        display: none !important;
    }

    .carousel-container {
        perspective: none;
        transform-style: flat;
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        opacity: 0.46;
    }

    .carousel-slide img,
    .carousel-slide:not(.active) img,
    .carousel-slide.active img {
        -webkit-box-reflect: unset;
        filter: none;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    }

    .carousel-slide img:hover,
    .carousel-slide.active img:hover {
        transform: none;
    }

    .carousel-button,
    .view-more-link {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide,
    .carousel-slide img,
    .project-name,
    .carousel-button,
    .view-more-link {
        transition-duration: 0.01ms;
    }
}

.site-footer,
.site-footer p,
.site-footer span,
.site-footer a,
.site-footer h2,
.site-footer li,
.site-footer .footer-legal-label {
    color: #f5f5f5;
}

.site-footer .brand-accent,
.site-footer .footer-contact-icon,
.site-footer .footer-contact-icon svg,
.site-footer .footer-links a:hover,
.site-footer .footer-contact-list a:hover,
.site-footer .footer-legal-label:hover,
.site-footer .footer-legal-item:hover .footer-legal-label,
.site-footer .footer-legal-item:focus-within .footer-legal-label {
    color: #ffffff;
}

.site-footer .footer-contact-icon {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.contact-info-card,
.contact-info-card h3,
.contact-info-card p,
.contact-info-card a,
.contact-info-card strong,
.contact-info-card span {
    color: #ffffff;
}

