/* CSS Variables for Enterprise Dark Theme */
:root {
    --bg-dark: #0a0f18;
    --bg-card: #121824;
    --bg-card-hover: #182234;
    --bg-card-subtle: #0f1520;
    --bg-card-inner: #0d121c;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-blue-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-glow-subtle: rgba(59, 130, 246, 0.08);
    --border-color: #1e293b;
    --border-highlight: #334155;
    --tag-bg: rgba(59, 130, 246, 0.1);
    --tag-border: rgba(59, 130, 246, 0.25);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 2px;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 15, 24, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--accent-blue-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: 1px solid var(--accent-blue);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
    box-shadow: 0 4px 18px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--border-highlight);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

.btn-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.greeting {
    color: var(--accent-blue-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.name {
    font-size: 4.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-summary {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 680px;
}

.hero-summary strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-bg-glow {
    position: absolute;
    top: 45%;
    right: 5%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
}

/* Sections General */
section {
    padding: 5.5rem 0;
    position: relative;
}

/* Stats Strip */
.stats-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(18, 24, 36, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 10px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
}

.stat-value {
    display: block;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--accent-blue-light);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

/* About Section */
.about-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--text-primary);
}

/* Hierarchical Experience Section */
.employer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.employer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.employer-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.employer-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background-color: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--accent-blue-light);
}

.employer-name {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.employer-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue-light);
}

.employer-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.employer-meta .tenure {
    font-weight: 600;
    color: var(--text-secondary);
}

.employer-body {
    margin-bottom: 2.5rem;
}

.employer-overview {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.employer-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.employer-highlights li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.employer-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.employer-highlights strong {
    color: var(--text-primary);
}

/* Nested Engagements */
.client-engagements-wrapper {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.client-engagements-header {
    margin-bottom: 2rem;
}

.client-engagements-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.client-engagements-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Branching Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 20px;
    left: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--border-color) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.25rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 0 3px var(--bg-card);
}

.timeline-content {
    background-color: var(--bg-card-inner);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.company {
    font-size: 1rem;
    color: var(--accent-blue-light);
    font-weight: 500;
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-blue-light);
    background-color: var(--tag-bg);
    border: 1px solid var(--tag-border);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.accomplishments {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.accomplishments li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.accomplishments li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.accomplishments strong {
    color: var(--text-primary);
}

/* Core Competencies (Expertise) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--accent-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.card:hover .card-icon {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Technical Stack Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    transition: border-color 0.25s ease;
}

.skill-category:hover {
    border-color: var(--border-highlight);
}

.category-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.chip {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.chip:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Connect / CTA Section */
.contact-section {
    padding-bottom: 6rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 24, 36, 0.7) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    background-color: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .name {
        font-size: 3.5rem;
    }
    .title {
        font-size: 1.75rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .grid-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 15, 24, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .header-cta {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding-top: 90px;
        min-height: auto;
    }

    .name {
        font-size: 2.75rem;
    }

    .title {
        font-size: 1.45rem;
    }

    .hero-summary {
        font-size: 1.05rem;
    }

    .employer-card {
        padding: 1.5rem;
    }

    .employer-header {
        flex-direction: column;
    }

    .employer-meta {
        text-align: left;
    }

    .timeline {
        padding-left: 0.75rem;
    }

    .timeline-item {
        padding-left: 1.25rem;
    }

    .timeline-dot {
        left: -3px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .project-header {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .name {
        font-size: 2.25rem;
    }

    .title {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
