/**
 * Modern Theme for Frienly Website
 * Primary CSS variables and base styles
 */

:root {
  /* Primary color palette */
  --primary-black: #0A0A0A;
  --secondary-dark: #181818;
  --tertiary-grey: #222222;
  --text-white: #E0E0E0;
  --text-gray: #A3A3A3;
  --accent-cyan: #1ABC9C;
  --accent-purple: #8A2BE2;
  --error-red: #FF3366;
  
  /* Derived variables for components */
  --bg-color: var(--primary-black);
  --text-color: var(--text-white);
  --secondary-bg: var(--secondary-dark);
  --feature-bg: var(--tertiary-grey);
  --primary-gradient: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
  --nav-height: 70px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 30px;
  --transition-bezier: cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.2);
  --box-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
  --box-shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.4);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reset and base styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-gray);
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: var(--border-radius-lg);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 188, 156, 0.3);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(26, 188, 156, 0.2);
}

/* Card component */
.card {
  background: var(--tertiary-grey);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--box-shadow-sm);
  border: var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

/* Form elements */
input, textarea, select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-subtle);
  border-radius: var(--border-radius-sm);
  color: var(--text-white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}

::placeholder {
  color: rgba(163, 163, 163, 0.5);
  opacity: 1;
}

/* Improved image loading */
.app-screenshot {
  opacity: 0;
  transform: scale(0.95);
  filter: blur(5px);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  will-change: opacity, transform, filter;
  border-radius: var(--border-radius-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--box-shadow-sm);
}

.app-screenshot.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  box-shadow: var(--box-shadow-md);
}

@keyframes imageReveal {
  0% { opacity: 0; transform: scale(0.95); filter: blur(5px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  .btn {
    padding: 12px 25px;
  }
  
  .card {
    padding: 20px;
  }
  
  section {
    padding: 60px 20px !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-black: #0A0A0A;
    --secondary-dark: #181818;
    --tertiary-grey: #222222;
    --text-white: #E0E0E0;
    --text-gray: #A3A3A3;
  }
}

/* Gradient animations */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradientFlow 5s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.gradient-border {
  position: relative;
  border-radius: var(--border-radius-md);
}

.gradient-border::after {
  content: "";
  position: absolute;
  top: -2px; right: -2px; bottom: -2px; left: -2px;
  background: var(--primary-gradient);
  border-radius: calc(var(--border-radius-md) + 2px);
  z-index: -1;
} 