:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #161616;
    --border-primary: #252525;
    --border-hover: #333333;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --purdue-gold: #cfb997;
    --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: clamp(12px, 3vw, 30px);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Responsive Bento Grid */
.bento-grid {
    display: grid;
    gap: clamp(12px, 2vw, 18px);
    grid-auto-rows: minmax(120px, auto);
}

/* Mobile Layout (default) */
.bento-grid {
    grid-template-columns: 1fr;
}

/* Tablet Layout */
@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .bento-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 3vw, 24px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

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

.clickable {
    cursor: pointer;
}

.clickable:hover {
    background: var(--bg-tertiary);
}

/* ===== RESPONSIVE CARD LAYOUTS ===== */

/* Hero Section */
.hero {
    /* Mobile */
    grid-column: 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
    min-height: 400px;
}

@media (min-width: 640px) {
    .hero {
        grid-column: span 4;
        grid-row: span 2;
    }
}

@media (min-width: 1024px) {
    .hero {
        grid-column: span 4;
        grid-row: span 3;
    }
}

@media (min-width: 1400px) {
    .hero {
        grid-column: span 6;
        grid-row: span 3;
    }
}

.hero-content {
    flex-grow: 1;
    padding-right: 0;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .hero-content {
        padding-right: clamp(60px, 15vw, 220px);
    }
}

/* Typewriter Effect */
#typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--text-primary);
    font-size: inherit;
    font-weight: inherit;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--text-primary); }
}

#typewriter.finished {
    border-right: none;
    animation: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 6px 12px;
    font-size: clamp(11px, 2.5vw, 12px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: clamp(16px, 4vw, 24px);
    width: fit-content;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(12px, 3vw, 16px);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(16px, 4vw, 20px);
    color: var(--text-secondary);
    margin-bottom: clamp(16px, 4vw, 24px);
    line-height: 1.5;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: clamp(24px, 5vw, 32px);
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.social-links {
    display: flex;
    gap: clamp(8px, 2vw, 12px);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 16px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 40px;
    flex: 1;
    justify-content: center;
}

@media (min-width: 640px) {
    .social-link {
        flex: none;
    }
}

.social-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.cta-button {
    background: var(--accent-blue);
    color: white;
    border: none;
}

.cta-button:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
}

/* Base Character Styles (Keep for all screens) */
.character-container {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) perspective(600px) rotateY(8deg);
    transform-origin: center center;
    pointer-events: none;
    will-change: transform;
    animation: charFloat 6s ease-in-out infinite;
    z-index: 1;
    opacity: 0.3;
    display: block;
}

/* Mobile - Larger Size and Lower Position */
@media (max-width: 639px) {
    .character-container {
        right: -50px;
        top: 50%; /* Move it further down */
        transform: translateY(-50%) perspective(400px) rotateY(15deg);
        width: clamp(200px, 60vw, 280px);  /* Increased min and max */
        height: clamp(180px, 55vw, 260px); /* Increased min and max */
        opacity: 0.3;
        z-index: 1;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            135deg, 
            rgba(10, 10, 10, 0.8) 0%, 
            rgba(10, 10, 10, 0.4) 50%,
            rgba(26, 26, 46, 0.6) 100%
        );
        z-index: 1;
        pointer-events: none;
    }
}

/* Smaller Mobile (e.g., iPhone SE) */
@media (max-width: 375px) {
    .character-container {
        right: -5px;
        top: 62%;
        width: clamp(160px, 60vw, 200px);
        height: clamp(140px, 55vw, 180px);
        opacity: 0.28;
    }
}

/* Tablet - unchanged */
@media (min-width: 640px) and (max-width: 1023px) {
    .character-container {
        display: block;
        opacity: 0.6;
        z-index: 5;
        right: -15px;
        width: clamp(140px, 22vw, 250px);
        height: clamp(130px, 20vw, 230px);
    }
}

/* Desktop - slightly bigger character */
@media (min-width: 1024px) {
    .character-container {
        display: block;
        opacity: 1;
        z-index: 10;
        right: -20px;
        width: clamp(200px, 26vw, 300px);  /* increased size */
        height: clamp(180px, 24vw, 280px); /* increased size */
    }
}


/* Character Image */
.character-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Floating Animation */
@keyframes charFloat {
    0%, 100% {
        transform: translateY(-50%) translateY(0) perspective(600px) rotateY(8deg);
    }
    50% {
        transform: translateY(-50%) translateY(-8px) perspective(600px) rotateY(0deg);
    }
}


/* About Section */
.about {
    /* Mobile */
    grid-column: 1;
    grid-row: span 2;
}

@media (min-width: 640px) {
    .about {
        grid-column: span 4;
        grid-row: span 2;
    }
}

@media (min-width: 1024px) {
    .about {
        grid-column: span 2;
        grid-row: span 3;
    }
}

@media (min-width: 1400px) {
    .about {
        grid-column: span 4;
        grid-row: span 3;
    }
}

.card-title {
    font-size: clamp(18px, 4vw, 20px);
    font-weight: 600;
    margin-bottom: clamp(12px, 3vw, 16px);
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(13px, 3vw, 15px);
}

.tech-stack {
    margin-top: clamp(16px, 4vw, 20px);
}

.tech-stack h4 {
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(8px, 2vw, 12px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1.5vw, 8px);
}

.tech-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
    font-size: clamp(10px, 2.2vw, 12px);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Time and Now Cards */
.time-card, .now-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 1;
}

@media (min-width: 640px) {
    .time-card, .now-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .time-card, .now-card {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .time-card, .now-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.time-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.time-display {
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.time-zone {
    font-size: clamp(12px, 2.8vw, 14px);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.now-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(8px, 2vw, 12px);
}

.now-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.now-title {
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 600;
    color: var(--text-primary);
}

.now-subtitle {
    font-size: clamp(10px, 2.2vw, 12px);
    color: var(--text-tertiary);
    margin-bottom: clamp(6px, 1.5vw, 8px);
}

.now-content {
    font-size: clamp(12px, 2.8vw, 14px);
    color: var(--text-secondary);
}

/* Navigation Cards */
.nav-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

@media (min-width: 640px) {
    .nav-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .nav-card {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .nav-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.nav-card .card-title {
    margin-bottom: 0;
    font-size: clamp(16px, 3.5vw, 18px);
}

.nav-icon {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    color: var(--text-tertiary);
    font-size: clamp(16px, 3.5vw, 18px);
}

.nav-card:hover .nav-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Education Card */
.education-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 2;
    position: relative;
    overflow: hidden;
    padding: clamp(16px, 4vw, 28px);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1f0a 100%), rgba(255,255,255,0.05);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 640px) {
    .education-card {
        grid-column: span 4;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .education-card {
        grid-column: span 3;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .education-card {
        grid-column: span 5;
        grid-row: span 1;
    }
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purdue-gold), #b8860b);
    opacity: 0.85;
}

.education-header {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    margin-bottom: clamp(12px, 3vw, 16px);
}

.logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.logo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.logo-box.purdue-logo {
    background: linear-gradient(135deg, #daaa00, #b7950b, #8b6914);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 6px 16px rgba(0,0,0,0.4);
    border: none;
}

.logo-box.purdue-logo .school-logo {
    width: clamp(45px, 9vw, 60px);
    height: clamp(45px, 9vw, 60px);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.school-name {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    color: var(--text-primary);
}

.degree-status {
    font-size: clamp(12px, 2.8vw, 14px);
    font-style: italic;
    color: var(--text-secondary);
}

.majors-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1.5vw, 8px);
    margin-bottom: clamp(16px, 4vw, 20px);
}

.major-item {
    background: rgba(255,255,255,0.1);
    padding: clamp(3px, 1vw, 4px) clamp(8px, 2vw, 10px);
    border-radius: var(--radius-sm);
    font-size: clamp(12px, 2.8vw, 14px);
    color: var(--text-secondary);
}

.honors-section {
    margin-top: clamp(6px, 1.5vw, 8px);
}

.honors-title {
    font-size: clamp(13px, 3vw, 15px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(8px, 2vw, 10px);
    text-decoration: underline var(--purdue-gold);
    text-underline-offset: 4px;
}

.honors-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1.5vw, 8px);
}

.honor-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(11px, 2.5vw, 13px);
    color: var(--text-secondary);
    background: rgba(255,255,255,0.1);
    padding: clamp(3px, 1vw, 4px) clamp(8px, 2vw, 10px);
    border-radius: var(--radius-sm);
}

/* Origin Card */
.origin-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 153, 51, 0.05) 100%);
    padding: clamp(16px, 3vw, 20px);
    overflow: visible;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .origin-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .origin-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .origin-card {
        grid-column: span 3;
        grid-row: span 1;
    }
}

.origin-card .card-title {
    font-size: clamp(14px, 3.2vw, 16px);
    margin-bottom: clamp(8px, 2vw, 12px);
}

.origin-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80%;
    gap: clamp(6px, 1.5vw, 8px);
}

.gujarat-globe {
    position: relative;
    width: clamp(140px, 25vw, 190px);
    height: clamp(140px, 25vw, 190px);
    display: block;
    cursor: grab;
    touch-action: none;
    margin: 0 auto;
}

.gujarat-globe:active {
    cursor: grabbing;
}

#gujarat-globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.gujarat-globe-tooltip {
    position: absolute;
    padding: 4px 8px;
    font-size: clamp(9px, 2vw, 11px);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
    z-index: 1000;
}

.globe-info-box {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: clamp(12px, 3vw, 16px);
    max-width: clamp(250px, 50vw, 280px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    color: var(--text-primary);
    font-size: clamp(11px, 2.5vw, 13px);
    line-height: 1.4;
    transform: translateY(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.globe-info-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.globe-info-box h4 {
    margin: 0 0 clamp(8px, 2vw, 12px);
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: clamp(6px, 1.5vw, 8px);
}

.globe-info-box p {
    margin: 0 0 6px;
    color: var(--text-secondary);
}

.globe-info-box p:last-child {
    margin-bottom: 0;
}

.globe-info-box .fact-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 2vw, 10px);
    margin-bottom: clamp(6px, 1.5vw, 8px);
    padding: clamp(4px, 1vw, 6px) 0;
}

.globe-info-box .fact-item:last-child {
    margin-bottom: 0;
}

.globe-info-box .fact-emoji {
    font-size: clamp(14px, 3vw, 16px);
    margin-top: 1px;
    flex-shrink: 0;
}

.origin-details {
    margin-top: clamp(6px, 1.5vw, 8px);
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 1vw, 4px);
    align-items: center;
}

.origin-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(10px, 2.2vw, 12px);
    color: var(--text-secondary);
}

.emoji {
    font-size: clamp(12px, 2.8vw, 14px);
}

/* Interests Card */
.interests-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 1;
    padding: clamp(16px, 3vw, 20px);
    overflow: visible;
}

@media (min-width: 640px) {
    .interests-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .interests-card {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .interests-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.interests-card .card-title {
    font-size: clamp(14px, 3.2vw, 16px);
    margin-bottom: clamp(6px, 1.5vw, 8px);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(4px, 1vw, 6px);
    margin-top: clamp(6px, 1.5vw, 8px);
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(4px, 1vw, 6px);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.interest-icon {
    font-size: clamp(14px, 3vw, 16px);
    margin-bottom: 2px;
}

.interest-name {
    font-size: clamp(9px, 2vw, 10px);
    color: var(--text-secondary);
    font-weight: 500;
}

.barca-logo {
    position: absolute;
    bottom: -50px;
    right: -10px;
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: none;
}

@media (min-width: 640px) {
    .barca-logo {
        display: block;
        bottom: -100px;
        right: -15px;
        width: clamp(120px, 20vw, 200px);
        height: clamp(120px, 20vw, 200px);
    }
}

.barca-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Future Project Card */
.future-project-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 1;
}

@media (min-width: 640px) {
    .future-project-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .future-project-card {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .future-project-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.future-project-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.5vw, 8px);
    margin-top: clamp(6px, 1.5vw, 8px);
}

.future-project-item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    padding: clamp(4px, 1vw, 6px);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.future-project-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.future-project-icon {
    font-size: clamp(14px, 3vw, 16px);
    margin-bottom: 2px;
    flex-shrink: 0;
}

.future-project-name {
    font-size: clamp(11px, 2.5vw, 13px);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
}

/* Contact Card */
.contact-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 1;
}

@media (min-width: 640px) {
    .contact-card {
        grid-column: span 4;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .contact-card {
        grid-column: span 3;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .contact-card {
        grid-column: span 4;
        grid-row: span 1;
    }
}

.contact-card .card-content {
    display: flex;
    gap: clamp(16px, 4vw, 20px);
    flex-direction: column;
}

@media (min-width: 640px) {
    .contact-card .card-content {
        flex-direction: row;
    }
}

.contact-section {
    margin-bottom: clamp(12px, 3vw, 16px);
    flex: 1;
}

.contact-section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-size: clamp(10px, 2.2vw, 11px);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: clamp(4px, 1vw, 6px);
}

.contact-info {
    color: var(--text-secondary);
    font-size: clamp(11px, 2.5vw, 13px);
    line-height: 1.4;
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-blue-hover);
}

/* Download Card */
.download-card {
    /* Mobile */
    grid-column: 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 100%);
    color: white;
    position: relative;
    padding: clamp(16px, 3vw, 20px);
}

@media (min-width: 640px) {
    .download-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (min-width: 1024px) {
    .download-card {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (min-width: 1400px) {
    .download-card {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: clamp(8px, 2vw, 12px);
}

.download-content .card-title {
    font-size: clamp(14px, 3.2vw, 16px);
    margin-bottom: 2px;
    color: white;
}

.download-content .download-subtitle {
    font-size: clamp(10px, 2.2vw, 11px);
    opacity: 0.8;
}

.download-icon {
    font-size: clamp(18px, 4vw, 20px);
    opacity: 0.8;
    flex-shrink: 0;
}

/* Specialty Card Backgrounds */
.projects-card { 
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.experience-card { 
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.skills-card { 
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.blog-card { 
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.1) 100%);
}

/* Footer */
.footer {
    /* Mobile */
    grid-column: 1;
    text-align: center;
    padding: clamp(24px, 5vw, 32px) 0;
    color: var(--text-tertiary);
    font-size: clamp(12px, 2.8vw, 14px);
    border-top: 1px solid var(--border-primary);
    margin-top: clamp(30px, 6vw, 40px);
}

@media (min-width: 640px) {
    .footer {
        grid-column: span 4;
    }
}

@media (min-width: 1024px) {
    .footer {
        grid-column: span 6;
    }
}

@media (min-width: 1400px) {
    .footer {
        grid-column: span 10;
    }
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

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

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .bento-card:hover {
        transform: none;
    }
    
    .bento-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .social-link:hover,
    .tech-item:hover,
    .nav-icon:hover {
        transform: none;
    }
    
    .character-container {
        animation: none;
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    body {
        padding: 10px;
    }
    
    .bento-grid {
        gap: 10px;
    }
    
    .bento-card {
        padding: 14px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .majors-list,
    .honors-list {
        flex-direction: column;
        gap: 4px;
    }
    
    .contact-card .card-content {
        flex-direction: column;
        gap: 12px;
    }
}

/* Large Desktop Optimizations */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .character-container {
        width: 400px;
        height: 360px;
        right: -40px;
    }
    
    .hero-content {
        padding-right: 280px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .character-container {
        animation: none;
    }
    
    .status-dot,
    .now-indicator {
        animation: none;
    }
    
    .bento-card {
        transition: none;
    }
    
    #typewriter {
        animation: none;
        border-right: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bento-card {
        border-width: 2px;
    }
    
    .social-link,
    .tech-item {
        border-width: 2px;
    }
}

/* Focus States for Accessibility */
.bento-card:focus-visible,
.social-link:focus-visible,
.clickable:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Print Styles */
@media print {
    .character-container,
    .barca-logo {
        display: none;
    }
    
    .bento-grid {
        display: block;
    }
    
    .bento-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #333;
    }
}