/* ================= ROOT VARIABLES ================= */
:root {
    --bg-dark: #0b0f14;
    --bg-dark-secondary: #111827;
    --bg-light: #f4f6f8;
    --accent: #3b82f6;
    --text-muted: #9ca3af;
    --border-dark: #1f2937;
}

/* ================= GLOBAL ================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1140px;
}

/* ================= NAVBAR ================= */
.navbar {
    height: 80px;
    background-color: rgba(11, 15, 20, 1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* REMOVE GPU TRANSFORMS */
.navbar * {
    transform: none !important;
}

/* 🔑 DEFAULT NAV LINK STATE (CRITICAL FIX) */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    position: relative;
}

.navbar .nav-link::after {
    display: none;
}

/* Accent button */
.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: #ffffff;
}

/* ================= HERO ================= */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0b0f14 55%, #111827 100%);
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
}

/* ================= HERO ANIMATION ================= */
.hero-title,
.hero-text,
.hero-section .btn {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.hero-text { animation-delay: 0.2s; }
.hero-section .btn { animation-delay: 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================= BUTTONS ================= */
.btn {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-primary-custom {
    background-color: var(--accent);
    border: none;
}

.btn-primary-custom:hover {
    background-color: #2563eb;
}

/* ================= SECTIONS ================= */
.section-dark {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-dark);
}

.section-light {
    padding: 120px 0;
    background-color: var(--bg-light);
    color: #111111;
}

/* ================= CARDS ================= */
.service-card {
    background: linear-gradient(180deg, #161b22, #0b0f14);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.18);
}

/* Light section override */
.section-light .service-card {
    background: #ffffff;
    color: #111111;
    border: 1px solid #e5e7eb;
}

/* ================= FOOTER ================= */
.footer {
    background-color: #0b0f14;
    padding: 70px 0 25px;
}

.footer p,
.footer-bottom {
    color: var(--text-muted);
}

/* ================= PAGE-BASED NAV ACTIVE (ONLY SOURCE OF TRUTH) ================= */

.page-home .nav-home,
.page-about .nav-about,
.page-services .nav-services,
.page-projects .nav-projects,
.page-careers .nav-careers,
.page-contact .nav-contact {
    color: var(--accent) !important;
    font-weight: 600;
}

.page-home .nav-home::after,
.page-about .nav-about::after,
.page-services .nav-services::after,
.page-projects .nav-projects::after,
.page-careers .nav-careers::after,
.page-contact .nav-contact::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* ================= DARK TEXT FIXES ================= */
.section-dark .text-muted,
.page-careers .text-muted {
    color: #e5e7eb;
}

.section-dark a,
.page-careers a {
    color: #60a5fa;
}

.section-dark a:hover,
.page-careers a:hover {
    color: #93c5fd;
}

/* ================= CONTACT BOX ================= */
.contact-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
}


/* ================= CONTACT PAGE ADDRESS — FORCE WHITE ================= */

.page-contact .contact-box p,
.page-contact .contact-box strong {
    color: #ffffff !important;
}

/* ================= SOCIAL MEDIA ICONS ================= */

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
}
