/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.pegpo-text {
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #4A90E2;
}

.nav-icons {
  display: flex;
  gap: 1.2rem;
  font-size: 1.3rem;
}

.icon {
  text-decoration: none;
  color: #333;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-content h1 span {
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

/* Browser Mockup */
.browser-mockup {
  perspective: 1000px;
  margin: 0 auto;
  max-width: 900px;
}

.browser-window {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: rotateX(5deg);
  transform-style: preserve-3d;
}

.browser-header {
  background: #2d2d2d;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #aaa;
}

.browser-controls span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #444;
  border-radius: 50%;
  margin-left: 6px;
}

.browser-tabs .tab {
  background: #3a3a3a;
  padding: 0.4rem 1rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.85rem;
}

.browser-tabs .tab.active {
  background: #1a1a1a;
}

.browser-body {
  display: flex;
  height: 500px;
  color: #fff;
}

.sidebar {
  width: 70px;
  background: #222;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.sidebar-item {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: #aaa;
}

.main-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.ai-circle {
  width: 120px;
  height: 120px;
  background: conic-gradient(from 0deg, #4A90E2, #9013FE, #4A90E2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin 4s linear infinite;
}

.circle-inner {
  width: 90px;
  height: 90px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-circle span {
  font-weight: 600;
  font-size: 1.1rem;
}

.search-bar {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

.search-bar input {
  flex: 1;
  background: #2d2d2d;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
}

.search-bar input::placeholder {
  color: #777;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.app-icon {
  background: #2d2d2d;
  padding: 1rem;
  border-radius: 16px;
  text-align: center;
  font-size: 1.8rem;
  transition: transform 0.2s;
}

.app-icon span {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.5rem;
  color: #ccc;
}

.app-icon:hover {
  transform: translateY(-4px);
}

.assistant-panel {
  position: absolute;
  right: 20px;
  top: 100px;
  background: #2d2d2d;
  padding: 1rem;
  border-radius: 16px;
  width: 200px;
  font-size: 0.85rem;
}

.assistant-panel h4 {
  margin-bottom: 0.5rem;
  color: #4A90E2;
}

.small {
  color: #777;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .browser-body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: 60px;
    flex-direction: row;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .sidebar-item {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

/* ---------- AI Glasses Page ---------- */
.glasses-page { background:#fafafa; }

.glasses-hero { position:relative; margin-bottom:3rem; }
.hero-img { width:100%; height:auto; display:block; }
.hero-overlay {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  text-align:center; color:#fff; max-width:90%;
}
.hero-overlay h1 { font-size:2.8rem; margin-bottom:.5rem; }
.hero-overlay p { font-size:1.2rem; }

.tagline { text-align:center; margin-bottom:4rem; }
.subtitle { font-weight:600; color:#4A90E2; margin-bottom:.5rem; }
.tagline h2 { font-size:2.2rem; line-height:1.3; }

.cards {
  max-width:1200px; margin:0 auto; padding:0 2rem;
  display:grid; gap:2rem; grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
}
.card {
  background:#fff; padding:2rem; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,.06);
}
.card h3 { margin-bottom:1rem; color:#4A90E2; }

/* Active menu highlight */
.nav-link.active { color:#4A90E2; font-weight:600; }

/* ---------- AI AppStore Page ---------- */
.appstore-page { background:#fafafa; }

.appstore-hero {
  text-align:center;
  padding: 4rem 1rem 3rem;
  background: #fff;
  margin-bottom: 2rem;
}

.appstore-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.appstore-hero p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.search-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  outline: none;
}

.search-input:focus {
  border-color: #4A90E2;
}

.search-btn {
  padding: 0 1.5rem;
  background: #4A90E2;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #357ab8;
}

.categories {
  margin-top: 1rem;
}

.category-link {
  color: #4A90E2;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.category-link:hover {
  text-decoration: underline;
}

/* Trending Section */
.trending-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.trending-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: #777;
  margin-bottom: 2rem;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.agent-thumb {
  height: 140px;
  background: #e0e0e0;
  border-bottom: 1px solid #eee;
}

.agent-info {
  padding: 1.2rem;
}

.agent-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #222;
}

.agent-info .desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.agent-info .developer {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.agent-info .likes {
  font-size: 0.85rem;
  color: #4A90E2;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
  }
  .search-btn {
    width: 100%;
  }
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Services Page ---------- */
.services-page {
  background: #fafafa;
}

/* Layout: Sidebar + Main */
.services-layout {
  display: flex;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  gap: 2rem;
}

/* Sidebar */
.services-sidebar {
  width: 260px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  height: fit-content;
}

.services-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: #f0f4ff;
  color: #4A90E2;
  font-weight: 600;
}

/* Main Content */
.services-main {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  overflow: hidden;
}

.content-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.placeholder-bar {
  height: 40px;
  background: #e5e5e5;
  border-radius: 8px;
}

/* Models Section */
.models-section {
  padding: 2rem;
  text-align: center;
}

.models-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.models-section .description {
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.no-models {
  padding: 3rem 1rem;
}

.no-models p {
  font-size: 1.1rem;
  color: #999;
  font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
  .services-layout {
    flex-direction: column;
  }
  .services-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .services-layout {
    padding: 0 1rem;
  }
  .models-section h1 {
    font-size: 1.8rem;
  }
}

/* ---------- Platforms Page ---------- */
.platforms-page {
  background: #fafafa;
}

/* Layout */
.platforms-layout {
  display: flex;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  gap: 2rem;
}

/* Sidebar */
.platforms-sidebar {
  width: 260px;
  background: #fff;
  padding: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  height: fit-content;
}

.platforms-sidebar .sidebar-menu {
  list-style: none;
}

.platforms-sidebar .sidebar-menu li {
  margin: 0.2rem 0;
}

.platforms-sidebar .sidebar-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  border-radius: 0 12px 12px 0;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.platforms-sidebar .sidebar-menu a:hover,
.platforms-sidebar .sidebar-menu a.active {
  background: #f0f4ff;
  color: #4A90E2;
  font-weight: 600;
}

.platforms-sidebar .sidebar-menu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4A90E2;
  border-radius: 0 2px 2px 0;
}

/* Main Content (Reused from Services) */
.platforms-main {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  overflow: hidden;
}

.content-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.placeholder-bar {
  height: 40px;
  background: #e5e5e5;
  border-radius: 8px;
}

.models-section {
  padding: 2.5rem;
  text-align: center;
}

.models-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.models-section .description {
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.no-models p {
  font-size: 1.1rem;
  color: #999;
  font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
  .platforms-layout {
    flex-direction: column;
  }
  .platforms-sidebar {
    width: 100%;
    padding: 1rem;
  }
  .platforms-sidebar .sidebar-menu a {
    border-radius: 10px;
  }
  .platforms-sidebar .sidebar-menu a.active::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .platforms-layout {
    padding: 0 1rem;
  }
  .models-section {
    padding: 2rem 1rem;
  }
}

/* ---------- Community Page ---------- */
.community-page {
  background: #fafafa;
}

/* Layout */
.community-layout {
  display: flex;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  gap: 2rem;
}

/* Sidebar */
.community-sidebar {
  width: 260px;
  background: #fff;
  padding: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  height: fit-content;
}

.community-sidebar .sidebar-menu {
  list-style: none;
}

.community-sidebar .sidebar-menu li {
  margin: 0.2rem 0;
}

.community-sidebar .sidebar-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  border-radius: 0 12px 12px 0;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.community-sidebar .sidebar-menu a:hover,
.community-sidebar .sidebar-menu a.active {
  background: #f0f4ff;
  color: #4A90E2;
  font-weight: 600;
}

.community-sidebar .sidebar-menu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4A90E2;
  border-radius: 0 2px 2px 0;
}

/* Main Content */
.community-main {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  overflow: hidden;
}

.content-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.placeholder-bar {
  height: 120px;
  background: #e5e5e5;
  border-radius: 8px;
}

.models-section {
  padding: 2.5rem;
  text-align: left;
}

.models-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.models-section .description {
  max-width: 800px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .community-layout {
    flex-direction: column;
  }
  .community-sidebar {
    width: 100%;
    padding: 1rem;
  }
  .community-sidebar .sidebar-menu a {
    border-radius: 10px;
  }
  .community-sidebar .sidebar-menu a.active::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .community-layout {
    padding: 0 1rem;
  }
  .models-section {
    padding: 2rem 1rem;
  }
  .placeholder-bar {
    height: 80px;
  }
}

/* ---------- Support Page ---------- */
.support-page {
  background: #fafafa;
}

/* Layout */
.support-layout {
  display: flex;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  gap: 2rem;
}

/* Sidebar */
.support-sidebar {
  width: 260px;
  background: #fff;
  padding: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  height: fit-content;
}

.support-sidebar .sidebar-menu {
  list-style: none;
}

.support-sidebar .sidebar-menu li {
  margin: 0.2rem 0;
}

.support-sidebar .sidebar-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  border-radius: 0 12px 12px 0;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.support-sidebar .sidebar-menu a:hover,
.support-sidebar .sidebar-menu a.active {
  background: #f0f4ff;
  color: #4A90E2;
  font-weight: 600;
}

.support-sidebar .sidebar-menu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4A90E2;
  border-radius: 0 2px 2px 0;
}

/* Main Content */
.support-main {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  overflow: hidden;
}

.content-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.placeholder-bar {
  height: 160px;
  background: #e5e5e5;
  border-radius: 8px;
}

.models-section {
  padding: 2.5rem;
  text-align: left;
}

.models-section h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.models-section .description {
  max-width: 800px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .support-layout {
    flex-direction: column;
  }
  .support-sidebar {
    width: 100%;
    padding: 1rem;
  }
  .support-sidebar .sidebar-menu a {
    border-radius: 10px;
  }
  .support-sidebar .sidebar-menu a.active::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .support-layout {
    padding: 0 1rem;
  }
  .models-section {
    padding: 2rem 1rem;
  }
  .placeholder-bar {
    height: 100px;
  }
}

/* ---------- MOBILE SIDEBAR ---------- */

/* Hamburger Button (visible only on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Overlay & Sidebar */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar-overlay.active .mobile-sidebar {
  left: 0;
}

/* Header */
.mobile-sidebar-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  font-size: 1.4rem;
  font-weight: 700;
}

.mobile-sidebar-header .pegpo-text {
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
}

/* Menu */
.mobile-sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
}

.mobile-sidebar-menu li {
  margin: 0;
}

.mobile-sidebar-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.mobile-sidebar-menu a:hover,
.mobile-sidebar-menu a.active {
  background: #f0f4ff;
  color: #4A90E2;
}

/* Responsive: Show hamburger on mobile */
@media (max-width: 992px) {
  .hamburger { display: flex; }
  .nav-menu { display: none; } /* Hide desktop menu */
}

/* Hide desktop sidebars on mobile */
@media (max-width: 992px) {
  .services-sidebar,
  .platforms-sidebar,
  .community-sidebar,
  .support-sidebar {
    display: none;
  }
}