/* DoxServices — dark design system */

:root {
    --primary:      #0a2240;
    --secondary:    #1e4788;
    --accent:       #00b4d8;
    --glass-bg:     rgba(255,255,255,0.04);
    --glass-border: rgba(0,180,216,0.15);
    --transition:   all 0.35s ease;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; }

h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
header {
    background: rgba(6,21,40,0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,180,216,0.1);
}

.header-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }

.logo { display: flex; flex-direction: column; align-items: flex-start; font-size: 1.8rem; font-weight: 700; }
.logo .brandline { color: #fff; font-weight: 700; }
.logo .brandline span { color: var(--accent); }
.logo .tagline { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 30px; }
.nav-links a { color: rgba(255,255,255,0.75); font-weight: 500; font-size: 0.92rem; transition: color 0.25s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.cta-button {
    background: var(--accent);
    color: white !important;
    padding: 10px 26px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(0,180,216,0.25);
    display: inline-block;
}
.cta-button:hover { background: #00c8f0; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,180,216,0.4); }
.cta-button::after { display: none; }

/* Nav Contact Us — cyan text only, no button */
.nav-accent {
    color: var(--accent) !important;
    font-weight: 700;
    transition: color 0.25s, text-shadow 0.25s;
}
.nav-accent:hover {
    color: #00d8ff !important;
    text-shadow: 0 0 12px rgba(0,180,216,0.5);
}
.nav-accent::after { display: none !important; }

.secondary-button {
    background: transparent;
    color: white;
    padding: 10px 26px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}
.secondary-button:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.hamburger { display: none; cursor: pointer; }
.hamburger svg { width: 24px; height: 24px; fill: white; }

/* ── Page Hero + Parallax ── */
.page-hero {
    padding: 160px 0 90px;
    background: linear-gradient(160deg, #071a36 0%, var(--secondary) 55%, #071a36 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 769px) {
    .page-hero { background-attachment: fixed; }
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,180,216,0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(30,71,136,0.25) 0%, transparent 50%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='%2300b4d8' fill-opacity='0.06' d='M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,224C672,235,768,181,864,181.3C960,181,1056,235,1152,229.3C1248,224,1344,160,1392,128L1440,96L1440,320L0,320Z'/></svg>") bottom/cover no-repeat;
    pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: 3rem; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.page-hero p { font-size: 1.1rem; opacity: 0.75; max-width: 620px; margin: 0 auto; }

/* ── Section titles ── */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.4rem; color: white; margin-bottom: 14px; }
.section-title p { color: rgba(255,255,255,0.5); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ── Glass cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }

.card {
    background: rgba(6,21,40,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0,180,216,0.18);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.45s ease,
        border-color 0.45s ease,
        background 0.45s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,180,216,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255,255,255,0.07);
    border-color: rgba(0,180,216,0.45);
    box-shadow: 0 28px 55px rgba(0,0,0,0.45), 0 0 35px rgba(0,180,216,0.1);
}
.card:hover::before { opacity: 1; }

.card-icon { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.7rem; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.card-icon.accent { background: rgba(0,180,216,0.1); color: var(--accent); border: 1px solid rgba(0,180,216,0.2); }
.card-icon.primary { background: rgba(30,71,136,0.3); color: var(--accent); border: 1px solid rgba(0,180,216,0.15); }
.card:hover .card-icon { transform: scale(1.1); box-shadow: 0 0 20px rgba(0,180,216,0.3); }

.card h3 { color: white; margin-bottom: 12px; font-size: 1.05rem; }
.card p { color: rgba(255,255,255,0.6); font-size: 0.93rem; line-height: 1.7; }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.tag { background: rgba(0,180,216,0.1); color: var(--accent); border: 1px solid rgba(0,180,216,0.2); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }

/* ── CTA ── */
.cta-section {
    padding: 110px 0;
    background: linear-gradient(135deg, #071a36 0%, var(--secondary) 50%, #071a36 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,180,216,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.cta-section h2 { font-size: 2.4rem; margin-bottom: 18px; position: relative; }
.cta-section p { max-width: 580px; margin: 0 auto 32px; opacity: 0.7; position: relative; }

/* ── Prose ── */
.prose-section { padding: 80px 0; }
.prose-content { max-width: 820px; margin: 0 auto; }
.prose-content h2 { font-size: 1.5rem; color: white; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,180,216,0.2); }
.prose-content h2:first-child { margin-top: 0; }
.prose-content h3 { font-size: 1.05rem; color: var(--accent); margin: 18px 0 8px; }
.prose-content p { color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.85; }
.prose-content ul { margin: 0 0 14px 20px; color: rgba(255,255,255,0.7); line-height: 1.85; }
.prose-content ul li { margin-bottom: 6px; }
.prose-content a { color: var(--accent); }
.prose-content a:hover { text-decoration: underline; }

/* ── Footer ── */
footer { background: rgba(4,12,24,0.98); border-top: 1px solid rgba(0,180,216,0.08); color: white; padding: 70px 0 28px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-column h3 { font-size: 1rem; margin-bottom: 18px; color: var(--accent); }
.footer-column > p { color: rgba(255,255,255,0.4); font-size: 0.87rem; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,0.45); font-size: 0.87rem; line-height: 1.5; }
.footer-links a { color: rgba(255,255,255,0.45); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-links svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; margin-top: 3px; }

.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,180,216,0.35); }
.social-links svg { width: 17px; height: 17px; fill: rgba(255,255,255,0.55); }
.social-links a:hover svg { fill: white; }

.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.82rem; color: rgba(255,255,255,0.28); }
.footer-legal { text-align: center; padding-top: 8px; font-size: 0.8rem; }
.footer-legal a { color: rgba(255,255,255,0.28); transition: color 0.25s; }
.footer-legal a:hover { color: var(--accent); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-below { transform: translateY(36px); }
.reveal.visible    { opacity: 1 !important; transform: translate(0,0) !important; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .page-hero h1 { font-size: 2.4rem; }
    .section-title h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    /* Compact fixed-height header so the slide-in menu lines up exactly */
    header { height: 66px; }
    .header-container { height: 66px; padding-top: 0; padding-bottom: 0; }
    .logo { font-size: 1.35rem; }
    .logo .tagline { font-size: 0.6rem; }
    .nav-links {
        position: fixed;
        top: 66px;
        left: -100%;
        background: rgba(7,26,54,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 66px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
        gap: 30px;
        overflow-y: auto;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin-left: 0; }
    .nav-links a { font-size: 1.05rem; }
    .nav-links a::after { display: none; }
    .hamburger { display: block; padding: 8px; }

    /* Fixed-attachment backgrounds are broken/janky on mobile browsers */
    section, .page-hero { background-attachment: scroll !important; }

    /* Tighter vertical rhythm on phones (overrides per-page inline 80-110px) */
    section:not(.page-hero) { padding-top: 64px !important; padding-bottom: 64px !important; }
    .section-title { margin-bottom: 40px; }

    .page-hero { padding: 115px 0 64px !important; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero p { font-size: 1rem; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cta-section h2 { font-size: 1.9rem; }
    .cta-section p { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .page-hero h1 { font-size: 1.8rem; }
    .card { padding: 24px 20px; }
    .card-grid { gap: 20px; }
    .footer-content { grid-template-columns: 1fr; }
}
