/* ==========================================================================
   MOHAMMAD RAYHAN - WORLD CLASS 3D PORTFOLIO
   Aesthetics: Obsidian Luxury Dark, Kinetic Typography, Glassmorphism, 3D Tilt
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@600;700;800;900&display=swap');

:root {
    --bg-main: #07080b;
    --bg-card: rgba(13, 16, 23, 0.65);
    --bg-card-hover: rgba(18, 22, 32, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.22);
    
    /* Default Theme: Cyber Cyan */
    --accent: #00f3ff;
    --accent-rgb: 0, 243, 255;
    --accent-glow: rgba(0, 243, 255, 0.35);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Syne', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease-out-expo);
}

/* Theme Variations */
body.theme-gold {
    --accent: #ffd700;
    --accent-rgb: 255, 215, 0;
    --accent-glow: rgba(255, 215, 0, 0.35);
}
body.theme-violet {
    --accent: #b026ff;
    --accent-rgb: 176, 38, 255;
    --accent-glow: rgba(176, 38, 255, 0.35);
}
body.theme-emerald {
    --accent: #00ff88;
    --accent-rgb: 0, 255, 136;
    --accent-glow: rgba(0, 255, 136, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
}

/* Selection */
::selection {
    background: var(--accent);
    color: #000;
}

/* --- 3D Background Canvas --- */
#canvas-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Vignette overlay */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at center, transparent 35%, rgba(7, 8, 11, 0.75) 100%);
}

/* --- Custom Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent);
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.cursor-follower.hovered {
    width: 58px;
    height: 58px;
    opacity: 0.85;
    background: rgba(var(--accent-rgb), 0.08);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 64px);
    max-width: 1320px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(10, 12, 18, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-monogram {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 1; }
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-tech);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

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

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

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Theme Switcher Dots */
.theme-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-dot:hover {
    transform: scale(1.2);
}

.theme-dot.active {
    border-color: #fff;
    transform: scale(1.15);
}

.theme-dot[data-theme="cyan"] { background: #00f3ff; }
.theme-dot[data-theme="gold"] { background: #ffd700; }
.theme-dot[data-theme="violet"] { background: #b026ff; }
.theme-dot[data-theme="emerald"] { background: #00ff88; }

/* Audio & Action Buttons */
.nav-icon-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--accent-glow);
}

.nav-icon-btn.active {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- Container Layout --- */
.page-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    position: relative;
    padding: 120px 0;
}

/* Section Header Typography */
.section-tag {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-tag::before {
    content: '//';
    color: var(--text-muted);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 30px;
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title span {
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Primary & Secondary Buttons */
.btn {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: #fff;
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Hero Metrics Strip */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border-glass);
    max-width: 680px;
}

.metric-item .metric-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-item .metric-val small {
    font-size: 1.2rem;
    color: var(--accent);
    margin-left: 2px;
}

.metric-item .metric-label {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- About Section & Pillars --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.about-narrative p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.pillars-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.glass-card:hover::before {
    opacity: 1;
}

.pillar-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.pillar-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pillar-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Flagship Projects (3D Tilt Cards) --- */
.projects-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.project-filters {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 6px;
    border-radius: 30px;
    backdrop-filter: blur(12px);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: #fff;
}

.filter-btn.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 14px var(--accent-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* 3D Tilt Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 32px var(--accent-glow);
}

.card-banner {
    position: relative;
    height: 220px;
    background: #11141c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.18;
    background-size: 24px 24px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
}

.banner-graphic {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.05);
    transition: transform 0.5s var(--ease-out-expo), color 0.5s ease;
}

.project-card:hover .banner-graphic {
    transform: scale(1.08);
    color: rgba(var(--accent-rgb), 0.15);
}

.project-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(10, 12, 18, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 28px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
}

.card-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.project-card:hover .card-arrow {
    color: var(--accent);
    transform: translate(4px, -4px);
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font-tech);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
}

.card-stat {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* --- Skills Matrix --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.skill-category-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
}

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

.skill-cat-icon {
    font-size: 1.3rem;
    color: var(--accent);
}

.skill-cat-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.skill-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.5), var(--accent));
    border-radius: 3px;
    transition: width 1s var(--ease-out-expo);
}

/* --- Experience & Milestones Timeline --- */
.timeline-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline-wrap::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0.05));
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-dot {
    position: absolute;
    top: 6px;
    left: -32px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-period {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.timeline-company {
    font-family: var(--font-tech);
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Contact & Interactive Terminal --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info-col h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-info-col p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.direct-connect-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-display {
    font-family: var(--font-tech);
    font-size: 0.92rem;
    color: #fff;
    font-weight: 600;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--accent);
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--accent);
    color: #000;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 14px var(--accent-glow);
}

/* Glass Terminal Contact Form */
.terminal-card {
    background: rgba(12, 14, 20, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-glass);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.contact-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-input, .form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    background: rgba(255, 255, 255, 0.05);
}

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

.form-submit-btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: rgba(14, 18, 26, 0.95);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 14px 22px;
    color: #fff;
    font-family: var(--font-tech);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-glow);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

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

/* --- Project Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 9, 0.85);
    backdrop-filter: blur(24px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: rgba(13, 16, 24, 0.95);
    border: 1px solid var(--border-glass-hover);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s var(--ease-out-expo);
}

.modal-overlay.open .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #fff;
    border-color: #fff;
    transform: rotate(90deg);
}

.modal-tag {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.modal-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.2rem;
    margin: 24px 0 8px 0;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-tech);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.footer-brand {
    color: #fff;
    font-weight: 600;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-links {
        display: none; /* Can toggle on mobile hamburger */
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 12px;
        width: calc(100% - 24px);
        padding: 0 16px;
    }
    .status-pill {
        display: none;
    }
    .hero-section {
        padding-top: 110px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .page-wrapper {
        padding: 0 20px;
    }
    .modal-container {
        padding: 24px;
    }
}
