/* FitZone Central - Modern Design Studio Styles */

/* CSS Variables for Color Palette */
:root {
  /* Primary Colors - Modern Blue & Purple Gradient */
  --primary-color: #667eea;
  --primary-dark: #5a67d8;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #1f2937;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --border-radius: 12px;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
  border-radius: 50%;
  z-index: -1;
}

.hero-section .container {
  text-align: center;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 3rem;
}

.work-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-top: 3rem;
}

/* Cards */
.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: contain;
}

/* Sections */
section {
  padding: var(--section-padding);
}

.services-section {
  background: var(--bg-secondary);
}

.work-section {
  background: var(--white);
}

.about-section {
  background: var(--bg-secondary);
  text-align: center;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* Portfolio Items */
.portfolio-item {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-caption {
  padding: 1.5rem;
}

.portfolio-caption h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.portfolio-caption p {
  color: var(--text-secondary);
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
}

.contact-section h2,
.contact-section p {
  color: var(--text-white);
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Footer */
.site-footer {
  background: var(--gray-900) !important;
  color: var(--text-white) !important;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-info {
  color: var(--gray-300) !important;
}

.footer-info p {
  color: var(--gray-300) !important;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300) !important;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color) !important;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
}

.footer-copyright p {
  color: var(--gray-400) !important;
  margin: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.cookie-banner-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--text-secondary);
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cookie-settings {
  display: none;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 2rem;
}

.cookie-settings.show {
  display: block;
}

.cookie-option {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.cookie-option label {
  display: block;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  margin-right: 0.5rem;
}

.cookie-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  z-index: 1001;
}

.cookie-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 20px;
  }
  
  .main-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-section {
    padding: 120px 0 80px;
  }
  
  .grid {
    gap: 1.5rem;
  }
  
  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-banner-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  section {
    padding: 60px 0;
  }
  
  .contact-form {
    margin: 2rem 20px 0;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .card {
    border: 2px solid var(--gray-300);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .hero-section::before {
    display: none;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure all elements are visible */
* {
  opacity: 1 !important;
  visibility: visible !important;
}
