/* 
  Atlantik Pet Shop | iOS 26 Premium - Refined Light Edition
  (Pre-Dark Mode Stabilized Version)
*/

:root {
  color-scheme: light;
  --ios-bg: #f2f2f7;
  --ios-secondary-bg: #ffffff;
  --ios-accent: #007aff;
  --ios-green: #34c759;
  --ios-orange: #ff9f0a;
  --ios-pink: #ff375f;
  --ios-cyan: #64d2ff;
  --ios-indigo: #5856d6;
  --ios-text: #1c1c1e;
  --ios-text-secondary: #8e8e93;
  --ios-glass: rgba(255, 255, 255, 0.7);
  --ios-glass-heavy: rgba(255, 255, 255, 0.85);
  --ios-card-border: rgba(0, 0, 0, 0.05);
  --ios-shadow-premium: 0 15px 40px rgba(0, 0, 0, 0.05);
  --radius-ios-xl: 48px;
  --radius-ios-lg: 32px;
  --radius-ios-md: 20px;
  --transition-ios: all 0.7s cubic-bezier(0.2, 1, 0.22, 1);
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #f4f5f7; /* Matches footer at bottom */
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--ios-bg);
  color: var(--ios-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.015em;
  margin: 0;
  overflow-x: hidden;
}

/* --- Utilities --- */
.ios-accent { color: var(--ios-accent); }
.hero-title {
  line-height: 1.2 !important;
  padding-bottom: 0.1em; /* Space for descenders */
}

.text-gradient {
  background: linear-gradient(135deg, #000, var(--ios-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Helps with background clip area */
}

.glass {
  background: var(--ios-glass);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--ios-card-border);
}

.glass-heavy {
  background: var(--ios-glass-heavy);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--ios-card-border);
}

/* --- Navigation --- */
#navbar {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0;
}

#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-links-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

#brand-container {
  transition: all 0.75s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1000;
  position: absolute;
  left: 1.5rem; /* px-6 position */
}

/* Coming from the Left to Center */
.nav-scrolled #brand-container {
  left: 50% !important;
  transform: translateX(-50%) !important;
}



#nav-links {
  transition: opacity 0.6s ease;
  min-width: 200px; /* Preserve space to prevent layout jump */
}

.nav-link {
  color: var(--ios-text);
  font-weight: 600;
  opacity: 0.6;
  transition: var(--transition-fast);
  font-size: 1.05rem;
}

.nav-link:hover {
  opacity: 1;
  color: var(--ios-accent) !important;
}

/* --- Premium Elements --- */
.ios-button-premium {
  background: linear-gradient(135deg, #000000, var(--ios-accent), #000000);
  background-size: 200% 100%;
  color: white !important;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  text-align: center;
}

.ios-button-premium:hover {
  background-position: 100% 0;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.ios-card-3d {
  background: var(--ios-secondary-bg);
  border-radius: var(--radius-ios-lg);
  border: 1px solid var(--ios-card-border);
  padding: 3rem 2rem;
  transition: var(--transition-ios);
  transform-style: preserve-3d;
  box-shadow: var(--ios-shadow-premium);
}

.ios-card-3d:hover {
  transform: rotateX(8deg) rotateY(4deg) translateY(-15px) scale(1.05);
  border-color: var(--ios-accent);
}

.ios-feature-pill {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--ios-secondary-bg);
  border-radius: var(--radius-ios-md);
  transition: var(--transition-fast);
  border: 1px solid var(--ios-card-border);
}

.ios-feature-pill:hover {
  transform: translateX(10px);
}

/* --- Contact Section --- */
.ios-settings-list {
  border-radius: 24px;
  background: var(--ios-secondary-bg);
  padding: 8px 0;
  border: 1px solid var(--ios-card-border);
}

.ios-setting-item {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  gap: 1.5rem;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.ios-setting-item:hover {
  background: rgba(0, 0, 0, 0.01);
}

.ios-label {
  flex: 1;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ios-text);
  text-align: center;
}

/* --- Animations --- */
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.whatsapp-float {
  animation: whatsapp-bounce 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(48, 209, 88, 0.2);
  transition: all 0.3s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-30px) rotate(15deg); }
}

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

@keyframes bubble-ios {
  0% { transform: translateY(110vh) scale(0.6); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-100px) scale(1.1); opacity: 0; }
}

.bubble {
  position: fixed;
  animation: bubble-ios 20s linear infinite;
  z-index: 5;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.05));
  will-change: transform, opacity;
  pointer-events: none;
}

#pupil-l, #pupil-r {
  transition: transform 0.05s linear;
}

@keyframes neon-cycle {
  0% { background-color: rgba(0, 122, 255, 0.08); transform: scale(1) translate(0, 0); }
  33% { background-color: rgba(52, 199, 89, 0.08); transform: scale(1.1) translate(20px, -20px); }
  66% { background-color: rgba(255, 55, 95, 0.08); transform: scale(0.9) translate(-20px, 20px); }
  100% { background-color: rgba(0, 122, 255, 0.08); transform: scale(1) translate(0, 0); }
}

.neon-glow {
  animation: neon-cycle 10s ease-in-out infinite;
}

/* Reveal */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: var(--transition-ios); }
.fade-in-left { opacity: 0; transform: translateX(-60px); transition: var(--transition-ios); }
.visible { opacity: 1 !important; transform: translate(0) !important; }

@media (max-width: 768px) {
  .hero-title { font-size: 3.5rem !important; line-height: 1.1; text-align: center; }
  #brand-container { 
    left: 50% !important; 
    right: auto !important; 
    transform: translateX(-50%) !important; 
    transform-origin: center center !important;
  }
  #menu-btn, #mobile-menu-btn { display: none !important; }
  .ios-hero-content, section#why-us .flex-1 { align-items: center !important; text-align: center !important; }
  #hero-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
  section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  #app-container { padding-top: 1rem; }
  .ios-card-3d { padding: 1.5rem; }
  footer { padding-bottom: calc(4rem + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem !important; }
  .ios-button-premium { width: 100%; padding: 1.25rem; font-size: 1.25rem; }
  .ios-label { font-size: 1.1rem; }
}