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

:root {
    --primary-blue: #0066ff;
    --light-blue: #4da6ff;
    --dark-blue: #0052cc;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gray: #333;
    --light-gray: #666;
    --white: #ffffff;
    --accent: #00d4ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(77, 166, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    gap: 2rem;
    min-height: 60px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transform-origin: center;
    z-index: 1002;
}
.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transform-origin: center;
    transform: scale(1.12);
    transition: transform 0.3s ease;
}

.logo-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.logo-icon img.logo-default {
    opacity: 1;
}

.logo-icon img.logo-glow {
    opacity: 0;
}
.logo:hover .logo-icon,
.logo:focus-visible .logo-icon {
    transform: scale(1.22);
}

.logo:hover .logo-wordmark,
.logo:focus-visible .logo-wordmark {
    transform: scale(1.22);
}

.logo:hover .logo-icon img.logo-default,
.logo:focus-visible .logo-icon img.logo-default {
    opacity: 0;
}

.logo:hover .logo-icon img.logo-glow,
.logo:focus-visible .logo-icon img.logo-glow {
    opacity: 1;
}

.logo-wordmark {
    height: 38px;
    width: auto;
    display: block;
    transform-origin: center;
    transform: scale(1.12);
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding-top: 80px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    list-style: none;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0;
    padding: 0;
}

.mobile-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    max-width: 300px;
    display: block;
}

.mobile-nav-links a:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    transform: translateY(-2px);
}

/* Wishlist Button */
.wishlist-btn {
    --button_radius: 0.6em;
    --button_color: #4da6ff;
    --button_outline_color: #0052cc;
    font-size: 0.85rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: var(--button_radius);
    background: var(--button_outline_color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    align-self: center;
}

.wishlist-btn-top {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--button_outline_color);
    border-radius: var(--button_radius);
    padding: 0.6em 1.2em;
    background: var(--button_color);
    color: var(--button_outline_color);
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
    font-weight: bold;
}

.wishlist-btn:hover .wishlist-btn-top {
    transform: translateY(-0.33em);
}

.wishlist-btn:active .wishlist-btn-top {
    transform: translateY(0);
}

.mobile-wishlist-btn {
    --button_radius: 0.6em;
    --button_color: #4da6ff;
    --button_outline_color: #0052cc;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: var(--button_radius);
    background: var(--button_outline_color);
    text-decoration: none;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
}

.mobile-wishlist-btn-top {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--button_outline_color);
    border-radius: var(--button_radius);
    padding: 0.75em 1.5em;
    background: var(--button_color);
    color: var(--button_outline_color);
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
    font-weight: bold;
    width: 100%;
}

.mobile-wishlist-btn:hover .mobile-wishlist-btn-top {
    transform: translateY(-0.33em);
}

.mobile-wishlist-btn:active .mobile-wishlist-btn-top {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    background: radial-gradient(circle at 30% 70%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%234da6ff" opacity="0.2"/><circle cx="40" cy="80" r="1" fill="%2300d4ff" opacity="0.15"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-visual {
    display: none;
}

.hero-wordmark {
    position: relative;
    display: inline-block;
    width: clamp(220px, 40vw, 520px);
    margin: 0 auto 2.5rem;
    animation: slideUp 1s ease-out;
}
.hero-wordmark img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.35s ease;
}
.hero-wordmark .hero-wordmark-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.hero-wordmark:hover .hero-wordmark-default,
.hero-wordmark:focus-visible .hero-wordmark-default {
    opacity: 0;
}
.hero-wordmark:hover .hero-wordmark-glow,
.hero-wordmark:focus-visible .hero-wordmark-glow {
    opacity: 1;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.6s both;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease-out 0.9s both;
}

.btn, button.btn {
    --button_radius: 0.75em;
    --button_color: #4da6ff;
    --button_outline_color: #0052cc;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: var(--button_radius);
    background: var(--button_outline_color);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: visible;
    transition: none;
}

.btn-top {
    display: block;
    box-sizing: border-box;
    border: 2px solid var(--button_outline_color);
    border-radius: var(--button_radius);
    padding: 0.75em 1.5em;
    background: var(--button_color);
    color: var(--button_outline_color);
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover .btn-top, button.btn:hover .btn-top {
    transform: translateY(-0.33em);
}

.btn:active .btn-top, button.btn:active .btn-top {
    transform: translateY(0);
}

.btn-primary {
    --button_color: #4da6ff;
    --button_outline_color: #0052cc;
}

.btn-primary .btn-top {
    background: var(--button_color);
    color: var(--button_outline_color);
    border-color: var(--button_outline_color);
}

.btn-secondary {
    --button_color: #1a1a1a;
    --button_outline_color: #4da6ff;
}

.btn-secondary .btn-top {
    background: var(--button_color);
    color: var(--light-blue);
    border-color: var(--button_outline_color);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

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

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Steam Wishlist Section */
.steam-section {
    padding: 3rem 0;
}

.steam-wishlist {
    background: linear-gradient(135deg, var(--dark-gray), var(--gray));
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(77, 166, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.steam-wishlist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.steam-content {
    z-index: 2;
    position: relative;
}

.steam-wishlist h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steam-wishlist p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-steam {
    --button_radius: 0.5em;
    --button_color: #66c0f4;
    --button_outline_color: #1b2838;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: var(--button_radius);
    background: var(--button_outline_color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.btn-steam-top {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--button_outline_color);
    border-radius: var(--button_radius);
    padding: 0.75em 1.5em;
    background: var(--button_color);
    color: var(--button_outline_color);
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
    font-weight: bold;
}

.btn-steam:hover .btn-steam-top {
    transform: translateY(-0.33em);
}

.btn-steam:active .btn-steam-top {
    transform: translateY(0);
}

.steam-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-mockup {
    width: 280px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
}

.mockup-ui {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.ui-element {
    height: 8px;
    background: var(--primary-blue);
    border-radius: 4px;
    opacity: 0.7;
}

.ui-element:nth-child(1) { width: 60px; }
.ui-element:nth-child(2) { width: 40px; }
.ui-element:nth-child(3) { width: 80px; }

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

.project-card {
    background: linear-gradient(135deg, var(--dark-gray), var(--gray));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(77, 166, 255, 0.1);
    position: relative;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.25);
    border-color: var(--primary-blue);
}

.project-card:hover::before {
    left: 100%;
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

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

.project-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.2), rgba(0, 212, 255, 0.2));
    color: var(--light-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(77, 166, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.3), rgba(0, 212, 255, 0.3));
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Codex Section */
.codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.codex-course {
    background: linear-gradient(135deg, var(--dark-gray), var(--gray));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(77, 166, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.codex-course:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.course-level {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-level.beginner {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.course-level.intermediate {
    background: rgba(255, 193, 7, 0.2);
    color: #ffb74d;
}

.course-level.advanced {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

.course-duration {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.codex-course h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.codex-course p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.course-modules {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-modules span {
    font-size: 0.9rem;
    color: var(--light-blue);
    padding: 0.25rem 0.75rem;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 10px;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--dark-gray), var(--gray));
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid rgba(77, 166, 255, 0.2);
}

.newsletter h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 20px;
    background: var(--black);
    color: var(--white);
    border: 2px solid rgba(77, 166, 255, 0.3);
    outline: none;
    font-size: 0.9rem;
}

.newsletter input:focus {
    border-color: var(--primary-blue);
}

/* Footer */
footer {
    background: var(--dark-gray);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(77, 166, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

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

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(77, 166, 255, 0.1);
    color: var(--light-gray);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(77, 166, 255, 0.2);
    z-index: 1100;
    pointer-events: none;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    width: 0%;
    transition: width 0.1s ease;
}

/* Responsive */
@media (min-width: 1024px) {
    .hero {
        padding: 0 5rem;
    }

    .hero-inner {
        justify-content: space-between;
    }

    .hero-content {
        text-align: left;
        max-width: 520px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-wordmark {
        margin: 0 0 2.5rem;
    }

    .cta-buttons {
        justify-content: flex-start;
    }

    .hero-visual {
        display: block;
        width: 440px;
        height: 440px;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(0, 102, 255, 0.35), rgba(0, 212, 255, 0.05)), url('../public/images/hero.png');
        background-size: cover;
        background-position: center;
        position: relative;
        overflow: hidden;
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55), 0 20px 40px rgba(0, 102, 255, 0.25);
        transform: perspective(1400px) rotateY(-18deg) rotateX(6deg) translateX(-70px);
        transition: transform 0.6s ease;
    }

    .hero-visual::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 55%);
        pointer-events: none;
    }

    .hero-visual:hover {
        transform: perspective(1400px) rotateY(-12deg) rotateX(3deg) translateX(-50px);
    }
}

@media (max-width: 1024px) {
    .wishlist-btn {
        font-size: 0.8rem;
    }
    
    .wishlist-btn-top {
        padding: 0.5em 1em;
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-wordmark {
        height: 32px;
    }

    .nav-links {
        display: none;
    }
    
    .wishlist-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-wordmark {
        width: min(80vw, 360px);
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .btn-top {
        justify-content: center;
    }
    
    .steam-wishlist {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 1.2rem;
    }
    
    .game-mockup {
        width: 240px;
        height: 150px;
    }
    
    .projects-preview,
    .codex-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-preview {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .course-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .course-modules {
        justify-content: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter input {
        min-width: auto;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
        gap: 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .logo-wordmark {
        height: 26px;
    }

    .hero {
        padding: 0 1rem;
    }

    .hero-wordmark {
        width: min(90vw, 300px);
        margin-bottom: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }


    .steam-wishlist {
        padding: 1rem;
        margin: 0 1rem;
    }

    .newsletter {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Cloop callout */
.cloop-callout .cloop-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.75rem, 5vw, 2.5rem);
    align-items: center;
    padding: clamp(2.5rem, 6vw, 3.5rem);
    background: rgba(15, 23, 42, 0.8);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.45);
}

.cloop-card .cloop-text {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.cloop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.cloop-visual {
    width: 100%;
    min-height: 220px;
    border-radius: 20px;
    background: radial-gradient(120% 120% at 0% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
        radial-gradient(90% 90% at 100% 50%, rgba(99, 102, 241, 0.25), transparent 60%),
        rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 0 50px rgba(56, 189, 248, 0.2);
}

/* Collections preview */
.collections-preview .collections-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: clamp(2rem, 5vw, 2.5rem);
}

.collections-preview .collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.collection-tile {
    background: rgba(15, 23, 42, 0.78);
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    padding: clamp(1.75rem, 4vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.4);
}

.collection-tile h3 {
    margin: 0;
    font-size: 1.35rem;
}

.collection-tile p {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

.tile-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tile-link {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
}

.tile-link:hover,
.tile-link:focus-visible {
    color: #a855f7;
}

.tile-secondary {
    color: rgba(186, 230, 253, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.section-cta {
    margin: 1.5rem 0 0;
}

.section-cta .button {
    padding: 0.75rem 1.5rem;
}

@media (max-width: 720px) {
    .cloop-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cloop-actions .button {
        width: 100%;
        justify-content: center;
    }

    .collections-preview .collections-header {
        align-items: stretch;
    }
}

/* Button styles */
.button {
    --button_radius: 0.75em;
    --button_color: #4da6ff;
    --button_outline_color: #0052cc;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: var(--button_radius);
    background: var(--button_outline_color);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: visible;
    transition: none;
    padding: 0.75rem 1.5rem;
    color: var(--button_outline_color);
}

.button--primary {
    --button_color: #4da6ff;
    --button_outline_color: #0052cc;
    background: var(--button_color);
    color: var(--button_outline_color);
    border: 2px solid var(--button_outline_color);
}

.button--ghost {
    --button_color: #1a1a1a;
    --button_outline_color: #4da6ff;
    background: var(--button_color);
    color: var(--light-blue);
    border: 2px solid var(--button_outline_color);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.8);
    margin: 0;
}

/* Contact page styles */
.contact-page {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3.5rem);
}

.contact-card {
    max-width: 680px;
    width: 100%;
    background: rgba(15, 23, 42, 0.82);
    border-radius: 28px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.45);
    padding: clamp(2.5rem, 6vw, 3.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

.lead {
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.85);
    margin: 0;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: none;
    padding: 1rem 2rem;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    transform: translateY(-2px);
}