:root {
  --primary-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-gradient: linear-gradient(135deg, #090a1e 0%, #1c0e35 50%, #4b0e50 100%);
  --header-gradient: linear-gradient(145deg, #05041a 0%, #290858 50%, #760e7e 100%);
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f8f9fa;
  --gray-medium: #8e9cae;
  --gray-dark: #1e293b;
  --primary-cta-bg: linear-gradient(90deg, #1f2029 0%, #2f3142 100%);
  --secondary-cta-bg: #ffffff;
  --border-radius-lg: 28px;
  --border-radius-md: 18px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

body,
.phone-container,
.profile-title,
.profile-desc,
.social-icon,
.cta-button,
.dark-mode-toggle,
.hero-wave {
  transition: background 0.4s ease, background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--primary-font);
  background: linear-gradient(-45deg, #f5f7fa, #e4efe9, #f5f7fa, #e2ebf0);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  color: var(--gray-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 0;
  overflow-x: hidden;
  position: relative;
}

body::before, body::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  filter: blur(70px);
  z-index: -1;
  animation: float-bubble 15s infinite alternate ease-in-out;
}
body::before {
  top: -50px;
  left: -50px;
}
body::after {
  bottom: -50px;
  right: -50px;
  animation-delay: -7.5s;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.07) 0%, rgba(236, 72, 153, 0.04) 100%);
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float-bubble {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(120px, 80px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, 120px) scale(0.9) rotate(360deg);
  }
}

/* Locked iPad View on Desktop & Responsive on Mobile */
.phone-wrapper {
  width: 100%;
  max-width: 768px; /* Locked to iPad width on desktop */
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
}

.phone-container {
  width: 100%;
  background: var(--white);
  border-radius: 28px; /* Smooth rounded borders on desktop */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto; /* fit content */
  border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Header Area */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 10px 24px;
  color: var(--white);
}

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

.sparkle-icon {
  width: 22px;
  height: 22px;
  color: var(--white);
  filter: drop-shadow(0 2px 5px rgba(255,255,255,0.4));
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Scrollable Container */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 110px; /* space for sticky footer */
}

.content-scroll::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Hero Header with dynamic wave curve */
.hero-header {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.hero-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
}

/* Profile Section */
.profile-section {
  text-align: center;
  padding: 0 24px;
  margin-top: -65px; /* overlap with curve */
  position: relative;
  z-index: 2;
}

.avatar-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.profile-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6b7280;
  font-weight: 400;
  max-width: 310px;
  margin: 0 auto;
}

/* Social Row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #111827;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  transform: translateY(-4px);
  background-color: #4b0e50;
  box-shadow: 0 8px 15px rgba(75, 14, 80, 0.3);
}

/* Map Card */
.map-card-wrapper {
  padding: 0 24px;
  margin-bottom: 24px;
}

.map-card {
  width: 100%;
  height: 180px;
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.map-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
}

.map-pin-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-marker-pin {
  width: 12px;
  height: 12px;
  background-color: #6366f1;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3);
  margin-bottom: 12px;
  animation: pulse-pin 2s infinite;
}

@keyframes pulse-pin {
  0% {
    box-shadow: 0 0 0 0px rgba(99, 102, 241, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(99, 102, 241, 0);
  }
}

.map-location-bubble {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.location-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 4px;
}

.location-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background-color: #6366f1;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.location-btn:hover {
  background-color: #4f46e5;
}

/* Action Links */
.action-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px;
}

.cta-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-premium);
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-icon {
  width: 20px;
  height: 20px;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.primary-cta {
  background: var(--primary-cta-bg);
  color: #ffffff;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(31, 32, 41, 0.25);
}

.primary-cta:hover .arrow-icon {
  transform: translate(2px, -2px);
  opacity: 1;
}

.secondary-cta {
  background: var(--secondary-cta-bg);
  color: var(--gray-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.secondary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.secondary-cta:hover .arrow-icon {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* Simple Elegant Footer styling */
.simple-footer {
  text-align: center;
  padding: 32px 24px 20px 24px;
  color: var(--gray-medium);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Dark Mode Toggle button style */
.dark-mode-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
}

/* Wave dynamic coloring */
.hero-wave {
  color: var(--white);
  transition: var(--transition-smooth);
}

/* Dark Theme Variables & Styles */
body.dark-theme {
  --white: #18181c;
  --gray-dark: #f3f4f6;
  --gray-medium: #9ca3af;
  --secondary-cta-bg: #222227;
  background: linear-gradient(-45deg, #181824, #121214, #1f1f2e, #141416);
  background-size: 400% 400%;
}

body.dark-theme::before,
body.dark-theme::after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
}

body.dark-theme .phone-container {
  background: #18181c;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.dark-theme .profile-title {
  color: #f3f4f6;
}

body.dark-theme .profile-desc {
  color: #9ca3af;
}

body.dark-theme .social-icon {
  background-color: #2a2a35;
  color: #f3f4f6;
}

body.dark-theme .social-icon:hover {
  background-color: #6366f1;
}

body.dark-theme .secondary-cta {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .dark-mode-toggle {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

/* Responsiveness for desktop and mobile views */
@media (max-width: 768px) {
  body {
    padding: 0;
    background: var(--white);
    animation: none;
  }
  body::before,
  body::after {
    display: none;
  }
  .phone-wrapper {
    padding: 0;
    max-width: 100%;
  }
  .phone-container {
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-height: 100vh;
  }
}

/* Ripple animation for button interaction */
.cta-button {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
