@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* ========================================
   CSS RESET & VARIABLES
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-2: #8b5cf6;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #06b6d4 100%);
    --gradient-bg: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 50%, #ecfeff 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.2);

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Spacing */
    --container-max: 1400px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ========================================
   BASE STYLES
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.bg-gradient-animated {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    z-index: -2;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.bg-blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(99, 102, 241, 0.15));
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.bg-blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   HOME PAGE - HERO
   ======================================== */
.header {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

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

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.subtitle-highlight {
    color: var(--primary);
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   NAVIGATION TABS
   ======================================== */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.tab {
    position: relative;
    padding: 0.875rem 1.75rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    border: 1px solid var(--border);
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    z-index: -1;
}

.tab:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tab:hover::before {
    opacity: 1;
}

.tab.active {
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tab.active::before {
    opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: fadeInUp 0.6s var(--ease-out) 0.5s both;
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   SUB-PAGE HEADER
   ======================================== */
.header-top {
    text-align: center;
    padding: 2rem 1rem 1rem;
    position: relative;
}

.name-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    transition: all 0.3s var(--ease-out);
}

.name-link:hover {
    color: var(--primary);
    transform: scale(1.02);
}

/* ========================================
   PAGE CONTENT
   ======================================== */
.page-content {
    padding: 2rem 5%;
    animation: fadeIn 0.5s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
    letter-spacing: -0.03em;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    margin-bottom: 2rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Standalone section titles (without section-header wrapper) */
.roblox-section > .section-title,
.games-grid-section > .section-title,
.about-section h2,
.contact-section h2,
.document-section h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.roblox-section > .section-title::after,
.games-grid-section > .section-title::after,
.about-section h2::after,
.contact-section h2::after,
.document-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

.roblox-section:hover > .section-title::after,
.games-grid-section:hover > .section-title::after {
    width: 80px;
}

/* ========================================
   PROJECTS GRID
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   PROJECT CARD - GLASSMORPHISM
   ======================================== */
.project-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.project-card p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    padding: 0.35rem 0.9rem;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s var(--ease-out);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tag-lang {
    padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s var(--ease-out);
    border: 1px solid rgba(180, 83, 9, 0.1);
}

.tag-lang:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
}

.project-links {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s var(--ease-out);
}

.project-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.project-link::after {
    content: '→';
    transition: transform 0.2s var(--ease-out);
}

.project-link:hover::after {
    transform: translateX(4px);
}

/* ========================================
   GAME CARDS
   ======================================== */
.roblox-section,
.games-grid-section {
    margin-bottom: 4rem;
}

.roblox-section h2,
.games-grid-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s var(--ease-out);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--shadow-xl), var(--shadow-glow-lg);
}

.game-card:hover::before {
    opacity: 0.03;
}

.game-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.game-card-image.square {
    aspect-ratio: 1 / 1;
}

.game-card-image.square img,
.game-card-image.square .carousel-img {
    object-fit: contain;
    background: #1a1a2e;
}

.game-card-image.blurfit {
    overflow: hidden;
}

.game-card-image.blurfit .image-carousel {
    overflow: hidden;
}

.game-card-image.blurfit .blur-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.7;
    z-index: 0;
}

.game-card-image.blurfit .carousel-img {
    object-fit: contain;
    z-index: 1;
}

.game-card-image .single-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.game-card:hover .single-img {
    transform: scale(1.05);
}

.game-card-image .contain-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1a2e;
}

.image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.carousel-img.active {
    opacity: 1;
}

.game-card:hover .carousel-img.active {
    transform: scale(1.05);
}

.img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.game-card:hover .img-arrow {
    opacity: 1;
}

.img-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.img-arrow.prev { left: 12px; }
.img-arrow.next { right: 12px; }

.game-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.game-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.game-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* ========================================
   BUTTONS
   ======================================== */
.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    border: none;
    cursor: pointer;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.play-btn.small {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.dev-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
}

.dev-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.dev-btn.small {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

/* ========================================
   PLATFORM BANNERS
   ======================================== */
.roblox-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roblox-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.roblox-banner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.roblox-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #1a1a2e;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.roblox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.itchio-banner {
    background: linear-gradient(135deg, #fa5c5c 0%, #f14668 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.itchio-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.itchio-content p {
    color: white;
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.itchio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #fa5c5c;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.itchio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.platform-logo {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
}

/* ========================================
   WEBSITES PAGE
   ======================================== */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.website-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--border);
}

.website-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: transparent;
}

.website-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.website-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.website-card:hover .website-image img {
    transform: scale(1.08);
}

.website-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
}

.website-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.website-overlay p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
}

.contact-link:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--primary);
}

.contact-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.document-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.pdf-viewer {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: auto;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    height: 700px;
    padding: 10px;
    display: flex;
    justify-content: center;
    border: 1px solid var(--border);
}

.doc-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.view-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.view-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.download-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    border: 1px solid var(--border);
}

.download-icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* About Section */
.about-contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-section h2,
.contact-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.about-content {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Contact Form */
.contact-form {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s var(--ease-out);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1000px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .documents-grid,
    .about-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }

    .name-link {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .tab {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

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

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .roblox-banner-content,
    .itchio-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .game-cards {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    .page-content {
        padding: 1rem;
    }
}

/* ========================================
   ANIMATIONS FOR SCROLL
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   CAROUSEL NAVIGATION (Recommendations)
   ======================================== */
.carousel {
    position: relative;
}

.carousel .pdf-viewer {
    width: 100%;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.dot:hover {
    background: var(--text-muted);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-section {
    margin-top: 3rem;
}

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

.skill-category {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 .icon {
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.9rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s var(--ease-out);
    border: 1px solid transparent;
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   TYPING ANIMATION
   ======================================== */
.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   TECH STACK ICONS
   ======================================== */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s var(--ease-out);
}

.tech-icon:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.tech-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tech-icon span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a svg {
    flex-shrink: 0;
}

.footer p {
    margin: 0;
}

/* ========================================
   STATS COUNTER
   ======================================== */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   GLOWING BORDER EFFECT
   ======================================== */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    filter: blur(8px);
}

.glow-border:hover::before {
    opacity: 0.5;
}

/* ========================================
   MOUSE FOLLOWER (optional enhancement)
   ======================================== */
.mouse-follower {
    position: fixed;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* ========================================
   CARD NUMBER BADGE
   ======================================== */
.card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

/* ========================================
   GAME DESIGN PAGE - HERO & ANIMATIONS
   ======================================== */
.game-hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.game-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
}

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

.game-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Game Stats Grid */
.game-stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.game-stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 3rem;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.game-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.game-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--shadow-xl), var(--shadow-glow-lg);
}

.game-stat-card:hover::before {
    opacity: 0.05;
}

.game-stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.game-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.game-stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Platform Section */
.platform-section {
    margin-bottom: 5rem;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.spinning-logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius-lg);
    padding: 1rem;
    flex-shrink: 0;
}

.spinning-logo {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    transition: transform 0.8s var(--ease-out);
    transform: rotate(-180deg) scale(0.5);
    opacity: 0;
}

.spinning-logo.spin-in {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    animation: spinSettle 0.8s var(--ease-out) forwards;
}

@keyframes spinSettle {
    0% {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: rotate(20deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.itchio-logo {
    filter: none;
}

.other-platform .spinning-logo-container {
    background: linear-gradient(135deg, #fa5c5c, #f14668);
}

.platform-info {
    flex: 1;
}

.platform-info .section-label {
    margin-bottom: 0.25rem;
}

.platform-info .section-title {
    margin-bottom: 0.5rem;
}

.platform-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.card-badge.featured {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
}

.card-badge.dev {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

/* Stat Highlight */
.stat-highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    color: #b45309;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Enhanced Play Button with Arrow */
.play-btn svg,
.dev-btn svg {
    transition: transform 0.3s var(--ease-out);
}

.play-btn:hover svg,
.dev-btn:hover svg {
    transform: translateX(4px);
}

/* Platform CTA Banner */
.platform-cta {
    position: relative;
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.platform-cta.itchio-cta {
    background: linear-gradient(135deg, #fa5c5c 0%, #f14668 100%);
}

.cta-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: ctaGlow 4s ease-in-out infinite;
}

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

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.itchio-cta .cta-icon img {
    filter: none;
}

.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #1a1a2e;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn.itchio {
    color: #fa5c5c;
}

.cta-btn svg {
    transition: transform 0.3s var(--ease-out);
}

.cta-btn:hover svg {
    transform: translate(3px, -3px);
}

/* Staggered Animation Delays for Game Cards */
.game-card[data-delay="0"] { transition-delay: 0s; }
.game-card[data-delay="1"] { transition-delay: 0.15s; }
.game-card[data-delay="2"] { transition-delay: 0.3s; }
.game-card[data-delay="3"] { transition-delay: 0.45s; }

/* Enhanced Card Hover Effects */
.game-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-card:hover {
    transform: translateY(-12px) rotateX(2deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .platform-header {
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .game-stats-grid {
        gap: 1rem;
    }

    .game-stat-card {
        padding: 1.5rem 2rem;
    }
}
