/* 
  VillaPS - Landing Page Official Custom Stylesheet
  Design: High-Premium Arabic Glassmorphism & Modern Soft Dark/Light UI
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700;900&family=Outfit:wght@400;600;800;900&display=swap');

:root {
  --font-arabic: 'Cairo', sans-serif;
  --font-english: 'Outfit', sans-serif;
  
  --color-primary: #4f46e5;
  --color-secondary: #7c3aed;
  --color-accent: #f59e0b;
  --color-dark: #0f172a;
  --color-light: #f8fafc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--color-light);
  color: var(--color-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Dark Mode Variables (Tailwind handled manually via classes) --- */
.dark-theme {
  background-color: #0b0f19;
  color: #f1f5f9;
}

/* --- Modern Glassmorphism --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-theme .glass-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Glowing Gradients --- */
.glow-indigo {
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.15);
}

.glow-amber {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* --- Hover Transitions & Micro-animations --- */
.transition-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.dark-theme .transition-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Floating Screens Keyframes --- */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float-delayed {
  0% {
    transform: translateY(-10px) rotate(-1deg);
  }
  50% {
    transform: translateY(5px) rotate(0deg);
  }
  100% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.float-delayed-animation {
  animation: float-delayed 8s ease-in-out infinite;
}

/* --- Premium CSS Mobile Device screenshot Placeholder --- */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  border-radius: 40px;
  border: 12px solid #1e293b;
  background-color: #0b0f19;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px rgba(79, 70, 229, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dark-theme .phone-mockup {
  border-color: #334155;
}

/* Dynamic Notch / Dynamic Island */
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 25px;
  background-color: #1e293b;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-theme .phone-notch {
  background-color: #334155;
}

.phone-screen {
  flex: 1;
  padding: 40px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Mock App UI Elements */
.app-header-mock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  z-index: 10;
}

.app-pill-mock {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: bold;
}

.app-search-mock {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 16px;
  color: #94a3b8;
  margin-bottom: 16px;
  text-align: right;
  z-index: 10;
}

.app-card-mock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.app-image-placeholder {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #a5b4fc;
  font-size: 11px;
}

.app-title-mock {
  font-weight: 700;
  font-size: 12px;
  text-align: right;
}

.app-meta-mock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.app-tag-mock {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: bold;
}

/* Custom Scrollbar for Landing Page */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-light);
}

.dark-theme ::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}
