/* --- I. Unified Design Tokens --- */
:root {
    --transition-speed: 0.4s;
    --transition-curve: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Premium Light Theme */
    --bg-color: #FAF8F6;       /* Soft Alabaster / Warm Beige */
    --text-color: #2E2E2E;     /* Obsidian Charcoal */
    --text-muted: #6E727A;     /* Muted Grey */
    --accent-color: #6C8B74;   /* Muted Sage Green */
    --accent-secondary: #FF8E3C; /* Sunset Orange / Gold */
    --accent-glow: rgba(108, 139, 116, 0.08);
    --card-bg: #FFFFFF;        /* Pure White Card Panel */
    --border-color: #EAE6E3;    /* Softer Warm Border */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-code: 'Space Mono', monospace;
    --border-radius: 16px;
    
    /* Structural Faint Blueprint Grid in Sage Green */
    --bg-pattern: linear-gradient(to right, rgba(108, 139, 116, 0.02) 1px, transparent 1px),
                  linear-gradient(to bottom, rgba(108, 139, 116, 0.02) 1px, transparent 1px);
    --bg-pattern-size: 30px 30px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Stick nav clearance */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: var(--bg-pattern);
    background-size: var(--bg-pattern-size);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #1A1A1A;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

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

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


/* --- II. Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 248, 246, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-brand {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.1rem;
    color: #1A1A1A;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.navbar ul {
    display: none; /* Hidden on mobile */
    list-style: none;
    gap: 2rem;
}

.navbar a.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s var(--transition-curve);
}

.navbar a.nav-link.active,
.navbar a.nav-link:hover {
    color: var(--accent-color);
    background-color: rgba(108, 139, 116, 0.05);
}


/* --- III. Content Flow Layout --- */
.data-flow-canvas {
    padding-top: 80px;
}

.canvas-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.canvas-section:last-of-type {
    border-bottom: none;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 6%;
}


/* --- IV. Hero Section --- */
#intro {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
    background: linear-gradient(to right, #1A1A1A 40%, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-content h2 {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-details-list {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-details-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-details-list li::before {
    content: "➔";
    color: var(--accent-color);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual svg {
    opacity: 0.12;
}


/* --- V. Profile Summary Section --- */
#profile {
    background-color: rgba(108, 139, 116, 0.01);
}

.profile-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.015);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .profile-card {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.profile-main-narrative p {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.profile-main-narrative p:last-of-type {
    margin-bottom: 0;
}

.profile-side-stats {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-side-stats {
        border-top: none;
        border-left: 2px solid var(--border-color);
        padding-top: 0;
        padding-left: 2.5rem;
    }
}

.side-stat-item h3 {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.side-stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.stat-credential {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}


/* --- VI. Buttons & Headings --- */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-main);
    transition: all 0.3s var(--transition-curve);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(108, 139, 116, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 139, 116, 0.4);
    background-color: #57735F;
}

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

.btn-secondary:hover {
    border-color: var(--accent-color);
    background-color: rgba(108, 139, 116, 0.05);
    color: var(--accent-color);
}

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

.section-header.center-align {
    text-align: center;
}

.section-tag {
    font-family: var(--font-code);
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-tag.tag-secondary {
    color: var(--accent-secondary);
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A1A1A;
}


/* --- VII. Technical Achievement Metrics Grid --- */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 600px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.015);
    transition: all 0.3s var(--transition-curve);
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(108, 139, 116, 0.1);
}

.metric-num {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-code);
    margin-bottom: 0.4rem;
    background: linear-gradient(to right, #1A1A1A, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.metric-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* --- IX. Creative Highlights (Vinyl & Visualiser) --- */
#creative {
    background-color: rgba(255, 142, 60, 0.015);
}

.storyteller-deck {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .storyteller-deck {
        grid-template-columns: repeat(2, 1fr);
    }
}

.media-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.015);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-panel .panel-desc {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.btn-full-width {
    width: 100%;
}

.archive-panel .btn-group .btn {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.broadcast-status-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    background-color: rgba(255, 142, 60, 0.05);
}

.broadcast-status-badge.on-air {
    border-color: #FF5470;
    color: #FF5470;
    background-color: rgba(255, 84, 112, 0.05);
}

.broadcast-status-badge.on-air .sim-glow-dot {
    background-color: #FF5470;
    box-shadow: 0 0 6px #FF5470;
}

.countdown-timer-display {
    font-family: var(--font-code);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: #1A1A1A;
    display: flex;
    gap: 12px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Ambient Soundwave & On-Demand Show Hub Styling */
.archive-panel {
    border-color: rgba(255, 142, 60, 0.12);
    transition: all 0.3s var(--transition-curve);
}

.archive-panel:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(255, 142, 60, 0.08);
}

.ambient-soundwave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 70px;
    margin: 1.5rem 0;
    background-color: rgba(255, 142, 60, 0.015);
    border: 1px solid rgba(255, 142, 60, 0.08);
    border-radius: 12px;
    padding: 0 20px;
    overflow: hidden;
    transition: all 0.3s var(--transition-curve);
}

.archive-panel:hover .ambient-soundwave {
    background-color: rgba(255, 142, 60, 0.04);
    border-color: rgba(255, 142, 60, 0.18);
}

.wave-bar {
    width: 4px;
    height: 15px;
    background: linear-gradient(to top, var(--accent-color), var(--accent-secondary));
    border-radius: 4px;
    animation: wave-pulse 1.8s ease-in-out infinite alternate;
    transition: transform 0.3s var(--transition-curve);
}

/* Stagger animations and set different initial scaling heights */
.wave-bar:nth-child(1)  { animation-delay: 0.1s; height: 18px; }
.wave-bar:nth-child(2)  { animation-delay: 0.3s; height: 35px; }
.wave-bar:nth-child(3)  { animation-delay: 0.5s; height: 22px; }
.wave-bar:nth-child(4)  { animation-delay: 0.2s; height: 48px; }
.wave-bar:nth-child(5)  { animation-delay: 0.7s; height: 28px; }
.wave-bar:nth-child(6)  { animation-delay: 0.4s; height: 14px; }
.wave-bar:nth-child(7)  { animation-delay: 0.9s; height: 38px; }
.wave-bar:nth-child(8)  { animation-delay: 0.6s; height: 20px; }
.wave-bar:nth-child(9)  { animation-delay: 0.8s; height: 42px; }
.wave-bar:nth-child(10) { animation-delay: 0.3s; height: 25px; }
.wave-bar:nth-child(11) { animation-delay: 1.1s; height: 16px; }
.wave-bar:nth-child(12) { animation-delay: 0.5s; height: 30px; }

/* When hovering over the archive panel, increase height scaling and speed */
.archive-panel:hover .wave-bar {
    animation-duration: 0.9s; /* Stretches and bounces faster */
}

@keyframes wave-pulse {
    0% {
        transform: scaleY(0.4);
    }
    100% {
        transform: scaleY(1.3);
    }
}

/* Content Pill Tags */
.show-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.25rem;
}

.show-tag-capsule {
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: rgba(108, 139, 116, 0.05);
    color: var(--accent-color);
    border: 1px solid rgba(108, 139, 116, 0.12);
    transition: all 0.3s var(--transition-curve);
}

.show-tag-capsule:hover {
    background-color: rgba(255, 142, 60, 0.08);
    color: var(--accent-secondary);
    border-color: rgba(255, 142, 60, 0.2);
    transform: translateY(-1px);
}

/* Explore Link indicator animations */
.archive-btn {
    position: relative;
    overflow: hidden;
}

.archive-btn .arrow-indicator {
    display: inline-block;
    transition: transform 0.3s var(--transition-curve);
}

.archive-btn:hover .arrow-indicator {
    transform: translateX(4px);
}

/* Facebook Show Button custom interactions */
.facebook-show-btn {
    transition: all 0.3s var(--transition-curve);
    gap: 8px;
}

.facebook-show-btn:hover {
    border-color: #1877F2 !important;
    background-color: rgba(24, 119, 242, 0.05) !important;
    color: #1877F2 !important;
}

.facebook-show-btn .fb-icon {
    display: inline-block;
    transition: transform 0.3s var(--transition-curve);
}

.facebook-show-btn:hover .fb-icon {
    transform: scale(1.18) rotate(-4deg);
}


/* --- X. Dual-Perspective Timeline --- */
.timeline-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-event {
    position: relative;
    margin-bottom: 3.5rem;
    transition: all 0.5s var(--transition-curve);
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 2.5px solid var(--accent-color);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 0 4px var(--bg-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.timeline-event:hover::before {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 8px var(--accent-color);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.timeline-date {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
}

.timeline-org {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-body {
    font-size: 0.95rem;
    color: var(--text-color);
}

.timeline-body ul {
    list-style: none;
    margin-top: 8px;
}

.timeline-body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.timeline-body li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}


/* --- XI. Education & Certifications --- */
.education-cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .education-cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.info-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    color: #1A1A1A;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A1A;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* --- XII. Connect Hub & Social Grid --- */
#connect {
    background-color: rgba(108, 139, 116, 0.015);
}

.smart-connect-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.015);
    max-width: 850px;
    margin: 0 auto;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: #FAF8F6;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s var(--transition-curve);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--border-color);
    transition: background-color 0.3s;
}

.social-icon-wrapper {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.social-card-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1A1A1A;
    transition: color 0.3s;
}

.social-card-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-code);
    margin-bottom: 0;
}

/* Hover States & Custom Accent Indicators */
.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border-color: var(--accent-color);
}

.social-card:hover .social-icon-wrapper {
    border-color: var(--accent-color);
    background-color: rgba(108, 139, 116, 0.05);
}

/* Individual Platform Highlights */
.social-card.email:hover::before { background-color: #EA4335; }
.social-card.linkedin:hover::before { background-color: #0A66C2; }
.social-card.github:hover::before { background-color: #24292F; }
.social-card.youtube:hover::before { background-color: #FF0000; }
.social-card.tiktok:hover::before { background-color: #000000; }
.social-card.instagram:hover::before { background-color: #E1306C; }
.social-card.facebook:hover::before { background-color: #1877F2; }

.social-card.email:hover h3 { color: #EA4335; }
.social-card.linkedin:hover h3 { color: #0A66C2; }
.social-card.github:hover h3 { color: #24292F; }
.social-card.youtube:hover h3 { color: #FF0000; }
.social-card.tiktok:hover h3 { color: #1A1A1A; }
.social-card.instagram:hover h3 { color: #E1306C; }
.social-card.facebook:hover h3 { color: #1877F2; }

footer {
    text-align: center;
    padding: 4rem 5%;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}


/* --- XIII. Keyframes & Animations --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; box-shadow: 0 0 10px var(--accent-color); }
    100% { transform: scale(1); opacity: 1; }
}


/* --- XIV. Responsive System (Desktop Customisations) --- */
@media (min-width: 1000px) {
    .navbar ul {
        display: flex;
    }
    
    .data-flow-canvas {
        padding-top: 90px;
    }
    
    .hero-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    

    
    .canvas-section {
        padding: 100px 0;
    }
}