/* Modern & Vivid Color Palette */
:root {
  /* Main Colors */
  --primary: #2563eb;
  /* Vivid Blue */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  /* Blue to Cyan */
  --secondary: #f59e0b;
  /* Amber/Orange for accents */

  /* Backgrounds */
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  /* Very light cool gray */
  --glass-bg: rgba(255, 255, 255, 0.85);

  /* Text */
  --text-main: #1e293b;
  /* Slate 800 */
  --text-muted: #64748b;
  /* Slate 500 */

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -10px rgba(37, 99, 235, 0.1);
  /* Colored shadow */

  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Interactive Bookmark Tag */
.bookmark-tag {
  position: fixed;
  top: -20px;
  right: 50px;
  z-index: 1001; /* Above navbar */
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

.bookmark-tag:hover {
  transform: translateY(40px);
}

.bookmark-string {
  width: 2px;
  height: 40px;
  background: #94a3b8;
  margin: 0 auto;
}

.bookmark-body {
  width: 45px;
  height: 120px;
  background: #e11d48; /* Classic Bookmark Red */
  border-radius: 0 0 4px 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The V-cut at the bottom */
.bookmark-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  border-left: 22.5px solid transparent;
  border-right: 22.5px solid transparent;
  border-bottom: 20px solid var(--bg-main); /* Cut matching background */
}

.bookmark-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 2px;
  transform: rotate(180deg);
}

/* Paper Grain Effect Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.08; /* Increased from 0.04 for visibility */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f9ff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-light);
}

.nav-back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-back-link:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 10px;
}

.lang-btn {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right,
      rgba(6, 182, 212, 0.05) 0%,
      transparent 40%),
    radial-gradient(circle at bottom left,
      rgba(37, 99, 235, 0.05) 0%,
      transparent 40%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  /* Slightly smaller but punchy */
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-mockup {
  width: 280px;
  height: 560px;
  background: var(--text-main);
  border-radius: 40px;
  border: 8px solid #334155;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.25);
  /* Colored shadow matches brand */
  margin: 0 auto;
  transform: rotate(-3deg);
  transition: transform 0.6s ease;
}

.app-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background-color: #fff;
  /* Animated via Lottie */
  /* background-image: url('assets/icon.png'); REMOVED */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  overflow: hidden;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.feature-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotate(10deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
}

/* Text Page (Privacy, Terms, Contact) */
.text-page-content {
  max-width: 800px;
  margin: 160px auto 100px;
  padding: 0 1.5rem;
}

.text-page-content h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.last-update {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3rem;
  display: block;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.text-page-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-main);
}

.text-page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-main);
}

.text-page-content p,
.text-page-content li {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.text-page-content ul {
  list-style-position: outside;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Contact Specific */
.contact-card {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  margin-top: 2rem;
  border: 1px solid var(--border-light);
}

.email-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.email-link:hover {
  color: #fff;
  background: var(--primary);
  transform: scale(1.05);
}

/* Footer */
.footer {
  padding: 5rem 0 3rem;
  background: white;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Screenshots - Premium Look */
.screenshots {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

/* Background decorative blur */
.screenshots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.gallery-container {
  overflow-x: auto;
  padding: 4rem 2rem;
  /* More padding for shadows/reflections */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  /* Safe centering strategy: */
  justify-content: flex-start;
}

/* Ensure centering on large screens without clipping on small */
@media (min-width: 1400px) {
  .gallery-container {
    justify-content: center;
  }
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.screenshot-gallery {
  display: flex;
  gap: 3rem;
  padding: 0 2rem;
  margin: 0 auto;
  /* Works with justify-content */
  perspective: 1000px;
}

.device-wrapper {
  position: relative;
  flex-shrink: 0;
  border-radius: 40px;
  background: #0f172a;
  /* Frame Color */
  padding: 12px;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.3),
    /* Deep Shadow */
    0 0 0 2px rgba(255, 255, 255, 0.1) inset;
  /* Inner bezel ligth */

  /* Reflection */
  -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 60%, rgba(0, 0, 0, 0.25));

  /* Animation */
  animation: float-phone 6s ease-in-out infinite;
}

/* Staggered Animation for "Living" feel */
.device-wrapper:nth-child(1) {
  animation-delay: 0s;
}

.device-wrapper:nth-child(2) {
  animation-delay: 1s;
}

.device-wrapper:nth-child(3) {
  animation-delay: 2s;
}

.device-wrapper:nth-child(4) {
  animation-delay: 1.5s;
}

.device-wrapper:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes float-phone {

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

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

.device-wrapper:hover {
  animation-play-state: paused;
  transform: translateY(-20px) scale(1.02);
  transition: transform 0.4s ease;
  z-index: 10;
}

.screenshot-img {
  display: block;
  height: 520px;
  width: auto;
  border-radius: 30px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .screenshot-img {
    height: 380px;
    border-radius: 26px;
  }

  .device-wrapper {
    border-radius: 34px;
    padding: 8px;
  }

  .screenshot-gallery {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .screenshot-img {
    height: 350px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .cta-group {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}
/* Mobile: Adjust bookmark position */
@media (max-width: 768px) {
  .bookmark-tag {
    right: 8px;
    top: 92px;
    z-index: 900;
  }

  .cta-group {
    justify-content: center;
    gap: 1rem;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .email-link {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    font-size: 1.1rem;
    text-align: center;
  }
}
