/* =================================================================
   CSS VARIABLES - MONOCHROMATIC RETRO COLOR SCHEME
   ================================================================= */
:root {
  /* Primary Monochromatic Colors */
  --primary-color: #2d3748;
  --primary-dark: #1a202c;
  --primary-light: #4a5568;
  --primary-lighter: #718096;
  --primary-lightest: #a0aec0;
  
  /* Accent Colors */
  --accent-color: #00d1b2;
  --accent-dark: #00b4a6;
  --accent-light: #40e0d0;
  --accent-lighter: #7fffd4;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f7fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #2d3748;
  --black: #000000;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-dark: #2d3748;
  --bg-darker: #1a202c;
  
  /* Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --text-white: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  --gradient-accent: linear-gradient(135deg, #00d1b2 0%, #40e0d0 100%);
  --gradient-overlay: linear-gradient(rgba(45, 55, 72, 0.8), rgba(26, 32, 44, 0.9));
  --gradient-hero: linear-gradient(135deg, rgba(45, 55, 72, 0.7) 0%, rgba(26, 32, 44, 0.8) 100%);
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(45, 55, 72, 0.1);
  --shadow-md: 0 4px 12px rgba(45, 55, 72, 0.15);
  --shadow-lg: 0 8px 32px rgba(45, 55, 72, 0.2);
  --shadow-3d: 0 20px 40px rgba(45, 55, 72, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-header: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* =================================================================
   GLOBAL STYLES
   ================================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* =================================================================
   BUTTON STYLES - GLOBAL
   ================================================================= */
.btn,
.button,
button,
input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn::before,
.button::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 var(--transition-slow);
}

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

.retro-button {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
}

.retro-button:hover {
  transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) scale3d(1.05, 1.05, 1.05);
  box-shadow: var(--shadow-3d);
  color: var(--white);
}

.retro-button:active {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(0.98, 0.98, 0.98);
}

/* =================================================================
   CARD STYLES - GLOBAL
   ================================================================= */
.card,
.item,
.testimonial,
.team-member,
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
}

.retro-card {
  background: var(--white);
  border: 2px solid var(--medium-gray);
  box-shadow: var(--shadow-md);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateZ(0);
  backdrop-filter: blur(10px);
  position: relative;
}

.retro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.retro-card:hover {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateZ(20px);
  box-shadow: var(--shadow-3d);
  border-color: var(--accent-color);
}

.card-image,
.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-image img,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img,
.card:hover .image-container img {
  transform: scale(1.1);
}

/* =================================================================
   HEADER & NAVIGATION
   ================================================================= */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--medium-gray);
  z-index: var(--z-header);
  transition: all var(--transition-normal);
}

.navbar {
  padding: var(--spacing-sm) 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-item {
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-item:hover {
  color: var(--accent-color);
}

.navbar-item:hover::after {
  width: 100%;
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxl) 0;
}

.hero-content {
  max-width: 800px;
}

.hero .title,
.hero .subtitle {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.parallax-container {
  transform-style: preserve-3d;
}

/* =================================================================
   HISTORY SECTION
   ================================================================= */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xxl);
  padding-left: var(--spacing-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50px;
  width: 2px;
  height: calc(100% + 40px);
  background: var(--accent-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 40px;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* =================================================================
   RESEARCH SECTION
   ================================================================= */
.h-100 {
  height: 100%;
}

/* =================================================================
   PRICING SECTION
   ================================================================= */
.pricing-card {
  transition: all var(--transition-normal);
  transform: perspective(1000px) rotateY(0deg);
}

.pricing-card.featured {
  transform: perspective(1000px) rotateY(0deg) scale(1.05);
  border: 3px solid var(--accent-color);
}

.pricing-card:hover {
  transform: perspective(1000px) rotateY(-5deg) translateZ(30px);
}

.price-tag {
  margin: var(--spacing-lg) 0;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
}

.currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.pricing-features li {
  padding: var(--spacing-xs) 0;
  position: relative;
  padding-left: var(--spacing-lg);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* =================================================================
   SUSTAINABILITY & BLOG SECTIONS
   ================================================================= */
.blog-meta {
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  opacity: 0.8;
}

.tag {
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* =================================================================
   CONTACT SECTION
   ================================================================= */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
}

.retro-input,
.retro-select {
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  font-family: var(--font-body);
  transition: all var(--transition-normal);
  background: var(--white);
}

.retro-input:focus,
.retro-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 209, 178, 0.1);
  outline: none;
}

.label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--bg-darker);
  color: var(--text-white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-white);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* =================================================================
   SUCCESS PAGE
   ================================================================= */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
}

.success-content {
  text-align: center;
  color: var(--white);
  max-width: 600px;
  padding: var(--spacing-xl);
}

/* =================================================================
   PRIVACY & TERMS PAGES
   ================================================================= */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

/* =================================================================
   COOKIE CONSENT
   ================================================================= */
.cookie-consent {
  background: rgba(26, 32, 44, 0.95);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--accent-color);
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */
.has-text-dark {
  color: var(--text-primary) !important;
}

.has-text-light {
  color: var(--text-light) !important;
}

.has-text-white {
  color: var(--white) !important;
}

.has-background-light {
  background-color: var(--bg-secondary) !important;
}

.has-background-dark {
  background-color: var(--bg-dark) !important;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =================================================================
   3D ANIMATIONS & EFFECTS
   ================================================================= */
@keyframes float3d {
  0%, 100% {
    transform: perspective(1000px) translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: perspective(1000px) translateY(-10px) rotateX(5deg) rotateY(2deg);
  }
}

@keyframes rotate3d {
  0% {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg) rotateX(10deg);
  }
}

@keyframes slideIn3d {
  0% {
    transform: perspective(1000px) translateX(-100px) rotateY(-45deg);
    opacity: 0;
  }
  100% {
    transform: perspective(1000px) translateX(0) rotateY(0deg);
    opacity: 1;
  }
}

.animate-float {
  animation: float3d 3s ease-in-out infinite;
}

.animate-rotate {
  animation: rotate3d 20s linear infinite;
}

.animate-slide-in {
  animation: slideIn3d 0.8s ease-out;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */
@media screen and (max-width: 1024px) {
  .hero-body {
    padding: var(--spacing-xl) 0;
  }
  
  .timeline-item {
    padding-left: var(--spacing-lg);
  }
  
  .timeline-marker {
    left: -10px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  .timeline-item {
    padding-left: 0;
  }
  
  .timeline-marker {
    position: relative;
    left: 0;
    top: 0;
    margin: 0 auto var(--spacing-sm);
  }
  
  .pricing-card.featured {
    transform: none;
    scale: 1;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .retro-card:hover {
    transform: none;
  }
  
  .retro-button:hover {
    transform: scale(1.02);
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-content {
    padding: 0 var(--spacing-sm);
  }
  
  .card-content {
    padding: var(--spacing-sm);
  }
  
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .button {
    margin-bottom: var(--spacing-sm);
  }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
  .header,
  .navbar,
  .footer,
  .cookie-consent {
    display: none;
  }
  
  .hero-background {
    background: none !important;
  }
  
  .hero {
    background: var(--white) !important;
    color: var(--text-primary) !important;
  }
  
  .retro-card {
    box-shadow: none;
    border: 1px solid var(--medium-gray);
  }
}

/* =================================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-container {
    transform: none;
  }
  
  .hero-background {
    background-attachment: scroll;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--bg-dark);
    --bg-secondary: var(--bg-darker);
    --text-primary: var(--white);
    --text-secondary: var(--primary-lightest);
  }
}

/* Focus indicators */
*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

button:focus,
.button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
  }
  
  .retro-card {
    border-width: 3px;
  }
  
  .button,
  .retro-button {
    border: 2px solid var(--primary-dark);
  }
}