* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary: #7C3AED;
    --primary-glow: rgba(124, 58, 237, 0.5);
    --secondary: #EC4899;
    --accent: #10B981;
    --bg-dark: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    --text-dim: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Premium Floating Navigation */
.premium-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background: rgba(9, 0, 19, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.5);
    color: white;
    transform: rotate(-8deg);
    transition: all 0.3s ease;
}

.logo:hover .logo-graphic {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.8);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    font-style: italic;
}

.logo-aita {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.logo-dot {
    color: #EC4899;
    margin: 0 2px;
}

.logo-game {
    background: linear-gradient(135deg, #A78BFA, #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.3rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-item {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-glow {
    position: relative;
    display: inline-flex;
    padding: 2px;
    border-radius: 100px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-glow span {
    display: block;
    padding: 0.6rem 1.8rem;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-glow:hover span {
    background: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero h1 span {
    background: linear-gradient(to bottom right, #fff 30%, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-outline {
    border: 2px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

/* Cards Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5% 100px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1e293b;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Category Filters */
.categories-list {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.categories-list::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.category {
    padding: 0.6rem 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category:hover {
    background: rgba(124, 58, 237, 0.15);
    color: var(--text-main);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.category.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
    font-weight: 600;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

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

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

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Portfolio Section Refined for "Cool Cards" */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2.5rem;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2px;
    /* Anchor for gradient border */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    cursor: default;
}

/* Glass Border Effect */
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, var(--glass-border), transparent, var(--glass-border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.5s ease;
}

.card-inner {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
}

.game-card:hover::before {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.game-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .game-image {
    transform: scale(1.1) translateY(-5px);
}

.game-name {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    margin-top: 0.5rem;
    background: linear-gradient(to bottom, #fff, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 0.3rem;
    font-weight: 400;
}

.game-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(5deg);
}

/* 4 columns on large desktop for card impact */
@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* Expertise / Features Section Redesign */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.expertise-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 4px 20px rgba(255, 255, 255, 0.02);
}

.expertise-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.expertise-card p {
    color: var(--text-dim);
    font-size: 1.15rem;
    line-height: 1.8;
}

.expertise-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--primary);
    filter: blur(90px);
    border-radius: 50%;
    opacity: 0.12;
    top: -50px;
    right: -50px;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.expertise-card:hover .expertise-glow {
    opacity: 0.25;
}

@media (max-width: 900px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card {
        padding: 2.5rem;
    }
}

/* Dynamic Player Reviews Marquee */
.reviews-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-top: 1px solid var(--glass-border);
}

.reviews-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 35s linear infinite;
    padding: 1rem 0;
}

.reviews-marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

.review-card {
    flex: 0 0 350px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(139, 92, 246, 0.4);
    background: rgba(30, 41, 59, 0.8);
    z-index: 10;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A78BFA, #EC4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #F8FAFC;
}

.review-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
}

.review-text {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Footer Improvements */
footer {
    padding: 5rem 5% 2rem;
    background: #0b0f1a;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info {
    max-width: 300px;
}

.footer-copy {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

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

    .hero h1 {
        font-size: 3.5rem;
    }
}