/* ============================================
   TERMINAL THEME - Neo-Hacker Aesthetic
   Portfolio of Samarth Rawat
   ============================================ */

/* Design System Variables */
:root {
    /* Background Hierarchy - Deep Space */
    --bg-void: #000000;
    --bg-primary: #0a0e14;
    --bg-secondary: #0d1117;
    --bg-tertiary: #161b22;
    --bg-elevated: #1c2128;
    --bg-surface: #21262d;

    /* Terminal Green - The Matrix */
    --terminal-green: #00ff41;
    --terminal-green-bright: #39ff14;
    --terminal-green-dim: #00cc33;
    --terminal-green-muted: #00994d;
    --glow-green: rgba(0, 255, 65, 0.4);
    --glow-green-soft: rgba(0, 255, 65, 0.15);

    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-cyan-dim: #00a8cc;
    --accent-amber: #ffb700;
    --accent-purple: #bd93f9;
    --accent-red: #ff5555;
    --accent-pink: #ff79c6;

    /* Text Colors - WCAG AA compliant contrast ratios */
    --text-primary: #e6edf3;
    --text-secondary: #9ca3af;  /* Improved contrast: 5.2:1 */
    --text-tertiary: #8b949e;   /* Improved contrast: 4.5:1 */
    --text-muted: #6b7280;      /* Improved contrast: 4.6:1 */
    --text-code: var(--terminal-green);

    /* Borders */
    --border-primary: #30363d;
    --border-secondary: #21262d;
    --border-glow: var(--terminal-green-dim);

    /* Effects */
    --shadow-glow: 0 0 20px var(--glow-green-soft);
    --shadow-glow-strong: 0 0 30px var(--glow-green), 0 0 60px var(--glow-green-soft);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Sizing */
    --border-radius: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.2s ease;
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--terminal-green);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-mono);
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--terminal-green);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Scanlines Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 10000;
}

/* Subtle Vignette */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background-color: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--terminal-green);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 10px var(--glow-green-soft);
}

.logo::before {
    content: '~/';
    color: var(--text-tertiary);
}

.logo:hover {
    text-shadow: 0 0 20px var(--glow-green);
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-links a::before {
    content: './';
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--terminal-green);
    background-color: var(--bg-tertiary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--terminal-green);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--terminal-green);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

.terminal-text {
    font-family: var(--font-mono);
    color: var(--terminal-green);
    text-shadow: 0 0 10px var(--glow-green-soft);
}

.glow-text {
    text-shadow: 0 0 10px var(--glow-green-soft), 0 0 20px var(--glow-green-soft);
}

.prompt::before {
    content: '$ ';
    color: var(--accent-cyan);
}

.comment {
    color: var(--text-tertiary);
}

.comment::before {
    content: '// ';
}

/* ============================================
   TERMINAL WINDOW COMPONENT
   ============================================ */

.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-primary);
}

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

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-right: 44px;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-line .prompt-user {
    color: var(--accent-cyan);
}

.terminal-line .prompt-user::after {
    content: ':';
    color: var(--text-tertiary);
}

.terminal-line .path {
    color: var(--accent-purple);
}

.terminal-line .path::after {
    content: '$ ';
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 0;
}

.terminal-success {
    color: var(--terminal-green);
}

.terminal-error {
    color: var(--accent-red);
}

.terminal-warning {
    color: var(--accent-amber);
}

/* ============================================
   CURSOR & TYPING ANIMATION
   ============================================ */

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.2em;
    background: var(--terminal-green);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    box-shadow: 0 0 10px var(--glow-green);
}

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

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--terminal-green);
    animation:
        typewriter 2s steps(40) forwards,
        blink 1s step-end infinite;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--terminal-green-muted);
    box-shadow: var(--shadow-glow);
}

.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--terminal-green-dim), transparent, var(--accent-cyan));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.card-glow:hover::before {
    opacity: 0.5;
}

/* ============================================
   BUTTONS
   ============================================ */

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '>';
    margin-right: 0.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.btn-primary {
    background: var(--terminal-green);
    color: var(--bg-primary);
    border-color: var(--terminal-green);
}

.btn-primary:hover {
    background: var(--terminal-green-bright);
    box-shadow: 0 0 20px var(--glow-green);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--terminal-green);
    border-color: var(--terminal-green-dim);
}

.btn-outline:hover {
    background: var(--terminal-green);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--glow-green);
}

.btn-ghost {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.btn-ghost:hover {
    color: var(--terminal-green);
    border-color: var(--terminal-green-dim);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--terminal-green);
    border-color: var(--terminal-green);
    box-shadow: 0 0 15px var(--glow-green-soft);
    transform: translateY(-3px);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2::before {
    content: '#';
    color: var(--terminal-green);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--terminal-green), transparent);
    margin: 1rem auto;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   STATS - Terminal Output Style
   ============================================ */

.stats-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

.stats-terminal .terminal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}

.stat-item {
    padding: 1.5rem;
    border-right: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    text-align: center;
}

.stat-item:last-child {
    border-right: none;
}

.stat-key {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terminal-green);
    text-shadow: 0 0 20px var(--glow-green-soft);
}

/* ============================================
   SKILLS - Package List Style
   ============================================ */

.skills-section {
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.skill-item:hover {
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.skill-item i {
    font-size: 2rem;
    color: var(--terminal-green);
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition);
}

.skill-item:hover i {
    text-shadow: 0 0 20px var(--glow-green);
    transform: scale(1.1);
}

.skill-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
    word-break: keep-all;
}

.skill-item:hover .skill-name {
    color: var(--terminal-green);
}

/* ============================================
   EXPERIENCE - Git Log Style
   ============================================ */

.exp-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid var(--terminal-green);
}

.exp-card:hover {
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-glow);
}

.exp-card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.75rem;
    width: 12px;
    height: 12px;
    background: var(--terminal-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-green);
}

.exp-card-header {
    margin-bottom: 1rem;
}

.exp-card-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.exp-card-company {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

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

.exp-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   PROJECTS - Repository Style
   ============================================ */

.proj-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.proj-card:hover {
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.proj-card-icon {
    font-size: 2rem;
    color: var(--terminal-green);
    margin-bottom: 1rem;
}

.proj-card-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proj-card-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--terminal-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--glow-green);
}

.proj-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--terminal-green);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    transition: var(--transition);
}

.tech-badge:hover {
    border-color: var(--terminal-green);
    box-shadow: 0 0 10px var(--glow-green-soft);
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.blog-card-date::before {
    content: '// ';
}

.blog-card-title {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--accent-cyan);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.tag::before {
    content: '#';
}

.tag:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
}

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

.review-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--terminal-green-muted);
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.review-stars i {
    color: var(--accent-amber);
    font-size: 0.875rem;
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--border-primary);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--terminal-green);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
}

.review-name {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.review-location {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--bg-secondary);
    border: 1px solid var(--terminal-green-muted);
    border-radius: var(--border-radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, var(--glow-green-soft) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--terminal-green);
    text-shadow: 0 0 30px var(--glow-green-soft);
}

.cta-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    font-size: 1rem;
    padding: 1rem 2rem;
}

.calendly-text {
    margin-top: 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendly-text:hover {
    color: var(--text-secondary);
}

.calendly-link-text {
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--terminal-green);
}

.footer-text {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.footer-disclaimer {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* ============================================
   ANIME HERO LINK
   ============================================ */

.anime-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--terminal-green);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--glow-green-soft);
}

.anime-hero-link:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--terminal-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateX(3px);
}

.anime-hero-link i:first-child {
    font-size: 1rem;
}

/* ============================================
   SPECIAL ELEMENTS
   ============================================ */

.bmac-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    z-index: 100;
    background: var(--bg-tertiary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-primary);
    max-width: 200px;
}

.bmac-link:hover {
    color: var(--text-secondary);
    border-color: var(--accent-amber);
}

.bmac-link .bmac-text {
    color: var(--accent-amber);
    font-weight: 700;
}

/* Resume Button */
.resume-button {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--terminal-green);
    color: var(--bg-primary);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.resume-button:hover {
    box-shadow: 0 0 20px var(--glow-green);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: left;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group label::before {
    content: '> ';
    color: var(--terminal-green);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terminal-green);
    box-shadow: 0 0 10px var(--glow-green-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* ============================================
   HOBBY SECTIONS
   ============================================ */

.hobby-section {
    margin-bottom: 3rem;
}

.hobby-icon {
    font-size: 2.5rem;
    color: var(--terminal-green);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--glow-green-soft);
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   INTERACTIVE TERMINAL
   ============================================ */

.interactive-terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 300px;
}

.interactive-terminal .terminal-body {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--terminal-green);
    outline: none;
    caret-color: var(--terminal-green);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--glow-green-soft);
    }
    50% {
        box-shadow: 0 0 20px var(--glow-green), 0 0 30px var(--glow-green-soft);
    }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    97% { opacity: 0.9; }
    98% { opacity: 1; }
}

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-primary);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-primary);
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }

    body {
        font-size: 0.95rem;
    }

    .terminal-body,
    .terminal-title,
    code,
    pre {
        word-break: keep-all;
        overflow-x: auto;
    }

    h2, h3, h4 {
        word-break: keep-all;
    }

    main {
        padding: 1rem;
    }

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

    .stats-terminal .terminal-body {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-primary);
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .testimonials-section {
        padding: 2rem 1rem;
    }

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

    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.25rem;
        word-break: keep-all;
    }

    .button-group {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }

    body {
        font-size: 0.9rem;
    }

    .skill-name {
        font-size: 0.7rem;
    }

    .cta-section h2 {
        font-size: 1rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .stats-terminal .terminal-body {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 42px;
        height: 42px;
    }

    .floating-terminal {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 70px;
    }

    .terminal-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   FLOATING TERMINAL WIDGET
   ============================================ */

.floating-terminal-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9000;
}

.terminal-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--terminal-green);
    color: var(--terminal-green);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--glow-green-soft), var(--shadow-card);
    position: relative;
}

.terminal-toggle:hover {
    background: var(--terminal-green);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--glow-green), var(--shadow-elevated);
    transform: scale(1.05);
}

.terminal-toggle.active {
    background: var(--terminal-green);
    color: var(--bg-primary);
}

.terminal-toggle .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--terminal-green);
    animation: terminal-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes terminal-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.floating-terminal {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: var(--bg-secondary);
    border: 1px solid var(--terminal-green);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 30px var(--glow-green-soft), var(--shadow-elevated);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-terminal.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-terminal .terminal-header {
    background: var(--bg-tertiary);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-primary);
    cursor: default;
}

.floating-terminal .terminal-header .terminal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.floating-terminal .terminal-header .terminal-close:hover {
    color: var(--accent-red);
}

.floating-terminal .terminal-body {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

.floating-terminal .terminal-body::-webkit-scrollbar {
    width: 6px;
}

.floating-terminal .terminal-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.floating-terminal .terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 3px;
}

.floating-terminal .terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--terminal-green-dim);
}

.floating-terminal .terminal-input {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--terminal-green);
    outline: none;
    width: 100%;
    caret-color: var(--terminal-green);
}

.floating-terminal .terminal-line {
    margin-bottom: 0.25rem;
}

.floating-terminal .terminal-output {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 350px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-card);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

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

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.toast-success {
    border-color: var(--terminal-green-dim);
}

.toast-success .toast-icon {
    color: var(--terminal-green);
}

.toast-error {
    border-color: var(--accent-red);
}

.toast-error .toast-icon {
    color: var(--accent-red);
}

.toast-info {
    border-color: var(--accent-cyan);
}

.toast-info .toast-icon {
    color: var(--accent-cyan);
}

.toast-warning {
    border-color: var(--accent-amber);
}

.toast-warning .toast-icon {
    color: var(--accent-amber);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--terminal-green);
    color: var(--bg-primary);
    border-color: var(--terminal-green);
    box-shadow: 0 0 15px var(--glow-green);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--terminal-green);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .back-to-top {
        bottom: 6rem;
        right: 26px;
    }
}

/* ============================================
   BLOG CONTENT - Markdown Styles
   ============================================ */

.blog-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: var(--font-mono);
    color: var(--terminal-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.blog-content h3 { font-size: 1.25rem; color: var(--accent-cyan); }
.blog-content h4 { font-size: 1.1rem; color: var(--accent-amber); }

.blog-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.blog-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: var(--terminal-green);
    text-shadow: 0 0 10px var(--glow-green-soft);
}

.blog-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.blog-content blockquote {
    border-left: 3px solid var(--terminal-green);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-content blockquote p {
    margin-bottom: 0;
}

.blog-content code {
    font-family: var(--font-mono);
    background: var(--bg-surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-amber);
}

.blog-content pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content ul li::marker {
    color: var(--terminal-green);
}

.blog-content ol li::marker {
    color: var(--accent-cyan);
}

.blog-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ============================================
   UNGEEK MODE - Minimalist Theme Toggle
   ============================================ */

.theme-toggle {
    background: transparent;
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 1rem;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.theme-toggle:hover {
    background: var(--terminal-green);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--glow-green);
}

@media (max-width: 768px) {
    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
        padding: 0.5rem;
        font-size: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle {
        background: transparent !important;
        position: relative;
        border: 1px solid var(--terminal-green) !important;
    }

    .theme-toggle::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff41' stroke-width='2'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Ccircle cx='9' cy='14' r='1.5' fill='%2300ff41'/%3E%3Ccircle cx='15' cy='14' r='1.5' fill='%2300ff41'/%3E%3Cpath d='M12 8V4M8 4h8'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1;
    }

    .theme-toggle:hover {
        background: transparent !important;
        box-shadow: none !important;
        border-color: var(--terminal-green) !important;
    }

    body.minimalist-mode .theme-toggle {
        border-color: var(--accent-cyan) !important;
    }

    body.minimalist-mode .theme-toggle::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5.5 21c0-4.5 3-7 6.5-7s6.5 2.5 6.5 7'/%3E%3C/svg%3E");
    }

    body.minimalist-mode .theme-toggle:hover {
        background: transparent !important;
        border-color: var(--accent-cyan) !important;
    }
}

/* ============================================
   MINIMALIST MODE - Clean Modern Theme
   ============================================ */

body.minimalist-mode {
    --bg-void: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --bg-elevated: #e8eaed;
    --bg-surface: #dadce0;

    --terminal-green: #1a73e8;
    --terminal-green-bright: #1a73e8;
    --terminal-green-dim: #185abc;
    --terminal-green-muted: #174ea6;
    --glow-green: transparent;
    --glow-green-soft: transparent;

    --accent-cyan: #1a73e8;
    --accent-cyan-dim: #185abc;
    --accent-amber: #ea8600;
    --accent-purple: #9334e6;
    --accent-red: #d93025;
    --accent-pink: #e91e63;

    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-tertiary: #80868b;

    --border-color: #dadce0;
    --border-subtle: #e8eaed;
}

body.minimalist-mode {
    background: var(--bg-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Remove all glows and shadows in minimalist mode */
body.minimalist-mode * {
    text-shadow: none !important;
    box-shadow: none !important;
}

body.minimalist-mode .card,
body.minimalist-mode .terminal-window,
body.minimalist-mode .proj-card,
body.minimalist-mode .exp-card,
body.minimalist-mode .blog-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

/* Simplify terminal windows */
body.minimalist-mode .terminal-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

body.minimalist-mode .terminal-dot {
    display: none;
}

body.minimalist-mode .terminal-title {
    color: var(--text-secondary);
}

body.minimalist-mode .terminal-title::before {
    content: '';
}

body.minimalist-mode .terminal-body {
    background: var(--bg-secondary);
}

/* Clean navbar */
body.minimalist-mode nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: none;
}

body.minimalist-mode .logo {
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

body.minimalist-mode .logo::before,
body.minimalist-mode .logo::after {
    display: none;
}

body.minimalist-mode .nav-links a {
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.minimalist-mode .nav-links a:hover,
body.minimalist-mode .nav-links a.active {
    color: var(--accent-cyan);
}

/* Clean buttons */
body.minimalist-mode .btn-primary {
    background: var(--accent-cyan);
    border: none;
    border-radius: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.minimalist-mode .btn-primary::before {
    display: none;
}

body.minimalist-mode .btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.minimalist-mode .btn-outline::before {
    display: none;
}

/* Clean headings */
body.minimalist-mode h1,
body.minimalist-mode h2,
body.minimalist-mode h3,
body.minimalist-mode h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
}

/* Hide cursor blink */
body.minimalist-mode .cursor {
    display: none;
}

/* Clean cards */
body.minimalist-mode .proj-card:hover,
body.minimalist-mode .exp-card:hover,
body.minimalist-mode .blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Clean tags */
body.minimalist-mode .tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
}

/* Clean footer */
body.minimalist-mode footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Theme toggle in minimalist mode */
body.minimalist-mode .theme-toggle {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

@media (min-width: 769px) {
    body.minimalist-mode .theme-toggle:hover {
        background: var(--accent-cyan);
        color: white;
    }
}

/* Clean floating terminal */
body.minimalist-mode .floating-terminal-btn {
    display: none;
}

/* Hide terminal-specific elements */
body.minimalist-mode .bmac-link {
    background: var(--accent-cyan);
    border: none;
    border-radius: 24px;
}

body.minimalist-mode .bmac-link .bmac-text {
    color: white;
}

/* Simplify interactive terminal */
body.minimalist-mode .interactive-terminal {
    font-family: 'SF Mono', Monaco, monospace;
}

/* Normalize all text in minimalist mode */
body.minimalist-mode,
body.minimalist-mode p,
body.minimalist-mode span,
body.minimalist-mode li,
body.minimalist-mode a,
body.minimalist-mode div,
body.minimalist-mode label,
body.minimalist-mode input,
body.minimalist-mode textarea,
body.minimalist-mode button:not(.theme-toggle),
body.minimalist-mode .terminal-title,
body.minimalist-mode .footer-text,
body.minimalist-mode .footer-disclaimer,
body.minimalist-mode .footer-links a,
body.minimalist-mode .hero-subtitle,
body.minimalist-mode .hero-tagline,
body.minimalist-mode .section-subtitle,
body.minimalist-mode .proj-card,
body.minimalist-mode .exp-card,
body.minimalist-mode .blog-card,
body.minimalist-mode .skill-item {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

body.minimalist-mode code,
body.minimalist-mode pre,
body.minimalist-mode .interactive-terminal,
body.minimalist-mode .terminal-input {
    font-family: 'SF Mono', Monaco, Consolas, monospace !important;
}

/* Remove terminal prefixes and symbols */
body.minimalist-mode .footer-text::before,
body.minimalist-mode .footer-disclaimer::before {
    content: '' !important;
}

body.minimalist-mode .bmac-link .bmac-text::before {
    content: '' !important;
}

/* ============================================
   TESTIMONIAL MODAL
   ============================================ */

.testimonial-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.testimonial-modal-overlay.closing {
    animation: fadeOut 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.testimonial-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevated);
    animation: slideUp 0.3s ease;
}

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

.testimonial-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.testimonial-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--terminal-green);
    font-family: var(--font-mono);
}

.testimonial-modal-header h3 i {
    margin-right: 0.5rem;
}

.testimonial-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.testimonial-modal-close:hover {
    color: var(--accent-red);
}

.testimonial-form {
    padding: 1.5rem;
}

.testimonial-form .form-group {
    margin-bottom: 1rem;
}

.testimonial-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: var(--terminal-green-dim);
    box-shadow: 0 0 0 2px var(--glow-green-soft);
}

.testimonial-form input::placeholder,
.testimonial-form textarea::placeholder {
    color: var(--text-muted);
}

.testimonial-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .testimonial-form .form-row {
        grid-template-columns: 1fr;
    }
}

.testimonial-form .rating-input {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.testimonial-form .rating-input .star {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s, transform 0.15s;
}

.testimonial-form .rating-input .star:hover {
    transform: scale(1.1);
}

.testimonial-form .rating-input .star.active {
    color: var(--accent-amber);
}

.testimonial-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
}
