/* ==========================================================================
   J.SON E-PERSON - PROMINENT BRAND LOGO & ELEGANT LIGHT DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Theme Design System)
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette - Light & Sight-Friendly */
    --color-bg: #f8fafc;                  /* Soft slate white background */
    --color-surface: #ffffff;             /* Pure crisp white card surface */
    --color-surface-subtle: #f1f5f9;      /* Light gray surface accent */
    --color-border: #e2e8f0;               /* Subtle border color */
    --color-border-hover: #cbd5e1;         /* Border on card hover */
    
    /* Signature Brand Colors (Exact Match from Logo Image) */
    --color-primary: #5294e2;              /* Exact soft blue matched from json-e.person-logo.png */
    --color-primary-light: #6ba6ec;        /* Bright accent blue hover */
    --color-primary-soft: #f0f6fd;         /* Very soft blue tint background */
    --color-primary-glow: rgba(82, 148, 226, 0.2);
    
    /* Text Color Hierarchy */
    --color-text-main: #0f172a;            /* High legibility dark slate */
    --color-text-muted: #475569;           /* Medium slate reading text */
    --color-text-dim: #64748b;             /* Soft secondary detail text */
    
    /* Gradients & Shadows */
    --gradient-primary: linear-gradient(135deg, #5294e2 0%, #6ba6ec 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 30px -4px rgba(15, 23, 42, 0.08);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout & Spacing */
    --container-max-width: 1140px;
    --navbar-height: 88px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --------------------------------------------------------------------------
   3. Background Decorative Light Accents
   -------------------------------------------------------------------------- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -15%;
    left: -10%;
    width: 650px;
    height: 650px;
    background: rgba(59, 130, 246, 0.08);
}

.bg-glow-2 {
    bottom: 5%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.06);
}

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   5. Navigation Bar & Header Logo
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

/* Navbar Logo Image Asset */
.brand-img-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.brand-logo:hover .brand-img-logo {
    transform: scale(1.06);
}

.logo-text .highlight {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    gap: 2.4rem;
    align-items: center;
}

.nav-link {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   6. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(82, 148, 226, 0.3);
}

.btn-primary:hover {
    background-color: #3f83d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 148, 226, 0.4);
}

.btn-secondary {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    box-shadow: var(--shadow-sm);
}

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

.btn-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   7. Home / Hero Section & Prominent Brand Logo Showcase
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: calc(var(--navbar-height) + 2rem) 0 6rem;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
}

/* Prominent Hero Emblem - Clean Display of json-e.person-logo.png (No circle wrapper) */
.hero-logo-wrapper {
    width: 300px;
    margin-bottom: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.hero-logo-wrapper:hover {
    transform: scale(1.03);
}

.hero-logo-img {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.2rem;
    background-color: var(--color-primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
    margin-bottom: 1.8rem;
}

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

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 690px;
    margin-bottom: 2.8rem;
    font-weight: 400;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 4.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--color-text-dim);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   8. Section Headers & Generic Sections
   -------------------------------------------------------------------------- */
section {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 4.5rem;
}

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. Resume Section
   -------------------------------------------------------------------------- */
.resume-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
}

.resume-col-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

.timeline-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.timeline-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.role-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.company-name {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
}

.time-period {
    font-size: 0.82rem;
    font-weight: 600;
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.role-desc {
    font-size: 0.94rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.skills-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.skill-category {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.8rem;
    margin-top: 1rem;
}

.skill-category:first-child {
    margin-top: 0;
}

.pill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.82rem;
    font-weight: 500;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
}

.education-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.education-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.6rem;
}

.edu-degree {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 0.3rem;
}

.edu-details {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. Network Section (Featured Sites Showcase)
   -------------------------------------------------------------------------- */
.net-sites-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1040px;
    margin: 0 auto;
}

.net-site-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    align-items: center;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.net-site-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
}

.net-site-preview {
    height: 100%;
    min-height: 320px;
    background-color: var(--color-bg-alt);
    overflow: hidden;
    position: relative;
    border-right: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    min-width: 0;
}

.net-site-preview a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.net-site-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal);
}

.net-site-card:hover .net-site-img {
    transform: scale(1.03);
}

.net-site-body {
    padding: 2.4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.net-site-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.net-site-summary {
    font-size: 0.96rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.net-site-link {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .net-site-card {
        grid-template-columns: 1fr;
    }
    
    .net-site-preview {
        height: 220px;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
}

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact-card-light {
    max-width: 620px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.85rem 1.1rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
    background-color: var(--color-surface);
}

/* --------------------------------------------------------------------------
   12. Toast Notification
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-primary);
    padding: 1rem 1.6rem;
    border-radius: var(--border-radius-md);
    color: var(--color-text-main);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 3.5rem 0;
    background-color: var(--color-surface);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.8rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-copy {
    font-size: 0.88rem;
    color: var(--color-text-dim);
}

.footer-links {
    display: flex;
    gap: 1.8rem;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    font-weight: 500;
}

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

/* --------------------------------------------------------------------------
   14. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - var(--navbar-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--color-border);
        padding: 2.5rem 2rem;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}
