/* ==========================================================================
   Modern Executive Light Theme (2026 Design Standards)
   Palette: Crisp Porcelain, Slate Gray, Executive Sapphire & Royal Navy
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-base: #f8fafc;        /* Slate 50 */
    --bg-surface: #f1f5f9;     /* Slate 100 */
    --bg-card: #ffffff;        /* Pure White */
    --bg-card-elevated: #ffffff;

    /* Borders & Accents */
    --border-subtle: #e2e8f0;   /* Slate 200 */
    --border-hover: #cbd5e1;    /* Slate 300 */
    --border-active: #0284c7;   /* Sky 600 */

    --primary: #0f172a;         /* Deep Slate Navy (900) */
    --primary-hover: #1e293b;
    --accent: #0284c7;          /* Executive Sapphire (Sky 600) */
    --accent-hover: #0369a1;    /* Sky 700 */
    --accent-light: #e0f2fe;    /* Sky 100 */

    /* Typography Colors */
    --text-primary: #0f172a;    /* High-contrast dark navy */
    --text-secondary: #475569;  /* Muted Slate 600 */
    --text-muted: #64748b;      /* Slate 500 */

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Modern Soft Shadows */
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   Navigation Bar (Glassmorphic Light)
   ========================================================================== */
.navbar {
    padding: 1.15rem 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 1030;
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border-bottom-color: var(--border-subtle);
    padding: 0.75rem 0;
}

.brand-badge {
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.8px;
    color: var(--primary);
    line-height: 1.1;
}

.brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    line-height: 1;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary) !important;
    margin: 0 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(15, 23, 42, 0.04);
}

.btn-nav-cta {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.btn-nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.04) 0%, transparent 60%);
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 1.15rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981; /* Emerald active indicator */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.1;
    margin-bottom: 0.85rem;
    color: var(--primary);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.accent-separator {
    color: var(--border-hover);
    font-weight: 400;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 2.25rem;
}

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

.btn-primary-custom {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.85rem;
    border-radius: 8px;
    font-size: 0.92rem;
    border: 1px solid var(--primary);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.btn-primary-custom:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

.btn-secondary-custom {
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    padding: 0.85rem 1.85rem;
    border-radius: 8px;
    font-size: 0.92rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-subtle);
}

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

.btn-outline-custom {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.85rem 1.85rem;
    border-radius: 8px;
    font-size: 0.92rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
}

.btn-outline-custom:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Hero Metrics */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-divider {
    width: 1px;
    height: 38px;
    background: var(--border-subtle);
}

/* Profile Photo Card */
.profile-card-wrapper {
    position: relative;
    display: inline-block;
}

.profile-card-inner {
    position: relative;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    box-shadow: var(--shadow-hover);
}

.profile-image {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 20px;
}

.profile-status-tag {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Section Headers & Containers
   ========================================================================== */
.section-block {
    padding: 100px 0;
    position: relative;
}

.bg-surface {
    background-color: var(--bg-surface);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
}

/* ==========================================================================
   Executive Governance & Pillars
   ========================================================================== */
.executive-lead-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-left: 5px solid var(--accent);
    border-radius: 16px;
    padding: 2.75rem;
    box-shadow: var(--shadow-card);
}

.lead-icon-bubble {
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.lead-statement {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.9;
    font-weight: 500;
    margin-bottom: 0;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.pillar-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.pillar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.pillar-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Technical Engineering Domains
   ========================================================================== */
.domain-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.25rem;
    height: 100%;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.domain-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.domain-icon-wrap {
    font-size: 1.85rem;
    color: var(--accent);
    background: var(--accent-light);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.domain-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.domain-caption {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--accent);
}

/* ==========================================================================
   Executive Experience Briefs (No Bullets)
   ========================================================================== */
.experience-brief {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-left: 5px solid var(--text-muted);
    border-radius: 16px;
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
}

.experience-brief.executive-anchor {
    border-left-color: var(--accent);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.experience-brief:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.brief-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brief-company {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.brief-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.brief-context {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.brief-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brief-summary {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.brief-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.brief-meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ==========================================================================
   Portfolio Filtering & 26 Systems Grid
   ========================================================================== */
.portfolio-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
}

.filter-tab {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.35rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-subtle);
}

.filter-tab:hover {
    color: var(--primary);
    border-color: var(--border-hover);
}

.filter-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.is-hidden {
    display: none !important;
}

.system-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.85rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.category-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.badge-ai { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-saas { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-erp { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-iot { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.badge-web { background: #fce7f3; color: #be185d; border: 1px solid #fbcfe8; }

.repo-link {
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
}

.repo-link:hover {
    color: var(--primary);
    transform: scale(1.15);
}

.card-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.card-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
}

.card-techs span {
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
    flex-grow: 1;
}

/* ==========================================================================
   AEO Executive Briefing / Accordion
   ========================================================================== */
.custom-accordion .accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.custom-accordion .accordion-button {
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1.35rem 1.5rem;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: var(--bg-surface);
    color: var(--accent);
}

.custom-accordion .accordion-body {
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ==========================================================================
   Contact Section & Modern Form
   ========================================================================== */
.contact-form-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.form-control {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.85rem 1.15rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.contact-channels {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2.25rem;
}

.channel-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
}

.channel-link:hover {
    color: var(--primary);
}

.channel-social {
    color: var(--text-secondary);
    font-size: 1.35rem;
    transition: all 0.2s ease;
}

.channel-social:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-wrap {
    padding: 2.25rem 0;
    border-top: 1px solid var(--border-subtle);
    background: #ffffff;
}

.footer-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Responsive Mobile Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1.5rem 0;
    }
    .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 768px) {
    .section-block {
        padding: 75px 0;
    }

    .hero-section {
        padding-top: 115px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.65rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-lead {
        font-size: 1.02rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-metrics {
        justify-content: center;
        gap: 1.25rem;
    }

    .profile-image {
        width: 270px;
        height: 270px;
    }

    .section-title {
        font-size: 2rem;
    }

    .executive-lead-card {
        padding: 1.75rem 1.25rem;
    }

    .experience-brief {
        padding: 1.5rem 1.25rem;
    }

    .contact-form-box {
        padding: 1.75rem 1.25rem;
    }

    .portfolio-filter-container {
        gap: 0.35rem;
    }

    .filter-tab {
        font-size: 0.78rem;
        padding: 0.4rem 0.95rem;
    }
}