/* ==========================================
   GLOBAL VARIABLES & RESET
   ========================================== */
:root {
    /* Cyberpunk Color Palette */
    --primary-cyan: #00f3ff;
    --primary-blue: #0066ff;
    --electric-purple: #9d00ff;
    --neon-pink: #ff006e;
    --matrix-green: #00ff41;

    /* Dark Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #151933;
    --bg-tertiary: #1e2338;
    --bg-card: rgba(30, 35, 56, 0.8);
    --bg-hover: rgba(0, 243, 255, 0.1);

    /* Text Colors */
    --text-primary: #e8eaf6;
    --text-secondary: #b0b8d4;
    --text-muted: #6b7394;
    --text-accent: var(--primary-cyan);

    /* Effects */
    --glow-cyan: 0 0 20px rgba(0, 243, 255, 0.5);
    --glow-purple: 0 0 20px rgba(157, 0, 255, 0.5);
    --glow-blue: 0 0 30px rgba(0, 102, 255, 0.6);

    /* Fonts */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================
   ANIMATED BACKGROUND
   ========================================== */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ==========================================
   SYSTEM HEADER
   ========================================== */
.system-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.status-bar {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.active {
    background: var(--matrix-green);
    box-shadow: 0 0 10px var(--matrix-green);
}

.status-dot.progress {
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
}

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

/* ==========================================
   NAVIGATION
   ========================================== */
.main-nav {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-bracket {
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
}

.brand-name {
    color: var(--text-primary);
    margin: 0 0.25rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--electric-purple));
    transition: var(--transition-normal);
}

.nav-links a:hover {
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
}

.nav-links a:hover::before {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.terminal-window {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-cyan);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 2rem;
}

.terminal-line {
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.prompt {
    color: var(--matrix-green);
    text-shadow: 0 0 10px var(--matrix-green);
}

.command {
    color: var(--primary-cyan);
}

.terminal-output {
    margin: 1.5rem 0;
}

.terminal-output h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--electric-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch {
    position: relative;
    animation: glitchSkew 3s ease-in-out infinite;
}

@keyframes glitchSkew {
    0%, 100% { transform: skewX(0deg); }
    20% { transform: skewX(0deg); }
    21% { transform: skewX(-2deg); }
    22% { transform: skewX(0deg); }
}

.role-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

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

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

.mission-output {
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--primary-cyan);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.mission-output p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary-cyan);
    font-weight: 600;
    text-shadow: var(--glow-cyan);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 243, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    z-index: 1;
    pointer-events: none;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-cyan);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { top: 5px; opacity: 1; }
    50% { top: 15px; opacity: 0.3; }
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.code-bracket {
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.about-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px);
}

.primary-card {
    grid-column: span 2;
}

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

.card-icon {
    font-size: 2rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-content strong {
    color: var(--primary-cyan);
}

.card-content em {
    color: var(--text-accent);
    font-style: italic;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--matrix-green);
    border-radius: 20px;
    color: var(--matrix-green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--matrix-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.philosophy-list {
    list-style: none;
}

.philosophy-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.list-icon {
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.focus-item {
    margin-bottom: 1.5rem;
}

.focus-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--electric-purple));
    border-radius: 10px;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.8); }
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

/* ==========================================
   SYSTEMS SECTION
   ========================================== */
.systems-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.systems-grid {
    display: grid;
    gap: 2rem;
}

.system-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--electric-purple));
    opacity: 0;
    transition: var(--transition-normal);
}

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

.system-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
}

.system-card.featured {
    border: 2px solid var(--primary-cyan);
    box-shadow: var(--glow-cyan);
}

.system-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.system-company {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-cyan);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 4px;
}

.system-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.system-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.system-description strong {
    color: var(--primary-cyan);
    font-weight: 600;
}

.system-description code {
    font-family: var(--font-mono);
    background: rgba(0, 243, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--primary-cyan);
}

.system-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--primary-cyan), var(--electric-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.system-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(157, 0, 255, 0.1);
    border: 1px solid var(--electric-purple);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--electric-purple);
}

.system-highlights,
.learning-objectives {
    margin-top: 2rem;
}

.system-highlights h4,
.learning-objectives h4 {
    font-size: 1.1rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.system-highlights ul,
.learning-objectives ul {
    list-style: none;
}

.system-highlights li,
.learning-objectives li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    position: relative;
}

.system-highlights li::before,
.learning-objectives li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
}

.system-impact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 8px;
}

.impact-icon {
    font-size: 1.5rem;
}

/* ==========================================
   CERTIFICATIONS SECTION
   ========================================== */
.certifications-section {
    background: var(--bg-primary);
}

.certifications-section .section-subtitle {
    margin-bottom: 0.5rem;
}

.swipe-hint {
    display: none;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.swipe-hint span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

@media (max-width: 768px) {
    .swipe-hint {
        display: block;
    }
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Custom scrollbar for mobile badge swipe */
.badges-grid::-webkit-scrollbar {
    height: 8px;
}

.badges-grid::-webkit-scrollbar-track {
    background: rgba(0, 243, 255, 0.1);
    border-radius: 10px;
}

.badges-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-cyan), var(--electric-purple));
    border-radius: 10px;
}

.badges-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

.badge-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.badge-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.badge-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    position: relative;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--electric-purple));
    opacity: 0;
    transition: var(--transition-normal);
}

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

.badge-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
}

.badge-image-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    overflow: hidden;
}

.badge-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

.badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 243, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

.badge-card:hover .badge-overlay {
    opacity: 1;
}

.badge-card:hover .badge-image {
    transform: scale(1.05);
}

.badge-view-text {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--bg-primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.badge-info {
    padding: 1.5rem;
}

.badge-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.badge-issuer {
    font-size: 0.9rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.badge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.badge-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-icon {
    font-size: 0.9rem;
}

.badge-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--matrix-green);
}

.status-dot.verified {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--matrix-green);
    box-shadow: 0 0 10px var(--matrix-green);
    animation: pulse 2s ease-in-out infinite;
}

/* Loading State */
.badge-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 243, 255, 0.2);
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.badge-loading p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* No Badges Message */
.no-badges-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-badges-message h3,
.error-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-badges-message p,
.error-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.error-message a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

.error-message a:hover {
    text-shadow: var(--glow-cyan);
}

/* ==========================================
   TECH STACK SECTION
   ========================================== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stack-category {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.stack-category.full-width {
    grid-column: 1 / -1;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.category-icon {
    font-size: 1.5rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    padding: 1rem;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 8px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.skill-percentage {
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    font-size: 0.9rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 10px;
    transition: width 1s ease-out;
}

.skill-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tech-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--primary-cyan);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.tech-badge:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateX(5px);
}

.badge-name {
    font-weight: 600;
    color: var(--text-primary);
}

.badge-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

.automation-expertise,
.cloud-knowledge {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-item,
.cloud-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: var(--transition-normal);
}

.expertise-item:hover,
.cloud-item:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.1);
}

.expertise-icon,
.cloud-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.expertise-content h4,
.cloud-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.expertise-content p,
.cloud-details p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(157, 0, 255, 0.1);
    border: 1px solid var(--electric-purple);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--electric-purple);
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.interest-tag {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(157, 0, 255, 0.1));
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.interest-tag:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(157, 0, 255, 0.2));
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-terminal .terminal-body {
    padding: 1.5rem;
}

.contact-info .info-line {
    margin-bottom: 1rem;
}

.json-output {
    margin-top: 1rem;
}

.json-output pre {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

.json-output a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

.json-output a:hover {
    text-shadow: var(--glow-cyan);
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.opportunity-list {
    list-style: none;
    margin-bottom: 2rem;
}

.opportunity-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.opportunity-list .list-icon {
    color: var(--matrix-green);
    font-weight: 700;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-quote {
    font-family: var(--font-mono);
    font-style: italic;
    color: var(--primary-cyan);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .primary-card {
        grid-column: span 1;
    }

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

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .main-nav {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .nav-links {
        gap: 0.5rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .status-bar {
        padding: 0.4rem 1rem;
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .status-item {
        font-size: 0.6rem;
    }

    .status-icon {
        display: none;
    }

    .hero-section {
        padding: 10rem 1rem 3rem;
        min-height: 100vh;
    }

    .scroll-indicator {
        display: none;
    }

    .terminal-output h1 {
        font-size: 1.75rem;
    }

    .role-text {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .about-grid,
    .stack-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-buttons {
        flex-direction: column;
    }

    .badges-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .badge-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .status-bar {
        gap: 0.25rem;
    }

    .status-item {
        font-size: 0.6rem;
    }

    .hero-section {
        padding: 9rem 0.75rem 2rem;
    }

    .terminal-body {
        padding: 1.25rem;
    }

    .terminal-output h1 {
        font-size: 1.4rem;
    }

    .mission-output p {
        font-size: 1rem;
    }

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

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

    .contact-buttons {
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ==========================================
   ANIMATIONS & EFFECTS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
