/* ================================================================
   FLOWSLAYER — Website Styles
   Dark action-game aesthetic: Flow cyan + combat red
================================================================ */

:root {
    --bg:           #06080f;
    --bg-surface:   #0b1020;
    --bg-card:      rgba(11, 17, 35, 0.85);
    --flow:         #00d4ff;
    --flow-dim:     rgba(0, 212, 255, 0.10);
    --flow-glow:    rgba(0, 212, 255, 0.40);
    --combat:       #ff5500;
    --combat-dim:   rgba(255, 85, 0, 0.12);
    --max:          #00ff9f;
    --max-dim:      rgba(0, 255, 159, 0.15);
    --text:         #e2ebff;
    --text-muted:   #6e84a3;
    --border:       rgba(0, 212, 255, 0.10);
    --border-hover: rgba(0, 212, 255, 0.28);
    --radius:       12px;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --t:            0.28s;
    --font-display: 'Rajdhani', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}

/* ================================================================
   UTILITIES
================================================================ */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section        { padding: 96px 0; }
.section-dark   { background: var(--bg-surface); }
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--flow);
    margin-bottom: 0.7rem;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.section-header p  { color: var(--text-muted); margin-top: 0.9rem; font-size: 1.02rem; }
.accent            { color: var(--flow); }
.accent-flow       { color: var(--flow); text-shadow: 0 0 24px var(--flow-glow); }
.accent-max        { color: var(--max); }

/* ================================================================
   NAVIGATION
================================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 2rem;
    border-bottom: 1px solid transparent;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
#navbar.scrolled {
    background: rgba(6, 8, 15, 0.88);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom-color: var(--border);
}
.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.nav-logo span { color: var(--flow); }
.nav-links {
    display: flex;
    gap: 0.15rem;
    flex: 1;
}
.nav-links a {
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: color var(--t), background var(--t);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--flow-dim);
}
.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--flow);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-shrink: 0;
    transition: background var(--t), border-color var(--t), color var(--t);
}
.nav-github:hover {
    background: var(--flow-dim);
    border-color: var(--border-hover);
}

/* ================================================================
   HERO
================================================================ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
#flowGlowCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 880px;
}
.hero-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--flow);
    border: 1px solid var(--border);
    padding: 0.32rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    background: var(--flow-dim);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 13vw, 9.5rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.7rem;
    text-shadow: 0 0 80px rgba(0, 212, 255, 0.15);
}
.hero-title span {
    color: var(--flow);
    text-shadow:
        0 0 40px var(--flow-glow),
        0 0 100px rgba(0, 212, 255, 0.18);
}
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.8vw, 1.55rem);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}
.hero-cta {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.7rem;
    background: var(--flow);
    color: #000;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 8px;
    box-shadow: 0 0 22px var(--flow-glow);
    transition: background var(--t), box-shadow var(--t), transform var(--t);
}
.btn-primary:hover {
    background: #33ddff;
    box-shadow: 0 0 38px var(--flow-glow);
    transform: translateY(-2px);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 1.7rem;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: background var(--t), border-color var(--t);
}
.btn-secondary:hover {
    background: var(--flow-dim);
    border-color: var(--border-hover);
}
.hero-pills {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-pills span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.2rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 100px;
}
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    z-index: 2;
    opacity: 0.35;
}
.scroll-hint span {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--flow), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.85); }
    50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ================================================================
   ABOUT CARDS
================================================================ */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color var(--t), transform var(--t);
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -10%, var(--flow-dim), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s;
}
.card:hover .card-glow { opacity: 1; }
.card-icon   { font-size: 2rem; margin-bottom: 1rem; }
.card h3     { margin-bottom: 0.5rem; }
.card p      { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ================================================================
   FLOW SECTION
================================================================ */
.flow-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5rem;
    align-items: center;
}
.flow-text p        { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.flow-text p:last-of-type { margin-bottom: 0; }
.flow-text strong   { color: var(--text); }
.flow-tiers         { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.tier               { display: flex; align-items: center; gap: 1.4rem; }
.tier-label         { display: flex; flex-direction: column; min-width: 88px; }
.tier-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}
.tier-desc          { font-size: 0.8rem; color: var(--text-muted); }
.tier-max-label     { color: var(--max) !important; font-weight: 600; }
.tier-bar-wrap      { flex: 1; }
.tier-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}
.tier-bar-max       { box-shadow: 0 0 10px rgba(0, 255, 159, 0.2); }
.tier-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    transition: width 1.3s var(--ease);
}
.t1   { background: linear-gradient(90deg, #0066ff, #0099ff); }
.t2   { background: linear-gradient(90deg, #0099ff, #00c8ff); }
.t3   { background: linear-gradient(90deg, #00c8ff, #00f0e0); }
.tmax {
    background: linear-gradient(90deg, #00f0c0, #00ff9f);
    box-shadow: 0 0 12px rgba(0, 255, 159, 0.65);
}

.flow-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}
#flowCanvas {
    border-radius: 50%;
    filter: drop-shadow(0 0 28px rgba(0, 255, 159, 0.38))
            drop-shadow(0 0 8px rgba(0, 212, 255, 0.25));
}
.flow-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--max);
    text-shadow: 0 0 14px rgba(0, 255, 159, 0.55);
}
.flow-visual-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ================================================================
   COMBAT GRID
================================================================ */
.combat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}
.combat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.7rem;
    transition: border-color var(--t), transform var(--t);
}
.combat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.combat-card-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}
.combat-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.combat-icon.ground  { background: rgba(255,  85,   0, 0.15); }
.combat-icon.aerial  { background: rgba(  0, 212, 255, 0.15); }
.combat-icon.dash    { background: rgba(160,   0, 255, 0.15); }
.combat-icon.special { background: rgba(255, 215,   0, 0.15); }

.combat-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

/* ================================================================
   FEATURES GRID
================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 0.65rem;
}
.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: border-color var(--t), color var(--t), transform var(--t);
}
.feature:hover {
    border-color: var(--border-hover);
    color: var(--text);
    transform: translateX(3px);
}
.feature-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--flow);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--flow);
}

/* ================================================================
   GAMEPLAY FEEL CARDS
================================================================ */
.exp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.exp-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.8rem 2.2rem 2.2rem;
    overflow: hidden;
    transition: border-color var(--t), transform var(--t);
}
.exp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--flow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.exp-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}
.exp-card:hover::before { opacity: 1; }
.exp-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.1rem;
}
.exp-card p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.8;
}
@media (max-width: 860px) {
    .exp-cards { grid-template-columns: 1fr; }
}

/* ================================================================
   CONTROLS
================================================================ */
.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}
.controls-column h3 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--flow);
    margin-bottom: 0.9rem;
    margin-top: 1.8rem;
}
.controls-column h3:first-child { margin-top: 0; }
.controls-note {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.6;
}
.key-group { display: flex; flex-direction: column; gap: 0.55rem; }
.key-row   { display: flex; align-items: center; gap: 0.9rem; font-size: 0.9rem; }
kbd {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}
.key-row span  { color: var(--text-muted); }
.tips-list     { display: flex; flex-direction: column; gap: 0.7rem; }
.tip {
    padding: 0.7rem 1rem;
    border-left: 2px solid var(--flow);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0 6px 6px 0;
    background: var(--bg-card);
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ================================================================
   TECH SECTION
================================================================ */
.tech-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.tech-content h2 { margin-bottom: 1rem; }
.tech-content p  { color: var(--text-muted); margin-bottom: 2.5rem; }
.tech-pills {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}
.tech-pill {
    padding: 0.4rem 1.1rem;
    background: var(--flow-dim);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--flow);
    transition: background var(--t), border-color var(--t);
}
.tech-pill:hover {
    background: rgba(0, 212, 255, 0.22);
    border-color: var(--border-hover);
}

/* ================================================================
   CONTACT
================================================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}
.contact-left { padding-top: 0.4rem; }
.contact-left h2 { margin: 0.5rem 0 1rem; }
.contact-left p  { color: var(--text-muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--t);
}
.contact-link:hover { color: var(--flow); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.contact-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--flow);
}
.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    resize: vertical;
    transition: border-color var(--t), background var(--t);
    -webkit-appearance: none;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--text-muted); opacity: 0.45; }
.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(0, 212, 255, 0.45);
    background: rgba(0, 212, 255, 0.04);
}
.contact-field textarea { min-height: 130px; }
.contact-submit {
    align-self: flex-start;
    padding: 0.72rem 1.8rem;
    background: var(--flow);
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 22px var(--flow-glow);
    transition: background var(--t), box-shadow var(--t), transform var(--t);
}
.contact-submit:hover {
    background: #33ddff;
    box-shadow: 0 0 38px var(--flow-glow);
    transform: translateY(-2px);
}
@media (max-width: 860px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
    .contact-row { grid-template-columns: 1fr; }
    .contact-submit { align-self: stretch; text-align: center; }
}

/* ================================================================
   FOOTER
================================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.footer-logo span { color: var(--flow); }
.footer-desc      { color: var(--text-muted); font-size: 0.9rem; }
.footer-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: border-color var(--t), color var(--t), background var(--t);
}
.footer-github:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--flow-dim);
}
.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.4;
    border-top: 1px solid var(--border);
    padding-top: 1.4rem;
}

/* ================================================================
   REVEAL ANIMATIONS (IntersectionObserver)
================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity  0.65s var(--ease),
        transform 0.65s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 960px) {
    .flow-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .flow-visual { order: -1; }
}
@media (max-width: 720px) {
    .controls-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links { display: none; }
}
@media (max-width: 540px) {
    .section { padding: 64px 0; }
    .hero-desc br { display: none; }
}
