/* Custom Styles - Enhancement to Tailwind CSS */

/* CSS Variables for theming */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-accent: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #ec4899 75%, #fbbf24 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Body and general styles */
body {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 50%, #ffe8f5 100%);
  min-height: 100vh;
}

/* Container */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Styles */
.header-main {
  transition: all 0.3s ease;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.header-main.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-mobile {
  color: #4b5563;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.nav-link-mobile:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Burger Menu */
.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-line {
  width: 24px;
  height: 3px;
  background: #667eea;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  transition: all 0.3s ease;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-content,
.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

/* Feature Cards */
.feature-card-small {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card-small:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.3);
}

.icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Stat Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

/* Tech Badges */
.tech-badge {
  background: rgba(102, 126, 234, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.tech-badge:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

/* Case Cards with Flip Animation */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  min-height: 500px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.flip-card-back {
  background: var(--gradient-primary);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-xl);
}

/* Case Card Styles */
.case-card {
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
}

/* Team Cards */
.team-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.3);
}

.team-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

/* Contact Form */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: var(--shadow-lg);
}

.form-input {
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.form-input:focus {
  background: white;
}

/* Footer */
.footer-main {
  background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-link {
  color: #6b7280;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #667eea;
  padding-left: 4px;
}

/* Social Icons */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 480px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.cookie-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Floating Animation */
.floating-image img {
  transition: transform 0.05s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section::before,
  .hero-section::after {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 2rem;
  }

  .cookie-notice {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .flip-card {
    min-height: 450px;
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Remove transition from specific elements */
img,
video,
iframe {
  transition: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2 0%, #f093fb 100%);
}

/* Loading states */
.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}
