* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0064AE;
    --primary-light: #0080d8;
    --primary-glow: rgba(0, 100, 174, 0.15);
    --surface: rgba(0, 100, 174, 0.07);
    --border: rgba(0, 100, 174, 0.15);
    --text: #0a1f3c;
    --text-muted: #5a7a9a;
    --white: #ffffff;
    --font: 'Montserrat', sans-serif;
}

html,
body {
    height: 100%;
    background: #ffffff;
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 100, 174, 0.08);
}

/* Logo area */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Logo image */
.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Fallback icon (hidden by default, JS shows if image fails) */
.logo-fallback {
    display: none;
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    animation: spin-slow 6s linear infinite;
}

.logo-text {
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
}

/* Hamburger */
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    border-radius: 6px;
    transition: background 0.2s;
}

.menu-icon:hover {
    background: var(--surface);
}

.menu-icon span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-icon.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Dropdown */
.nav-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 12px 30px rgba(0, 100, 174, 0.12);
}

.nav-menu.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: all;
}

.nav-menu a {
    padding: 12px 28px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--surface);
    padding-left: 36px;
}

/* ══════════════════════════════
   MAIN BOX
══════════════════════════════ */
.main-box {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 110px 24px 60px;
    background: #ffffff;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 100, 174, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 100, 174, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0;
    animation: float 8s ease-in-out infinite;
}

.orb1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -80px;
    left: -80px;
}

.orb2 {
    width: 400px;
    height: 400px;
    background: #00aaff;
    bottom: -60px;
    right: -60px;
    animation-delay: -4s;
}

/* ══════════════════════════════
   CONTENT
══════════════════════════════ */
.content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease both;
}

/* Gears */
.gear-wrap {
    position: relative;
    width: 100px;
    height: 90px;
    margin: 0 auto 28px;
}

.gear {
    position: absolute;
    line-height: 1;
}

.gear-big {
    top: 0;
    left: 0;
    font-size: 68px;
    color: var(--primary);
    animation: spin-slow 4s linear infinite;
}

.gear-small {
    top: 30px;
    left: 46px;
    font-size: 38px;
    color: var(--primary-light);
    animation: spin-slow 3s linear infinite reverse;
}

/* Brand pill */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.brand-logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--primary);
}

/* ══════════════════════════════
   HEADING — properly centered
══════════════════════════════ */
.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.title-under {
    font-size: clamp(2.8rem, 8vw, 5rem);
    color: var(--text);
    letter-spacing: -1px;
    display: block;
    width: 100%;
    text-align: center;
}

.title-maintenance {
    font-size: clamp(2.8rem, 8vw, 5rem);
    color: var(--primary);
    letter-spacing: -1px;
    display: block;
    width: 100%;
    text-align: center;
}

.sub-text {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 36px;
    padding: 0 8px;
}

/* Progress */
.progress-wrap {
    margin-bottom: 44px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 100, 174, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #0099e6);
    border-radius: 8px;
    animation: fillBar 2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 14px var(--primary-glow);
}

/* Contact */
.contact-section {
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.contact-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.contact-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.contact-card:hover {
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 100, 174, 0.25);
}

.contact-card:hover .contact-label,
.contact-card:hover .contact-value {
    color: var(--white);
}

.contact-card:hover .contact-icon {
    filter: brightness(10);
}

.contact-icon {
    font-size: 1.2rem;
    min-width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.contact-card:hover .contact-icon {
    background: var(--white);
    color: var(--primary);
    filter: none;
    transform: scale(1.08);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.contact-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

.contact-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s;
}

/* ══════════════════════════════
   KEYFRAMES
══════════════════════════════ */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-28px) scale(1.05);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    to {
        width: 78%;
    }
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

/* Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 0 24px;
    }

    .main-box {
        padding: 100px 20px 50px;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .title-under,
    .title-maintenance {
        font-size: clamp(2.4rem, 9vw, 3.5rem);
    }

    .contact-cards {
        gap: 12px;
    }

    .contact-card {
        min-width: 180px;
    }
}

/* Mobile large */
@media (max-width: 600px) {
    .navbar {
        padding: 0 16px;
        height: 62px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 30px;
    }

    .nav-menu {
        top: 62px;
    }

    .main-box {
        padding: 90px 16px 40px;
    }

    .gear-big {
        font-size: 56px;
    }

    .gear-small {
        font-size: 30px;
        top: 26px;
        left: 38px;
    }

    .gear-wrap {
        width: 82px;
        height: 74px;
    }

    .title-under,
    .title-maintenance {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -0.5px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-card {
        max-width: 100%;
        min-width: unset;
    }

    .sub-text {
        font-size: 0.9rem;
    }
}

/* Mobile small */
@media (max-width: 380px) {

    .title-under,
    .title-maintenance {
        font-size: 1.9rem;
    }

    .contact-card {
        padding: 14px 18px;
    }
}