/* ===================================
   Hamasaat (همسات) - Main Stylesheet
   Gulf/Saudi Feminine Premium Style
   Colors: Dark Purple, Soft Pink, Gold
   =================================== */

/* --- CSS Variables --- */
:root {
  --purple-dark: #2D1B4E;
  --purple-mid: #4A2C6E;
  --purple-light: #6B3FA0;
  --pink-soft: #F2C6D0;
  --pink-light: #FAE3E8;
  --pink-accent: #E8A0B4;
  --gold: #D4A843;
  --gold-light: #F0D78C;
  --gold-dark: #B8912E;
  --white: #FFFFFF;
  --off-white: #FDF8FA;
  --text-dark: #1A0E2E;
  --text-light: #F5EEF8;
  --text-muted: #8E7BA0;
  --shadow: rgba(45, 27, 78, 0.15);
  --shadow-lg: rgba(45, 27, 78, 0.25);
  --gradient-hero: linear-gradient(135deg, #2D1B4E 0%, #4A2C6E 40%, #6B3FA0 100%);
  --gradient-gold: linear-gradient(135deg, #D4A843 0%, #F0D78C 50%, #D4A843 100%);
  --gradient-pink: linear-gradient(135deg, #FAE3E8 0%, #F2C6D0 100%);
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  background: var(--purple-dark);
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-lg);
  transition: var(--transition);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .navbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.navbar-brand .logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.navbar-brand .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--pink-soft);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 198, 208, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--purple-dark);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.hero .hero-subtitle {
  color: var(--pink-light);
  font-size: 1.2rem;
  margin-bottom: 36px;
  line-height: 2;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-cta a {
  display: inline-block;
  transition: var(--transition);
}

.hero-cta a:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.hero-cta img {
  height: 56px;
  width: auto;
  border-radius: 10px;
}

.hero-download-text {
  color: var(--pink-accent);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  max-width: 60vw;
  aspect-ratio: 9 / 19.5;
  background: #1A0E2E;
  border-radius: 40px;
  border: 4px solid var(--gold);
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(212,168,67,0.2);
  overflow: hidden;
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-mockup .phone-screen {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
  display: block;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

.section-purple {
  background: var(--gradient-hero);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  color: var(--purple-dark);
  font-size: 2.2rem;
}

.section-purple .section-title {
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-purple .section-subtitle {
  color: var(--pink-light);
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 0 auto 20px;
  border-radius: 3px;
}

/* --- Categories Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  opacity: 0.08;
  border-radius: 0 var(--border-radius) 0 60px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-lg);
  border-color: var(--gold);
}

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.category-card h3 {
  color: var(--purple-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
}

.feature-card .feature-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  border: 2px solid rgba(212,168,67,0.3);
}

.feature-card h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--pink-light);
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient-hero);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--pink-light);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons a {
  display: inline-block;
  transition: var(--transition);
}

.cta-buttons a:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.cta-buttons img {
  height: 56px;
  width: auto;
  border-radius: 10px;
}

/* --- Footer --- */
.footer {
  background: #1A0E2E;
  padding: 50px 0 24px;
  color: var(--text-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 40px;
}

.footer-brand .logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  background: var(--gradient-hero);
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--pink-light);
  font-size: 1.1rem;
}

/* --- Content Section (for inner pages) --- */
.content-section {
  padding: 60px 0 80px;
}

.content-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 4px 30px var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.content-card h2 {
  color: var(--purple-dark);
  font-size: 1.6rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pink-light);
}

.content-card h2:not(:first-child) {
  margin-top: 36px;
}

.content-card p {
  margin-bottom: 16px;
  color: #4A3A5C;
}

.content-card ul {
  margin-bottom: 16px;
  padding-right: 24px;
}

.content-card ul li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 10px;
  color: #4A3A5C;
  line-height: 1.8;
}

.content-card ul li::before {
  content: '◆';
  position: absolute;
  right: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 6px;
}

/* --- Support Page Specific --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.support-card {
  background: var(--pink-light);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.support-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.support-card .support-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.support-card h3 {
  color: var(--purple-dark);
  margin-bottom: 10px;
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.support-card .btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-purple {
  background: var(--purple-dark);
  color: var(--white);
}

.btn-purple:hover {
  background: var(--purple-mid);
}

.btn-green {
  background: #25D366;
  color: var(--white);
}

.btn-green:hover {
  background: #1EBE5A;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
    flex: none;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

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

  .hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 30px var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 0 70px;
    min-height: auto;
  }

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

  .hero .hero-subtitle {
    font-size: 1.05rem;
  }

  .phone-mockup {
    width: 200px;
    max-width: 50vw;
    border-radius: 30px;
    border-width: 3px;
  }

  .phone-mockup .phone-screen {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 26px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .section {
    padding: 50px 0;
  }

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

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

  .footer-brand p {
    max-width: 100%;
  }

  .content-card {
    padding: 28px 20px;
  }

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

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .hero-cta img {
    height: 48px;
  }

  .cta-buttons img {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .phone-mockup {
    width: 160px;
    max-width: 45vw;
    border-radius: 24px;
    border-width: 3px;
  }

  .phone-mockup .phone-screen {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border-radius: 20px;
  }

  .hero-cta img {
    height: 42px;
  }

  .cta-buttons img {
    height: 42px;
  }
}
