/* --- General Sections --- */
section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    color: var(--k-accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 18px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--k-accent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--k-accent), transparent);
    border-radius: 2px;
    margin-bottom: 30px;
}

.title-divider.center {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, var(--k-accent), transparent);
}

.section-desc {
    color: var(--k-text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.accent { color: var(--k-accent); }

/* ============================================================
   PREMIUM TACTICAL INNER PAGE HEADER
   Applies to: About, Services, Blog, Contact (not Portfolio)
   ============================================================ */
.inner-page-header {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: var(--k-dark-bg);
    min-height: 450px;
    display: flex;
    align-items: center;
}

/* Tactical Grid Overlay */
.inner-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 222, 89, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 222, 89, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Radial Glow Orbs */
.inner-page-header::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255, 222, 89, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Top Accent Bar */
.inner-page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, var(--k-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    display: block;
    color: var(--k-text-muted);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.9;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s 0.2s ease both;
}

/* Breadcrumb trail */
.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--k-text-muted);
    animation: fadeInUp 0.6s ease both;
}

.page-breadcrumb a {
    color: var(--k-accent);
    transition: opacity 0.3s ease;
}
.page-breadcrumb a:hover { opacity: 0.7; }
.page-breadcrumb .sep { opacity: 0.3; }

/* Bottom accent line */
.inner-page-header-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 222, 89, 0.3), transparent);
}

/* --- Shared Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsive Inner Header --- */
@media (max-width: 768px) {
    .inner-page-header { padding: 120px 0 60px; }
    .section-tag { font-size: 0.65rem; }
    .page-subtitle { font-size: 1rem; }
}

/* ============================================================
   INTERACTIVE AUDIT GAME COMPONENT
   ============================================================ */
.audit-game-section {
    padding: 100px 0;
    position: relative;
}

.audit-game-card {
    background: rgba(12, 12, 16, 0.85) !important;
    border: 1px solid rgba(255, 222, 89, 0.2) !important;
    border-radius: 20px !important;
    padding: 60px 40px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    max-width: 840px !important;
    margin: 0 auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 222, 89, 0.05) !important;
}

.audit-progress-bar-container {
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 10px;
    position: relative;
    margin: 40px 0 30px;
    overflow: hidden;
}

.audit-progress-fill {
    background: linear-gradient(90deg, #ffde59, #ffa500);
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.audit-step-indicator {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 0.75rem;
    color: #a1a1aa;
    font-weight: 700;
}

/* Step Panel Switching */
.audit-step-panel {
    display: none !important;
    animation: fadeIn 0.4s ease forwards;
}

.audit-step-panel.active {
    display: block !important;
}

.audit-step-heading {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.audit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-hud label {
    display: block;
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group-hud input,
.form-select-hud {
    width: 100%;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.form-select-hud option {
    background: #0d0d12;
    color: #fff;
}

.form-group-hud input:focus,
.form-select-hud:focus {
    border-color: #ffde59 !important;
    box-shadow: 0 0 15px rgba(255, 222, 89, 0.25) !important;
}

.audit-subheading {
    font-size: 0.95rem;
    color: #a1a1aa;
    font-weight: 600;
    text-align: center;
}

.audit-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.audit-option-card {
    background: rgba(20, 20, 28, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 22px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    color: #fff !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.audit-option-card:hover {
    border-color: #ffde59 !important;
    background: rgba(255, 222, 89, 0.1) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(255, 222, 89, 0.15) !important;
}

.audit-option-card i {
    font-size: 1.4rem;
    color: #ffde59;
}

.audit-option-card span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Spinner Calculation */
.audit-calc-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 222, 89, 0.1);
    border-top: 3px solid #ffde59;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.calc-icon {
    font-size: 1.8rem;
    color: #ffde59;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results & Detailed Report Card */
.score-badge-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #000;
    border: 3px solid #ffde59;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 222, 89, 0.3);
}

.score-num {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: #ffde59;
    line-height: 1;
}

.score-denom {
    font-size: 0.75rem;
    color: #a1a1aa;
}

.audit-diagnosis-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: #ddd;
}

.diag-item i {
    font-size: 1.1rem;
}

.detailed-audit-report {
    background: rgba(8, 8, 14, 0.85);
    border: 1px solid rgba(255, 222, 89, 0.25);
    border-radius: 14px;
    padding: 28px;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.detailed-audit-report .report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detailed-audit-report .report-header h4 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.detailed-audit-report .report-header i {
    font-size: 1.3rem;
    color: #ffde59;
}

.detailed-audit-report .report-body p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .audit-form-grid, .audit-options-grid {
        grid-template-columns: 1fr;
    }
    .audit-game-card {
        padding: 40px 20px !important;
    }
}

/* ============================================================
   HISTORY TIMELINE SECTION (ABOUT PAGE)
   ============================================================ */
.history-timeline-section {
    padding: 100px 0;
    background: rgba(12, 12, 16, 0.5);
    position: relative;
    overflow: hidden;
}

.history-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 0;
}

.history-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 222, 89, 0.08);
    transform: translateX(-50%);
}

.history-timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--k-accent), #ffa500);
    box-shadow: 0 0 10px var(--k-accent);
    transition: height 0.1s ease-out;
}

.history-node {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.history-node:last-child {
    margin-bottom: 0;
}

.history-node::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--k-dark-bg);
    border: 3px solid rgba(255, 222, 89, 0.2);
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.5s ease;
}

.history-node.revealed::before {
    background: var(--k-accent);
    border-color: var(--k-accent);
    box-shadow: 0 0 15px var(--k-accent);
    transform: translate(-50%, -50%) scale(1.15);
}

.node-date {
    width: 45%;
    font-family: var(--font-heading, sans-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--k-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.history-node.revealed .node-date {
    opacity: 1;
    transform: translateY(0);
}

.node-content {
    width: 45%;
    background: rgba(20, 20, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px 30px;
    box-sizing: border-box;
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
}

.history-node.revealed .node-content {
    opacity: 1;
    transform: translateY(0);
}

.node-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.node-content p {
    font-size: 0.92rem;
    color: var(--k-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Alternating nodes layout */
.history-node:nth-child(odd) {
    flex-direction: row-reverse;
}

.history-node:nth-child(odd) .node-date {
    text-align: left;
    padding-left: 40px;
}

.history-node:nth-child(odd) .node-content {
    margin-left: 0;
}

.history-node:nth-child(even) .node-date {
    text-align: right;
    padding-right: 40px;
}

/* Hover effects */
.history-node:hover .node-content {
    border-color: rgba(255, 222, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 222, 89, 0.05);
    transform: translateY(-2px);
}

/* Responsive timeline styles */
@media (max-width: 768px) {
    .history-timeline-line {
        left: 20px;
        transform: none;
    }

    .history-node {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 45px;
        padding-left: 45px;
        width: 100%;
        box-sizing: border-box;
    }

    .history-node::before {
        left: 20px;
        transform: translate(-50%, -50%);
    }

    .history-node:hover::before {
        transform: translate(-50%, -50%) scale(1.1);
    }

    .node-date {
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        margin-bottom: 8px;
        font-size: 1.25rem;
    }

    .node-content {
        width: 100% !important;
        padding: 20px;
    }
}
