/* =========================================================
   SYDI AI — Technology Services Page Stylesheet
   ========================================================= */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #000515;
    --bg-navy: #000515;
    --bg-navy-2: #000515;
    --text-white: #ffffff;
    --text-mute: #b8c4dc;
    --text-dim: #8a97b3;
    --accent-cyan: #2eb8ff;
    --accent-cyan-2: #22a7f0;
    --accent-cyan-soft: rgba(46, 184, 255, 0.55);
    --card-border: rgba(46, 184, 255, 0.28);
    --card-bg: rgba(2, 14, 38, 0.55);
    --header-h: 64px;
}

/* Reveal animation classes */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

html, body { height: 100%; }

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #000515;
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 14, 38, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 184, 255, 0.08);
    transition: background .25s ease;
}

.site-header.scrolled {
    background: rgba(2, 14, 38, 0.96);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.brand-sydi { color: #ffffff; }
.brand-ai { color: var(--accent-cyan); }

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 34px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mute);
    padding: 6px 0;
    position: relative;
    transition: color .2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width .25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: inherit;
}

.btn-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform .22s ease;
}

.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
    background: var(--accent-cyan);
    color: #041022;
    border-color: var(--accent-cyan);
}

.btn-primary:hover {
    background: #4dc7ff;
    border-color: #4dc7ff;
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(46, 184, 255, 0.06);
}

.btn-cta { padding: 10px 20px; font-size: 13px; flex-shrink: 0; }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all .3s;
}
.mobile-toggle span:nth-child(1) { top: 2px; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { top: 20px; }

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left { max-width: 580px; }

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 22px;
}

.hero-title .accent {
    color: var(--accent-cyan);
    display: inline-block;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-mute);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* ENGINEER • MODERNISE • OPERATE pill */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 8px;
    border: 1.5px solid var(--accent-cyan-soft);
    border-radius: 999px;
    background: rgba(46, 184, 255, 0.06);
    box-shadow: none;
}

.pill-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    background: rgba(46, 184, 255, 0.14);
    padding: 4px;
    box-shadow: none;
    flex-shrink: 0;
    overflow: hidden;
}
.pill-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.4);
    filter: none;
}

.pill-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}
.pill-dot {
    color: var(--accent-cyan);
    opacity: 0.85;
}

/* ---------- Hero Right — Layered Globe Image ---------- */
.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-right-image {
    width: 100%;
    max-width: 720px;
    height: auto;
    object-fit: contain;
    filter: none;
}

/* ---------- Portfolio Section ---------- */
.portfolio {
    padding: 20px 0 40px;
    position: relative;
    z-index: 1;
}

.portfolio-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

.portfolio-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}

.portfolio-heading h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
}

.heading-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: none;
    position: relative;
    flex-shrink: 0;
}

.heading-dot::before,
.heading-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(46, 184, 255, 0.6));
}
.heading-dot::before { right: 100%; margin-right: 12px; background: linear-gradient(to left, rgba(46, 184, 255, 0.6), transparent); }
.heading-dot::after  { left:  100%; margin-left: 12px; }

.portfolio-heading .heading-dot:last-child::before { display: none; }
.portfolio-heading .heading-dot:first-child::after { display: none; }

/* Services grid (5 cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.service-card {
    position: relative;
    background: linear-gradient(180deg, rgba(2, 14, 38, 0.6), rgba(2, 14, 38, 0.6));
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 22px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    overflow: hidden;
    min-height: 210px;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(46, 184, 255, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: none;
}

.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    background: rgba(46, 184, 255, 0.12);
    padding: 6px;
    flex-shrink: 0;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
}

.service-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.4);
    filter: none;
}

.service-body { flex: 1; min-width: 0; }

.service-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.service-body p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-mute);
}

.service-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--accent-cyan-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent-cyan);
    transition: all .25s ease;
    background: rgba(2, 14, 38, 0.8);
    z-index: 3;
}

.service-card:hover .service-arrow {
    background: var(--accent-cyan);
    color: #041022;
    transform: translateX(3px);
}

/* ---------- Proof Bar ---------- */
.proof-bar {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr 1px 1fr;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(2, 14, 38, 0.35), rgba(2, 14, 38, 0.35));
}

.proof-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.proof-item:hover {
    background: rgba(46, 184, 255, 0.06);
    transform: translateY(-2px);
}

.proof-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.proof-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.6);
    filter: none;
}

.proof-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #ffffff;
    white-space: nowrap;
}

.proof-item:hover .proof-text {
    color: var(--accent-cyan);
}

.proof-divider {
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, transparent, rgba(46,184,255,0.35), transparent);
    justify-self: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .hero-title { font-size: 44px; }
    .hero-inner { padding: 0 40px; }
    .portfolio-inner { padding: 0 40px; }
    .nav-list { gap: 22px; }
    .header-inner { padding: 0 24px; }
    .service-card { padding: 16px 14px; min-height: 190px; }
    .service-body h3 { font-size: 14px; }
    .service-body p { font-size: 11.5px; }
}

@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .proof-divider { display: none; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-right { order: -1; }
    .portfolio-heading h2 { white-space: normal; }
    .heading-dot::before, .heading-dot::after { display: none; }
}

@media (max-width: 700px) {
    .services-grid { grid-template-columns: 1fr; }
    .proof-bar { grid-template-columns: 1fr; }
    .hero-title { font-size: 34px; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(2, 14, 38, 0.98);
        flex-direction: column;
        padding: 20px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .nav-list { flex-direction: column; gap: 14px; }
    .mobile-toggle { display: block; }
}
