*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #0241a0;
    --blue-dark: #01317a;
    --blue-light: #1a5cc8;
    --blue-glow: rgba(2, 65, 160, 0.4);
    --white: #ffffff;
    --dark: #080e1c;
    --dark-2: #0d1528;
    --grey: #f4f7fb;
    --text: #1a2236;
    --text-muted: #677089;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* ─── NAVIGATION ─────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.4rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

nav.scrolled {
    background: rgba(8, 14, 28, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.9rem 2.5rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.65rem;
    color: var(--white);
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: font-size 0.35s ease;
}

nav.scrolled .nav-logo {
    font-size: 1.65rem;
}

a.nav-logo,
a.nav-logo:visited,
a.nav-logo:hover {
    color: var(--white);
    text-decoration: none;
}

.nav-logo em {
    color: #4d8cff;
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 0.55rem 1.35rem;
    border-radius: 4px;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-light) !important; }

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    background: var(--dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Layered radial glow */
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 65% 45%, rgba(2, 65, 160, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 35% 35% at 15% 75%, rgba(2, 65, 160, 0.18) 0%, transparent 55%);
}

/* Animated perspective grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(2, 65, 160, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 65, 160, 0.13) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: gridPan 24s linear infinite;
}

@keyframes gridPan {
    0%   { transform: translateY(0); }
    100% { transform: translateY(56px); }
}

/* Horizontal scan line */
.hero-scanline {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(26, 92, 200, 0.7) 40%, rgba(26, 92, 200, 0.7) 60%, transparent 95%);
    animation: scan 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scan {
    0%   { top: -1px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* Decorative side accent */
.hero-accent {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--blue) 30%, var(--blue-light) 70%, transparent);
    opacity: 0.6;
}

/* ─── HERO LOGO BACKGROUND ──────────────────────────── */
.hero-logo-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-logo-bg svg {
    width: 72%;
    max-width: 900px;
    min-width: 360px;
    opacity: 0.13;
}

.logo-path {
    fill: none;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.logo-play {
    animation: logoDrawOn 1.8s cubic-bezier(0.42, 0, 0.38, 1) 0.5s forwards;
}

.logo-wave {
    animation: logoDrawOn 2.4s cubic-bezier(0.42, 0, 0.38, 1) 1.6s forwards;
}

@keyframes logoDrawOn {
    to { stroke-dashoffset: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 9rem 2.5rem 5rem;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #4d8cff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #4d8cff;
}

h1.hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.2rem, 7vw, 7.5rem);
    line-height: 0.93;
    color: var(--white);
    letter-spacing: 0.025em;
    margin-bottom: 1.75rem;
    max-width: 820px;
}

h1.hero-headline .accent {
    color: #4d8cff;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.58);
    font-weight: 400;
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2.75rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.05);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.25);
}

/* ─── STATS BAR ──────────────────────────────────────── */
.stats-bar {
    background: var(--blue);
    padding: 2.25rem 2.5rem;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.75rem;
    color: var(--white);
    letter-spacing: 0.04em;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* ─── SHARED SECTION STYLES ──────────────────────────── */
section {
    padding: 6.5rem 2.5rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.9rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
}

.section-label.light { color: #4d8cff; }
.section-label.light::before { background: #4d8cff; }

h2.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.25rem);
    letter-spacing: 0.025em;
    line-height: 0.97;
    margin-bottom: 1.1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.78;
    max-width: 580px;
}

/* ─── SERVICES ───────────────────────────────────────── */
#services { background: var(--white); }

.services-header {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--grey);
    border-radius: 10px;
    padding: 2rem 1.75rem;
    border: 1.5px solid transparent;
    transition: border-color 0.28s, transform 0.28s, box-shadow 0.28s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: rgba(2, 65, 160, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(2, 65, 160, 0.1);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 50px; height: 50px;
    background: rgba(2, 65, 160, 0.09);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 1.3rem;
    transition: background 0.2s;
}

.service-card:hover .service-icon {
    background: rgba(2, 65, 160, 0.16);
}

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

h3.service-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.65rem;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.72;
    margin-bottom: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    background: rgba(2, 65, 160, 0.09);
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.22rem 0.55rem;
    border-radius: 3px;
}

/* ─── ABOUT ──────────────────────────────────────────── */
#about {
    background: var(--dark);
    color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: stretch;
}

#about h2.section-title { color: var(--white); }

.about-body {
    color: rgba(255,255,255,0.6);
    font-size: 0.975rem;
    line-height: 1.82;
    margin-bottom: 1.25rem;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.about-card {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    transition: background 0.25s, border-color 0.25s;
}

.about-card:hover {
    background: rgba(2, 65, 160, 0.22);
    border-color: rgba(2, 65, 160, 0.4);
}

.about-card-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(2, 65, 160, 0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d8cff;
}

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

.about-card-body { flex: 1; }

h4.about-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.about-card-text {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}

/* ─── CONTACT ────────────────────────────────────────── */
#contact { background: var(--grey); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

.contact-detail {
    margin-top: 2rem;
}

.contact-detail + .contact-detail { margin-top: 1.5rem; }

.contact-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.35rem;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-detail-value a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-detail-value a:hover { color: var(--blue); }

form { display: flex; flex-direction: column; gap: 0; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.1rem; }

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.4rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d4dcea;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: #aab2c4; }

input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(2, 65, 160, 0.12);
}

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

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23677089' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-submit {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
    margin-top: 0.4rem;
}

.form-submit:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.form-success svg {
    flex-shrink: 0;
    color: #16a34a;
    margin-top: 2px;
}

.form-success strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.form-success p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.form-error-banner {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #dc2626;
    margin-bottom: 1.25rem;
}

.form-error-banner a {
    color: #dc2626;
    font-weight: 600;
}

.field-error {
    display: block;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.3rem;
    min-height: 1em;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
    background: var(--dark);
    padding: 2.75rem 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.055);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

.footer-logo em {
    color: #4d8cff;
    font-style: normal;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-copy {
    color: rgba(255,255,255,0.25);
    font-size: 0.78rem;
}

/* ─── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { gap: 3rem; }
    .hero-logo-bg svg { width: 80%; opacity: 0.1; }
}

@media (max-width: 900px) {
    .hero-logo-bg svg { width: 90%; opacity: 0.08; }
    .hero-content { padding-top: 8rem; }
    .hero-tagline { max-width: 420px; }
}

@media (max-width: 860px) {
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

@media (max-width: 640px) {
    nav { padding: 1.1rem 1.5rem; }
    nav.scrolled { padding: 0.8rem 1.5rem; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }
    .hero-content { padding: 7.5rem 1.5rem 4rem; }
    .services-grid { grid-template-columns: 1fr; }
    .about-cards { grid-template-columns: 1fr; }
    section { padding: 4.5rem 1.5rem; }
    .stats-bar { padding: 1.75rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-logo-bg svg { width: 95%; min-width: 280px; }
}
