/* ==========================================================================
   DevOps Portfolio – Complete Mobile-First Responsive Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: #0d1117;
    --bg-surface: #161b22;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    --border-color: #30363d;
    --border-hover: #58a6ff;

    --primary: #238636;
    --primary-hover: #2ea043;
    --blue-accent: #2f81f7;
    --purple-accent: #a371f7;
    --youtube-red: #da3633;
    
    --text-main: #c9d1d9;
    --text-heading: #f0f6fc;
    --text-muted: #8b949e;
    --text-dim: #6e7681;

    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(47, 129, 247, 0.15);
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease-out-expo);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

/* Lock body scroll when mobile nav is open */
body.nav-locked {
    overflow: hidden;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

/* Minimalist Grid Pattern */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: -1;
}

/* --------------------------------------------------------------------------
   2. Typography & Core Components
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #79c0ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding {
    padding: 85px 0;
}

.section-header {
    margin-bottom: 40px;
}

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

.section-title {
    font-size: 2.1rem;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

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

.section-line {
    width: 50px;
    height: 3px;
    background: var(--blue-accent);
    margin-top: 14px;
    border-radius: 2px;
    transition: width 0.4s var(--ease-out-expo);
}

/* Cards */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    will-change: transform, box-shadow, border-color;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    will-change: transform;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

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

.btn-secondary {
    background: #21262d;
    color: var(--text-heading);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: #30363d;
    border-color: #8b949e;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--blue-accent);
    border-color: var(--blue-accent);
}

.btn-outline-primary:hover {
    background: rgba(47, 129, 247, 0.15);
    color: #58a6ff;
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
    background: #21262d;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.btn-icon:hover {
    background: #30363d;
    color: var(--blue-accent);
    border-color: var(--blue-accent);
    transform: translateY(-2px);
}

.btn-youtube:hover {
    background: var(--youtube-red) !important;
    color: #fff !important;
    border-color: var(--youtube-red) !important;
}

.btn-youtube-cta {
    background: var(--youtube-red);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
}

.btn-youtube-cta:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 16px;
    min-height: 38px;
    font-size: 0.82rem;
}

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

/* --------------------------------------------------------------------------
   3. Navigation Header & Responsive Drawer
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    height: 62px;
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    flex-shrink: 0;
}

.prompt-symbol {
    color: var(--blue-accent);
    font-weight: bold;
}

.cursor-blink {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-accent);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--text-heading);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--blue-accent);
}

.mobile-toggle {
    display: none;
    background: #21262d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover {
    background: #30363d;
    color: var(--blue-accent);
}

/* Mobile drawer overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* --------------------------------------------------------------------------
   4. Hero Section & Interactive Terminal
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 130px;
    padding-bottom: 60px;
}

.grid-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(35, 134, 54, 0.15);
    border: 1px solid rgba(46, 160, 67, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: #3fb950;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #3fb950;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.hero-title {
    font-size: 2.85rem;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle .divider {
    color: var(--border-color);
    margin: 0 6px;
}

.typewriter-box {
    background: #010409;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    min-width: 0;
}

.prompt-prefix {
    color: var(--blue-accent);
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.typewriter-text {
    color: var(--text-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.cursor {
    color: var(--primary);
    animation: blink 0.8s infinite;
    flex-shrink: 0;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Terminal Component */
.hero-terminal-container {
    background: #010409;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    font-family: var(--font-mono);
    width: 100%;
    min-width: 0;
}

.terminal-header {
    background: #161b22;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-close { background: #ea4e43; }
.dot-min { background: #f5a623; }
.dot-max { background: #23d160; }

.terminal-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.terminal-body {
    padding: 16px;
    height: 240px;
    overflow-y: auto;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #0d1117;
    -webkit-overflow-scrolling: touch;
}

.terminal-line {
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.text-dim { color: var(--text-dim); }
.t-success { color: #3fb950; margin-right: 6px; }
.t-info { color: #58a6ff; margin-right: 6px; }
.t-highlight { color: #ffffff; font-weight: bold; }
.t-text { color: var(--text-muted); }
.t-dim { color: var(--text-dim); }
.highlight-cmd { color: #3fb950; }

.terminal-quick-btns {
    padding: 8px 12px;
    background: #161b22;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.t-btn {
    background: #21262d;
    border: 1px solid var(--border-color);
    color: var(--blue-accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 10px;
    min-height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.t-btn:hover {
    background: var(--blue-accent);
    color: #ffffff;
    border-color: var(--blue-accent);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #010409;
    border-top: 1px solid var(--border-color);
    min-width: 0;
}

.t-user {
    color: var(--blue-accent);
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-heading);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    width: 100%;
    min-width: 0;
    -webkit-appearance: none;
}

/* --------------------------------------------------------------------------
   5. Metrics Bar
   -------------------------------------------------------------------------- */
.metrics-bar-section {
    padding: 10px 0 50px 0;
}

.metrics-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 22px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.metric-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--blue-accent);
    line-height: 1.1;
    word-break: break-word;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    word-break: break-word;
}

.metric-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. About Section
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   6b. Engineering Architecture Principles
   -------------------------------------------------------------------------- */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.arch-card {
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.arch-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-accent);
    background: rgba(47, 129, 247, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 14px;
}

.arch-icon {
    font-size: 1.6rem;
    color: var(--blue-accent);
    margin-bottom: 12px;
}

.arch-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.arch-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.arch-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #3fb950;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   6c. Certifications & Credentials Grid
   -------------------------------------------------------------------------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.cert-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.accent-border-gold {
    border-left: 4px solid #f1e05a;
}

.accent-border-purple {
    border-left: 4px solid var(--purple-accent);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cert-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--blue-accent);
}

.cert-level-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #f1e05a;
    background: rgba(241, 224, 90, 0.12);
    border: 1px solid rgba(241, 224, 90, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
}

.level-green {
    color: #3fb950;
    background: rgba(35, 134, 54, 0.12);
    border-color: rgba(46, 160, 67, 0.3);
}

.level-purple {
    color: var(--purple-accent);
    background: rgba(163, 113, 247, 0.12);
    border-color: rgba(163, 113, 247, 0.3);
}

.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--blue-accent);
    margin-bottom: 12px;
}

.cert-details {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.cert-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-skills-tags span {
    background: #21262d;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.about-card p {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(47, 129, 247, 0.12);
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.education-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edu-card {
    position: relative;
    padding: 22px;
}

.accent-border-green {
    border-left: 3px solid var(--primary);
}

.accent-border-blue {
    border-left: 3px solid var(--blue-accent);
}

.edu-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #3fb950;
    background: rgba(35, 134, 54, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.edu-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.edu-meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--blue-accent);
    margin-bottom: 8px;
}

.edu-desc {
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   7. Experience Timeline
   -------------------------------------------------------------------------- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    border-left: 3px solid var(--blue-accent);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.role-title {
    font-size: 1.2rem;
    color: var(--text-heading);
    word-break: break-word;
}

.company-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--blue-accent);
    margin-top: 2px;
    word-break: break-word;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    background: #21262d;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-duties {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-duties li {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Skills Section
   -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 22px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skill-icon {
    font-size: 1.3rem;
    color: var(--blue-accent);
    width: 36px;
    height: 36px;
    background: rgba(47, 129, 247, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-header h3 {
    font-size: 1.1rem;
    min-width: 0;
}

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #21262d;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-main);
    transition: var(--transition);
}

.tag-pill:hover {
    background: #30363d;
    border-color: var(--blue-accent);
    color: var(--text-heading);
}

.tag-pill i {
    color: var(--blue-accent);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Projects Section
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.project-type {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.status-active {
    background: rgba(35, 134, 54, 0.15);
    color: #3fb950;
    border: 1px solid rgba(46, 160, 67, 0.3);
}

.status-founder {
    background: rgba(163, 113, 247, 0.15);
    color: var(--purple-accent);
    border: 1px solid rgba(163, 113, 247, 0.3);
}

.status-assessment {
    background: rgba(47, 129, 247, 0.15);
    color: var(--blue-accent);
    border: 1px solid rgba(47, 129, 247, 0.3);
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    word-break: break-word;
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.project-arch-flow {
    background: #010409;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.project-arch-flow code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #3fb950;
    white-space: nowrap;
}

.tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tech-stack-badges span {
    background: #21262d;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.project-links {
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   10. YouTube Banner
   -------------------------------------------------------------------------- */
.youtube-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 20px;
}

.yt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #f85149;
    background: rgba(218, 54, 51, 0.15);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.yt-header h2 {
    font-size: 1.75rem;
    margin-bottom: 6px;
    word-break: break-word;
}

.yt-header p {
    font-size: 0.95rem;
    max-width: 580px;
}

.mt-12 {
    margin-top: 12px;
}

.yt-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   10b. FAQ Section (AEO & GEO Optimization)
   -------------------------------------------------------------------------- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.faq-card {
    padding: 24px;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--blue-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-icon.icon-yt {
    color: var(--youtube-red);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-heading);
    line-height: 1.35;
}

.faq-answer p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
    gap: 28px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--radius-sm);
    background: rgba(47, 129, 247, 0.12);
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-heading);
}

.info-item p {
    font-size: 0.88rem;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.text-link {
    color: var(--blue-accent);
    word-break: break-all;
}

.social-links-large {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 44px;
    background: #21262d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    font-size: 0.88rem;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.social-badge:hover {
    background: #30363d;
    border-color: var(--blue-accent);
    color: var(--blue-accent);
}

.social-yt:hover {
    border-color: var(--youtube-red);
    color: var(--youtube-red);
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #010409;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    min-height: 44px;
    color: var(--text-heading);
    font-family: var(--font-body);
    font-size: 16px; /* Prevents iOS zoom on focus */
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.2);
}

.form-status {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-align: center;
    word-break: break-word;
}

.form-status.success { color: #3fb950; }
.form-status.error { color: #f85149; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    background: #010409;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    min-width: 0;
}

.footer-left p {
    word-break: break-word;
}

.footer-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 14px;
    min-height: 44px;
    background: #21262d;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
}

.back-to-top:hover {
    background: #30363d;
    color: var(--text-heading);
}

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS – Tablet (≤992px)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .grid-2col {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.25rem;
    }
    
    .metrics-grid {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px 16px;
    }

    .metric-divider {
        display: none;
    }

    .metric-item {
        flex: 1 1 40%;
        padding: 8px 0;
    }

    .youtube-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .yt-header p {
        max-width: 100%;
    }

    .yt-actions {
        width: 100%;
    }

    .yt-actions .btn-youtube-cta {
        width: 100%;
    }
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS – Mobile (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .container {
        padding: 0 16px;
    }

    .section-padding {
        padding: 50px 0;
    }

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

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

    /* ------ Mobile Navigation Drawer ------ */
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 90px 24px 40px 24px;
        gap: 0;
        border-left: 1px solid var(--border-color);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: right 0.35s var(--ease-out-expo);
    }

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

    .nav-link {
        font-size: 1rem;
        padding: 14px 0;
        border-bottom: 1px solid rgba(48, 54, 61, 0.5);
        width: 100%;
        min-height: 48px;
    }

    .nav-link i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

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

    /* ------ Hero Mobile ------ */
    .hero-section {
        padding-top: 95px;
        padding-bottom: 32px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

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

    .hero-subtitle .divider {
        display: none;
    }

    .hero-subtitle {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .hero-description {
        font-size: 0.92rem;
        max-width: 100%;
    }

    .status-badge {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    /* Hero actions: text buttons full-width, icon buttons stay as row */
    .hero-actions {
        gap: 10px;
        flex-direction: column;
    }

    .hero-actions .btn:not(.btn-icon) {
        width: 100%;
    }

    .hero-actions .btn-icon {
        width: 48px;
        height: 48px;
    }

    /* Group icon buttons horizontally on their own row */
    .hero-icon-group {
        display: flex;
        gap: 10px;
    }

    /* ------ Typewriter Mobile ------ */
    .typewriter-box {
        padding: 8px 10px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .prompt-prefix {
        font-size: 0.7rem;
    }

    /* ------ Terminal Mobile ------ */
    .terminal-body {
        height: 200px;
        font-size: 0.75rem;
        padding: 12px;
    }

    .terminal-quick-btns {
        padding: 8px 10px;
        gap: 6px;
    }

    .t-btn {
        flex: 1 1 calc(33.33% - 8px);
        min-width: 0;
        text-align: center;
        padding: 8px 6px;
        min-height: 40px;
        font-size: 0.72rem;
    }

    .terminal-input-row {
        padding: 10px 12px;
    }

    .t-user {
        font-size: 0.72rem;
    }

    #terminal-input {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .terminal-title {
        font-size: 0.7rem;
    }

    /* ------ Metrics Mobile ------ */
    .metrics-bar-section {
        padding: 10px 0 30px 0;
    }

    .metrics-grid {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .metric-item {
        flex: none;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(48, 54, 61, 0.3);
    }

    .metric-item:last-child {
        border-bottom: none;
    }

    .metric-number {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.72rem;
    }

    /* ------ Cards Mobile ------ */
    .glass-card {
        padding: 18px;
    }

    .glass-card:hover {
        transform: none; /* Disable hover lift on touch devices */
    }

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

    .skill-card {
        padding: 18px;
    }

    .tag-pill {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    /* ------ Timeline Mobile ------ */
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .role-title {
        font-size: 1.05rem;
    }

    .company-name {
        font-size: 0.8rem;
    }

    .timeline-duties li {
        font-size: 0.88rem;
    }

    /* ------ YouTube Mobile ------ */
    .youtube-banner {
        padding: 20px;
    }

    .yt-header h2 {
        font-size: 1.35rem;
    }

    .yt-header p {
        font-size: 0.88rem;
    }

    /* ------ Contact Mobile ------ */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .social-links-large {
        flex-direction: column;
    }

    .social-badge {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* ------ Footer Mobile ------ */
    .footer {
        padding: 24px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-sub {
        font-size: 0.75rem;
    }

    .back-to-top {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS – Small Phone (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.55rem;
    }

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

    .typewriter-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px;
    }

    .typewriter-text {
        white-space: normal;
        word-break: break-word;
    }

    .t-btn {
        flex: 1 1 calc(50% - 6px);
    }

    .brand-logo {
        font-size: 0.95rem;
    }

    .status-badge {
        font-size: 0.68rem;
        padding: 4px 8px;
        flex-wrap: wrap;
    }

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

    .metric-number {
        font-size: 1.3rem;
    }

    .edu-card {
        padding: 16px;
    }

    .edu-card h3 {
        font-size: 1.05rem;
    }

    .project-title {
        font-size: 1.05rem;
    }

    .info-item {
        align-items: flex-start;
    }

    .info-icon {
        margin-top: 2px;
    }
}

/* ==========================================================================
   16. Touch / Hover Preference
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms on pure touch devices */
    .glass-card:hover {
        transform: none;
        box-shadow: var(--shadow-card);
        border-color: var(--border-color);
        background: var(--bg-surface);
    }

    .btn:hover {
        transform: none;
    }

    /* Active state for tap feedback instead */
    .glass-card:active {
        border-color: var(--border-hover);
        background: var(--bg-card-hover);
    }

    .btn:active {
        transform: scale(0.97);
    }

    .t-btn:active {
        background: var(--blue-accent);
        color: #ffffff;
        border-color: var(--blue-accent);
    }
}
