/* =============================================
   FIRSTORBIT — Global Design System
   Dark Futuristic · Electric Blue/Cyan Accents
   ============================================= */

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

/* ── CSS Custom Properties ── */
:root {
  --bg-primary:     #0d0d14;
  --bg-secondary:   #11111c;
  --bg-card:        #16162a;
  --bg-card-hover:  #1c1c35;
  --accent:         #00c8ff;
  --accent-glow:    rgba(0, 200, 255, 0.25);
  --accent-dim:     rgba(0, 200, 255, 0.08);
  --accent-dark:    #0090bb;
  --text-primary:   #e8eaf6;
  --text-secondary: #8892a4;
  --text-muted:     #4a5568;
  --border:         rgba(0, 200, 255, 0.12);
  --border-hover:   rgba(0, 200, 255, 0.4);
  --nav-height:     70px;
  --radius:         12px;
  --radius-lg:      20px;
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:    0 0 20px rgba(0, 200, 255, 0.2);
  --transition:     0.25s ease;
  --font:           'Inter', system-ui, sans-serif;
  --max-width:      1100px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover { opacity: 0.8; }

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ── Layout Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Accent Glow Text ── */
.accent { color: var(--accent); }
.accent-glow {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

/* ── Section spacing ── */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin: 16px 0 40px;
}


/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(13, 13, 20, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

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

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  cursor: pointer;
}

.nav-logo span { color: var(--accent); }

nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  display: block;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--text-primary);
  background: var(--accent-dim);
}

nav ul li a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--border-hover);
  margin-left: 8px;
}

nav ul li a.nav-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}


/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d14;
}

.btn-primary:hover {
  background: #33d4ff;
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.45);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}


/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .line2 {
  color: var(--accent);
  display: block;
  text-shadow: 0 0 40px rgba(0, 200, 255, 0.3);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* =============================================
   SKILLS / INTERESTS SECTION
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}


/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}


/* =============================================
   PROJECT CARDS (videoGames.html)
   ============================================= */
.projects-page {
  padding-top: calc(var(--nav-height) + 60px);
}

.itch-banner {
  background: linear-gradient(135deg, var(--bg-card), #1a1a2e);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.itch-banner-text h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.itch-banner-text p {
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.project-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.04);
}

.project-card-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.project-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.project-card-body p {
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 20px;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
  padding-top: calc(var(--nav-height) + 60px);
  min-height: 100vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info .section-subtitle {
  margin-bottom: 36px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-method:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
  opacity: 1;
}

.contact-method-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-details {
  display: flex;
  flex-direction: column;
}

.contact-method-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-method-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-card h3 {
  font-size: 1.2rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12);
}

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

.form-group textarea {
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}


/* =============================================
   SOCIAL ICON BUTTONS
   ============================================= */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
  opacity: 1;
}


/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 260px;
  margin-top: 10px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
  cursor: pointer;
}

.footer-links ul li a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 10px;
}


/* =============================================
   PAGE HEADER (for inner pages)
   ============================================= */
.page-header {
  padding-top: calc(var(--nav-height) + 70px);
  padding-bottom: 50px;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .itch-banner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  /* Featured card stacks on mobile */
  .project-card--featured > div {
    grid-template-columns: 1fr !important;
  }

  .project-card--featured .project-card-img-wrap {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    height: 220px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 2.8rem;
  }
}


/* =============================================
   UTILITY / ANIMATIONS
   ============================================= */
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Neon line separator */
.neon-line {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 48px 0;
  opacity: 0.4;
}

/* Hidden class (preserve existing JS) */
.Hidden { display: none !important; }
