/* =========================================================
   AetherCore Technologies — site stylesheet
   Brand palette derived from the AetherCore logo (navy + blue)
   ========================================================= */

:root {
    --ac-navy: #0b1c3d;
    --ac-navy-dark: #071227;
    --ac-blue: #2f6feb;
    --ac-blue-light: #56a6ff;
    --ac-gray: #6c7686;
    --ac-gray-light: #f4f7fc;
    --ac-border: #e4e9f2;
    --ac-white: #ffffff;

    --ac-font-heading: 'Poppins', sans-serif;
    --ac-font-body: 'Inter', sans-serif;

    --ac-radius: 14px;
    --ac-shadow: 0 10px 30px rgba(11, 28, 61, 0.08);
    --ac-shadow-hover: 0 16px 40px rgba(11, 28, 61, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ac-font-body);
    color: var(--ac-navy);
    background-color: var(--ac-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ac-font-heading);
    font-weight: 700;
    color: var(--ac-navy);
}

a {
    text-decoration: none;
    transition: color .2s ease;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--ac-navy);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 8px;
    z-index: 2000;
}
.skip-link:focus {
    top: 1rem;
}

/* ---------- Buttons ---------- */
.ac-btn-primary {
    background: linear-gradient(135deg, var(--ac-blue) 0%, var(--ac-navy) 100%);
    color: #fff !important;
    border: none;
    padding: .65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .2s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.ac-btn-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--ac-shadow-hover);
}

.ac-btn-outline {
    background: transparent;
    color: var(--ac-navy) !important;
    border: 1.5px solid var(--ac-navy);
    padding: .6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s ease;
}
.ac-btn-outline:hover {
    background: var(--ac-navy);
    color: #fff !important;
}

.ac-btn-light {
    background: #fff;
    color: var(--ac-navy) !important;
    padding: .65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s ease;
}
.ac-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--ac-shadow-hover);
}

/* ---------- Topbar ---------- */
.ac-topbar {
    background: var(--ac-navy-dark);
    color: #cfd8ea;
    font-size: .85rem;
    padding: .45rem 0;
}
.ac-topbar a {
    color: #cfd8ea;
}
.ac-topbar a:hover {
    color: var(--ac-blue-light);
}
.ac-topbar-info span {
    margin-right: 1.5rem;
}
.ac-topbar-social a {
    margin-left: .9rem;
    font-size: .95rem;
}

/* ---------- Navbar ---------- */
.ac-navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(11, 28, 61, .06);
    padding: .5rem 0;
    z-index: 1030;
    transition: box-shadow .25s ease, padding .25s ease;
}
.ac-navbar.is-scrolled {
    box-shadow: 0 10px 30px rgba(11, 28, 61, .12);
    padding: .3rem 0;
}
.ac-navbar .navbar-brand {
    padding: 0;
}
.ac-navbar .navbar-brand img {
    height: 58px;
    width: auto;
    transition: height .25s ease;
}
.ac-navbar.is-scrolled .navbar-brand img {
    height: 48px;
}
.ac-navbar .nav-link {
    color: var(--ac-navy);
    font-weight: 500;
    padding: .5rem 1rem !important;
    position: relative;
}
.ac-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--ac-blue), var(--ac-blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 2px;
}
.ac-navbar .nav-link.active::after,
.ac-navbar .nav-link:hover::after {
    transform: scaleX(1);
}
.ac-navbar .nav-link.active,
.ac-navbar .nav-link:hover {
    color: var(--ac-blue);
}
.ac-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--ac-shadow);
    border-radius: 12px;
    padding: .5rem;
}
.ac-navbar .dropdown-item {
    border-radius: 8px;
    padding: .55rem .9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.ac-navbar .dropdown-item:hover {
    background: var(--ac-gray-light);
    color: var(--ac-blue);
}

/* ---------- Hero ---------- */
.ac-hero {
    background: radial-gradient(circle at 80% 20%, #123073 0%, var(--ac-navy) 45%, var(--ac-navy-dark) 100%);
    color: #fff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
.ac-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(86,166,255,.15) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
}
.ac-hero .ac-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
    z-index: 1;
    animation: acFloat 9s ease-in-out infinite;
}
.ac-hero .ac-blob-1 {
    width: 340px;
    height: 340px;
    background: var(--ac-blue);
    top: -120px;
    right: 8%;
}
.ac-hero .ac-blob-2 {
    width: 260px;
    height: 260px;
    background: var(--ac-blue-light);
    bottom: -100px;
    left: 4%;
    animation-delay: 2.5s;
}
@keyframes acFloat {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-25px) translateX(15px) scale(1.08); }
}
.ac-hero .container {
    position: relative;
    z-index: 2;
}
.ac-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--ac-blue-light);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.ac-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.ac-hero p.lead {
    color: #c8d3ea;
    font-size: 1.1rem;
    max-width: 620px;
    margin-bottom: 2rem;
}
.ac-hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.15);
}
.ac-hero-stats .stat-label {
    color: #9fb0d4;
    font-size: .9rem;
    font-weight: 500;
}
.ac-hero-visual {
    position: relative;
    text-align: center;
}
.ac-hero-visual .glow-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--ac-radius);
    padding: 2rem;
    backdrop-filter: blur(6px);
}

/* ---------- Page header (inner pages) ---------- */
.ac-page-header {
    background: linear-gradient(135deg, var(--ac-navy) 0%, var(--ac-navy-dark) 100%);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.ac-page-header h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-bottom: .6rem;
}
.ac-page-header p {
    color: #c8d3ea;
    max-width: 640px;
    margin: 0 auto;
}
.ac-breadcrumb {
    color: #9fb0d4;
    font-size: .9rem;
    margin-bottom: 1rem;
}
.ac-breadcrumb a {
    color: #c8d3ea;
}
.ac-breadcrumb a:hover {
    color: #fff;
}

/* ---------- Sections ---------- */
.ac-section {
    padding: 90px 0;
}
.ac-section-sm {
    padding: 60px 0;
}
.ac-section-alt {
    background: var(--ac-gray-light);
}
.ac-eyebrow {
    color: var(--ac-blue);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.ac-section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: .6rem 0 1rem;
}
.ac-section-text {
    color: var(--ac-gray);
    font-size: 1.02rem;
}

/* ---------- Cards ---------- */
.ac-card {
    background: #fff;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 2rem 1.7rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ac-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ac-shadow-hover);
    border-color: transparent;
}
.ac-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(47,111,235,.12), rgba(11,28,61,.12));
    color: var(--ac-blue);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}
.ac-card:hover .ac-card-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--ac-blue), var(--ac-navy));
    color: #fff;
}
.ac-card h5 {
    margin-bottom: .6rem;
    font-size: 1.15rem;
}
.ac-card p {
    color: var(--ac-gray);
    font-size: .96rem;
    margin-bottom: 1rem;
}
.ac-card .ac-card-link {
    color: var(--ac-navy);
    font-weight: 600;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.ac-card .ac-card-link:hover {
    color: var(--ac-blue);
    gap: .6rem;
}

/* Feature list rows (used on product/service pages) */
.ac-feature-row {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--ac-border);
}
.ac-feature-row:last-child {
    border-bottom: none;
}
.ac-feature-row .ac-feature-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ac-gray-light);
    color: var(--ac-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.ac-feature-row h6 {
    margin-bottom: .25rem;
}
.ac-feature-row p {
    color: var(--ac-gray);
    font-size: .93rem;
    margin-bottom: 0;
}

/* ---------- Stat tiles ---------- */
.ac-stat-tile {
    text-align: center;
}
.ac-stat-tile .num {
    font-family: var(--ac-font-heading);
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--ac-navy);
}
.ac-stat-tile .label {
    color: var(--ac-gray);
    font-size: .9rem;
}

/* ---------- CTA banner ---------- */
.ac-cta {
    background: linear-gradient(120deg, var(--ac-navy) 0%, #163a7d 60%, var(--ac-blue) 130%);
    border-radius: 24px;
    color: #fff;
    padding: 3.2rem 2.5rem;
}
.ac-cta h2 {
    color: #fff;
}
.ac-cta p {
    color: #c8d3ea;
}

/* ---------- Values / process list ---------- */
.ac-num-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ac-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--ac-font-heading);
}

/* ---------- Forms ---------- */
.ac-form-card {
    background: #fff;
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    padding: 2.4rem;
}
.ac-form-card .form-control,
.ac-form-card .form-select {
    border-radius: 10px;
    border: 1px solid var(--ac-border);
    padding: .7rem 1rem;
    font-size: .95rem;
}
.ac-form-card .form-control:focus,
.ac-form-card .form-select:focus {
    border-color: var(--ac-blue);
    box-shadow: 0 0 0 .2rem rgba(47,111,235,.15);
}
.ac-form-card label {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem;
}

.ac-contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.6rem;
}
.ac-contact-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(47,111,235,.1);
    color: var(--ac-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.ac-contact-info-item h6 {
    margin-bottom: .2rem;
}
.ac-contact-info-item p, .ac-contact-info-item a {
    color: var(--ac-gray);
    margin-bottom: 0;
    font-size: .95rem;
}

/* ---------- Job listing ---------- */
.ac-job-card {
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.6rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.ac-job-card:hover {
    box-shadow: var(--ac-shadow);
    border-color: transparent;
}
.ac-job-card .badge-dept {
    background: var(--ac-gray-light);
    color: var(--ac-navy);
    font-weight: 600;
    font-size: .78rem;
    padding: .35rem .7rem;
    border-radius: 50px;
}

/* ---------- Footer ---------- */
.ac-footer {
    background: var(--ac-navy-dark);
    color: #a9b6d3;
    padding: 70px 0 25px;
}
.ac-footer-logo {
    height: 56px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ac-footer-text {
    font-size: .92rem;
    line-height: 1.7;
    color: #97a5c6;
}
.ac-footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.1rem;
    font-size: 1rem;
}
.ac-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-footer-links li {
    margin-bottom: .7rem;
}
.ac-footer-links a {
    color: #a9b6d3;
    font-size: .92rem;
}
.ac-footer-links a:hover {
    color: var(--ac-blue-light);
}
.ac-footer-contact li {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}
.ac-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    margin-right: .5rem;
}
.ac-footer-social a:hover {
    background: var(--ac-blue);
}
.ac-footer-divider {
    border-color: rgba(255,255,255,.1);
    margin: 2.5rem 0 1.5rem;
}
.ac-footer-bottom {
    font-size: .85rem;
    color: #7f8db3;
}

/* ---------- Back to top ---------- */
.ac-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ac-navy);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--ac-shadow-hover);
    z-index: 1000;
    transition: background .2s ease;
}
.ac-back-to-top:hover {
    background: var(--ac-blue);
}
.ac-back-to-top.show {
    display: flex;
}

/* ---------- Utilities ---------- */
.ac-divider-sm {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ac-blue), var(--ac-navy));
    margin-bottom: 1rem;
}
.ac-text-gradient {
    background: linear-gradient(90deg, var(--ac-blue) 0%, var(--ac-blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Scroll reveal ---------- */
.ac-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.ac-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .ac-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .ac-navbar .navbar-collapse {
        padding-top: 1rem;
    }
    .ac-navbar .nav-item.ms-lg-3 {
        margin-top: .6rem;
    }
    .ac-hero {
        padding: 70px 0 60px;
        text-align: center;
    }
    .ac-hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }
    .ac-hero-visual {
        margin-top: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .ac-section {
        padding: 60px 0;
    }
    .ac-section-sm {
        padding: 45px 0;
    }
    .ac-cta {
        padding: 2.2rem 1.5rem;
        text-align: center;
    }
    .ac-job-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ac-form-card {
        padding: 1.6rem;
    }
}
