/* ==========================================================================
   MD AHMOD AKRAM CHOUDHURY - DARK & PROFESSIONAL AI PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette - Deep Dark Obsidian & Space Theme */
    --bg-dark: #06080d;
    --bg-alt: #0a0d16;
    --card-bg: rgba(13, 17, 28, 0.75);
    --card-bg-solid: #0d111c;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(139, 92, 246, 0.4);

    /* Accents & Gradients */
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.35);
    --indigo: #6366f1;
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.35);
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;

    /* Gradient Strings */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #8b5cf6 100%);

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Layout */
    --container-max: 1200px;
    --nav-height: 76px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & 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-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* --------------------------------------------------------------------------
   3. CANVAS BACKGROUND & AMBIENT GLOW
   -------------------------------------------------------------------------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.65;
}

.ambient-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: var(--primary);
}

.glow-2 {
    top: 40%;
    right: -150px;
    background: var(--cyan);
}

.glow-3 {
    bottom: -100px;
    left: 20%;
    background: var(--indigo);
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY & REUSABLE UTILITIES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6.5rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    position: relative;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

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

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-header:not(.center) .title-underline {
    margin-left: 0;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.btn-outline-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-outline-sm:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-nav-cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-nav-cta:hover {
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.6);
    transform: scale(1.03);
}

.btn-block {
    width: 100%;
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.glow-btn:hover::before {
    left: 100%;
}

/* --------------------------------------------------------------------------
   6. NAVBAR
   -------------------------------------------------------------------------- */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-header.scrolled {
    background: rgba(6, 8, 13, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.accent-dot {
    color: var(--cyan);
}

.mobile-nav-cta {
    display: none;
}

/* Mobile Nav Backdrop Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 12, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(13, 17, 28, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.mobile-toggle:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
}

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

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

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

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

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
}

.glow-pulse {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-typing-wrapper {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.typing-prefix {
    color: var(--text-dim);
}

.typing-highlight {
    color: var(--cyan);
    font-weight: 600;
}

.typing-cursor {
    color: var(--primary);
    font-weight: 700;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 580px;
}

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

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Hero Terminal Card Widget */
.hero-widget {
    position: relative;
}

.terminal-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), 0 0 30px rgba(139, 92, 246, 0.15);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
}

.window-controls {
    display: flex;
    gap: 7px;
}

.window-controls .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.terminal-tabs::-webkit-scrollbar {
    display: none;
}

.term-tab {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.term-tab.active, .term-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.terminal-body {
    padding: 1.25rem;
    min-height: 240px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane pre {
    white-space: pre-wrap;
    word-break: break-word;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Syntax Highlighting Tokens */
.token-keyword { color: #f43f5e; font-weight: 600; }
.token-string { color: #10b981; }
.token-comment { color: #64748b; font-style: italic; }
.token-number { color: #f59e0b; }

.terminal-output-log {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.log-line {
    font-size: 0.82rem;
    line-height: 1.5;
}

.log-tag {
    font-weight: 700;
    margin-right: 0.5rem;
}

.log-line.info .log-tag { color: var(--cyan); }
.log-line.success .log-tag { color: var(--emerald); }
.log-line.highlight .log-tag { color: var(--primary); }

.terminal-footer {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.terminal-status {
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
}

.btn-run-demo {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary);
    color: var(--text-main);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-run-demo:hover {
    background: var(--primary);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. METRICS / STATS COUNTER SECTION
   -------------------------------------------------------------------------- */
.stats-section {
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

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

.stat-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

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

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan);
    margin-left: 2px;
}

.stat-label {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. ABOUT ME SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.about-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-fast);
}

.main-bio-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

.avatar-wrapper {
    position: relative;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.bio-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.bio-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.location-badge {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.bio-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.bio-body strong {
    color: var(--text-main);
}

.bio-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.highlight-item i {
    color: var(--cyan);
    font-size: 1.2rem;
    margin-top: 3px;
}

.highlight-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.highlight-item p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin-top: 2px;
}

.about-card-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    border-color: var(--card-border-hover);
    transform: translateX(4px);
}

.box-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.glow-purple { background: rgba(139, 92, 246, 0.15); color: var(--primary); }
.glow-cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.glow-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.glow-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); }

.feature-box h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.feature-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. FEATURED PROJECTS SECTION
   -------------------------------------------------------------------------- */
#projects .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project-filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg-solid);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.project-filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-primary);
    color: #ffffff;
}

/* Featured Case Study Banner */
.featured-banner-card {
    background: linear-gradient(135deg, rgba(13, 17, 28, 0.9) 0%, rgba(20, 25, 42, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

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

.tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
}

.featured-info h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.featured-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.featured-points {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.featured-points li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.featured-points i {
    color: var(--emerald);
    font-size: 0.9rem;
}

.featured-points strong {
    color: var(--text-main);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.tech-pills span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.featured-links {
    display: flex;
    gap: 1rem;
}

/* Mockup Window Visual */
.mockup-window {
    background: #090c15;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.mockup-bar {
    background: #131726;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--card-border);
}

.mockup-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.mockup-screen {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.screen-header {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screen-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    text-align: center;
}

.metric-box span {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: block;
}

.metric-box strong {
    font-size: 1rem;
    color: var(--cyan);
    font-family: var(--font-mono);
}

.screen-chart-placeholder {
    height: 100px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0.75rem;
    gap: 0.5rem;
}

.chart-bar-item {
    width: 18%;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

/* Regular Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.project-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.project-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.project-links a {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.project-links a:hover {
    color: #ffffff;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 0.35rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.project-snippet {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
}

.btn-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    transition: gap var(--transition-fast);
}

.btn-text:hover {
    gap: 0.6rem;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   11. SKILLS & TECHNOLOGIES MATRIX
   -------------------------------------------------------------------------- */
.skill-search-wrapper {
    max-width: 480px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1rem;
}

#skill-search {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

#skill-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.skill-category-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.category-header p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

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

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.skill-badge:hover {
    border-color: var(--primary);
    color: #ffffff;
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.skill-badge.hidden {
    display: none !important;
}

/* Exploring Frontiers Grid */
.exploring-wrapper {
    background: rgba(13, 17, 28, 0.5);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.exploring-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--cyan);
}

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

.exploring-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

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

.exp-icon {
    font-size: 1.25rem;
    color: var(--cyan);
}

.exploring-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.exploring-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. CODING ACTIVITY & STATS SECTION
   -------------------------------------------------------------------------- */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.activity-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header-icon {
    font-size: 2rem;
    color: var(--primary);
}

.activity-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.activity-card-header p {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.stats-embed-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.stats-embed-img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: transform var(--transition-fast);
}

.stats-embed-img:hover {
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   13. EDUCATION TIMELINE SECTION
   -------------------------------------------------------------------------- */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--cyan) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    transform: translateX(calc(-50% + 8px));
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
}

.timeline-card {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.timeline-card:hover {
    border-color: var(--card-border-hover);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.edu-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
}

.edu-degree {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.edu-school {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.edu-grade-badge {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--primary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.edu-grade-badge span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-dim);
}

.edu-grade-badge strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary);
}

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

.edu-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-skills span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   14. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact-info-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.info-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-item {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.info-content span {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: block;
}

.info-content a, .info-content p {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.info-content a:hover {
    color: var(--primary);
}

.copy-btn {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.contact-social-row {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-btn:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
}

/* Form Styles */
.contact-form-panel {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}

.form-preset-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.chip-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.chip-btn.active, .chip-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.1rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    padding: 0.8rem 1.1rem 0.8rem 2.8rem;
    background: rgba(6, 8, 13, 0.6);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.textarea-wrapper i {
    top: 1.1rem;
}

.input-wrapper textarea {
    resize: vertical;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

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

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

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

.footer-center p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.heart-icon {
    color: var(--rose);
}

.back-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   16. MODAL DIALOG & TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 11, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.75rem;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-content-body h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.modal-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.modal-content-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.modal-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.modal-bullet-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.modal-bullet-list i {
    color: var(--emerald);
    margin-top: 4px;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--card-bg-solid);
    border: 1px solid var(--primary);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.3s ease forwards;
}

.toast i {
    color: var(--emerald);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   17. COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .hero-section {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 2.5rem);
        padding-bottom: 3.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        max-width: 720px;
        margin: 0 auto;
        text-align: left;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #projects .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .exploring-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    /* Navbar & Mobile Navigation Drawer */
    .navbar {
        padding: 0 1.25rem;
    }

    .navbar-header {
        padding: 0.75rem 0;
    }

    .nav-actions .btn-nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-nav-cta {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--card-border);
    }

    .mobile-nav-cta .btn {
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--nav-height) + 8px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        background: rgba(13, 17, 28, 0.98);
        border: 1px solid var(--card-border);
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        gap: 0.35rem;
        max-height: calc(100dvh - var(--nav-height) - 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 100;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.98);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.25s ease,
                    visibility 0.25s ease;
    }

    .nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        font-size: 0.95rem;
        color: var(--text-muted);
        transition: all var(--transition-fast);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(139, 92, 246, 0.12);
        color: #ffffff;
        padding-left: 1.25rem;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Typography & Sections */
    .section-padding {
        padding: 3.75rem 0;
    }

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

    .section-title {
        font-size: clamp(1.85rem, 5.5vw, 2.25rem);
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    /* Hero Section */
    .hero-section {
        padding-top: calc(var(--nav-height) + 1.25rem);
        padding-bottom: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 6.5vw, 2.65rem);
    }

    .hero-typing-wrapper {
        font-size: clamp(1.05rem, 3.8vw, 1.25rem);
        min-height: 2.2rem;
        flex-wrap: wrap;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        gap: 0.85rem;
        margin-bottom: 1.75rem;
    }

    /* Featured Case Study */
    .featured-banner-card {
        padding: 1.75rem 1.35rem;
        margin-bottom: 2rem;
    }

    .featured-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 1rem;
    }

    .featured-info h3 {
        font-size: 1.45rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem 1.25rem;
    }

    /* About Section */
    .about-card {
        padding: 1.5rem 1.25rem;
    }

    .bio-highlights {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Skills Section */
    .skill-category-card {
        padding: 1.5rem 1.25rem;
    }

    .exploring-wrapper {
        padding: 1.5rem 1.25rem;
    }

    .exploring-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    /* Activity & Education */
    .activity-card {
        padding: 1.5rem 1.25rem;
    }

    .timeline-card {
        padding: 1.5rem 1.25rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Contact Section */
    .contact-form-panel {
        padding: 1.75rem 1.35rem;
    }

    /* Prevent iOS auto-zoom on form inputs by ensuring font-size >= 16px */
    #contact-form input,
    #contact-form textarea,
    #skill-search {
        font-size: 16px !important;
    }

    /* Modal Dialog */
    .modal-dialog {
        padding: 1.5rem 1.25rem;
        max-width: 95vw;
        max-height: 90vh;
    }

    .modal-close-btn {
        top: 1rem;
        right: 1rem;
    }

    /* Toast Notification Positioning */
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        align-items: center;
    }

    .toast {
        max-width: 100%;
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
        padding-bottom: max(2rem, calc(1.25rem + env(safe-area-inset-bottom)));
    }

    .footer-container {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}

/* Small Phones & Mobile Devices (<= 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    /* Status Badge */
    .status-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.8rem;
        line-height: 1.35;
    }

    /* Hero Buttons & Socials */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

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

    .hero-socials {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Stat Cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem 0.85rem;
        gap: 0.75rem;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .stat-number {
        font-size: 1.65rem;
    }

    .stat-plus {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* About Section Bio Header */
    .bio-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bio-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Featured Project */
    .featured-banner-card {
        padding: 1.25rem 1rem;
    }

    .featured-points li {
        font-size: 0.82rem;
    }

    .featured-links {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .featured-links .btn {
        width: 100%;
    }

    .screen-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .metric-box {
        padding: 0.5rem 0.25rem;
    }

    .metric-box span {
        font-size: 0.65rem;
    }

    .metric-box strong {
        font-size: 0.85rem;
    }

    /* Terminal Sandbox Card */
    .terminal-header {
        padding: 0.6rem 0.85rem;
    }

    .terminal-body {
        padding: 0.85rem;
        font-size: 0.75rem;
        min-height: 200px;
        max-height: 280px;
        overflow-y: auto;
    }

    .terminal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0.85rem;
    }

    .btn-run-demo {
        width: 100%;
        text-align: center;
        padding: 0.45rem;
    }

    /* Skills Matrix */
    .skill-category-card {
        padding: 1.25rem 1rem;
    }

    .skill-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    /* Activity Embeds */
    .activity-card {
        padding: 1.25rem 1rem;
    }

    .stats-embed-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Education Timeline */
    .education-timeline {
        padding-left: 1.5rem;
    }

    .education-timeline::before {
        left: 5px;
    }

    .timeline-dot {
        left: -1.5rem;
        transform: translateX(calc(-50% + 6px));
        width: 14px;
        height: 14px;
    }

    .timeline-card {
        padding: 1.25rem 1rem;
    }

    /* Contact Details & Form */
    .contact-form-panel {
        padding: 1.25rem 1rem;
    }

    .contact-social-row {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }

    .info-item {
        padding: 0.85rem 1rem;
    }

    .info-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .container {
        padding: 0 0.75rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

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

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

    .screen-metrics {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .mockup-screen {
        padding: 0.85rem;
    }

    .filter-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
}
