/*-------------- style.css --------------*/
/*---------- Assista - Smart Reminder Assistant Theme ----------*/

/* =====================
   GLOBAL & ROOT VARIABLES
===================== */

:root {
  /* ----- Brand Colors (Memory Assistant Vibe) ----- */
  --primary-color: #4F46E5;      /* Indigo - Trust & Intelligence */
  --secondary-color: #0EA5E9;    /* Sky Blue - Clarity & Action */
  --success-color: #10B981;      /* Emerald - Completed / Success */
  --warning-color: #F59E0B;      /* Amber - Alerts & Warnings */
  --dark-color: #1E293B;         /* Slate 800 - Sleek Dark */
  --p-color: #475569;            /* Slate 600 - Body text */
  --border-color: #E2E8F0;       /* Slate 200 - Soft borders */
  --page-background-color: #F8FAFC; /* Slate 50 - Airy background */
  --white-color: #FFFFFF;
  --other-color: #503504;
  /* ----- Sizing & Effects ----- */
  --copyright-font-size: 10px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --box-radius: 12px;            /* Slightly rounder for modern feel */
  --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --medium-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --hover-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.08), 0 8px 10px -6px rgba(79, 70, 229, 0.02);
}

/* ----- Base Body ----- */
body {
  margin: 0;
  font-family:
    "Noto Sans Bengali",
    "Hind Siliguri",
    "SolaimanLipi",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  background: var(--page-background-color);
  color: var(--p-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  color: var(--dark-color);
  margin-bottom: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; color: var(--primary-color); }

p, ul, ol {
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 16px;
  color: var(--p-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--secondary-color);
}

button {
  touch-action: manipulation;
  transition: all 0.2s ease;
}

/* =====================
   HEADER (Sleek Dark Slate)
===================== */

.site-header {
  background: var(--dark-color); /* #1E293B */
  color: #F8FAFC;
  padding: 6px 16px;
  border-bottom: 2px solid var(--primary-color);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.img-header {
  height: 80px; /* Slightly smaller for balance */
  width: auto;
  margin: 0 12px;
  
}

.header-left {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}
.site-title span { color: var(--secondary-color); } /* For a nice accent */

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* ----- Navigation Links ----- */
.top-nav a {
  color: #CBD5E1;
  text-decoration: none;
  margin-right: 16px;
  font-size: 1.0rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.top-nav a:last-child { margin-right: 0; }
.top-nav a.active,
.top-nav a:hover {
  color: white;
  border-bottom-color: var(--secondary-color);
}

/* ----- Mobile Menu Toggle ----- */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
}
.menu-toggle:hover { color: var(--secondary-color); }

/* ----- Language Toggle (Refined) ----- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #CBD5E1;
}

.switch {
  position: relative;
  width: 38px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  inset: 0;
  background: #64748B;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .slider {
  background: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(18px);
}

/* =====================
   MAIN CONTENT (Cards & Layout)
===================== */

main {
  max-width: 85vw;
  margin: 40px auto;
  padding: 32px 40px;
  background: var(--white-color);
  border-radius: var(--box-radius);
  box-shadow: var(--medium-shadow);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}
main:hover {
  box-shadow: var(--hover-shadow);
}

/* Section dividers */
.section {
  margin-bottom: 40px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
  border-left: 5px solid var(--primary-color);
  padding-left: 16px;
  margin-bottom: 24px;
}

/* ----- Lists (Styled with custom markers) ----- */
ul, ol {
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}
ul li::marker {
  color: var(--primary-color);
  font-weight: bold;
}
ol li::marker {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Bangla readability */
[data-lang="bn"] {
  font-size: 1.05em;
  line-height: 1.8;
}
[data-lang="bn"] h3 {
  color: var(--dark-color); /* Keep dark for Bangla headings */
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

/* =====================
   MEDIA + TEXT SECTIONS (Feature Images)
===================== */

.media-text {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 32px 0;
  padding: 20px;
  background: var(--page-background-color);
  border-radius: var(--box-radius);
  border: 1px solid var(--border-color);
}

.media-content {
  flex: 1;
}

/* Image container - now a grid for multiple screenshots */
.media-image {
  flex: 0 0 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.media-image img {
  max-width: calc(50% - 6px); /* Four images in a row */
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--soft-shadow);
  background: white;
}
.media-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--medium-shadow);
}

/* If you only have 1 image, make it bigger */
.media-image img:only-child {
  max-width: 60%;
}

/* Inline images inside text */
.inline-image {
  width: 50px;
  height: auto;
  vertical-align: middle;
  margin: 0 6px;
}

/* ======================================================
   IMAGE GRID - 4 screenshots (4x1 on desktop, 2x2 on mobile)
========================================================= */

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 16px;
  width: 100%;
}

/* 🔑 CRUCIAL: Override the max-width from .media-image img */
.image-grid img {
  max-width: 100%; /* <-- This fixes the desktop layout */
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* Square like app icons – remove if you prefer */
  object-fit: cover;
  border-radius: var(--box-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--soft-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.04);
  box-shadow: var(--medium-shadow);
}

/* ===== MOBILE: Exactly 2 images per row ===== */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr); /* Forces exactly 2 columns */
    gap: 10px;
  }
}

/* =====================
   FOOTER (Matches Header)
===================== */

.site-footer {
  background: var(--dark-color);
  color: #CBD5E1;
  margin-top: 60px;
  border-top: 2px solid var(--primary-color);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 85vw;
  margin: 0 auto;
}

.img-footer {
  height: 70px;
  width: auto;

}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-left h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f88981;
  letter-spacing: -0.3px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-nav a {
  color: #CBD5E1;
  text-decoration: none;
  margin-right: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:last-child { margin-right: 0; }
.footer-nav a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 12px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}
.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  padding: 16px;
  border-top: 1px solid #334155;
  color: #94A3B8;
}
.copyright_fnt {
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 0.3px;
}

/* ======================================================
   REMARKABLE SLOGAN (Goldfish Tagline)
========================================================= */

.slogan {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
  animation: floatSlogan 3s ease-in-out infinite;
}

/* Decorative smart underline */
.slogan::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent);
  border-radius: 4px;
  -webkit-text-fill-color: initial; /* Reset for pseudo */
}

/* Floating animation */
@keyframes floatSlogan {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* 👇 Responsive: smaller on mobile */
@media (max-width: 768px) {
  .slogan {
    font-size: 1.6rem;
  }
  .slogan::after {
    width: 80%;
  }
}

/* ======================================================
   ---------- RESPONSIVE & MOBILE ----------
========================================================= */

/* Tablet / Small Laptops */
@media (max-width: 1024px) {
  main {
    margin: 30px 20px;
    padding: 28px;
  }
  .media-image img {
    max-width: 45%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .img-header {
    height: 50px;
  }
  .site-title {
    font-size: 1.3rem;
  }
  .header-right {
    flex-direction: row;
    gap: 8px;
  }

  /* Mobile Menu */
  .menu-toggle {
    display: block;
    font-size: 26px;
  }
  .menu-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-color);
    border-radius: 8px;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    min-width: 180px;
    z-index: 1000;
    display: none !important;
    border: 1px solid #334155;
    box-shadow: var(--medium-shadow);
  }
  .menu-wrapper.active {
    display: flex !important;
  }
  .top-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .top-nav a {
    margin-right: 0;
    padding: 8px 0;
    font-size: 1rem;
  }

  /* Main Content */
  main {
    margin: 16px 12px;
    padding: 20px 16px;
  }
  p, ul, ol {
    font-size: 13px;
    line-height: 1.6;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  /* Media & Text Stack */
  .media-text {
    flex-direction: column;
    padding: 16px;
    gap: 20px;
  }
  .media-content {
    text-align: left;
    width: 100%;
  }
  .media-image {
    flex: 0 0 100%;
    width: 100%;
    gap: 8px;
  }
  .media-image img {
    max-width: calc(50% - 4px);
  }
  .media-image img:only-child {
    max-width: 80%;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
    text-align: center;
  }
  .footer-right {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .footer-nav a {
    margin: 0 6px;
    font-size: 13px;
  }
  .lang-switch {
    justify-content: center;
    margin-top: 4px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .img-header {
    height: 40px;
  }
  .site-title {
    font-size: 1rem;
  }
  .media-image img {
    max-width: 100%;
  }
  .media-image img:only-child {
    max-width: 100%;
  }
}