/* ==========================================================================
   Alisa Tech Studio - Common Unified Stylesheet
   Design Tokens, Typography, Site Header & Navigation, Common Footer
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --secondary: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-teal: #0d9488;
  --accent-pink: #ec4899;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --dark: #0f172a;
  --dark-muted: #334155;
  --body-text: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --card-border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 35px -10px rgba(79, 70, 229, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--body-text);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', -apple-system, sans-serif;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Top Animated Rainbow Accent Bar */
.top-accent-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981, #f59e0b, #ec4899, #8b5cf6, #4f46e5);
  animation: rainbowBar 8s linear infinite;
  z-index: 9999;
  pointer-events: none;
}

@keyframes rainbowBar {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Header & Navigation (Universal Common Component)
   ========================================================================== */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.3s ease;
  width: 100%;
}

.nav-container-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo img {
  border-radius: 9px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.25);
  transition: transform 0.25s ease;
}

.site-logo:hover img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a,
.nav-dropdown-toggle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-muted);
  padding: 0.4rem 0.2rem;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a::after,
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
  width: 100%;
}

.dropdown-chevron {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* --- Dropdown Menu Container (Desktop) --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 350px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu-sm {
  min-width: 300px;
}

/* Invisible bridge so mouse hover doesn't drop between trigger and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-header {
  padding: 0.35rem 0.65rem 0.45rem;
}

.dropdown-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.dropdown-link {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  padding: 0.6rem 0.65rem !important;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.15s ease !important;
  color: inherit !important;
  font-weight: normal !important;
}

.dropdown-link::after {
  display: none !important;
}

.dropdown-link:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

.dropdown-link.active {
  background: #eef2ff;
}

.dropdown-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
  padding-top: 1px;
}

.dropdown-link-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dropdown-link-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.dropdown-link.active .dropdown-link-title {
  color: var(--primary);
  font-weight: 700;
}

.dropdown-link-desc {
  font-size: 0.75rem;
  color: var(--dark-muted);
  line-height: 1.35;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.4rem 0.4rem;
}

.nav-btn {
  background: var(--primary);
  color: white !important;
  padding: 0.62rem 1.35rem !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.nav-btn::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.75rem 2rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-links > li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-links a,
  .nav-dropdown-toggle {
    padding: 0.65rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    box-shadow: none;
    border: 1px solid var(--card-border);
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.35rem;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: flex !important;
  }

  .dropdown-link {
    padding: 0.55rem 0.6rem !important;
  }

  .dropdown-link-desc {
    font-size: 0.72rem;
  }

  .nav-links .nav-btn {
    text-align: center;
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    padding: 0.75rem 1.5rem !important;
  }
}

/* ==========================================================================
   Common Footer
   ========================================================================== */

.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .site-logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: white;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Shared Page Components & Utilities (Multi-Page System)
   ========================================================================== */

/* Subpage Hero Banner */
.page-hero-banner {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(6, 182, 212, 0.08), transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(236, 72, 153, 0.08), transparent 45%),
    var(--bg-white);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin: 0.85rem 0 1rem;
  line-height: 1.2;
}

.page-hero-content .hero-subtitle {
  font-size: 1.15rem;
  color: var(--body-text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero-content h1 {
    font-size: 2rem;
  }
  .page-hero-content .hero-subtitle {
    font-size: 1rem;
  }
}

/* Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(79, 70, 229, 0.4);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 1rem 0;
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #64748b;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.breadcrumb-nav .separator {
  color: #cbd5e1;
}

.breadcrumb-nav .current {
  color: var(--dark);
  font-weight: 600;
}

/* Section Header standard */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--body-text);
  line-height: 1.65;
}

/* Button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.38);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--dark);
  border: 1px solid var(--card-border);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: #cbd5e1;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Card Callout */
.callout-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--dark);
}

/* ==========================================================================
   Services Grid & Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #ec4899);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.35s ease;
}

.service-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 35px -10px rgba(79, 70, 229, 0.18), 0 0 15px rgba(6, 182, 212, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.service-card p {
  color: var(--body-text);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.service-features {
  list-style: none;
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--dark-muted);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* ==========================================================================
   Portfolio & App Showcase Grid
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}

.app-card {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #ec4899);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.35s ease;
}

.app-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.app-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 35px -10px rgba(79, 70, 229, 0.2), 0 0 15px rgba(6, 182, 212, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--card-border);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-card:hover .app-icon img {
  transform: scale(1.08) rotate(3deg);
}

.app-meta h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.app-category {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.app-card[data-category="tools"] .app-category { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.app-card[data-category="games"] .app-category { background: #fae8ff; color: #a21caf; border: 1px solid #f5d0fe; }
.app-card[data-category="education"] .app-category { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.app-card[data-category="productivity"] .app-category { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.app-card[data-category="web"] .app-category { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }

.app-card p {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.9rem;
  font-size: 0.85rem;
}

.web-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
  transition: all 0.25s ease;
}

.web-visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.38);
}

.play-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  min-height: 38px;
}

.play-badge {
  height: 38px;
  width: 133px;
  border-radius: 7px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-badge-link:hover .play-badge {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

/* Category Filter Tabs & Search Bar */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}

.search-input-wrapper {
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 2.8rem;
  font-size: 0.98rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  background: white;
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.search-icon-svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-question {
  padding: 1.3rem 1.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-toggle {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  color: var(--primary);
  font-weight: bold;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.6rem 1.3rem;
  font-size: 0.96rem;
  color: var(--body-text);
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}
