/* ===== CSS Variables ===== */
:root {
    /* Brand Colors - Aligned with GameDo Studio */
    --color-black: #1a1a1a;
    --color-red: #c41e3a;
    --color-red-dark: #9e1830;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #888888;
    --color-gray-dark: #333333;

    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-display: 'Orbitron', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1100px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    color: var(--color-black);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 40px;
}

.hero-profile {
    margin-bottom: 30px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--color-red);
    object-fit: cover;
    animation: fadeInUp 1s ease;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-tagline {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-description {
    font-size: 16px;
    color: var(--color-gray);
    max-width: 500px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.5s both;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-black);
    border-radius: 50%;
    color: var(--color-black);
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--color-red);
    background: var(--color-red);
    color: var(--color-white);
    transform: translateY(-3px);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-red);
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-decoration {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 40px solid var(--color-black);
    border-radius: 50%;
    opacity: 0.05;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-header.light h2 {
    color: var(--color-white);
}

.brush-underline {
    width: 80px;
    height: 4px;
    background: var(--color-red);
    margin: 0 auto;
    position: relative;
}

.brush-underline::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -2px;
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
}

.brush-underline.light {
    background: var(--color-white);
}

.brush-underline.light::after {
    background: var(--color-red);
}

/* ===== Games Section ===== */
.games-section {
    padding: var(--section-padding);
    background: var(--color-white);
}

.games-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.game-card {
    background: var(--color-gray-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.game-image {
    height: 250px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* GravityShot Special Styling */
.gravityshot-card {
    background: linear-gradient(135deg, #0b0422 0%, #1a0a3e 100%);
}

.gravityshot-card .game-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b0422 0%, #1a0a3e 100%);
    position: relative;
    overflow: hidden;
}

.gravityshot-card .game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 10% 50%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 80% 90%, rgba(255,255,255,0.7), transparent);
    pointer-events: none;
}

.gravityshot-card .game-image img {
    width: 200px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(255, 51, 153, 0.3));
}

.gravityshot-card .game-info h3 {
    background: linear-gradient(90deg, #ff3399, #30d5c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gravityshot-card .game-genre {
    color: #30d5c8;
}

.gravityshot-card .game-description {
    color: rgba(255, 255, 255, 0.7);
}

.game-info {
    padding: 30px;
}

.game-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-black);
}

.game-genre {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red);
    margin-bottom: 15px;
}

.game-description {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.game-actions {
    display: flex;
    gap: 15px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.store-button:hover {
    background: var(--color-red);
    transform: translateY(-2px);
}

/* ===== Game Jams Section ===== */
.jams-section {
    padding: var(--section-padding);
    background: var(--color-black);
}

.jams-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.jam-card {
    background: var(--color-gray-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.jam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.jam-image {
    height: 180px;
    overflow: hidden;
}

.jam-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jam-card:hover .jam-image img {
    transform: scale(1.05);
}

.jam-info {
    padding: 20px;
    text-align: center;
}

.jam-info h4 {
    font-size: 16px;
    color: var(--color-white);
    margin-bottom: 5px;
}

.jam-info p {
    font-size: 12px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== About Section ===== */
.about-section {
    padding: var(--section-padding);
    background: var(--color-gray-light);
}

.about-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-black);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

/* Studio Card */
.studio-link {
    display: flex;
    justify-content: center;
}

.studio-card {
    text-align: center;
    padding: 50px 40px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.studio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.studio-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.studio-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.studio-name:hover {
    color: var(--color-red);
}

.studio-name .kanji {
    font-size: 64px;
    color: var(--color-red);
    font-weight: 300;
}

.studio-name .text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.studio-tagline {
    font-size: 14px;
    color: var(--color-gray);
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--color-black);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .studio-link {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-name {
        font-size: 36px;
    }

    .hero-tagline {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px;
    }

    .hero-name {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 12px;
    }

    .game-info {
        padding: 20px;
    }

    .games-grid,
    .jams-grid,
    .about-content {
        padding: 0 20px;
    }

    .studio-card {
        padding: 30px 20px;
    }

    .studio-name .kanji {
        font-size: 48px;
    }

    .studio-name .text {
        font-size: 18px;
    }
}
