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

:root {
    --navy: #10233f;
    --navy-2: #1b3a63;
    --blue: #167ac6;
    --blue-light: #38a3f0;
    --yellow: #ffc928;
    --text: #172b46;
    --muted: #748196;
    --background: #f4f7fb;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ANIMATED BACKGROUND */

.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 85% -10%, #e1f0fd 0%, transparent 60%),
        radial-gradient(900px 500px at -10% 110%, #fff4d1 0%, transparent 60%),
        var(--background);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}

.orb-1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #8cc8f5, transparent 70%);
    top: -120px;
    left: -100px;
    animation: floatOne 18s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffe08a, transparent 70%);
    bottom: -120px;
    right: -80px;
    animation: floatTwo 22s ease-in-out infinite;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #a9b9f5, transparent 70%);
    top: 40%;
    left: 55%;
    opacity: 0.35;
    animation: floatThree 26s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 35, 63, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 35, 63, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    animation: gridDrift 30s linear infinite;
}

@keyframes floatOne {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(90px, 70px) scale(1.15); }
}

@keyframes floatTwo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-100px, -60px) scale(1.1); }
}

@keyframes floatThree {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-70px, 80px) scale(1.2); }
}

@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 46px 46px, 46px 46px; }
}

.page-wrapper {
    max-width: 1250px;
    width: 90%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* HEADER */

.header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(16, 35, 63, 0.09);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s var(--ease) both;
}

/* animated accent line under the header */
.header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 140px;
    background: linear-gradient(90deg, var(--yellow), var(--blue));
    border-radius: 2px;
    animation: lineSweep 5s ease-in-out infinite;
}

@keyframes lineSweep {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50%      { transform: translateX(calc(min(1250px, 90vw) - 140px)); opacity: 0.6; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* Company logo (replaces the yellow "G" box) */
.brand-logo {
    height: 48px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s var(--ease), filter 0.4s ease;
    animation: logoPop 1s var(--ease) 0.15s both;
}

.brand:hover .brand-logo {
    transform: rotate(-4deg) scale(1.08);
    filter: drop-shadow(0 6px 14px rgba(22, 122, 198, 0.3));
}

@keyframes logoPop {
    from { opacity: 0; transform: scale(0.6) rotate(-12deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

.brand-name {
    display: flex;
    flex-direction: column;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 21px;
}

.brand-name small {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
}

.header-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--navy-2);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(16, 35, 63, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* HERO */

.hero {
    text-align: center;
    padding: 85px 15px 55px;
}

.hero > * {
    animation: fadeUp 0.9s var(--ease) both;
}

.hero-tag { animation-delay: 0.2s; }
.hero h1  { animation-delay: 0.35s; }
.hero p   { animation-delay: 0.5s; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #167ac6;
    background: linear-gradient(180deg, #ffffff, #e3f1fc);
    border: 1px solid #cfe6f8;
    padding: 9px 17px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 18px rgba(22, 122, 198, 0.12);
}

/* live pulsing dot */
.hero-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 0 rgba(22, 122, 198, 0.6);
    animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(22, 122, 198, 0.55); }
    100% { box-shadow: 0 0 0 10px rgba(22, 122, 198, 0); }
}

.hero h1 {
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.15;
    margin-top: 25px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero h1 span {
    background: linear-gradient(100deg, var(--blue), var(--blue-light), #1b5fa8, var(--blue));
    background-size: 250% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    animation: gradientFlow 7s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero p {
    max-width: 550px;
    margin: 18px auto 0;
    line-height: 1.7;
    font-size: 15px;
    color: var(--muted);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* APPLICATION CARDS */

.application-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 920px;
    width: 100%;
    margin: 0 auto 65px;
}

.application-card {
    --accent: var(--blue);
    --accent-soft: rgba(22, 122, 198, 0.14);
    --mx: 50%;
    --my: 0%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 310px;
    padding: 30px;
    border: 1px solid #e4eaf1;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(24, 48, 78, 0.05);
    animation: cardIn 0.9s var(--ease) both;
    transition: transform 0.35s var(--ease),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.sim-card     { animation-delay: 0.65s; }
.geotech-card {
    animation-delay: 0.8s;
    --accent: #e0a800;
    --accent-soft: rgba(255, 201, 40, 0.22);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(45px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* cursor-following spotlight */
.application-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(320px circle at var(--mx) var(--my), var(--accent-soft), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* top accent bar that grows on hover */
.application-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.application-card:hover,
.application-card:focus-visible {
    transform: translateY(-9px);
    box-shadow: 0 24px 50px rgba(24, 48, 78, 0.16);
    border-color: #a7cde9;
    outline: none;
}

.application-card:hover::before,
.application-card:focus-visible::before {
    opacity: 1;
}

.application-card:hover::after,
.application-card:focus-visible::after {
    transform: scaleX(1);
}

.application-card:active {
    transform: translateY(-4px) scale(0.99);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.application-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    position: relative;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

/* soft ring pulse around the icon */
.application-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid currentColor;
    opacity: 0;
    animation: iconRing 3s ease-out infinite;
}

.geotech-icon::after { animation-delay: 1.2s; }

@keyframes iconRing {
    0%   { transform: scale(1);   opacity: 0.4; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.application-card:hover .application-icon {
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 10px 22px rgba(24, 48, 78, 0.15);
}

.application-icon svg {
    width: 31px;
    height: 31px;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.sim-icon {
    background: linear-gradient(135deg, #e7f3ff, #cfe7fc);
    color: #167ac6;
}

.geotech-icon {
    background: linear-gradient(135deg, #fff5d9, #ffe8a6);
    color: #c18a00;
}

.card-number {
    color: #b8c2ce;
    font-size: 13px;
    font-weight: 800;
    transition: color 0.3s ease, transform 0.3s ease;
}

.application-card:hover .card-number {
    color: var(--accent);
    transform: scale(1.15);
}

.card-content {
    margin: 28px 0;
}

.card-category {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--blue);
}

.card-content h2 {
    font-size: 23px;
    margin: 10px 0;
    color: var(--navy);
    transition: color 0.3s ease;
}

.application-card:hover .card-content h2 {
    color: var(--blue);
}

.card-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    max-width: 350px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #edf0f4;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
}

.card-footer > span:first-child {
    transition: transform 0.3s var(--ease);
}

.application-card:hover .card-footer > span:first-child {
    transform: translateX(4px);
}

.arrow {
    font-size: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf4fc;
    transition: transform 0.3s var(--ease),
                background 0.3s ease,
                color 0.3s ease;
}

.application-card:hover .arrow {
    transform: translate(3px, -3px);
    background: var(--blue);
    color: #fff;
}

/* FOOTER */

.footer {
    margin-top: auto;
    border-top: 1px solid rgba(16, 35, 63, 0.09);
    padding: 23px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--muted);
    font-size: 11px;
    animation: fadeUp 0.9s var(--ease) 1s both;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .application-container {
        gap: 20px;
    }

    .application-card {
        padding: 26px;
    }
}

@media (max-width: 700px) {
    .page-wrapper {
        width: 92%;
    }

    .header {
        height: 80px;
    }

    .brand-logo {
        height: 40px;
        max-width: 80px;
    }

    .brand-name {
        font-size: 18px;
    }

    .header-label {
        font-size: 9px;
        padding: 6px 11px;
    }

    .hero {
        padding: 60px 5px 40px;
    }

    .application-container {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }

    .application-card {
        min-height: 270px;
        padding: 24px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .header-label {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* touch devices: no sticky hover lift */
@media (hover: none) {
    .application-card:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(24, 48, 78, 0.05);
    }
}

/* ACCESSIBILITY: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
