/* CSS Variables - Theme System */
:root {
  /* Primary Colors - Pastel Palette */
  --color-pastel-pink: #FFE5E5;
  --color-pastel-purple: #E5D5FF;
  --color-pastel-blue: #D5E5FF;
  --color-pastel-green: #E5FFE5;
  --color-pastel-yellow: #FFFDE5;
  
  /* Text Colors */
  --color-dark-text: #222222;
  --color-accent-dark: #444444;
  --color-white: #FFFFFF;
  --color-muted: #666666;
  
  /* Accent Colors */
  --color-accent-pink: #FFB8B8;
  --color-accent-purple: #C8A8FF;
  --color-accent-blue: #A8C8FF;
  --color-accent-green: #B8FFB8;
  --color-accent-yellow: #FFF8B8;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--color-pastel-purple) 0%, var(--color-pastel-blue) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-pastel-pink) 0%, var(--color-pastel-yellow) 100%);
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  
  /* Shadows */
  --shadow-brutal: 8px 8px 0px var(--color-dark-text);
  --shadow-brutal-hover: 12px 12px 0px var(--color-dark-text);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  
  /* Borders */
  --border-width: 3px;
  --border-color: var(--color-dark-text);
  
  /* Typography */
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-medium: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-slow: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-dark-text);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
  margin-bottom: var(--spacing-md);
  font-weight: 400;
  color: var(--color-dark-text);
}

/* Global Button Styles */
.btn,
button,
input[type='submit'],
.hero-btn,
.project-btn,
.submit-btn {
  font-family: var(--font-body);
  font-weight: 700;
  padding: var(--spacing-md) var(--spacing-xl);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-pastel-purple);
  color: var(--color-dark-text);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-brutal);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover,
button:hover,
input[type='submit']:hover,
.hero-btn:hover,
.project-btn:hover,
.submit-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-hover);
  background: var(--color-accent-purple);
}

.btn:active,
button:active,
input[type='submit']:active {
  transform: translate(0, 0);
  box-shadow: 4px 4px 0px var(--color-dark-text);
}

/* Button Variants */
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  box-shadow: 8px 8px 0px var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-dark-text);
  box-shadow: 12px 12px 0px var(--color-white);
}

/* Header & Navigation */
header {
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width) solid transparent;
  z-index: 1000;
}

nav a {
  position: relative;
  font-weight: 500;
  transition: all var(--transition-fast);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-pastel-purple);
  transition: width var(--transition-medium);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-btn span {
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.hero-section p {
  color: var(--color-white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Floating Elements Animation */
.floating-elements {
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(10px) rotate(-3deg);
  }
}

/* Card Styles */
.card,
.item,
.testimonial-card,
.team-member,
.product-card,
.stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card:hover,
.testimonial-card:hover,
.stats-card:hover {
  transform: translate(-4px, -4px) rotate(1deg);
  box-shadow: var(--shadow-brutal-hover);
}

.card-image,
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: var(--border-width) solid var(--color-border);
  margin: 0 auto;
}

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Distorted Grid Effects */
.distorted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  transform: skewY(-1deg);
}

.distorted-grid > * {
  transform: skewY(1deg);
}

/* Statistics Counter Animation */
.counter {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-dark-text);
}

/* Carousel Styles */
.content-carousel {
  position: relative;
}

.carousel-container {
  display: flex;
  transition: transform var(--transition-slow);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  margin-right: var(--spacing-lg);
}

.carousel-controls button {
  background: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  padding: var(--spacing-md);
  margin: 0 var(--spacing-sm);
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-brutal);
}

.carousel-controls button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-dark-text);
}

/* Behind the Scenes Gallery */
.behind-scenes-gallery {
  position: relative;
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-brutal);
}

.custom-slider {
  position: relative;
  height: 320px;
}

.slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.slider-container img:first-child {
  opacity: 1;
}

/* Form Styles */
.contact-form {
  background: var(--color-white);
  border: var(--border-width) solid var(--color-border);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid #121212;
  background: var(--color-white);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  border-radius: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 3px rgba(229, 213, 255, 0.3);
}

.contact-form label {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  display: block;
  color: var(--color-dark-text);
}

/* Testimonials Specific Styles */
.testimonial-card .card-content {
  padding: var(--spacing-xl);
}

.testimonial-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}

/* Shadow Variations */
.shadow-brutal {
  box-shadow: var(--shadow-brutal);
}

.shadow-brutal:hover {
  box-shadow: var(--shadow-brutal-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
  
  .card-image,
  .card img {
    height: 200px;
  }
  
  .distorted-grid {
    transform: none;
    grid-template-columns: 1fr;
  }
  
  .carousel-slide {
    min-width: 100%;
  }
  
  .floating-icon {
    display: none;
  }

  .testimonial-card img {
    width: 100%;
  }
}

/* Animation Classes */
.animate-bounce-in {
  animation: bounceIn var(--transition-slow);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
  70% {
    transform: scale(0.9) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp var(--transition-medium);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Elastic Hover Effects */
.elastic-hover {
  transition: transform var(--transition-medium);
}

.elastic-hover:hover {
  transform: scale(1.05) rotate(1deg);
}

/* Link Styles */
a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-dark-text);
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-accent-dark);
  background: transparent;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.read-more::after {
  content: '→';
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateX(5px);
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Social Media Icons */
.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-pastel-purple);
  color: var(--color-dark-text);
  font-weight: 600;
  border: var(--border-width) solid var(--color-border);
  transition: all var(--transition-medium);
  text-decoration: none;
  font-size: 1.2rem;
}

.social-links a:hover {
  transform: translate(-2px, -2px) rotate(5deg);
  box-shadow: 6px 6px 0px var(--color-dark-text);
  background: var(--color-accent-purple);
}

/* Footer Styles */
footer {
  background: var(--color-dark-text);
  color: var(--color-white);
  border-top: var(--border-width) solid var(--color-white);
}

footer h3,
footer h4 {
  color: var(--color-white);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: var(--color-white);
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-page .container {
  max-width: 800px;
}

.content-page h1 {
  margin-bottom: var(--spacing-xl);
}

.content-page h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-dark-text);
}

.content-page p,
.content-page li {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.content-page ul,
.content-page ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  padding: var(--spacing-lg);
}

.success-content {
  text-align: center;
  background: var(--color-white);
  padding: var(--spacing-2xl);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-brutal);
  max-width: 600px;
  width: 100%;
}

.success-icon {
  font-size: 4rem;
  color: var(--color-pastel-green);
  margin-bottom: var(--spacing-lg);
  animation: bounceIn 1s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-icon {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-dark-text: #000000;
    --color-white: #FFFFFF;
    --border-width: 4px;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--color-pastel-purple);
  border-radius: 50%;
  border-top-color: var(--color-dark-text);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Print Styles */
@media print {
  .hero-section,
  header,
  footer,
  .floating-elements {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .card,
  .testimonial-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}