:root {
    --bg-main: #070b14;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-bright: rgba(255, 255, 255, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #38bdf8;
    --accent-blue: #2563eb;
    --accent-purple: #a78bfa;
    --accent-pink: #f472b6;
    --accent-emerald: #10b981;
    --accent-yellow: #f59e0b;
    
    --gradient-cyan-blue: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    --gradient-purple-pink: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
    --gradient-cosmic: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #f472b6 100%);
    
    --shadow-glow-cyan: 0 0 30px rgba(56, 189, 248, 0.25);
    --shadow-glow-purple: 0 0 30px rgba(167, 139, 250, 0.25);
    --shadow-panel: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0e1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    border: 2px solid #0a0e1a;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Starfield Canvas & Background Orbs */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-cyan {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: -100px;
    left: -100px;
}

.orb-purple {
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
    top: 40%;
    right: -150px;
    animation-delay: -5s;
}

.orb-pink {
    width: 450px;
    height: 450px;
    background: var(--accent-pink);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 80px) scale(1.1); }
    100% { transform: translate(-30px, -50px) scale(0.95); }
}

/* Glassmorphism Panel Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-panel);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: var(--border-glass-bright);
}

/* Navbar */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.gradient-accent {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-cyan-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.btn-connect {
    padding: 10px 22px;
    border-radius: 99px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-cyan) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-connect::after {
    display: none !important;
}

.btn-connect:hover {
    background: var(--accent-cyan);
    color: #000 !important;
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

/* Main Layout */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 32px 80px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    min-height: calc(85vh - 80px);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 99px;
    color: var(--accent-emerald);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--accent-emerald); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-cyan-blue);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.stats-banner {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual / Avatar Ring */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-glass-ring {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.15), inset 0 0 30px rgba(167, 139, 250, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: ringFloat 7s ease-in-out infinite;
}

@keyframes ringFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.ring-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(167, 139, 250, 0.4);
    animation: ringSpin 30s linear infinite;
    pointer-events: none;
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section Common Headers */
.section-header {
    margin-bottom: 40px;
}

.title-index {
    color: var(--accent-cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-right: 12px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
}

/* Terminal Section */
.terminal-container {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.1);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.terminal-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.terminal-status-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.terminal-quick-chips {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cmd-chip {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    font-family: monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmd-chip:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.terminal-body {
    padding: 24px;
    min-height: 320px;
    max-height: 440px;
    overflow-y: auto;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.terminal-input-bar {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.prompt-symbol {
    color: var(--accent-emerald);
    font-family: monospace;
    font-weight: 700;
    font-size: 1rem;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
}

/* Terminal Line Styles generated safely by JS */
.term-line {
    line-height: 1.5;
    word-break: break-word;
}
.term-line.user-cmd {
    color: var(--accent-cyan);
    font-weight: 600;
}
.term-line.response {
    color: #cbd5e1;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}
.term-line.highlight {
    color: var(--accent-purple);
}
.term-line.error {
    color: #f87171;
}

/* Skills Filter & Grid */
.skills-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-cyan-blue);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.skill-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.skill-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-cyan-blue);
    border-radius: 99px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card[data-category="ai"] .progress-fill {
    background: var(--gradient-purple-pink);
}

.skill-card[data-category="security"] .progress-fill {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.skill-level {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    align-self: flex-end;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
}

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-mockup-bg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.mockup-calculator .calc-preview-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.mockup-security {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
}
.security-shield-icon { font-size: 3rem; margin-bottom: 8px; }
.security-preview-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: #10b981; }

.project-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.project-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
}

.project-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tech-tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-card-action {
    flex: 1;
    padding: 12px;
    font-size: 0.92rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
}

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

.btn-card-link {
    padding: 12px 18px;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.btn-card-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Telemetry Section */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.telemetry-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.telemetry-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.telemetry-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.telemetry-gauge {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gauge-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.gauge-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.gauge-bar-fill {
    height: 100%;
    background: var(--gradient-cyan-blue);
    border-radius: 99px;
    transition: width 0.8s ease;
}
.gauge-bar-fill.purple-fill { background: var(--gradient-purple-pink); }
.gauge-bar-fill.pink-fill { background: linear-gradient(135deg, #f472b6, #ec4899); }

.telemetry-footer {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Contact Box */
.contact-box {
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-badge {
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
}

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 680px;
    line-height: 1.7;
}

.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: left;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Footer */
.glass-footer {
    background: rgba(7, 11, 20, 0.9);
    border-top: 1px solid var(--border-glass);
    padding: 48px 32px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-status {
    color: var(--accent-emerald);
    font-weight: 600;
}

/* Custom Accessible Modal Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.custom-modal {
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(56, 189, 248, 0.15);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.modal-title-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-primary);
    line-height: 1.7;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    main {
        padding: 100px 24px 60px;
        gap: 80px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-banner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile Adaptation */
    .nav-container {
        padding: 0 16px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(7, 11, 20, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid var(--border-glass);
        padding: 12px 8px;
        justify-content: space-around;
        gap: 6px;
        z-index: 1000;
        overflow-x: auto;
    }
    
    .nav-link {
        font-size: 0.78rem;
        white-space: nowrap;
        padding: 6px 10px;
    }
    
    .btn-connect {
        padding: 6px 12px;
        font-size: 0.78rem !important;
    }

    /* Main body padding adjustments for bottom navigation */
    main {
        padding: 90px 16px 90px;
        gap: 64px;
    }
    
    /* Hero adjustments */
    .hero-title {
        font-size: 2.3rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .avatar-glass-ring {
        width: 260px;
        height: 260px;
        padding: 12px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }

    /* Terminal Mobile Layout */
    .terminal-container {
        border-radius: 16px;
    }

    .terminal-header {
        padding: 12px 16px;
    }

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

    .terminal-quick-chips {
        padding: 10px 14px;
        gap: 6px;
    }

    .cmd-chip {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .terminal-body {
        padding: 16px;
        min-height: 250px;
        max-height: 340px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .terminal-input-bar {
        padding: 12px 14px;
        gap: 8px;
    }

    .prompt-symbol {
        font-size: 0.85rem;
    }

    .terminal-input {
        font-size: 0.88rem;
    }

    /* Grids stack nicely on mobile */
    .skills-grid,
    .projects-grid,
    .telemetry-grid,
    .contact-links-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .skills-filter-container {
        gap: 8px;
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .project-img-wrapper {
        height: 180px;
    }

    /* Contact Box Mobile */
    .contact-box {
        padding: 32px 16px;
        gap: 24px;
    }
    
    .contact-title {
        font-size: 1.9rem;
    }
    
    .contact-desc {
        font-size: 1rem;
    }

    .contact-item {
        padding: 14px;
        gap: 12px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .contact-value {
        font-size: 0.9rem;
        word-break: break-all;
    }

    /* Footer Mobile */
    .glass-footer {
        padding: 32px 16px 80px; /* Extra bottom padding so mobile nav bar doesn't cover */
    }

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

    .footer-meta {
        align-items: center;
    }

    /* Modal Mobile */
    .custom-modal {
        padding: 20px;
        max-height: 80vh;
    }

    .modal-title-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.95rem;
    }

    .status-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .avatar-glass-ring {
        width: 220px;
        height: 220px;
    }

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

    .terminal-quick-chips {
        justify-content: center;
    }

    .stat-card {
        width: 45%;
        text-align: center;
    }
}
