/* ============================================
   Kirtania Developer Website — style.css
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-border: #E2E8F0;
  --color-shadow: rgba(0, 0, 0, 0.06);
  --color-shadow-lg: rgba(0, 0, 0, 0.1);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --max-width: 1120px;
  --header-height: 68px;
  --transition: 0.2s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --color-primary: #3B82F6;
  --color-primary-hover: #60A5FA;
  --color-primary-light: #1E3A5F;
  --color-bg: #0F172A;
  --color-bg-alt: #1E293B;
  --color-surface: #1E293B;
  --color-text: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-border: #334155;
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-shadow-lg: rgba(0, 0, 0, 0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}
.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}
[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.92);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}
.logo:hover { color: var(--color-text); }
.logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav a:hover { color: var(--color-primary); background: var(--color-primary-light); }

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

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--color-text);
}
.hero .subtitle {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero .description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-banner {
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px var(--color-shadow-lg);
  border: 1px solid var(--color-border);
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: 0 8px 30px var(--color-shadow-lg);
  transform: translateY(-2px);
}

/* ---------- About ---------- */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}
.about-content p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ---------- Apps ---------- */
.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
}
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.app-info h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DCFCE7;
  color: #16A34A;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
[data-theme="dark"] .app-badge { background: #14532D; color: #4ADE80; }
.app-info p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.apps-grid { display: grid; gap: 24px; }
.more-apps {
  text-align: center;
  padding: 40px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-secondary);
  margin-top: 24px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card { text-align: center; padding: 36px 24px; }
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-secondary); font-size: 0.92rem; }

/* ---------- Privacy commitment ---------- */
.privacy-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.privacy-block p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.8;
}
.privacy-block .btn { margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 36px;
}
.contact-item { text-align: center; }
.contact-item .label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-item .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-all;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--color-primary); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Legal pages ---------- */
.legal-page { padding: 120px 0 80px; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-content .last-updated {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-text);
}
.legal-content p,
.legal-content ul {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.legal-content ul { padding-left: 24px; }
.legal-content li { list-style: disc; margin-bottom: 6px; }
.legal-content a { font-weight: 500; }

/* ---------- 404 Page ---------- */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}
.page-404 h1 {
  font-size: 8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 12px;
}
.page-404 p {
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { width: 100%; padding: 12px 16px; }
  .header .btn-primary { display: none; }
  .app-card { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
