/* Apple Modern Theme - CSS Variables and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color system */
  --apple-bg: #000000;
  --apple-bg-secondary: #1C1C1E;
  --apple-card-bg: rgba(30, 30, 32, 0.75);
  --apple-elevated-bg: rgba(44, 44, 46, 0.8);
  --apple-separator: rgba(84, 84, 88, 0.65);
  
  /* iOS 17 Color Palette */
  --apple-blue: #0A84FF;
  --apple-blue-dark: #0071E3;
  --apple-green: #30D158;
  --apple-indigo: #5E5CE6;
  --apple-orange: #FF9F0A;
  --apple-pink: #FF375F;
  --apple-purple: #BF5AF2;
  --apple-purple-dark: #9F4ADB;
  --apple-red: #FF453A;
  --apple-teal: #64D2FF;
  --apple-yellow: #FFD60A;
  
  /* Text colors */
  --apple-text: #FFFFFF;
  --apple-text-secondary: rgba(235, 235, 245, 0.6);
  --apple-text-tertiary: rgba(235, 235, 245, 0.3);
  
  /* Effects */
  --apple-blur: saturate(180%) blur(20px);
  --apple-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --apple-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --apple-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  
  /* Border radius */
  --apple-radius-sm: 10px;
  --apple-radius-md: 14px;
  --apple-radius-lg: 20px;
  --apple-radius-xl: 26px;
  --apple-radius-pill: 9999px;
  
  /* Transitions */
  --apple-transition-fast: all 0.25s cubic-bezier(0.28, 0.8, 0.4, 1);
  --apple-transition-base: all 0.3s cubic-bezier(0.28, 0.8, 0.4, 1);
  --apple-transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --apple-transition-spring: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base styling reset with Apple's approach */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background-color: var(--apple-bg);
  color: var(--apple-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Glass morphism elements */
.glass-panel {
  background: var(--apple-card-bg);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--apple-radius-md);
}

/* Apple-style buttons */
.apple-button {
  background: var(--apple-elevated-bg);
  color: var(--apple-text);
  border: none;
  padding: 12px 24px;
  border-radius: var(--apple-radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: var(--apple-transition-base);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apple-button:hover {
  transform: translateY(-2px);
  background: rgba(60, 60, 67, 0.8);
  box-shadow: var(--apple-shadow-sm);
}

.apple-button:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

.apple-button.primary {
  background: var(--apple-blue);
  border-color: transparent;
}

.apple-button.secondary {
  background: rgba(60, 60, 67, 0.3);
}

/* Apple-style card */
.apple-card {
  background: var(--apple-card-bg);
  border-radius: var(--apple-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: var(--apple-transition-base);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
}

.apple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-md);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 40px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--apple-blue), var(--apple-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

p {
  color: var(--apple-text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
  font-size: 16px;
}

a {
  color: var(--apple-blue);
  text-decoration: none;
  transition: var(--apple-transition-fast);
}

a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Form elements */
input, textarea, select {
  background: rgba(30, 30, 32, 0.5);
  border: 1px solid var(--apple-separator);
  border-radius: var(--apple-radius-sm);
  color: var(--apple-text);
  padding: 12px 16px;
  font-size: 16px;
  width: 100%;
  transition: var(--apple-transition-fast);
  font-family: inherit;
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.3);
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--apple-text-secondary);
  font-weight: 500;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Layout containers */
.apple-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.apple-section {
  padding: 100px 0;
}

/* Improved Mobile Responsive Styling */
@media (max-width: 992px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .apple-section {
    padding: 80px 0;
  }
  
  .apple-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 30px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  p {
    font-size: 15px;
  }
  
  .apple-section {
    padding: 60px 0;
  }
  
  .apple-container {
    padding: 0 20px;
  }
  
  .apple-card {
    border-radius: var(--apple-radius-sm);
  }
  
  /* Better tap targets for mobile */
  .apple-button {
    padding: 12px 24px;
    font-size: 15px;
    min-height: 48px;
  }
  
  /* Improved shadow for better depth perception on mobile */
  .apple-card:hover, 
  .glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--apple-shadow-sm);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 26px;
    margin-bottom: 18px;
  }
  
  h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  
  .apple-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    min-height: 50px;
    justify-content: center;
  }
  
  .apple-section {
    padding: 40px 0;
  }
  
  .apple-container {
    padding: 0 16px;
  }
  
  /* Reduce animations on mobile for better performance */
  .apple-card,
  .glass-panel,
  .apple-button {
    transition: all 0.2s ease;
  }
  
  /* Stack elements consistently on mobile */
  [class*="apple-grid"] {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Optimize modals for mobile screens */
  [class*="apple-modal"] [class*="apple-container"],
  [class*="apple-modal"] [class*="apple-content"] {
    width: 95%;
    border-radius: 16px;
    padding: 20px;
  }
  
  /* Fix input issues on iOS */
  input, textarea, select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    -webkit-appearance: none; /* Removes iOS default styling */
    -moz-appearance: none;
    appearance: none;
  }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
  [class*="apple-section"] {
    padding: 40px 0;
    min-height: auto;
  }
  
  [class*="apple-hero"] {
    min-height: auto;
    padding: 100px 0 60px;
  }
  
  /* Smaller modals in landscape mode */
  [class*="apple-modal-content"],
  [class*="apple-mobile-nav-links"] {
    max-height: 85vh;
    overflow-y: auto;
  }
} 