/* Google Fonts: Outfit & Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --gradient-start: #FF00FF;   /* Bright magenta */
    --gradient-middle: #6C00FF;  /* Deep purple */
    --gradient-end: #00FFFF;     /* Cyan */
    --accent-pink: #FE0065;
    --bg-dark: rgb(26, 0, 52);
    --bg-deep: rgb(18, 0, 38);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.09);
    --nav-button-bg: rgba(255, 255, 255, 0.15);
    --nav-button-active: #FFFFFF;
    --nav-text-active: #6C00FF;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.75);
    --text-dim: rgba(255, 255, 255, 0.5);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-white);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(108, 0, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -2;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

/* Standard Button */
.button, .nav-links a:not(.cta-button) {
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.6rem;
    background: var(--nav-button-bg);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.button:hover, .nav-links a:not(.cta-button):hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

/* CTA Polygon Cut Button with Double Border Glow */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: white;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle));
    border: none;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1;
    box-shadow: 0 4px 20px rgba(108, 0, 255, 0.35);
}

/* Outer stroke */
.cta-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
    z-index: -2;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: opacity 0.3s ease;
}

/* Inner stroke */
.cta-button::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgb(26, 0, 52);
    z-index: -1;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: opacity 0.3s ease, background 0.3s ease;
}

.cta-button:hover::before {
    opacity: 0;
}

.cta-button:hover::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    opacity: 1;
}

.cta-button:hover {
    transform: scale(1.04);
    filter: brightness(1.15);
    box-shadow: 0 6px 30px rgba(255, 0, 255, 0.4);
}

/* Secondary CTA variant */
.cta-button.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary::after {
    background: rgba(30, 0, 60, 0.85);
}

.cta-button.secondary:hover {
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.3);
}

/* Header & Navigation */
header#header {
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.95), rgba(108, 0, 255, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-nav {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.4));
}

.logo-wordmark {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
}

.current-page {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a:not(.cta-button) {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    background: var(--nav-button-bg);
    position: relative;
    transition: all 0.25s ease;
}

.nav-links a.nav-contact {
    min-height: 40px;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #00FFFF;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-links a:not(.cta-button):hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    background: var(--nav-button-active);
    color: var(--nav-text-active);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-links a.active::after {
    transform: scaleX(1);
    background: var(--nav-text-active);
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 26px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

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

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Main Content Area */
main {
    margin-top: 68px;
    padding-bottom: 4rem;
    min-height: calc(100vh - 68px);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    min-height: 72vh;
    padding: 6rem 1.5rem 5rem;
    background: 
        radial-gradient(circle at center, rgba(108, 0, 255, 0.45) 0%, rgba(26, 0, 52, 0.95) 70%),
        linear-gradient(180deg, rgba(26, 0, 52, 0.7) 0%, rgba(26, 0, 52, 1) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animated futuristic grid in hero background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    opacity: 0.6;
    pointer-events: none;
    animation: gridScroll 30s linear infinite;
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #00FFFF;
    padding: 0.4rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
    font-size: clamp(52px, 8.5vw, 84px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-white);
    text-shadow: 
        -3px -1px 2px var(--accent-pink),
        0 0 35px rgba(254, 0, 101, 0.55),
        0 0 60px rgba(108, 0, 255, 0.35);
    margin-bottom: 1.5rem;
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 820px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.35s;
}

/* Diagonal CTA Sections */
.cta-section {
    display: flex;
    flex-direction: column;
    margin: 4rem 0 2rem;
    gap: 2.5rem;
}

.cta-card {
    padding: 4rem 2rem;
    color: white;
    width: 100%;
    clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
    position: relative;
    overflow: hidden;
}

.cta-card.flagship {
    background: linear-gradient(135deg, #FF00FF 0%, #B000C8 100%);
    box-shadow: 0 15px 40px rgba(255, 0, 255, 0.25);
}

.cta-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.cta-card.flagship .cta-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cta-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cta-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    color: #00FFFF;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cta-card h2 {
    font-size: clamp(38px, 6vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-card p {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.5;
    max-width: 780px;
    opacity: 0.95;
    margin-top: 0.4rem;
}

/* Feature Slider Ribbon inside Flagship CTA */
.feature-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
}

.feature-slider-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollFeatures 35s linear infinite;
    padding: 0 2rem;
}

.feature-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollFeatures {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 6 - 1.5rem * 6)); }
}

.feature-pill-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    color: white;
    text-decoration: none;
}

.feature-pill-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.feature-pill-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: white;
}

.feature-pill-card p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    opacity: 0.85;
}

/* Stats Section */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 4.5rem auto;
    max-width: 1280px;
    padding: 0 1.5rem;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.2rem 2rem;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(255, 0, 255, 0.08);
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
    width: 360px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.15), rgba(108, 0, 255, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 255, 0.35);
    box-shadow: 0 12px 40px rgba(255, 0, 255, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 5vw, 4.6rem);
    margin: 0;
    font-weight: 900;
    background: linear-gradient(135deg, #FF00FF, #00FFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.stat-card p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 1.5rem;
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.section-subtitle {
    display: inline-block;
    background: #FF00FF;
    color: white;
    padding: 0.55rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    clip-path: polygon(0 0, 97% 3%, 100% 100%, 3% 100%);
    transition: transform 0.3s ease;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
}

/* Portfolio App Cards */
.game-card {
    flex: 0 0 auto;
    width: 320px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 0 15px 40px rgba(255, 0, 255, 0.25);
}

.game-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.game-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-img-wrap img {
    transform: scale(1.06);
}

.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(18, 0, 38, 0.85);
    border: 1px solid rgba(255, 0, 255, 0.5);
    backdrop-filter: blur(8px);
    color: #00FFFF;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.game-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    white-space: normal;
}

.game-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.4rem;
}

.game-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.game-stats span.highlight {
    color: #00FFFF;
    font-weight: 600;
}

.game-card .cta-button {
    width: 100%;
    min-height: 46px;
    font-size: 0.88rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.apps-grid .game-card {
    width: auto;
}

.apps-grid .game-card-img-wrap {
    aspect-ratio: 2 / 1;
}

/* Footer */
footer#footer {
    background: rgb(15, 0, 30);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4.5rem 1.5rem 2rem;
    color: white;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 380px;
}

.footer-section h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-section a:hover {
    color: #00FFFF;
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(26, 0, 52, 0.98), rgba(15, 0, 30, 0.98));
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .nav-links a.nav-contact {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
