/* =========================================
   1. CSS VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette: Dark Engineering Aesthetic */
    --bg-dark: #0b0d10;
    --bg-surface: #12161f;
    --bg-surface-hover: #1a202c;
    --bg-card: rgba(18, 22, 31, 0.75);
    
    /* Brand Accent Colors: Cyan / Electric Blue with High Contrast */
    --accent-primary: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.15);
    --accent-secondary: #3a7bd5;
    
    /* Typography Colors */
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Borders & Glassmorphism */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 210, 255, 0.3);
    --glass-bg: rgba(18, 22, 31, 0.65);
    --glass-blur: blur(12px);
    
    /* UI Structure */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Spacing & Layout */
    --container-max: 1240px;
    --nav-height: 76px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fonts */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Subtle Grid Pattern */
.bg-grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Radial Glow */
.ambient-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
}

/* Section Common Styles */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(11, 13, 16, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-symbol {
    color: var(--accent-primary);
}

.logo-text .dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-item:hover {
    color: var(--accent-primary);
}

.btn-contact-nav {
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

.btn-contact-nav:hover {
    background-color: var(--accent-glow);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent-primary); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.highlight-name {
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-icon {
    color: var(--text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Hero Portrait Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.portrait-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.portrait-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    filter: grayscale(25%) contrast(105%);
    transition: filter var(--transition-normal);
}

.portrait-wrapper:hover .portrait-frame img {
    filter: grayscale(0%) contrast(100%);
}

.circuit-overlay {
    position: absolute;
    inset: -12px;
    border: 1px dashed var(--border-highlight);
    border-radius: calc(var(--radius-md) + 12px);
    pointer-events: none;
    z-index: 1;
}

.chip-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.chip-node.top-left { top: -4px; left: -4px; }
.chip-node.top-right { top: -4px; right: -4px; }
.chip-node.bottom-left { bottom: -4px; left: -4px; }
.chip-node.bottom-right { bottom: -4px; right: -4px; }

/* =========================================
   5. ABOUT ME & STATS
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.about-text {
    padding: 2.5rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.philosophy-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-primary);
    display: flex;
    gap: 0.75rem;
}

.quote-symbol {
    font-size: 2rem;
    line-height: 1;
}

.about-stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-plus, .stat-percent {
    font-size: 2rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* =========================================
   6. WORK EXPERIENCE TIMELINE
   ========================================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    z-index: 2;
    transition: background var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-primary);
}

.timeline-content {
    padding: 2rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.company-name {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.job-date {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.timeline-body ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    list-style-type: disc;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-body li {
    margin-bottom: 0.5rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* =========================================
   7. SKILLS & TECHNOLOGIES
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.skill-category-card {
    padding: 2rem;
}

.category-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    color: var(--accent-primary);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.skill-name {
    color: var(--text-primary);
    font-weight: 500;
}

.skill-level {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.skill-bar-bg {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease-out;
}

/* =========================================
   8. PROJECTS SECTION
   ========================================= */
.project-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-surface);
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.project-links {
    display: flex;
    gap: 0.8rem;
}

.project-link-icon {
    color: var(--text-secondary);
}

.project-link-icon:hover {
    color: var(--accent-primary);
}

/* =========================================
   9. MONTHLY DIGEST (CURRENTLY INTO)
   ========================================= */
.digest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.digest-card {
    padding: 2rem;
    position: relative;
}

.digest-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid var(--border-highlight);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.digest-content-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.digest-media {
    width: 110px;
    height: 160px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.digest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb-wrapper {
    position: relative;
}

.play-icon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    transition: background var(--transition-fast);
}

.digest-card:hover .play-icon-overlay {
    background: rgba(0, 210, 255, 0.4);
}

.digest-info {
    display: flex;
    flex-direction: column;
}

.digest-item-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.digest-author {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.digest-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.digest-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: auto;
}

.digest-link:hover {
    color: var(--accent-primary);
}

/* =========================================
   10. TECHNOLOGY & CODE SPOTLIGHT
   ========================================= */
.tech-focus-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

.code-widget {
    background: #090c10;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.code-header {
    background: #131720;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-filename {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.code-lang {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #e6edf3;
    overflow-x: auto;
    line-height: 1.5;
}

.tech-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-card {
    padding: 1.75rem;
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.tech-icon {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.tech-card h3 {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* =========================================
   11. INTERESTS
   ========================================= */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.interest-card {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.interest-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.interest-details h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.interest-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   12. CONTACT SECTION
   ========================================= */
.contact-card {
    padding: 4rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.contact-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 2.5rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.email-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
}

.email-address {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.toast-notification {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   13. FOOTER
   ========================================= */
.footer-section {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
    margin-top: 4rem;
    background: rgba(11, 13, 16, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.4rem;
}

.footer-right {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.last-updated {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* =========================================
   14. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */

/* Desktop & Ultrawide Constraints */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
}

/* Laptops & Tablets (Tablet Landscape / Portrait) */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: calc(var(--nav-height) + 2rem);
        text-align: center;
        gap: 2.5rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .portrait-wrapper {
        max-width: 280px;
    }

    .portrait-frame img {
        height: 350px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .digest-grid, .tech-focus-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    /* Mobile Menu Toggle */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .about-stats-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-dot {
        left: 2px;
    }

    .digest-content-wrapper {
        flex-direction: column;
    }

    .digest-media {
        width: 100%;
        height: 180px;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    .email-box {
        flex-direction: column;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}

/* Reduced Motion Safeguard */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}