/* Custom Styles for Technilora - Museum Guide Inspired Design */

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #065f46 0%, #047857 25%, #059669 50%, #10b981 75%, #34d399 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(52, 211, 153, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6, 95, 70, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.gradient-bg-light {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 25%, #2dd4bf 50%, #5eead4 75%, #99f6e4 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Glass Effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-subtle {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-glass {
  background: rgba(6, 95, 70, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Typography */
.hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: inline-block;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: rgba(6, 95, 70, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-badge {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-image-wrapper {
  position: relative;
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* About Section */
.image-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 16px;
  top: 20px;
  left: 20px;
  z-index: 0;
  opacity: 0.3;
}

.about-image {
  position: relative;
  z-index: 10;
}

/* Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 3D Card Effect */
.hover-3d {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.hover-3d:hover {
  transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Case Cards - Flip Animation */
.case-card {
  position: relative;
  min-height: 480px;
  perspective: 1000px;
}

.case-card.flipped .case-content,
.case-card.flipped .case-image-wrapper {
  display: none;
}

.case-card.flipped .case-back {
  display: block !important;
}

.case-back {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  animation: flipIn 0.6s ease-out;
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0);
  }
}

/* Team Members */
.member-avatar {
  transition: all 0.4s ease;
}

.team-member:hover .member-avatar {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* Expert Quote */
.expert-quote {
  position: relative;
  overflow: hidden;
}

.expert-quote::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

/* Form Styling */
.form-input {
  font-size: 16px;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  z-index: 9999;
  display: none;
  animation: slideUp 0.4s ease-out;
}

.cookie-notice.show {
  display: block;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Social Icons */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) rotate(5deg);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hover-3d:hover {
    transform: none;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Loading animation for images */
img {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Feature boxes */
.feature-box {
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

/* Info cards */
.info-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.12);
}

/* Map wrapper */
.map-wrapper {
  transition: all 0.3s ease;
}

.map-wrapper:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Certification cards */
.cert-card {
  transition: all 0.3s ease;
  cursor: default;
}

.cert-card:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Overlay effects */
.case-overlay {
  transition: all 0.4s ease;
}

.case-card:hover .case-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.3));
}

/* Text balance for better readability */
.hero-subtitle,
.about-text p {
  text-wrap: balance;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header-glass,
  .cookie-notice,
  footer,
  .cta-button {
    display: none;
  }
}
