/* ============================================================
   AURONEX TECH — common.css
   Shared across: index, services, software-solutions, about, why-us
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
    --bg-main: #000;
    --bg-card: #0a0a0b;
    --gold-primary: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #f3e092 0%, #D4AF37 50%, #aa841c 100%);
    --shiny-gold: linear-gradient(135deg, #fff2b2 0%, #D4AF37 40%, #aa841c 80%, #f3e092 100%);
    --text-white: #fff;
    --text-silver: #ccc;
    --text-muted: #8e8e93;
    --border-gold: rgba(212, 175, 55, 0.3);
}

/* ── RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* ── FONT SMOOTHING + OVERFLOW FIX ── */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* FIX: prevent horizontal scroll that breaks fixed elements on iOS */
}

/* ── BODY ── */
body {
    background: var(--bg-main);
    color: var(--text-white);
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    font-size: 15.5px;
    line-height: 1.82;
    letter-spacing: 0.01em;
    padding-top: 72px; /* FIX BUG-016: desktop header offset */
}

/* Desktop: hide default cursor (custom cursor active) */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
}

/* Mobile: restore default cursor */
@media (hover: none), (pointer: coarse) {
    body { cursor: auto; }
}

/* Headings */
h1, h2, h3, h4, .nav-links a, .btn-gold, .btn-outline, .btn-gold-sm {
    font-family: 'Poppins', sans-serif;
}

/* iOS fixes */
button, a { touch-action: manipulation; }
input, textarea, select { font-size: 16px; }
img { max-width: 100%; height: auto; }

/* Utility */
.shiny {
    background: var(--shiny-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--gold-gradient);
    z-index: 9998;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    transition: width 0.1s linear;
}

/* ── CUSTOM CURSOR ── */
#cursor, #cursor-ring { display: none; } /* hidden by default, shown only on fine pointer */

@media (hover: hover) and (pointer: fine) {
    #cursor {
        display: block;
        position: fixed;
        width: 10px; height: 10px;
        background: var(--gold-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9997;
        transform: translate(-50%, -50%);
        transition: transform 0.1s;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    }
    #cursor-ring {
        display: block;
        position: fixed;
        width: 36px; height: 36px;
        border: 1.5px solid rgba(212, 175, 55, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9996;
        transform: translate(-50%, -50%);
        transition: all 0.15s;
    }
    #cursor.hovering { transform: translate(-50%, -50%) scale(2.5); background: rgba(212, 175, 55, 0.3); }
    #cursor-ring.hovering { border-color: rgba(212, 175, 55, 0.8); width: 50px; height: 50px; }
}

/* ── BACKGROUND ORBS ── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite;
}
.bg-orb-1 { width: 400px; height: 400px; background: rgba(212, 175, 55, 0.04); top: -100px; right: -100px; }
.bg-orb-2 { width: 300px; height: 300px; background: rgba(212, 175, 55, 0.03); bottom: 20%; left: -80px; animation-delay: -5s; }
.bg-orb-3 { width: 250px; height: 250px; background: rgba(212, 175, 55, 0.025); top: 50%; right: 10%; animation-delay: -9s; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-40px); } }

/* ── HEADER ── */
header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s;
}
header.scrolled {
    background: rgba(0, 0, 0, 0.97);
    border-bottom-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.logo-img-wide {
    height: 48px; width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s;
}
header.scrolled .logo-img-wide { height: 40px; }

/* ── NAVIGATION ── */
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--gold-gradient);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-primary); }
.nav-call-btn {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    transition: all 0.3s;
}
.nav-call-btn:hover { background: var(--gold-gradient); color: #000 !important; }
.nav-call-btn::after { display: none !important; } /* no underline on button */

/* Hamburger — hidden on desktop */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--gold-primary);
    background: transparent;
    border: none;
    padding: 4px 8px;
}

/* ── BUTTONS ── */
.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    padding: 14px 34px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3s infinite 1s;
}
@keyframes btnShine { 0% { left: -100%; } 100% { left: 200%; } }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(212, 175, 55, 0.8); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 12px 32px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.1); transform: translateY(-3px); box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }

.btn-gold-sm {
    background: var(--gold-gradient);
    color: #000;
    -webkit-text-fill-color: #000;
    padding: 10px 24px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-gold-sm:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212, 175, 55, 0.8); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    padding: 60px 5% 65px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 60%, rgba(212, 175, 55, 0.08) 0%, transparent 65%);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero-inner { position: relative; z-index: 1; }

.big-logo {
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    margin: 0 auto 24px;
    animation: logoPulse 3s ease-in-out infinite;
    object-fit: cover;
    display: block;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 50px rgba(212, 175, 55, 0.7); }
}

.page-eyebrow, .section-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
}

.page-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 46px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.12;
    background: var(--shiny-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.page-hero p {
    color: var(--text-silver);
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    max-width: 520px;
    margin: 0 auto;
}
.gold-separator {
    width: 80px; height: 2px;
    background: var(--gold-gradient);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ── SECTION BASE ── */
section { padding: 90px 5%; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    max-width: 550px;
    margin: 0 auto;
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    background: #25d366;
    color: #fff;
    width: 62px; height: 62px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9990;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); }
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ── FOOTER ── */
footer {
    background: var(--gold-gradient);
    color: #000;
    padding: 28px 5%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 1.9;
}
footer .dev-tag { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: 3px; }

/* ══════════════════════════════════════
   TYPOGRAPHY SYSTEM (defined once here)
   ══════════════════════════════════════ */
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.5px;
    text-transform: none;
}
.hero-title span { font-style: italic; font-weight: 800; }
.hero-subtitle { font-size: 17px; line-height: 1.85; letter-spacing: 0.02em; }
.hero-eyebrow { font-size: 10px; letter-spacing: 5px; }
.hero-badge-num { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 700; }
.hero-badge-label { font-size: 9px; letter-spacing: 2.5px; }

.stat-number-wrap { font-family: 'Playfair Display', Georgia, serif; font-size: 52px; font-weight: 700; }
.stat-label { font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase; }

.gallery-title h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.15;
}

.service-card h3 { font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; }
.service-card p { font-size: 13.5px; line-height: 1.8; letter-spacing: 0.01em; }

/* FIX BUG-005: single authoritative rule */
.service-info h2, .service-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    -webkit-text-fill-color: transparent;
}
.service-info p { font-size: 14.5px; line-height: 1.88; letter-spacing: 0.01em; }
.feature-tags-list li { font-size: 13px; letter-spacing: 0.3px; line-height: 1.5; }

.value-info h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.value-info p { font-size: 14.5px; line-height: 1.85; letter-spacing: 0.01em; }

.why-circle-card h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.why-circle-card p { font-size: 12px; line-height: 1.72; letter-spacing: 0.02em; }

.profile-info h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.profile-info p { font-size: 15px; line-height: 1.9; letter-spacing: 0.01em; }
.mission-info h3 { font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; }
.mission-info p { font-size: 14px; line-height: 1.85; letter-spacing: 0.01em; }
.about-block h3 { font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; }
.about-block p { font-size: 13.5px; line-height: 1.85; letter-spacing: 0.01em; }

.testimonial-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.95;
    letter-spacing: 0.01em;
}
.client-name { font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.client-role { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.7; }

.industry-row span { font-size: 14px; letter-spacing: 0.5px; }
.category-pill span { font-size: 12px; letter-spacing: 2px; }

.faq-question { font-size: 15px; letter-spacing: 0.02em; line-height: 1.5; }
.faq-answer-inner { font-size: 14.5px; line-height: 1.88; letter-spacing: 0.01em; }

.cross-link-text h3 { font-size: 15px; letter-spacing: 1px; }
.cross-link-text p { font-size: 14px; line-height: 1.7; }

.contact-info-text h4 { font-size: 10px; letter-spacing: 3px; }
.contact-info-text p { font-size: 15px; letter-spacing: 0.5px; }

.benefit-card-stat h3 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.benefit-card-stat p { font-size: 13px; line-height: 1.75; letter-spacing: 0.01em; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    body {
        padding-top: 68px;
        overflow-x: hidden; /* belt + suspenders: no horizontal scroll on mobile */
    }
    header { padding: 10px 5%; }
    .logo-img-wide { height: 38px !important; }
    .menu-btn { display: block; }
    /* FIX BUG-009: pure CSS nav toggle, no JS inline style override */
    .nav-links {
        position: fixed;
        top: 68px; left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        display: none;
        gap: 20px;
        z-index: 1001;
    }
    .nav-links.open { display: flex; } /* JS toggles .open class */
    .hero-title { font-size: 34px; letter-spacing: -0.2px; }
    .page-hero { padding-top: 50px; }
    .page-hero h1 { font-size: 28px; }
    .section-header h2, .gallery-title h2 { font-size: 28px; }
    .stat-number-wrap { font-size: 36px; }

    /* WhatsApp float — guaranteed visible on all pages on mobile */
    .whatsapp-float {
        bottom: 20px !important;
        right: 16px !important;
        width: 56px !important;
        height: 56px !important;
        z-index: 9999 !important;
    }

    /* FIX: disable translateX hover on mobile — it causes horizontal overflow
       which makes fixed hamburger + WhatsApp appear off-screen */
    .value-row-card:hover,
    .industry-row:hover,
    .service-detailed-card:hover,
    .about-block:hover,
    .expert-profile-card:hover {
        transform: translateY(-4px) !important; /* vertical only — safe on mobile */
    }

    /* Prevent any card/element from overflowing viewport width */
    .value-row-card,
    .service-detailed-card,
    .industry-row,
    .about-block,
    .mission-card,
    .expert-profile-card,
    .contact-link-card,
    .cross-link-banner-inner {
        max-width: 100%;
        box-sizing: border-box;
    }
}
@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .page-hero h1 { font-size: 22px; }
    .section-header h2 { font-size: 22px; }
    .btn-gold { padding: 12px 24px; }
    .stat-number-wrap { font-size: 26px; }
}
