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

/* Mobile-first base styles */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
}

body {
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --bg-color: #F5DEB3;
    --card-bg: #FFF8DC;
    --text-primary: #2F1B14;
    --text-secondary: #5D4037;
    --border-color: #D2B48C;
    --gradient-1: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    --gradient-2: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
    --shadow-sm: 0 2px 4px 0 rgb(139 69 19 / 0.2);
    --shadow-md: 0 6px 12px -2px rgb(139 69 19 / 0.3);
    --shadow-lg: 0 15px 25px -5px rgb(139 69 19 / 0.4);
    --border-radius: 8px;
    --parchment-bg: linear-gradient(45deg, #F5DEB3 0%, #DDD0B0 25%, #F5DEB3 50%, #E6D3A3 75%, #F5DEB3 100%);
}

body {
    font-family: 'Cinzel', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--parchment-bg);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(139, 69, 19, 0.05) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    pointer-events: none;
    z-index: -1;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 222, 179, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 3px solid var(--border-color);
    border-image: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent) 1;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-svg:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Logo cartoon character - scaled down version */
.logo-cartoon-boy {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-cartoon-boy:hover {
    transform: rotate(5deg) scale(1.1);
}

.logo-head {
    position: relative;
    width: 20px;
    height: 20px;
    background: #FDBCB4;
    border-radius: 50%;
    border: 1px solid #E8A598;
}

.logo-hair {
    position: absolute;
    top: -4px;
    left: -2px;
    width: 24px;
    height: 20px;
    background: #8B4513;
    border-radius: 50% 50% 30% 30%;
    z-index: -1;
}

.logo-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.logo-eyes {
    position: absolute;
    top: -2px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}

.logo-eye {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-pupil {
    width: 2px;
    height: 2px;
    background: #333;
    border-radius: 50%;
}

.logo-nose {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 2px;
    background: #E8A598;
    border-radius: 50%;
}

.logo-mouth {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 3px;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.logo-body {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-shirt {
    width: 18px;
    height: 12px;
    background: #4A90E2;
    border-radius: 2px;
    border: 1px solid #357ABD;
}

.logo-laptop {
    font-size: 6px;
    margin-top: 1px;
    animation: logo-laptop-glow 2s ease-in-out infinite;
}

@keyframes logo-laptop-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-emoji {
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    background: var(--parchment-bg);
    border: 8px solid var(--primary-color);
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color)) 1;
    margin: 0 20px;
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(139, 69, 19, 0.2);
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn {
    padding: 12px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary-color);
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color)) 1;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
    position: relative;
}

.profile-card::before {
    content: '⚔️';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 1.5rem;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 5px;
}

.profile-card::after {
    content: '🗡️';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 1.5rem;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 5px;
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.hero-logo {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: rotate(10deg) scale(1.1);
}

.profile-img {
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

/* Cartoon Boy Character */
.cartoon-boy {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.head {
    position: relative;
    width: 40px;
    height: 40px;
    background: #FDBCB4;
    border-radius: 50%;
    margin-bottom: 5px;
}

.hair {
    position: absolute;
    top: -8px;
    left: -5px;
    width: 50px;
    height: 25px;
    background: #2C2C2C;
    border-radius: 25px 25px 0 0;
    z-index: 1;
}

/* Hair Spikes */
.hair::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 12px solid #2C2C2C;
}

.hair::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 8px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 10px solid #2C2C2C;
}

/* Additional spikes */
.hair {
    position: relative;
}

.hair:not(:empty)::before {
    box-shadow:
        12px 2px 0 #2C2C2C,
        24px 4px 0 #2C2C2C,
        36px 2px 0 #2C2C2C;
}

/* Create more spikes using pseudo-elements */
.head::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 8px solid #2C2C2C;
    z-index: 2;
}

.head::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 10px solid #2C2C2C;
    z-index: 2;
}

.face {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.eyes {
    position: absolute;
    top: -4px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
}

.eye {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.pupil {
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.nose {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #E8A298;
    border-radius: 50%;
}

.mouth {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    border: 2px solid #D4726F;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.body {
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shirt {
    width: 35px;
    height: 25px;
    background: #4A90E2;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.shirt::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #2E5CB8;
    border-radius: 2px;
}

.laptop {
    font-size: 12px;
    margin-top: 2px;
    animation: laptop-glow 2s ease-in-out infinite;
}

@keyframes laptop-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; filter: brightness(1.2); }
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
    position: relative;
}

.section-title::before {
    content: '⚜️';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.section-title::after {
    content: '⚜️';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.interests h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.interests ul {
    list-style: none;
}

.interests li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.knight-helmet {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 200px;
    height: 320px;
    margin: 0 auto;
    filter: sepia(20%) contrast(1.2);
}

.helmet-main {
    width: 140px;
    height: 180px;
    background: #F5F5F5;
    border-radius: 70px 70px 30px 30px;
    position: relative;
    border: 4px solid #2F1B14;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(47, 27, 20, 0.15) 1px,
            rgba(47, 27, 20, 0.15) 2px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 1px,
            rgba(47, 27, 20, 0.1) 1px,
            rgba(47, 27, 20, 0.1) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(47, 27, 20, 0.08) 3px,
            rgba(47, 27, 20, 0.08) 4px
        );
    box-shadow:
        inset 0 0 20px rgba(47, 27, 20, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.helmet-main::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #2F1B14 0px,
        #2F1B14 2px,
        transparent 2px,
        transparent 4px
    );
}

.helmet-main::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        #2F1B14 0px,
        #2F1B14 3px,
        transparent 3px,
        transparent 6px
    );
    border-radius: 6px;
}

.helmet-visor {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 70px;
    background: #1A1A1A;
    border-radius: 55px 55px 20px 20px;
    border: 4px solid #2F1B14;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.helmet-visor::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 8px;
    width: 94px;
    height: 3px;
    background: #2F1B14;
    box-shadow:
        0 6px 0 #2F1B14,
        0 12px 0 #2F1B14,
        0 18px 0 #2F1B14,
        0 24px 0 #2F1B14,
        0 30px 0 #2F1B14,
        0 36px 0 #2F1B14;
}

.helmet-visor::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    width: 100px;
    height: 70px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(47, 27, 20, 0.6) 4px,
        rgba(47, 27, 20, 0.6) 5px
    );
}

.helmet-plume {
    display: none;
}

.helmet-side {
    position: absolute;
    top: 85px;
    width: 35px;
    height: 130px;
    background: #F5F5F5;
    border-radius: 18px;
    border: 3px solid #2F1B14;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 6px,
            rgba(47, 27, 20, 0.15) 6px,
            rgba(47, 27, 20, 0.15) 7px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(47, 27, 20, 0.1) 1px,
            rgba(47, 27, 20, 0.1) 2px
        );
    box-shadow:
        inset 0 0 15px rgba(47, 27, 20, 0.2),
        0 3px 8px rgba(0, 0, 0, 0.2);
}

.helmet-side.left {
    left: -22px;
    transform: rotate(-18deg);
}

.helmet-side.right {
    right: -22px;
    transform: rotate(18deg);
}

.helmet-side::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2F1B14;
    border-radius: 50%;
    box-shadow:
        0 15px 0 #2F1B14,
        0 30px 0 #2F1B14,
        0 45px 0 #2F1B14,
        0 60px 0 #2F1B14;
}

.helmet-side::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 2px;
    width: 31px;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #2F1B14 0px,
        #2F1B14 2px,
        transparent 2px,
        transparent 4px
    );
    box-shadow: 0 110px 0 rgba(47, 27, 20, 1);
}

.helmet-gorget {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 80px;
    background: #F5F5F5;
    border-radius: 80px 80px 80px 80px / 40px 40px 80px 80px;
    border: 4px solid #2F1B14;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(47, 27, 20, 0.1) 4px,
            rgba(47, 27, 20, 0.1) 5px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(47, 27, 20, 0.08) 2px,
            rgba(47, 27, 20, 0.08) 3px
        );
    box-shadow:
        inset 0 0 15px rgba(47, 27, 20, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.3);
}

.helmet-gorget::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #2F1B14 0px,
        #2F1B14 3px,
        transparent 3px,
        transparent 6px
    );
    box-shadow:
        0 8px 0 rgba(47, 27, 20, 0.8),
        0 16px 0 rgba(47, 27, 20, 0.6),
        0 24px 0 rgba(47, 27, 20, 0.4);
}

.helmet-gorget::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: #2F1B14;
    border-radius: 50%;
    box-shadow:
        25px 0 0 #2F1B14,
        50px 0 0 #2F1B14,
        75px 0 0 #2F1B14,
        100px 0 0 #2F1B14,
        120px 0 0 #2F1B14;
}

.knight-helmet:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.knight-helmet:hover .helmet-main {
    border-color: #8B4513;
    transition: border-color 0.3s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 3px solid var(--primary-color);
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color)) 1;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    background-image:
        radial-gradient(circle at top left, rgba(139, 69, 19, 0.05) 20%, transparent 20%),
        radial-gradient(circle at top right, rgba(139, 69, 19, 0.05) 20%, transparent 20%),
        radial-gradient(circle at bottom left, rgba(139, 69, 19, 0.05) 20%, transparent 20%),
        radial-gradient(circle at bottom right, rgba(139, 69, 19, 0.05) 20%, transparent 20%);
    background-size: 20px 20px;
}

.project-card::before {
    content: '🏰';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--primary-color);
}

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

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--primary-color);
}

.skills {
    background: var(--card-bg);
}

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

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-item {
    background: var(--bg-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 120px;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.social-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-link span {
    font-weight: 500;
}

.footer {
    background: var(--primary-color);
    color: var(--bg-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 4px solid var(--accent-color);
    border-image: linear-gradient(90deg, transparent, var(--accent-color), var(--primary-color), var(--accent-color), transparent) 1;
    position: relative;
}

.footer::before {
    content: '🗺️ ⚔️ 🗺️';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    padding: 0 20px;
    font-size: 1.2rem;
}

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

/* Game Showcase Styles */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-showcase {
    text-align: center;
}

.game-showcase h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.game-preview {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-color);
}

.game-screen {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.game-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-egg {
    position: absolute;
    font-size: 2rem;
    animation: float-around 3s ease-in-out infinite;
}

.floating-egg.egg-1 {
    top: 20%;
    left: 15%;
    animation: float-horizontal-right 4s ease-in-out infinite;
    animation-delay: 0s;
}

.floating-egg.egg-2 {
    top: 60%;
    right: 20%;
    animation: float-diagonal-up-left 3.5s linear infinite;
    animation-delay: 0.5s;
}

.floating-egg.egg-3 {
    top: 10%;
    right: 30%;
    animation: float-vertical-down 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-egg.egg-4 {
    bottom: 30%;
    left: 20%;
    animation: float-spiral-clockwise 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.floating-egg.egg-5 {
    top: 40%;
    left: 50%;
    animation: float-zigzag-horizontal 3.8s linear infinite;
    animation-delay: 2s;
}

.floating-egg.egg-6 {
    bottom: 15%;
    right: 15%;
    animation: float-diagonal-up-right 4.2s linear infinite;
    animation-delay: 2.5s;
}

.floating-egg.egg-7 {
    top: 30%;
    left: 80%;
    animation: float-horizontal-left 3.5s ease-in-out infinite;
    animation-delay: 3s;
}

.floating-egg.egg-8 {
    bottom: 40%;
    left: 35%;
    animation: float-spiral-counter 4s ease-in-out infinite;
    animation-delay: 3.5s;
}

.floating-egg.egg-9 {
    top: 70%;
    right: 40%;
    animation: float-vertical-up 3.2s linear infinite;
    animation-delay: 4s;
}

.floating-egg.egg-10 {
    top: 25%;
    left: 60%;
    animation: float-diagonal-down-left 4.8s linear infinite;
    animation-delay: 4.5s;
}

.floating-egg.egg-11 {
    bottom: 50%;
    right: 60%;
    animation: float-zigzag-vertical 3.7s ease-in-out infinite;
    animation-delay: 5s;
}

.floating-egg.egg-12 {
    top: 80%;
    left: 25%;
    animation: float-diagonal-down-right 4.3s linear infinite;
    animation-delay: 5.5s;
}

.floating-egg.egg-13 {
    top: 15%;
    right: 70%;
    animation: float-horizontal-right 3.9s linear infinite;
    animation-delay: 6s;
}

.floating-egg.egg-14 {
    bottom: 25%;
    left: 75%;
    animation: float-spiral-clockwise 4.1s ease-in-out infinite;
    animation-delay: 6.5s;
}

.floating-egg.egg-15 {
    top: 50%;
    right: 25%;
    animation: float-around 3.6s ease-in-out infinite;
    animation-delay: 7s;
}

.laser-sight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    animation: pulse 1.5s ease-in-out infinite;
    z-index: 10;
}

.game-message {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 15px;
    border: 2px solid #FFD700;
    font-size: 0.8rem;
    font-weight: bold;
    color: #2E8B57;
    text-align: center;
    line-height: 1.2;
    max-width: 280px;
    z-index: 10;
}

@keyframes float-around {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -8px) rotate(90deg);
    }
    50% {
        transform: translate(-5px, -15px) rotate(180deg);
    }
    75% {
        transform: translate(-8px, 5px) rotate(270deg);
    }
}

@keyframes float-diagonal-up-right {
    0% { transform: translate(-200px, 200px) rotate(0deg); }
    100% { transform: translate(200px, -200px) rotate(360deg); }
}

@keyframes float-diagonal-up-left {
    0% { transform: translate(200px, 200px) rotate(0deg); }
    100% { transform: translate(-200px, -200px) rotate(-360deg); }
}

@keyframes float-diagonal-down-right {
    0% { transform: translate(-200px, -200px) rotate(0deg); }
    100% { transform: translate(200px, 200px) rotate(360deg); }
}

@keyframes float-diagonal-down-left {
    0% { transform: translate(200px, -200px) rotate(0deg); }
    100% { transform: translate(-200px, 200px) rotate(-360deg); }
}

@keyframes float-horizontal-left {
    0% { transform: translateX(300px) rotate(0deg); }
    100% { transform: translateX(-300px) rotate(720deg); }
}

@keyframes float-horizontal-right {
    0% { transform: translateX(-300px) rotate(0deg); }
    100% { transform: translateX(300px) rotate(-720deg); }
}

@keyframes float-vertical-up {
    0% { transform: translateY(250px) rotate(0deg); }
    100% { transform: translateY(-250px) rotate(540deg); }
}

@keyframes float-vertical-down {
    0% { transform: translateY(-250px) rotate(0deg); }
    100% { transform: translateY(250px) rotate(-540deg); }
}

@keyframes float-spiral-clockwise {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(50px, -30px) rotate(90deg) scale(1.2); }
    50% { transform: translate(0, -60px) rotate(180deg) scale(0.8); }
    75% { transform: translate(-50px, -30px) rotate(270deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

@keyframes float-spiral-counter {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-40px, -25px) rotate(-90deg) scale(0.9); }
    50% { transform: translate(0, -50px) rotate(-180deg) scale(1.3); }
    75% { transform: translate(40px, -25px) rotate(-270deg) scale(0.7); }
    100% { transform: translate(0, 0) rotate(-360deg) scale(1); }
}

@keyframes float-zigzag-horizontal {
    0% { transform: translate(-150px, 0) rotate(0deg); }
    25% { transform: translate(-50px, -30px) rotate(180deg); }
    50% { transform: translate(50px, 30px) rotate(360deg); }
    75% { transform: translate(100px, -20px) rotate(540deg); }
    100% { transform: translate(200px, 0) rotate(720deg); }
}

@keyframes float-zigzag-vertical {
    0% { transform: translate(0, -120px) rotate(0deg); }
    25% { transform: translate(25px, -40px) rotate(90deg); }
    50% { transform: translate(-25px, 40px) rotate(180deg); }
    75% { transform: translate(30px, 80px) rotate(270deg); }
    100% { transform: translate(0, 160px) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow on all elements */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        border-top: 1px solid rgba(139, 69, 19, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-height: 48px;
        font-size: 1rem;
        padding: 14px 24px;
        touch-action: manipulation;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .skills-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .project-card,
    .skill-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .game-screen {
        width: 100%;
        height: 250px;
    }

    .floating-egg {
        font-size: 1.5rem;
    }

    .laser-sight {
        font-size: 2rem;
    }

    .game-message {
        font-size: 0.7rem;
        padding: 6px 10px;
        max-width: 240px;
    }

    /* Better mobile section spacing */
    section {
        padding: 2.5rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Improve mobile text contrast and spacing */
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    /* Better mobile about section */
    .about-intro {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .about-stats {
        justify-content: center;
        margin: 2rem auto;
        max-width: 100%;
    }

    .stat {
        text-align: center;
        min-width: 80px;
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Games Board Styles */
.games-board {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.games-board.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

.games-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.games-header h2 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.back-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.game-card {
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.game-card:hover::before {
    opacity: 1;
    animation: shimmer 0.6s ease;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.game-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.play-btn {
    background: var(--gradient-2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.game-card:hover .play-btn {
    background: var(--gradient-1);
    transform: scale(1.05);
}

.epic-games-card {
    cursor: pointer;
    position: relative;
}

.epic-games-card::after {
    content: '🎮';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.7;
}

.play-now-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content,
    .about-content {
        gap: 3rem;
    }

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

    .container {
        padding: 0 20px;
    }
}

/* Mobile styles continued */
@media (max-width: 768px) {
    .games-header {
        flex-direction: column;
        text-align: center;
    }

    .games-header h2 {
        font-size: 2rem;
    }

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

    .games-container {
        padding: 0.8rem;
        margin: 5px;
        max-height: 85vh;
        overflow-y: auto;
        width: calc(100% - 10px);
    }

    .games-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .game-card {
        margin-bottom: 1rem;
        min-height: auto;
    }

    .game-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .game-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .game-card .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Improve touch targets */
    .nav-link {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        transition: all 0.2s ease;
    }

    .nav-link:hover,
    .nav-link:focus {
        background-color: rgba(139, 69, 19, 0.1);
        color: var(--primary-color);
    }

    /* Better mobile card sizing */
    .project-card {
        margin-bottom: 1rem;
    }

    .skill-item {
        padding: 1rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .container {
        padding: 0 12px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hero {
        padding: 80px 12px 40px;
        min-height: auto;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo-svg {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .project-card,
    .skill-item {
        padding: 1.5rem;
    }

    /* Better mobile text sizing */
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .about-intro {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Improve mobile buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly minimum size */
    }

    /* Better mobile spacing */
    .about-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat {
        min-width: 80px;
    }

    /* Mobile-friendly navigation */
    .nav-menu {
        top: 60px; /* Reduce top spacing on smaller screens */
    }

    /* Better mobile contact form */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 16px;
        width: 100%;
        min-height: 48px;
        border-radius: 8px;
        border: 2px solid rgba(139, 69, 19, 0.2);
        transition: border-color 0.2s ease;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: var(--primary-color);
        outline: none;
    }

    .contact-form .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        margin-top: 1rem;
    }

    /* Mobile game preview adjustments */
    .game-screen {
        height: 200px;
        margin: 1rem 0;
    }

    /* Mobile floating emojis - reduce size */
    .floating-egg {
        font-size: 1.2rem;
    }

    /* Improve mobile readability */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Better mobile stats layout */
    .about-stats .stat {
        text-align: center;
        padding: 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Mobile contact improvements */
    .contact-content {
        gap: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        min-height: 50px;
        min-width: 50px;
        font-size: 1.5rem;
    }

    /* Very small screens */
    .games-board {
        padding: 2px;
        align-items: flex-start;
        padding-top: 15px;
    }

    .games-container {
        max-height: 95vh;
        overflow-y: auto;
        margin: 2px;
        padding: 0.6rem;
        width: calc(100% - 4px);
    }

    .games-header {
        padding-bottom: 1rem;
    }

    .games-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .games-header .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .game-card {
        padding: 1rem;
    }

    .game-card h3 {
        font-size: 1.2rem;
    }

    .game-card p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 15px 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    section {
        padding: 2rem 0;
    }

    .games-container {
        max-height: 90vh;
        padding: 0.4rem;
        margin: 2px;
        width: calc(100% - 4px);
    }

    .games-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .game-card {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .game-card h3 {
        font-size: 1.1rem;
    }

    .game-card p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 600px) {
    /* Extra small mobile improvements */
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 8px;
    }

    .hero {
        padding: 70px 8px 30px;
    }

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

    .project-card,
    .skill-item {
        padding: 1.2rem;
    }

    .games-container {
        padding: 0.8rem;
        margin: 4px;
        width: calc(100% - 8px);
    }
}