/* ===================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =================================== */
:root {
    /* Purple Color Palette */
    --purple: #7C3AED;
    --purple-light: #A855F7;
    --purple-glow: #C084FC;
    
    /* Background Colors */
    --bg: #0A0A0F;
    --bg2: #0F0F1A;
    --bg3: #13131F;
    
    /* UI Colors */
    --border: #1E1E35;
    --text: #E8E8F0;
    --muted: #6B6B8A;
    
    /* Accent Colors */
    --accent: #8B5CF6;
    --cyan: #06B6D4;
    --gold: #F59E0B;
}

/* ===================================
   GLOBAL RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Prevent horizontal scroll on all elements */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Ensure all containers don't overflow */
* {
    max-width: 100%;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, a, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Images responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   NAVIGATION BAR
   =================================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
}

/* Logo Styling */
.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

/* Navigation CTA Button */
.nav-cta {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero Badge (Rank: Ascending) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--purple-glow);
    margin-bottom: 1.5rem;
}

/* Animated Badge Dot */
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-glow);
    animation: pulse 2s infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Hero Title */
.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-title span {
    color: var(--purple-light);
}

/* Hero Subtitle */
.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 420px;
}

/* Hero CTA Buttons */
.hero-ctas {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple-light);
}

/* ===================================
   HERO RIGHT COLUMN (STATUS CARD)
   =================================== */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Status Card Container */
.status-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

/* Status Card Header */
.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

/* Avatar Circle */
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

/* Status Name & Rank */
.status-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.status-rank {
    font-size: 0.7rem;
    color: var(--purple-glow);
    letter-spacing: 1px;
}

/* Stat Row Grid */
.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Individual Stat Item */
.stat-item {
    background: var(--bg3);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-val {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

/* Stat Value Color Variants */
.stat-val.purple {
    color: var(--purple-light);
}

.stat-val.gold {
    color: var(--gold);
}

.stat-val.open {
    color: #4ADE80;
}

/* Open to Work Badge */
.open-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #4ADE80;
}

/* Animated Open Dot */
.open-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    animation: pulse 1.5s infinite;
}

/* ===================================
   BENTO GRID SECTION
   =================================== */
.bento {
    padding: 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

/* Base Card Styling */
.bcard {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Top Accent Line */
.bcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), transparent);
}

/* Bento Card Column Spans */
.bcard.span4 {
    grid-column: span 4;
}

.bcard.span5 {
    grid-column: span 5;
}

.bcard.span6 {
    grid-column: span 6;
}

.bcard.span7 {
    grid-column: span 7;
}

.bcard.span8 {
    grid-column: span 8;
}

.bcard.span12 {
    grid-column: span 12;
}

/* Accent Line Color Variants */
.bcard.accent-cyan::before {
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.bcard.accent-gold::before {
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* ===================================
   CARD COMPONENTS
   =================================== */

/* Card Eyebrow (Label) */
.card-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Colored Dots in Eyebrow */
.card-eyebrow .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--purple-glow);
}

.card-eyebrow .dot.cyan {
    background: var(--cyan);
}

.card-eyebrow .dot.gold {
    background: var(--gold);
}

/* Card Title */
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

/* Card Body Text */
.card-body {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===================================
   SKILLS GRID
   =================================== */
.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0.8rem;
}

/* Individual Skill Item */
.skill-item {
    background: var(--bg3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.skill-name {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
}

/* Skill Row (Bar + Rank) */
.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Skill Progress Bar */
.skill-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    flex: 1;
    margin-right: 8px;
}

/* Skill Fill (Progress Indicator) */
.skill-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

/* Cyan Fill Variant */
.skill-fill.cyan-fill {
    background: linear-gradient(90deg, var(--cyan), #38BDF8);
}

/* Gold Fill Variant */
.skill-fill.gold-fill {
    background: linear-gradient(90deg, var(--gold), #FBBF24);
}

/* Skill Rank Labels */
.skill-rank {
    font-size: 0.6rem;
    color: var(--purple-glow);
}

.skill-rank.epic {
    color: var(--gold);
}

.skill-rank.cyan-rank {
    color: var(--cyan);
}

.skill-rank.legend {
    color: #FFD700;
}

/* ===================================
   PROJECT CARD
   =================================== */
.project-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem;
    margin-top: 0.8rem;
}

.proj-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.proj-desc {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

/* Project Tags */
.proj-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Tag Styling */
.tag {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--purple-glow);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Live Tag Variant */
.tag.live {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ADE80;
}

/* Role Text */
.role-text {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--muted);
}

/* ===================================
   SHIV PROGRESS SECTION
   =================================== */
.shiv-progress {
    margin-top: 0.75rem;
}

/* Individual Phase Row */
.shiv-phase {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.shiv-phase:last-child {
    border: none;
}

.phase-name {
    font-size: 0.72rem;
    color: var(--text);
    flex: 1;
}

/* Phase Status Badges */
.phase-status {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.phase-status.done {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
}

.phase-status.active {
    background: rgba(124, 58, 237, 0.2);
    color: var(--purple-glow);
}

.phase-status.locked {
    background: var(--bg3);
    color: var(--muted);
}

/* ===================================
   OVERALL PROGRESS BAR
   =================================== */
.overall-bar {
    margin-top: 0.75rem;
}

.overall-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.progress-percentage {
    color: var(--purple-glow);
    font-weight: 600;
}

.overall-fill-wrap {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.overall-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

/* ===================================
   CONTACT LINKS
   =================================== */
.contact-links {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual Contact Link */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
    color: var(--text);
    border-color: var(--purple);
}

/* Contact Icon */
.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--purple-glow);
    flex-shrink: 0;
}

.contact-icon.cyan-icon {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.contact-icon.gold-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
}

/* ===================================
   GUILD HISTORY
   =================================== */
.guild-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.guild-item:last-child {
    border: none;
}

.guild-icon {
    font-size: 1.2rem;
}

.guild-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

.guild-sub {
    font-size: 0.7rem;
    color: var(--muted);
}

.guild-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
    margin-left: auto;
}

/* ===================================
   TRAINING ARC
   =================================== */
.training-grid {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.training-item {
    /* Container for each training progress */
}

.training-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text);
    margin-bottom: 3px;
}

/* Training Percentage Colors */
.training-percentage {
    font-weight: 500;
}

.training-percentage.purple {
    color: var(--purple-glow);
}

.training-percentage.cyan {
    color: var(--cyan);
}

.training-percentage.gold {
    color: var(--gold);
}

.education-text {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--muted);
}

/* ===================================
   ABOUT THE HUNTER
   =================================== */
.about-body {
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text);
}

.language-tags {
    margin-top: 0.75rem;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.special-tag {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
    letter-spacing: 1px;
    margin-top: 1rem;
}

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

/* Large Desktop Screens (1200px+) */
@media (min-width: 1200px) {
    .hero {
        max-width: 1200px;
    }
    
    .bento {
        max-width: 1200px;
    }
}

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    /* Navigation adjustments */
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 2.5rem 1.5rem 2rem;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Bento Grid */
    .bento {
        padding: 1.5rem;
        gap: 14px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    /* Navigation - Make it more compact */
    nav {
        padding: 0.875rem 1rem;
        flex-wrap: nowrap;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .nav-cta {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Hero Section - Stack Vertically */
    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-sub {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.7rem;
    }
    
    /* Status Card adjustments */
    .status-card {
        padding: 1rem;
    }
    
    .avatar {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .status-name {
        font-size: 0.85rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .stat-val {
        font-size: 0.8rem;
    }
    
    /* Bento Grid - All cards full width */
    .bento {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 12px;
    }
    
    .bcard.span4,
    .bcard.span5,
    .bcard.span6,
    .bcard.span7,
    .bcard.span8,
    .bcard.span12 {
        grid-column: span 1;
    }
    
    .bcard {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-body {
        font-size: 0.78rem;
    }
    
    /* Skill Grid - Keep 2 columns on tablet */
    .skill-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .skill-item {
        padding: 0.45rem 0.65rem;
    }
    
    .skill-name {
        font-size: 0.7rem;
    }
    
    /* Guild Items */
    .guild-icon {
        font-size: 1rem;
    }
    
    .guild-title {
        font-size: 0.75rem;
    }
    
    .guild-sub {
        font-size: 0.65rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.7rem;
    }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
    /* Navigation - Hide links, show only logo and CTA */
    .nav-links {
        display: none;
    }
    
    nav {
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }
    
    /* Open Badge - Wrap text better */
    .open-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.7rem;
        text-align: center;
    }
    
    /* Skills - Single column on small mobile */
    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    /* SHIV Progress phases - Better wrapping */
    .shiv-phase {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .phase-name {
        font-size: 0.68rem;
        flex: 1 1 100%;
    }
    
    .phase-status {
        font-size: 0.6rem;
        margin-left: auto;
    }
    
    /* Contact links - Better spacing */
    .contact-link {
        font-size: 0.75rem;
        padding: 0.6rem;
        word-break: break-all;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0px;
    }
    
    .hero-sub {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* Status card grid - 2 columns */
    .stat-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item {
        padding: 0.5rem 0.6rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .stat-val {
        font-size: 0.75rem;
    }
    
    /* Bento cards */
    .bcard {
        padding: 0.875rem;
    }
    
    .card-eyebrow {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }
    
    .card-title {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }
    
    .card-body {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    /* Project Tags - Better wrapping */
    .proj-tags {
        gap: 3px;
    }
    
    .tag {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
    
    /* Skill items */
    .skill-item {
        padding: 0.4rem 0.6rem;
    }
    
    .skill-name {
        font-size: 0.68rem;
    }
    
    .skill-rank {
        font-size: 0.55rem;
    }
    
    /* Guild items - Stack icon and content better */
    .guild-item {
        padding: 0.5rem 0;
        gap: 8px;
    }
    
    .guild-icon {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .guild-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Training progress */
    .training-header {
        font-size: 0.7rem;
    }
    
    .education-text {
        font-size: 0.65rem;
    }
    
    /* Contact Links */
    .contact-link {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
    
    .contact-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    /* About section */
    .about-body {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .language-tags {
        gap: 5px;
    }
    
    /* Footer */
    footer {
        font-size: 0.65rem;
        padding: 1.25rem 1rem;
        line-height: 1.5;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    /* Hero Section */
    .hero {
        padding: 1.25rem 0.75rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-sub {
        font-size: 0.8rem;
    }
    
    /* Navigation */
    .logo {
        font-size: 0.9rem;
    }
    
    .nav-cta {
        font-size: 0.7rem;
        padding: 0.4rem 0.85rem;
    }
    
    /* Bento Grid */
    .bento {
        padding: 0.75rem;
        gap: 10px;
    }
    
    .bcard {
        padding: 0.75rem;
    }
    
    /* Stat Row - Keep 2 columns but smaller */
    .stat-row {
        gap: 6px;
    }
    
    .stat-item {
        padding: 0.4rem 0.5rem;
    }
    
    /* Contact links - Better text wrapping */
    .contact-link {
        font-size: 0.65rem;
        flex-wrap: wrap;
    }
    
    .contact-icon {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
}

/* Landscape Orientation Fix for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-sub {
        margin-bottom: 1rem;
    }
    
    nav {
        padding: 0.5rem 1rem;
    }
}
