:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #eff6ff;
    --text: #0f172a;
    --text-secondary: #475569;
    --border: rgba(226, 232, 240, 0.95);
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --accent-alt: #38bdf8;
    --radius: 20px;
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 30px 90px rgba(15, 23, 42, 0.14);
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef4ff 45%, #f8fafc 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.14), transparent 18%),
                radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.1), transparent 14%);
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.logo-dot {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
}

.nav-links a:nth-child(1) { animation-delay: 0.18s; }
.nav-links a:nth-child(2) { animation-delay: 0.24s; }
.nav-links a:nth-child(3) { animation-delay: 0.30s; }
.nav-links a:nth-child(4) { animation-delay: 0.36s; }
.nav-links a:nth-child(5) { animation-delay: 0.42s; }
.nav-links a:nth-child(6) { animation-delay: 0.48s; }
.nav-links a:nth-child(7) { animation-delay: 0.54s; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-nav:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }
.btn-nav::after { display: none !important; }

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.12), transparent 22%),
                radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.08), transparent 16%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease forwards;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.15s;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.25s;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.95s ease forwards;
    animation-delay: 0.35s;
}

.hero-actions {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.45s;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero h1 .highlight { color: var(--accent); }

.hero-image {
    animation: slideInRight 0.8s ease forwards, float 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #eff6ff, #dbeafe, #bfdbfe);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-image-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(59, 130, 246, 0.22);
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%);
    pointer-events: none;
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform var(--transition);
}

.hero-image-placeholder:hover img {
    transform: scale(1.02);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-3px);
}

/* Game Sections */
.game-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 55%);
    pointer-events: none;
}

.game-section:nth-child(even)::before {
    right: auto;
    left: 8%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06), transparent 55%);
}

.game-section:nth-child(even) {
    background: var(--surface);
}

.game-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.game-section:nth-of-type(1) .game-header { animation-delay: 0.2s; }
.game-section:nth-of-type(2) .game-header { animation-delay: 0.25s; }
.game-section:nth-of-type(3) .game-header { animation-delay: 0.3s; }
.game-section:nth-of-type(4) .game-header { animation-delay: 0.35s; }

.game-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.game-header h2 img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.game-header .game-type-badge {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--accent-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.game-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Screenshot Gallery */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
    justify-content: center;
    width: min(100%, 620px);
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
}

.game-section:nth-of-type(1) .screenshots-grid { animation-delay: 0.25s; }
.game-section:nth-of-type(2) .screenshots-grid { animation-delay: 0.3s; }
.game-section:nth-of-type(3) .screenshots-grid { animation-delay: 0.35s; }
.game-section:nth-of-type(4) .screenshots-grid { animation-delay: 0.4s; }

.usm-screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    width: min(100%, 630px);
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.45s;
}

.screenshot-item {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
    aspect-ratio: 9/16;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.screenshot-item:nth-child(odd) { animation-delay: 0.12s; }
.screenshot-item:nth-child(even) { animation-delay: 0.18s; }

.screenshot-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.screenshot-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.screenshot-item:hover::before {
    opacity: 1;
}

.usm-screenshot-item {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
    aspect-ratio: 16/9;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.usm-screenshot-item:nth-child(odd) { animation-delay: 0.18s; }
.usm-screenshot-item:nth-child(even) { animation-delay: 0.24s; }

.usm-screenshot-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.usm-screenshot-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.usm-screenshot-item:hover::before {
    opacity: 1;
}

.usm-screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.usm-screenshot-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: var(--accent);
    position: relative;
}

.screenshot-placeholder .upload-hint {
    position: absolute;
    bottom: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 8px;
}

.screenshot-placeholder .game-emoji {
    font-size: 4rem;
}

/* Game info row */
.game-info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.45s;
}

.game-info-row .btn {
    font-size: 0.9rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-live {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.status-dev {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.status-testing {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Skills Section */
.section-skills {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 80px 0;
    position: relative;
}

.section-skills::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 12%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 55%);
    pointer-events: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.skill-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    opacity: 0;
    transition: opacity var(--transition);
}

.skill-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.skill-card:hover .skill-tag {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

/* About */
.section-about {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 0;
    position: relative;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 12%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.2s;
}

.about-image {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: float 6s ease-in-out infinite;
}

.about-image-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 70px rgba(59, 130, 246, 0.14);
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform var(--transition);
}

.about-image-placeholder:hover img {
    transform: scale(1.02);
}

.about-text {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.2s;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.stat-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Contact */
.section-contact {
    padding: 80px 0;
    text-align: center;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    max-width: 500px;
    margin: 0 auto;
    transition: var(--transition);
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
    animation-delay: 0.35s;
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: var(--transition);
}

.contact-card a:hover { color: #2563eb; }

.contact-form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.contact-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 12px;
}

.contact-form .success-message {
    display: none;
    margin-top: 12px;
    color: #16a34a;
    font-weight: 700;
}

.contact-form .success-message.show {
    display: block;
}

.contact-form button {
    width: 100%;
    justify-content: center;
}

.popup-notification {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
    pointer-events: none;
}

.popup-notification.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.popup-notification .popup-status {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #16a34a;
    flex-shrink: 0;
}

.popup-notification.fail .popup-status {
    background: #dc2626;
}

.popup-notification span {
    font-size: 0.95rem;
    color: var(--text);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    animation: modalIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

footer span { color: var(--accent); font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-image { max-width: 300px; margin: 0 auto; }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 300px; margin: 0 auto; }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .screenshots-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .screenshots-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; justify-content: center; }
    .game-info-row { flex-direction: column; align-items: stretch; }
}
