/* Color variables */
:root {
  --navbar-bg-color: #333;
  --text-color: #ffffff;
  --page-bg-color: #fdfcfb;
  --card-bg-color: rgba(255, 255, 255, 0.65);
  --border-color-light: #dddddd;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.15);
  --wipe-color-light: #007bff;
  --wipe-color-dark: #0056b3;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --page-bg-color: #111;
  --text-color: #eee;
  --card-bg-color: rgba(30, 30, 40, 0.7);
  --border-color-light: rgba(255, 255, 255, 0.1);
}

/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 430px;
  display: flex;
  flex-direction: column;
  background: var(--page-bg-color);
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Background layers - YELLOW THEME */
#blueBlobBg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 200, 0, 0.25) 0%, rgba(255, 200, 0, 0.12) 25%, rgba(255, 200, 0, 0.03) 45%, transparent 65%),
    radial-gradient(circle at 80% 60%, rgba(255, 230, 0, 0.22) 0%, rgba(255, 230, 0, 0.10) 30%, rgba(255, 230, 0, 0.02) 50%, transparent 70%);
  filter: blur(40px);
}

#ambientLight {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 200, 0, 0.12) 0%, rgba(255, 200, 0, 0.05) 30%, rgba(255, 200, 0, 0.00) 60%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  z-index: 100;
}

.nav-title {
  font-size: 25px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  font-family: 'Courier New', Courier, monospace;
}

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-theme="light"] .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .navbar {
  background: rgba(20, 20, 20, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main content */
.content {
  flex: 1;
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Hero section */
.hero {
  margin-bottom: 60px;
  padding: 1rem;
}

.hero-text {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.6;
  font-family: 'Georgia';
  margin-bottom: 0;
  text-align: justify;
  color: #333;
}

[data-theme="dark"] .hero-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Section headings - Simple H1 with hover */
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  margin: 50px 0 20px;
  color: #333;
  transition: color 0.5s ease;
  cursor: default;
}

.section-heading:hover {
  color: var(--wipe-color-light);
}

[data-theme="dark"] .section-heading {
  color: #ffffff;
}

[data-theme="dark"] .section-heading:hover {
  color: var(--wipe-color-dark);
}

/* Cards section - 3 columns max */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.mini-card {
  padding: 20px;
  border-radius: 14px;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color-light);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-light);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.card-text h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: #000;
}

.card-text p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .card-text h3 {
  color: #ffffff;
}

[data-theme="dark"] .card-text p {
  color: rgba(255, 255, 255, 0.7);
}

.app-icon {
  width: 56px !important;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.55));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
  overflow: hidden;
}

[data-theme="dark"] .app-icon {
  background: linear-gradient(180deg, rgba(40, 40, 55, 0.9), rgba(30, 30, 45, 0.8));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.icon-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

/* File info */
.file-info {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.file-size {
  background: rgba(0, 0, 0, 0.08);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.download-btn {
  background: linear-gradient(to right, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.download-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

[data-theme="dark"] .download-btn {
  background: linear-gradient(to right, #0056b3, #003d82);
}

[data-theme="dark"] .file-size {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  width: 100%;
  background: rgba(20, 20, 20, 0.9);
  color: var(--text-color);
  padding: 12px 0;
  font-size: 12px;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-top: auto;
}

[data-theme="dark"] .footer {
  background: rgba(20, 20, 20, 0.9);
  color: var(--text-color);
}

/* Phone background images */
.phone-bg {
  position: absolute; /* relative to page wrapper */
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.phone-bg img {
  width: 400px; /* increased from 250px */
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

[data-theme="dark"] .phone-bg {
  opacity: 0.4;
}

.phone-bg-1 {
  top: 15%;
  right: 5%;
  transform: rotate(5deg);
}

.phone-bg-2 {
  top: 50%;
  left: 5%;
  transform: translateY(-50%) rotate(-5deg);
}

.phone-bg-3 {
  bottom: 15%;
  right: 5%;
  transform: rotate(10deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .phone-bg img {
    width: 280px; /* increased from 180px */
  }
  
  .phone-bg-1 {
    right: 2%;
  }
  
  .phone-bg-2 {
    left: 2%;
  }
  
  .phone-bg-3 {
    right: 2%;
  }
}

@media (max-width: 480px) {
  .phone-bg {
    opacity: 0.5;
  }
  
  .phone-bg img {
    width: 200px; /* increased from 140px */
  }
  
  [data-theme="dark"] .phone-bg {
    opacity: 0.3;
  }
}

