@import url("https://fonts.googleapis.com/css2?family=Freckle+Face&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Share+Tech+Mono&display=swap");

:root {
  --bg-main: #0a0810;
  --bg-card: rgba(21, 19, 36, 0.45);
  --bg-nav: rgba(17, 15, 28, 0.85);

  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --primary-border: rgba(139, 92, 246, 0.15);

  --text-main: #f1f0f7;
  --text-muted: #9491a9;
  --text-dark: #64617a;

  --font-title: "Freckle Face", cursive, sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --transition: all 0.25s ease-in-out;
  --border-radius: 8px;
}

/* Background Constellation Canvas */
#constellation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Align FontAwesome icons cleanly with neighboring text */
i.fa-solid,
i.fa-regular,
i.fa-brands,
i.fas,
i.far {
  display: inline-block;
  vertical-align: -0.125em; /* Standard FontAwesome baseline alignment trick */
}

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

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

::-webkit-scrollbar-thumb {
  background: #252238;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 5%;
}


/* Sticky Navigation Bar */
.glass-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid #1c192e;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  height: 40px;
  width: auto;
}

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

nav ul li {
  list-style: none;
  margin: 0 10px;
}

nav ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--text-main);
  background: #1c192e;
}

nav .fas {
  display: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.4rem;
}

/* Hero Section */
#header {
  padding-top: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.header-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.header-text h1 {
  font-family: var(--font-title);
  font-size: 4.5rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.header-text h1 span {
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Buttons */
.btn {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* Glass shine sweep effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.65s ease;
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after {
  left: 120%;
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  animation: button-pulse 2s infinite alternate;
}

.btn-primary:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
  transform: scale(1.05) translateY(-1px);
  animation: none;
}

@keyframes button-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
  }

  100% {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
  }
}

.btn-secondary {
  background: #1c192e;
  color: var(--text-main);
  border: 1px solid #2a2642;
}

.btn-secondary:hover {
  background: #252238;
  border-color: #3b375c;
  transform: scale(1.05) translateY(-1px);
}

/* Mascot Wrapper */
.hero-mascot-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot {
  width: 280px;
  height: 280px;
  border-radius: var(--border-radius);
  object-fit: cover;
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.12);
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.2);
  animation: float-mascot 4s ease-in-out infinite;
}

@keyframes float-mascot {
  0% {
    transform: translateY(0px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.2);
  }

  50% {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 45px rgba(139, 92, 246, 0.4);
  }

  100% {
    transform: translateY(0px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.2);
  }
}

/* Layout Dividers (DearNote style) */
.section-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 70px 0 35px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-divider span:not(.section-badge) {
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: #fff;
}

.section-divider i {
  transform: none;
}

.section-divider-line {
  flex-grow: 1;
  height: 1px;
  background: #1c192e;
}

.section-badge {
  font-family: var(--font-mono);
  background: #1c192e;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Section Titles */
.sub-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 25px;
}

/* Dashboard Cards (DearNote style) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.dn-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--border-radius);
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.12);
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: var(--transition);
}

.dn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #a78bfa;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
}

.card-tag {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.card-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  display: inline-block;
  box-shadow: 0 0 6px var(--primary);
  animation: pulse-dot 1.2s infinite alternate;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1c192e;
  padding-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta i {
  color: var(--primary);
  animation: pulse-icon 2s infinite alternate;
}

@keyframes pulse-icon {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.card-action-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.card-action-link:hover {
  color: #a78bfa;
  text-decoration: underline;
}

/* Card highlight variations */
.dn-card.highlight-gdrive {
  border-top-color: #10b981;
  /* Green */
}

.dn-card.highlight-gdrive:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  border-color: #34d399;
}

.dn-card.highlight-gdrive .card-tag {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.dn-card.highlight-gdrive .card-tag::before {
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dn-card.highlight-gdrive .card-action-link {
  color: #10b981;
}

.dn-card.highlight-gdrive .card-action-link:hover {
  color: #34d399;
}

.dn-card.highlight-community {
  border-top-color: #3b82f6;
  /* Blue */
}

.dn-card.highlight-community:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
}

.dn-card.highlight-community .card-tag {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.dn-card.highlight-community .card-tag::before {
  background-color: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.dn-card.highlight-community .card-action-link {
  color: #3b82f6;
}

.dn-card.highlight-community .card-action-link:hover {
  color: #60a5fa;
}

.dn-card.highlight-playstore {
  border-top-color: #ec4899;
  /* Pink / Playstore magenta */
}

.dn-card.highlight-playstore:hover {
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.15);
  border-color: #f472b6;
}

.dn-card.highlight-playstore .card-tag {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

.dn-card.highlight-playstore .card-tag::before {
  background-color: #ec4899;
  box-shadow: 0 0 6px #ec4899;
}

.dn-card.highlight-playstore .card-action-link {
  color: #ec4899;
}

.dn-card.highlight-playstore .card-action-link:hover {
  color: #f472b6;
}

/* About & Specs Tabs */
#about {
  padding-top: 60px;
  padding-bottom: 60px;
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.about-img-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.12);
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 16px;
}

.about-img-wrapper img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

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

.badge-row {
  margin: 15px 0 25px;
  display: flex;
  gap: 12px;
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.role-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.2s infinite alternate;
}

.badge-analyst {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-analyst::before {
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.badge-hacker {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-hacker::before {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* Tab controls */
.tab-titles {
  display: flex;
  gap: 10px;
  margin: 30px 0 20px;
  background: #110f1c;
  padding: 4px;
  border-radius: 6px;
  width: fit-content;
}

.tab-links {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-links:hover {
  color: var(--text-main);
}

.tab-links.active-link {
  background: var(--bg-card);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-contents {
  display: none;
  animation: fade-in-tab 0.4s ease-out forwards;
}

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

@keyframes fade-in-tab {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.spec-list {
  display: grid;
  gap: 10px;
}

.spec-list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
  font-size: 0.95rem;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  color: #fff;
  font-weight: 600;
}

/* ========================
   Video Showcase (Highlight)
   ======================== */
.video-showcase {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

/* Atmospheric gradient background */
.video-showcase-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139, 92, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.video-showcase > .container {
  position: relative;
  z-index: 1;
}

/* Showcase Header */
.video-showcase-header {
  text-align: center;
  margin-bottom: 50px;
}

.video-showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.video-showcase-label i {
  font-size: 0.7rem;
}

.video-showcase-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.video-showcase-title span {
  color: var(--primary);
}

.video-showcase-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Hero Video Card — Elevated, cinematic framing */
.video-card-hero {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.15);
  border-right: 1px solid rgba(139, 92, 246, 0.15);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(139, 92, 246, 0.12),
    0 0 120px rgba(139, 92, 246, 0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.video-card-hero:hover {
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(139, 92, 246, 0.2),
    0 0 150px rgba(139, 92, 246, 0.1);
  transform: translateY(-4px);
}

.video-card-hero video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Legacy video-card (kept for any other usage) */
.video-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.12);
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 16px;
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Photo Gallery Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.photo-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.12);
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 16/10;
  overflow: hidden;
}

.photo-item:hover {
  transform: translateY(-2px);
  border-color: #a78bfa;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.photo-item:hover img {
  transform: scale(1.06);
}

/* Gallery Pagination Controls */
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.page-numbers-container {
  display: flex;
  gap: 8px;
}

.page-btn, .page-num-btn {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.page-btn:hover:not(:disabled), .page-num-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.page-num-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Lightbox Modal */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 6, 14, 0.97);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 85%;
  max-height: 80%;
  border-radius: 8px;
  border: 2px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.25);
  transition: transform 0.3s ease;
  user-select: none;
}

/* Lightbox Slider Buttons */
.lightbox-btn {
  position: absolute;
  background: rgba(21, 19, 36, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #fff;
  font-size: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  z-index: 1010;
}

.lightbox-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.1);
}

.lightbox-close {
  top: 30px;
  right: 30px;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

/* Hide navigation arrows on small mobile devices to prevent layout cramping */
@media only screen and (max-width: 580px) {
  .lightbox-prev {
    left: 15px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .lightbox-next {
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* Meet the Team Dossier Cards */
.dev-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.dev-card {
  position: relative; /* Setup absolute context for the dev-number */
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.12);
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.dev-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  opacity: 0.65;
  letter-spacing: 0.5px;
  user-select: none;
}

.dev-card:hover .dev-number {
  color: var(--primary);
  opacity: 1;
}

.dev-card:hover {
  transform: translateY(-2px);
  border-color: #a78bfa;
}

.dev-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1c192e;
  margin-bottom: 16px;
}

.dev-name {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 4px;
}

.dev-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.dev-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.dev-social {
  color: var(--text-dark);
  font-size: 1.4rem;
  transition: var(--transition);
}

.dev-social:hover {
  color: var(--primary);
}

/* Form Console / Control Bar (DearNote style) */
.form-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 3px solid var(--primary);
  border-left: 1px solid rgba(139, 92, 246, 0.12);
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--border-radius);
  padding: 30px;
}

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

.form-grid input,
.form-select-wrapper select,
.form-grid textarea {
  grid-column: span 2;
  width: 100%;
  background: #110f1c;
  border: 1px solid #252238;
  border-radius: 6px;
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-select-wrapper {
  grid-column: span 2;
  position: relative;
  width: 100%;
}

/* Custom styled dropdown arrow */
.form-select-wrapper::after {
  content: '\f078'; /* FontAwesome angle down icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.form-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px; /* Make room for the custom arrow */
}

.form-select-wrapper select option {
  background: #110f1c;
  color: #fff;
  padding: 10px;
}

.form-grid input:focus,
.form-select-wrapper select:focus,
.form-grid textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.form-select-wrapper select:focus + ::after {
  color: var(--primary);
}

.form-grid textarea {
  resize: vertical;
}

form button.btn {
  grid-column: span 2;
  justify-content: center;
  padding: 14px;
}

#msg {
  display: none;
}

/* Glassmorphic Toast Notifications */
.toast-container {
  position: fixed;
  top: 90px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-notification {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: rgba(17, 15, 28, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-left: 4px solid var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.success {
  border-left-color: #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15), 0 0 10px rgba(16, 185, 129, 0.05);
}

.toast-notification.error {
  border-left-color: #ef4444;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15), 0 0 10px rgba(239, 68, 68, 0.05);
}

.toast-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-notification.success .toast-icon {
  color: #10b981;
}

.toast-notification.error .toast-icon {
  color: #ef4444;
}

.toast-body {
  flex-grow: 1;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text-main);
}

/* Spinner Icon inline keyframes */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}



@media only screen and (max-width: 580px) {
  .toast-container {
    top: auto;
    bottom: 30px;
    right: 20px;
    left: 20px;
  }
  .toast-notification {
    min-width: auto;
    width: 100%;
  }
}

/* Footer & Symmetrical Copyright */
.social-follow-section {
  text-align: center;
  margin-top: 60px;
}

.social-follow-section h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 20px;
}

.social-follow-section .social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-follow-section .social-icons a {
  color: var(--text-dark);
  font-size: 2rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-follow-section .social-icons a:hover {
  color: var(--primary);
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

.copyright {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #1c192e;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-top: 60px;
}

.copyright span {
  color: var(--primary);
}

/* ====================================================
   RESPONSIVE STYLES — Inspired by Among Us Mobile UX
   ==================================================== */

/* ---- Tablet Breakpoint (≤991px) ---- */
@media only screen and (max-width: 991px) {

  /* Hero: stack vertically, mascot above text */
  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
    padding-top: 50px;
  }

  .hero-mascot-wrapper {
    order: -1; /* Mascot first on mobile, like Among Us hero */
  }

  .header-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-text h1 {
    font-size: 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* About: stack, center image */
  .about-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-img-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-text {
    text-align: center;
    padding: 0 10px;
  }

  .badge-row {
    justify-content: center;
    margin-bottom: 20px;
  }

  /* Tab controls center */
  .tab-titles {
    margin-left: auto;
    margin-right: auto;
  }

  /* Download cards: 2 columns like Among Us store badges */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Devs: 2 columns like Among Us screenshot grid */
  .dev-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Gallery: keep 2-column on tablets */
  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ---- Mobile Nav Breakpoint (≤768px) ---- */
@media only screen and (max-width: 768px) {

  /* Hamburger visible */
  nav .fas {
    display: block;
  }

  /* Slide-in side panel with backdrop blur — Among Us style */
  nav ul {
    background: rgba(10, 8, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* Modern dynamic viewport height */
    padding: 90px 28px 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    z-index: 101;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  nav ul li {
    margin: 0;
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    display: block;
    padding: 14px 16px; /* Bigger touch targets — among us style */
    font-size: 1.15rem;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  nav ul li a:hover,
  nav ul li a:active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
  }

  nav ul .fas {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 1.5rem;
    padding: 8px;
  }

  /* Section dividers */
  .section-divider {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 50px 0 25px;
    padding: 0;
  }

  .section-divider span:not(.section-badge) {
    font-size: 1.15rem;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
  }

  .specs-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Hero height: full viewport like Among Us hero */
  #header {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .header-content {
    padding-top: 30px;
  }

  .header-text h1 {
    font-size: 2.6rem;
    line-height: 1.15;
  }

  .hero-tagline {
    font-size: 0.82rem;
  }

  /* About section: generous padding */
  #about {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .about-img-wrapper {
    max-width: 220px;
  }

  /* Video showcase: tighter on tablet */
  .video-showcase {
    padding: 70px 0 80px;
  }

  .video-showcase-title {
    font-size: 2.4rem;
  }

  .video-showcase-desc {
    font-size: 1rem;
    padding: 0 10px;
  }

  .video-showcase-header {
    margin-bottom: 35px;
  }

  .video-card-hero {
    padding: 10px;
  }
}

/* ---- Small Mobile Breakpoint (≤580px) ---- */
@media only screen and (max-width: 580px) {

  /* Container padding — comfortable margins like Among Us mobile */
  .container {
    padding: 16px 20px;
  }

  /* Hero section: full viewport, centered vertically */
  #header {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 80px;
  }

  .header-content {
    gap: 20px;
    padding-top: 10px;
  }

  .header-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-tagline {
    font-size: 0.78rem;
    padding: 0;
    letter-spacing: 1.5px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 0;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px; /* Bigger touch targets */
    font-size: 0.9rem;
  }

  .hero-mascot {
    width: 180px;
    height: 180px;
  }

  /* About section */
  .about-text {
    padding: 0;
    line-height: 1.7;
  }

  .about-text p {
    font-size: 0.93rem;
    margin-bottom: 15px;
  }

  .about-img-wrapper {
    max-width: 200px;
    margin: 0 auto 10px;
    width: 85%;
  }

  /* Tabs: full width, evenly split — like Among Us toggle sections */
  .tab-titles {
    display: flex;
    width: 100%;
    gap: 6px;
    background: #110f1c;
    padding: 4px;
    border-radius: 8px;
    margin: 20px 0;
  }

  .tab-links {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    padding: 10px 6px;
    border-radius: 6px;
  }

  .spec-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  /* Section dividers compact */
  .section-divider {
    flex-wrap: wrap;
    gap: 8px;
    margin: 35px 0 18px;
  }

  .section-divider span:not(.section-badge) {
    font-size: 1.05rem;
  }

  .section-badge {
    font-size: 0.72rem;
    padding: 2px 6px;
  }

  /* Gallery: 2-column grid — Among Us uses 2-col for screenshots on mobile */
  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .photo-item {
    padding: 6px;
    aspect-ratio: 16/10;
  }

  /* Download cards: single column on small screens */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dn-card {
    min-height: auto;
    padding: 20px;
  }

  /* Devs: 2-column compact grid — Among Us style */
  .dev-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dev-card {
    padding: 16px 12px;
  }

  .dev-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }

  .dev-name {
    font-size: 1.15rem;
  }

  .dev-role {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .dev-bio {
    font-size: 0.8rem;
    margin-bottom: 14px;
    line-height: 1.5;
  }

  .dev-number {
    font-size: 0.9rem;
    top: 10px;
    right: 12px;
  }

  /* Form */
  .form-panel {
    padding: 20px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-grid input,
  .form-select-wrapper select,
  .form-grid textarea {
    grid-column: span 1;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  form button.btn {
    grid-column: span 1;
    padding: 14px;
    font-size: 0.9rem;
  }

  .sub-title {
    font-size: 1.8rem;
    margin-bottom: 18px;
  }

  /* Footer adjustments */
  .social-follow-section {
    margin-top: 40px;
  }

  .social-follow-section h3 {
    font-size: 1.5rem;
  }

  .social-follow-section .social-icons {
    gap: 20px;
  }

  .social-follow-section .social-icons a {
    font-size: 1.7rem;
  }

  .copyright {
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.82rem;
  }

  /* Gallery pagination touch-friendly */
  .page-btn, .page-num-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-width: 42px;
    min-height: 42px;
  }

  .gallery-pagination {
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Video showcase: compact on mobile */
  .video-showcase {
    padding: 50px 0 60px;
  }

  .video-showcase-title {
    font-size: 1.8rem;
  }

  .video-showcase-desc {
    font-size: 0.9rem;
  }

  .video-showcase-label {
    font-size: 0.75rem;
    padding: 5px 14px;
    letter-spacing: 1.5px;
  }

  .video-showcase-header {
    margin-bottom: 25px;
  }

  .video-card-hero {
    padding: 8px;
    border-radius: 8px;
  }
}

/* ---- Extra Small Mobile (≤400px) ---- */
@media only screen and (max-width: 400px) {

  .header-text h1 {
    font-size: 1.9rem;
  }

  .hero-mascot {
    width: 150px;
    height: 150px;
  }

  .dev-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .dev-card img {
    width: 64px;
    height: 64px;
  }

  .dev-name {
    font-size: 1rem;
  }

  .dev-bio {
    font-size: 0.75rem;
  }

  .photos-grid {
    gap: 8px;
  }
}

/* Custom Additions */
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-playstore {
  height: 32px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
  transition: var(--transition);
}

.logo-playstore:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(17, 15, 28, 0.85);
  border: 1px solid var(--primary-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-4px) scale(1.05);
}

.back-to-top-btn:active {
  transform: translateY(-2px) scale(0.95);
}

@media only screen and (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .logo-playstore {
    height: 28px;
  }
  .logo {
    height: 32px;
  }
}