/* ========================================
   AzAd BrowserKit - Modern CSS Styles
   ======================================== */

:root {
  --primary: #00a8a8;
  --primary-dark: #008080;
  --accent: #00d9ff;
  --accent-dark: #00b3cc;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-dark);
  --accent: #3B1D6D;
  --primary: #6F4FB2;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

body.light-mode header {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: rgba(30, 41, 59, 0.15);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.light-mode header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode header.header-hidden {
  transform: translateY(-100%);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Right side controls (theme toggle, install, menu button) */
nav > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav ul a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, background 0.3s ease;
  position: relative;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

nav ul a:hover {
  background: rgba(0, 217, 255, 0.05);
}

body.light-mode nav ul a:hover {
  background: rgba(59, 29, 109, 0.08);
}

body.light-mode nav ul a {
  color: var(--text-dark);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--accent);
  background: rgba(0, 217, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

body.light-mode nav ul li a.active {
  color: #3B1D6D;
  background: rgba(59, 29, 109, 0.1);
}

.btn-install {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

body.light-mode .btn-install {
  color: white;
}

.btn-install:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 168, 168, 0.3);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  flex-shrink: 0;
  min-width: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-mode .mobile-menu-btn {
  color: var(--text-dark);
}

/* ========== MARQUEE SECTION ========== */
.marquee-section {
  width: 100%;
  overflow: hidden;
  margin: 0;
  margin-top: 60px;
  padding: 0;
  background: var(--bg-dark);
}

body.light-mode .marquee-section {
  background: var(--bg-light);
}

.marquee-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ========== HERO SECTION ========== */
.hero {
  margin-top: 0;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(0, 168, 168, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
  border-bottom: 1px solid var(--card-border);
  min-height: 600px;
  display: flex;
  align-items: center;
}

body.light-mode .hero {
  background: linear-gradient(135deg, rgba(59, 29, 109, 0.05) 0%, rgba(106, 79, 179, 0.05) 100%);
  border-bottom-color: rgba(30, 41, 59, 0.1);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-light);
}

body.light-mode .hero h1 {
  color: var(--text-dark);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.light-mode .hero p {
  color: rgba(30, 41, 59, 0.85);
}

/* Hero stats styling */
.hero>div>div>div:nth-child(3)>div>div:first-child {
  color: var(--accent);
}

body.light-mode .hero>div>div>div:nth-child(3)>div>div:first-child {
  color: #3B1D6D;
  font-weight: 700;
}

.hero>div>div>div:nth-child(3)>div>div:last-child {
  color: rgba(255, 255, 255, 0.6);
}

body.light-mode .hero>div>div>div:nth-child(3)>div>div:last-child {
  color: rgba(30, 41, 59, 0.75);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 168, 168, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  padding: 1rem 2.5rem;
  border: 2px solid var(--accent);
}

body.light-mode .btn-secondary {
  color: #3B1D6D;
  border-color: #3B1D6D;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

body.light-mode .btn-secondary:hover {
  background: #3B1D6D;
  color: white;
}

.hero-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
}

body.light-mode .hero-stat-number {
  color: #3B1D6D;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

body.light-mode .hero-stat-label {
  color: rgba(30, 41, 59, 0.75);
  font-weight: 500;
}

/* ========== FEATURES SECTION ========== */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-light);
}

body.light-mode .section-title {
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.light-mode .section-subtitle {
  color: rgba(30, 41, 59, 0.65);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .feature-card {
  background: linear-gradient(135deg, rgba(59, 29, 109, 0.08) 0%, rgba(106, 79, 179, 0.08) 100%);
  border: 2px solid rgba(59, 29, 109, 0.2);
  box-shadow: 0 4px 15px rgba(59, 29, 109, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 168, 168, 0.2);
}

body.light-mode .feature-card:hover {
  background: rgba(59, 29, 109, 0.08);
  border-color: #3B1D6D;
  box-shadow: 0 20px 40px rgba(59, 29, 109, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
}

.feature-icon[src] {
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

body.light-mode .feature-icon[src] {
  filter: drop-shadow(0 2px 8px rgba(59, 29, 109, 0.15));
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

body.light-mode .feature-card h3 {
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.6;
}

body.light-mode .feature-card p {
  color: rgba(30, 41, 59, 0.75);
}

.feature-card ul {
  list-style: none;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.feature-card li {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

body.light-mode .feature-card li {
  color: rgba(30, 41, 59, 0.7);
}

.feature-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ========== FEATURED SECTION ========== */
.featured-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  align-items: center;
}

.featured-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.featured-item img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.featured-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.light-mode .featured-item img {
  border: 2px solid rgba(59, 29, 109, 0.2);
  box-shadow: 0 4px 15px rgba(59, 29, 109, 0.1);
}

.featured-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

body.light-mode .featured-content h3 {
  color: var(--text-dark);
}

.featured-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

body.light-mode .featured-content p {
  color: rgba(30, 41, 59, 0.75);
}

.featured-content ul {
  margin-left: 1rem;
  list-style: disc;
  color: rgba(255, 255, 255, 0.7);
}

body.light-mode .featured-content ul {
  color: rgba(30, 41, 59, 0.8);
  font-weight: 500;
}

.featured-content li {
  margin-bottom: 0.5rem;
}

/* ========== FAQ SECTION ========== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.search-box {
  margin-bottom: 2rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-light);
  font-size: 1rem;
}

body.light-mode .search-box input {
  background: rgba(30, 41, 59, 0.05);
  border-color: rgba(30, 41, 59, 0.1);
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.light-mode .search-box input::placeholder {
  color: rgba(30, 41, 59, 0.5);
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-mode .faq-item {
  border: 2px solid rgba(0, 168, 168, 0.15);
  box-shadow: 0 2px 8px rgba(0, 168, 168, 0.08);
}

.faq-question {
  padding: 1.5rem;
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

body.light-mode .faq-question {
  background: rgba(30, 41, 59, 0.05);
}

.faq-question:hover {
  background: rgba(59, 29, 109, 0.08);
}

body.light-mode .faq-question:hover {
  background: rgba(59, 29, 109, 0.08);
}

.faq-question.active {
  background: rgba(59, 29, 109, 0.12);
  border-bottom-color: var(--accent);
}

body.light-mode .faq-question.active {
  background: rgba(59, 29, 109, 0.1);
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

body.light-mode .faq-question h4 {
  color: var(--text-dark);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 29, 109, 0.05);
}

body.light-mode .faq-answer {
  background: rgba(59, 29, 109, 0.05);
}

.faq-answer.active {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

body.light-mode .faq-answer p {
  color: rgba(30, 41, 59, 0.8);
}

/* ========== CONTACT & CTA SECTIONS ========== */
.contact-section,
.cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-card {
  background: linear-gradient(135deg, rgba(59, 29, 109, 0.08) 0%, rgba(106, 79, 179, 0.08) 100%);
  border: 2px solid rgba(59, 29, 109, 0.2);
  box-shadow: 0 4px 15px rgba(0, 168, 168, 0.1);
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.contact-card h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

body.light-mode .contact-card h4 {
  color: var(--text-dark);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

body.light-mode .contact-card p {
  color: rgba(30, 41, 59, 0.7);
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--text-light);
}

body.light-mode .contact-card a:hover {
  color: var(--text-dark);
}

/* ========== PRIVACY CONTENT ========== */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.privacy-section {
  margin-bottom: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .privacy-section {
  background: linear-gradient(135deg, rgba(59, 29, 109, 0.08) 0%, rgba(106, 79, 179, 0.08) 100%);
  border: 2px solid rgba(59, 29, 109, 0.2);
  box-shadow: 0 4px 15px rgba(59, 29, 109, 0.1);
}

.privacy-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
}

body.light-mode .privacy-section h3 {
  color: #3B1D6D;
}

.last-updated {
  color: var(--text-light);
}

body.light-mode .last-updated {
  color: #000000;
}

.privacy-section p,
.privacy-section li {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1rem;
}

body.light-mode .privacy-section p,
body.light-mode .privacy-section li {
  color: rgba(30, 41, 59, 0.85);
}

.privacy-section ul {
  margin-left: 2rem;
  list-style: disc;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.permissions-table th,
.permissions-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  color: rgba(255, 255, 255, 0.8);
}

body.light-mode .permissions-table th,
body.light-mode .permissions-table td {
  color: rgba(30, 41, 59, 0.8);
  border-bottom-color: rgba(30, 41, 59, 0.1);
}

.permissions-table th {
  background: rgba(0, 217, 255, 0.1);
  font-weight: 600;
}

body.light-mode .permissions-table th {
  background: rgba(59, 29, 109, 0.08);
}

/* ========== FOOTER ========== */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 3rem 2rem;
  margin-top: 5rem;
}

body.light-mode footer {
  background: linear-gradient(135deg, rgba(59, 29, 109, 0.05) 0%, rgba(106, 79, 179, 0.05) 100%);
  border-top: 2px solid rgba(59, 29, 109, 0.2);
}

.footer-section h4 {
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .footer-section h4 {
  color: #3B1D6D;
  font-weight: 900;
  border-bottom-color: rgba(59, 29, 109, 0.3);
}

.footer-section ul {
  list-style: none;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

body.light-mode .footer-section p {
  color: rgba(30, 41, 59, 0.8);
}

.footer-about-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

body.light-mode .footer-about-text {
  color: rgba(30, 41, 59, 0.85);
  font-weight: 500;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

body.light-mode .footer-section a {
  color: #3B1D6D;
  font-weight: 400;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0.5rem auto;
  text-align: center;
  width: 100%;
}

body.light-mode .footer-bottom {
  border-top-color: rgba(59, 29, 109, 0.2);
  color: rgba(30, 41, 59, 0.85);
}

body.light-mode .footer-bottom p {
  color: rgba(30, 41, 59, 0.85);
}

body.light-mode .footer-bottom a {
  color: #3B1D6D;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

body.light-mode .social-links a {
  background: rgba(0, 168, 168, 0.1);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-3px);
}


/* ========== DARK MODE TOGGLE ========== */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-right: 1.5rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2rem;
  min-height: 2rem;
}

body.light-mode .theme-toggle {
  color: var(--text-dark);
}

.theme-toggle:hover {
  color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  nav {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  nav > div:first-child {
    flex: 1;
  }

  nav > div:first-child img {
    width: 32px;
    height: 32px;
  }

  nav ul {
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  .theme-toggle {
    margin-right: 0.75rem;
  }

  nav > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .btn-install {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  body.light-mode nav ul {
    background: var(--bg-light);
  }

  nav ul.active {
    max-height: 400px;
  }

  nav ul li {
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    padding: 0;
    background: none !important;
  }

  nav ul li a::after {
    display: none;
  }

  .marquee-section {
    margin-top: 60px;
  }

  .hero {
    padding: 2rem 1rem 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .hero-icon {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn-install,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

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

@media (max-width: 480px) {
  header {
    padding: 0.75rem 0;
  }

  nav {
    padding: 0 0.75rem;
  }

  nav > div:first-child {
    gap: 0.5rem;
  }

  nav > div:first-child img {
    width: 28px;
    height: 28px;
  }

  .logo {
    font-size: 1rem;
  }

  .theme-toggle {
    font-size: 1.1rem;
    margin-right: 0.5rem;
  }

  nav > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .btn-install {
    display: none;
  }

  .mobile-menu-btn {
    font-size: 1.3rem;
  }

  .hero {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}