/* Custom Properties & Cyberpunk Theme Color Palette */
:root {
    --bg-main: #020617;
    --bg-card: rgba(10, 17, 32, 0.85);
    --bg-card-hover: rgba(16, 28, 54, 0.9);
    --bg-input: #0b1329;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 255, 136, 0.2);
    --border-highlight: rgba(0, 255, 136, 0.6);
    
    --primary: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.35);
    --accent: #00f3ff;
    --accent-glow: rgba(0, 243, 255, 0.35);
    --danger: #ff0055;
    --success: #10b981;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Scanline Effect overlay for Hacker Aesthetic */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 999;
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* Background Animated Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    opacity: 0.65;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography & Visual Effects */
h1, h2, h3 {
    color: #ffffff;
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: break-word;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #a855f7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineGradient 6s ease infinite;
}

@keyframes shineGradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.bg-light {
    background: rgba(10, 17, 32, 0.5);
}

/* Mouse Spotlight Effect for Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 255, 136, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    max-width: 100%;
    line-height: 1.4;
    word-break: break-word;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* ============================================
   HEADER & NAVBAR — Optimized for both languages
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    height: 60px;
    gap: 12px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
    min-height: 44px;
    line-height: 1;
    padding: 4px 0;
}

.logo-icon {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    font-weight: 700;
    white-space: nowrap;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-family: var(--font-mono);
    line-height: 1;
}

.logo:hover .logo-text {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
    background: rgba(0, 255, 136, 0.05);
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Language Switcher */
.lang-switch-container {
    display: flex;
    align-items: center;
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 2px;
    gap: 1px;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    min-height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    background-color: var(--primary);
    color: #020617;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #020617;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 0 15px var(--primary-glow);
    white-space: nowrap;
    min-height: 44px;
    touch-action: manipulation;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
    opacity: 0.95;
}

.btn-secondary {
    background: rgba(16, 28, 54, 0.8);
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    touch-action: manipulation;
}

.btn-secondary:hover {
    background: rgba(24, 42, 80, 0.9);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #020617 !important;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: none;
    box-shadow: 0 0 10px var(--primary-glow);
    white-space: nowrap;
    min-height: 32px;
    touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: clamp(50px, 7vw, 90px) 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.4rem, 3.5vw, 2.25rem);
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    font-family: var(--font-mono);
    word-break: break-word;
}

/* Hero Section */
.hero-section {
    padding: clamp(50px, 7vw, 100px) 0 clamp(30px, 5vw, 80px) 0;
}

.hero-text {
    max-width: 800px;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(1.75rem, 4.5vw, 3.25rem);
    line-height: 1.18;
    margin-bottom: 12px;
    word-break: break-word;
}

.hero-text h2 {
    font-size: clamp(0.9rem, 2.2vw, 1.5rem);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    line-height: 1.35;
    word-break: break-word;
}

.bio {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.contact-quick p {
    font-size: 0.82rem;
    color: var(--text-main);
    background: rgba(16, 28, 54, 0.6);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-quick p:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 50px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.15);
}

.stat-value {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.skill-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    line-height: 1.3;
    word-break: break-word;
}

.skill-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.skill-card li {
    padding: 6px 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}

.skill-card li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.tag {
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.25);
    font-family: var(--font-mono);
    word-break: break-word;
}

/* Honeypot Interactive Terminal Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: #020813;
    border: 1px solid var(--primary);
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: clamp(16px, 3vw, 30px);
    position: relative;
}

.hr-demo-widget {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px dashed var(--primary);
    border-radius: 8px;
}

.hr-demo-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.live-console-box {
    margin-top: 20px;
    background: #010409;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.console-stream {
    height: 120px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #8b949e;
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-break: break-all;
    white-space: pre-wrap;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.timeline-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(16px, 3vw, 28px);
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    overflow-wrap: break-word;
}

.timeline-item:hover {
    border-left-color: var(--accent);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.timeline-header h3 {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    line-height: 1.3;
    flex: 1 1 280px;
    word-break: break-word;
}

.company {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    word-break: break-word;
}

.timeline-item ul {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-item li {
    margin-bottom: 6px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Form */
.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: clamp(20px, 4vw, 40px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.invite-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 44px;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    margin-top: 20px;
    padding: 14px;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-word;
}

.hidden {
    display: none !important;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: #020617;
}

/* ============================================
   RESPONSIVE: Tablet (768px and below)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        min-height: 56px;
        height: 56px;
    }

    .logo-text {
        max-width: 140px;
        font-size: 0.72rem;
    }

    .logo-icon {
        font-size: 0.72rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .hero-text h1 {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .hero-text h2 {
        font-size: clamp(0.85rem, 3vw, 1.2rem);
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }

    .skill-card {
        padding: 20px;
    }

    .timeline-item {
        padding: 20px;
    }

    .form-wrapper {
        padding: 24px;
    }

    .modal-card {
        max-width: 100%;
        padding: 20px;
    }

    .contact-quick {
        flex-direction: column;
        gap: 8px;
    }

    .contact-quick p {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE: Small tablets / large phones (576px and below)
   ============================================ */
@media (max-width: 576px) {
    .container {
        padding: 0 14px;
    }

    .navbar {
        position: sticky;
        top: 0;
    }

    .nav-container {
        min-height: 54px;
        height: 54px;
        gap: 8px;
    }

    .logo {
        gap: 4px;
    }

    .logo-icon {
        font-size: 0.65rem;
    }

    .logo-text {
        font-size: 0.65rem;
        max-width: 110px;
    }

    .nav-right {
        gap: 6px;
    }

    .nav-links {
        display: none;
    }

    nav#navMenu.active .nav-links {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav#navMenu {
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        display: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    }

    nav#navMenu.active {
        display: block;
    }

    nav#navMenu .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    nav#navMenu .nav-links a {
        font-size: 0.9rem;
        display: block;
        width: 100%;
        padding: 8px 4px;
        min-height: 44px;
    }

    .lang-switch-container {
        order: -1;
    }

    .hero-section {
        padding: 40px 0 30px 0;
    }

    .hero-text h1 {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .hero-text h2 {
        font-size: clamp(0.8rem, 3.5vw, 1.1rem);
        margin-bottom: 16px;
    }

    .bio {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 36px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 24px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .skill-card {
        padding: 18px;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    .skill-card li {
        font-size: 0.85rem;
    }

    .timeline {
        gap: 18px;
    }

    .timeline-item {
        padding: 18px;
        border-radius: 8px;
    }

    .timeline-header h3 {
        font-size: 1rem;
    }

    .company {
        font-size: 0.85rem;
    }

    .timeline-item ul {
        font-size: 0.85rem;
    }

    .form-wrapper {
        padding: 20px;
        border-radius: 12px;
    }

    .form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .invite-form {
        gap: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .modal-card {
        padding: 18px;
        max-height: 90vh;
    }

    .hr-demo-buttons {
        flex-direction: column;
    }

    .hr-demo-buttons button {
        width: 100%;
    }

    .live-console-box {
        padding: 8px;
    }

    .console-stream {
        height: 100px;
        font-size: 0.7rem;
    }

    footer {
        padding: 20px 0;
        font-size: 0.8rem;
    }
}

/* ============================================
   RESPONSIVE: Very small phones (375px and below)
   ============================================ */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .nav-container {
        min-height: 50px;
        height: 50px;
        gap: 6px;
    }

    .logo-icon {
        font-size: 0.6rem;
    }

    .logo-text {
        font-size: 0.6rem;
        max-width: 90px;
    }

    .logo {
        gap: 3px;
    }

    .nav-right {
        gap: 4px;
    }

    .hero-text h1 {
        font-size: 1.4rem;
    }

    .hero-text h2 {
        font-size: 0.75rem;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .bio {
        font-size: 0.82rem;
    }

    .contact-quick p {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }

    .skill-card {
        padding: 14px;
    }

    .skill-card h3 {
        font-size: 0.9rem;
        gap: 6px;
    }

    .skill-card li {
        font-size: 0.78rem;
        padding-left: 18px;
    }

    .tag {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .timeline-item {
        padding: 14px;
    }

    .form-wrapper {
        padding: 16px;
    }

    .btn-primary-sm {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .modal-card {
        padding: 14px;
    }

    .hr-demo-widget {
        padding: 8px;
    }
}

/* ============================================
   RESPONSIVE: Large screens (1400px and above)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }

    .hero-text {
        max-width: 900px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* ============================================
   RESPONSIVE: Ultra-wide screens (1920px and above)
   ============================================ */
@media (min-width: 1920px) {
    .container {
        max-width: 1300px;
    }

    .navbar {
        font-size: 1.05rem;
    }

    .hero-section {
        padding-top: 120px;
    }
}

/* Ensure images and media scale properly */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll on any device */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Improve tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
