/* =============== RESET =============== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background-color: #050509;
    color: #f7f7ff;
    line-height: 1.6;
}

/* =============== CSS VARIABLES =============== */

:root {
    --bg: #050509;
    --bg-alt: #0c0c14;
    --bg-card: #101018;
    --bg-card-soft: #161623;
    --accent: #ff5c5c;
    --accent-soft: rgba(255, 92, 92, 0.12);
    --accent-strong: #ff8c5c;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --text-main: #f7f7ff;
    --text-muted: #a0a1b2;
    --text-soft: #7c7d8f;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --nav-height: 72px;
    --transition-fast: 0.16s ease-out;
    --transition-med: 0.24s ease;
}

/* =============== LAYOUT HELPERS =============== */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: radial-gradient(circle at top left, #111122, #050509 52%);
}

.section-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-header.left {
    text-align: left;
}

.section-header h2 {
    font-size: 2.1rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0.04em;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.grid {
    display: grid;
    gap: 1.75rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =============== NAVBAR =============== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 9, 0.96),
        rgba(5, 5, 9, 0.88)
    );
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: radial-gradient(circle at 20% 0%, var(--accent), var(--accent-strong));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #050509;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.98rem;
    color: var(--text-main);
}

.logo.small .logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: background var(--transition-fast),
        color var(--transition-fast), border-color var(--transition-fast),
        transform 0.12s ease-out;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--text-main);
    background: var(--accent-soft);
    border-color: rgba(255, 92, 92, 0.4);
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #f7f7ff;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* =============== HERO =============== */

.hero {
    padding-top: 5.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 2.5rem;
    align-items: start;
}

.eyebrow {
    color: var(--accent-strong);
    font-size: 0.83rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin: 0 0 0.8rem;
}

.hero-text h1 span {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 34rem;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-med), color var(--transition-med),
        box-shadow var(--transition-med), transform 0.12s ease-out,
        border-color var(--transition-med);
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #050509;
    box-shadow: 0 14px 35px rgba(255, 92, 92, 0.38);
    font-weight: 600;
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255, 92, 92, 0.52);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.01);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn.full-width {
    width: 100%;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
    margin-bottom: 1.4rem;
}

.hero-meta-number {
    display: block;
    font-weight: 600;
    font-size: 1.3rem;
}

.hero-meta-label {
    display: block;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.hero-links a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color var(--transition-fast),
        border-color var(--transition-fast);
}

.hero-links a:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

/* Hero side card */

.hero-card {
    background: radial-gradient(circle at top right, #20203a, #101018 50%);
    border-radius: var(--radius-xl);
    padding: 1.8rem 1.6rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-bottom: 0.9rem;
}

.hero-video-thumb {
    border-radius: 16px;
    background: radial-gradient(circle at top left, #34345c, #111120);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.83rem;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-video-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.7rem;
}

.link-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--accent-strong);
    text-decoration: none;
}

.link-with-arrow span {
    transition: transform 0.18s ease;
}

.link-with-arrow:hover span {
    transform: translateX(3px);
}

/* =============== CARDS & PLACEHOLDERS =============== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.3rem 1.3rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.58);
    position: relative;
    overflow: hidden;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    margin-top: 0.9rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.card p {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-image {
    border-radius: 14px;
    margin-bottom: 0.7rem;
    overflow: hidden;
}

.card-image img {
    display: block;
    width: 100%;
    height: auto;
}

.placeholder {
    background: repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 6px,
            rgba(255, 255, 255, 0.03) 6px,
            rgba(255, 255, 255, 0.03) 12px
        ),
        radial-gradient(circle at top left, #2b2b3f, #11111b);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 0.8rem;
}

/* =============== TABS =============== */

.tabs {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.8rem;
}

.tab-button {
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.84rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition-fast),
        color var(--transition-fast), transform 0.12s ease-out;
}

.tab-button.active {
    background: var(--accent-soft);
    color: var(--text-main);
    transform: translateY(-1px);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* =============== ABOUT =============== */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.3fr);
    gap: 2.5rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    min-height: 260px;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about-text p + p {
    margin-top: 0.75rem;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 1.4rem 0 1.4rem;
}

.about-stat-number {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
}

.about-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* =============== SKILLS =============== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.skills-column h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.skills-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-column li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.26rem 0;
}

/* =============== EXPERIENCE =============== */

.exp-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
}

.exp-column h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline li {
    padding-left: 1.1rem;
    margin-bottom: 1.6rem;
    position: relative;
}

.timeline li::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    left: -5px;
    top: 0.3rem;
}

.timeline h4 {
    margin: 0 0 0.15rem;
    font-size: 0.98rem;
}

.timeline-place {
    margin: 0;
    font-size: 0.83rem;
    color: var(--text-soft);
}

.timeline-time {
    margin: 0.1rem 0 0.4rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.timeline p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =============== BULLET CARDS =============== */

.bullet-cards {
    list-style: none;
    padding: 0;
   	margin: 0;
    display: grid;
    gap: 1.1rem;
}

.bullet-cards li {
    background: var(--bg-card-soft);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    padding: 0.85rem 0.9rem;
}

.bullet-cards strong {
    display: block;
    font-size: 0.92rem;
}

.bullet-cards span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 0.1rem;
}

.bullet-cards p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0.4rem 0 0;
}

/* =============== GAME CARDS =============== */

.game-card .pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.pill-list li {
    font-size: 0.75rem;
    border-radius: var(--radius-pill);
    padding: 0.18rem 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

/* =============== TESTIMONIALS =============== */

.testimonial-card {
    text-align: left;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.testimonial-role {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.testimonial-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* =============== CONTACT =============== */

.contact-section {
    background: radial-gradient(circle at top, #1d1d32, #050509 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.contact-info {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.4rem;
}

.contact-info h3 {
    margin: 0 0 0.1rem;
    font-size: 0.94rem;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form {
    background: rgba(5, 5, 9, 0.9);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: 1.6rem 1.4rem 1.3rem;
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 0.25rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 5, 9, 0.8);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease,
        background 0.16s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-soft);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.4);
    background: rgba(5, 5, 9, 0.95);
}

.form-note {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

/* =============== FOOTER =============== */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.8rem 0 1.4rem;
    background: #050509;
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.footer-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.footer-nav,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-nav a,
.footer-social a {
    font-size: 0.85rem;
    color: var(--text-soft);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-social a:hover {
    color: var(--text-main);
}

.footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin: 0;
}

/* =============== RESPONSIVE =============== */

@media (max-width: 840px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        inset: var(--nav-height) 0 auto;
        padding: 0.75rem 1.5rem 1rem;
        background: radial-gradient(circle at top, #18182b, #050509 60%);
        border-bottom: 1px solid var(--border-subtle);
        transform-origin: top;
        transform: scaleY(0.8);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .hero {
        padding-top: 4rem;
    }
}

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

    .hero-meta {
        gap: 1rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* =============== LOGO IMAGE =============== */
.logo-img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.logo-img-small {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 6px;
}

/* ============================= */
/* QA PROJECT IMAGES             */
/* ============================= */

.qa-image {
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f1220;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-image.placeholder span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ============================= */
/* DESIGN & PROTOTYPE PROJECT IMAGES             */
/* ============================= */

.media-box {
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f1220;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-box.placeholder span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ============================= */
/* ABOUT IMAGE FIT               */
/* ============================= */

.about-media {
  overflow: hidden;
  border-radius: 16px;
}

.about-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;     /* keeps it from becoming huge on desktop */
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Move the hero-tag (Overview) to top-right inside hero-card */
.hero-card{
  position: relative;
}

.hero-card .hero-tag{
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
}

/* Fix: pin hero-tag (Overview) to top-right inside hero-card */
.hero-card{ position: relative; }

.hero-card .hero-tag{
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;

  margin: 0;
  z-index: 10;
}



/* FIX: ensure hero images fill overview frame */
.hero-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}


/* News Flash cards */
#highlights .hero-card { height: 100%; }
#highlights .hero-actions { margin-top: 0.85rem; display:flex; flex-wrap:wrap; gap: 0.7rem; }
#highlights .hero-video-thumb { overflow:hidden; }
#highlights .hero-video-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
