:root {
    --bg-dark: #05080c;
    --bg-surface: #0a0e14;
    --primary: #00d4ee;
    --primary-muted: #0099aa;
    --secondary: #0055dd;
    --text-main: #efefef;
    --text-muted: #8a95a5;
    --text-dim: #5a6577;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9998;
}

/* ─── Utilities ─── */
.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ─── Navbar ─── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5, 8, 12, 0.95) 0%, rgba(5, 8, 12, 0) 100%);
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.navbar .logo .subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-nav {
    display: inline-block;
    padding: 0.7rem 2.2rem;
    background: var(--text-main);
    color: var(--bg-dark) !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s;
}

.btn-nav:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
}

.btn.shadow {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ─── Hero Slider ─── */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ─── Mobile Hero Slides ─── */
.bg-slide-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-slide-mobile.active {
    opacity: 1;
    z-index: 2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(270deg, rgba(5, 8, 12, 0.1) 0%, rgba(5, 8, 12, 0.85) 100%),
        linear-gradient(0deg, rgba(5, 8, 12, 0.6) 0%, transparent 40%);
}

/* ─── Hero Text ─── */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 10;
}

.hero-content h1,
.hero-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--text-main);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.hero-content .hero-subhead {
    margin-top: 1.4rem;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-content .hero-subhead { font-size: 1rem; margin-top: 1rem; }
}

/* ─── Bento Section ─── */
.bento-container {
    padding: 8rem 5%;
    background: var(--bg-dark);
}

.bento-header {
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.bento-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.bento-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.bento-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: none;
    transition: transform 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(60px);
}

.bento-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 212, 238, 0.08), inset 0 0 0 1px rgba(0, 212, 238, 0.15);
}

.large { grid-column: span 2; grid-row: span 2; }
.wide { grid-column: span 2; grid-row: span 1; }
.full { grid-column: span 4; grid-row: span 1; }

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 12, 0.95) 0%, rgba(5, 8, 12, 0.35) 50%, rgba(5, 8, 12, 0.05) 100%);
    pointer-events: none;
}

.large .bento-overlay {
    background: linear-gradient(to top, rgba(5, 8, 12, 0.95) 0%, rgba(5, 8, 12, 0.35) 50%, rgba(5, 8, 12, 0.05) 100%);
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
}

.bento-content .tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.bento-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 0.7rem;
    color: var(--text-main);
}

.large .bento-content h3 {
    font-size: 2.2rem;
    letter-spacing: -1px;
}

.bento-content p {
    font-size: 0.95rem;
    color: #9aa5b4;
    margin-bottom: 0;
    line-height: 1.5;
}

.large .bento-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* ─── Services Strip ─── */
.services-strip {
    padding: 0 5% 4rem;
    background: var(--bg-dark);
}

.services-strip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-block {
    display: flex;
    gap: 1.8rem;
    padding: 2.5rem;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.4s, border-color 0.4s;
    opacity: 0;
    transform: translateY(40px);
}

.service-block.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.service-block:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 238, 0.2);
    box-shadow: 0 20px 40px rgba(0, 212, 238, 0.06);
}

.service-accent {
    width: 3px;
    flex-shrink: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.service-block-content {
    flex: 1;
}

.service-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-block h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.service-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags span {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    letter-spacing: 0.3px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── CTA Section ─── */
.cta-section {
    padding: 0 5% 6rem;
    background: var(--bg-dark);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 3rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 212, 238, 0.08);
}

.cta-card.dark {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-card.dark .cta-label { color: var(--text-dim); }
.cta-card.dark h3 { color: var(--text-main); }
.cta-card.dark svg { color: var(--text-muted); }

.cta-card.light {
    background: var(--text-main);
}

.cta-card.light .cta-label { color: var(--text-muted); }
.cta-card.light h3 { color: var(--bg-dark); }
.cta-card.light svg { color: var(--bg-dark); }

.cta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cta-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.cta-card svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.cta-card:hover svg {
    transform: translateX(4px);
}

/* ─── Footer ─── */
footer {
    padding: 4rem 5% 2rem;
    background: #020305;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    height: 35px;
    width: auto;
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-muted);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-certs {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ─── Hamburger & Mobile Menu ─── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-content h1, .hero-content h2 { font-size: 3.5rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .full { grid-column: span 2; }
    .wide { grid-column: span 2; }
    .cta-card h3 { font-size: 1.5rem; }
    .services-strip-grid { grid-template-columns: 1fr; }
    .footer-links { gap: 2rem; }
}

@media (max-width: 768px) {
    .bg-slide { display: none !important; }
    .bg-slide-mobile { display: block; }
    .navbar { padding: 1.2rem 1.5rem; }
    .logo-img { height: 42px; }
    .navbar .logo .subtitle { font-size: 0.45rem; letter-spacing: 1px; }
    .hero-content h1, .hero-content h2 { font-size: 2.4rem; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .large, .wide, .full { grid-column: span 1; }
    .large { grid-row: span 1; }
    .cta-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Responsive backgrounds: each element sets --bg-mobile/--bg-tablet/--bg-desktop
   inline; this class picks the right variant per viewport breakpoint. */
.responsive-bg { background-image: var(--bg-mobile); }
@media (min-width: 769px)  { .responsive-bg { background-image: var(--bg-tablet); } }
@media (min-width: 1281px) { .responsive-bg { background-image: var(--bg-desktop); } }
