/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -10px 40px rgba(251, 146, 60, 0.3);
  padding: 2rem;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-top: 3px solid #ff6600;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup-content {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cookie-popup {
      padding: 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6600 0%, #ff8533 100%);
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8533 0%, #ffaa66 100%);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Body Background */
body {
  background: #000000;
  min-height: 100vh;
}

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Card Hover Effects */
.article-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.1), transparent);
  transition: left 0.5s ease;
}

.article-card:hover::before {
  left: 100%;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #ff6600, #fbbf24);
  transition: height 0.4s ease;
}

.service-card:hover::after {
  height: 100%;
}

/* Stat Cards Animation */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.stat-card:hover::before {
  width: 300px;
  height: 300px;
}

.stat-card:hover {
  transform: scale(1.05);
}

/* Team Cards */
.team-card {
  position: relative;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  transition: all 0.4s ease;
}

/* Case Cards Special Effect */
.case-card {
  cursor: pointer;
  position: relative;
}

.case-card::after {
  content: '🔍 Double-click to expand';
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(251, 146, 60, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-card:hover::after {
  opacity: 1;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #ff6600 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Animations */
button,
a.bg-yellow-500,
a.bg-yellow-400 {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

button::before,
a.bg-yellow-500::before,
a.bg-yellow-400::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

button:hover::before,
a.bg-yellow-500:hover::before,
a.bg-yellow-400:hover::before {
  width: 300px;
  height: 300px;
}

/* Loading Animation for Images */
img {
  transition: all 0.3s ease;
}

img:hover {
  filter: brightness(1.1);
}

/* Header Glass Effect */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Input Focus Glow */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

/* Custom Selection */
::selection {
  background: #ff6600;
  color: white;
}

::-moz-selection {
  background: #ff6600;
  color: white;
}

/* Fade In Animation */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Pulse Animation for Stats */
@keyframes pulse {
  0%, 100% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.05);
  }
}

.stat-card div {
  animation: pulse 2s ease-in-out infinite;
}

/* Gradient Border Effect */
.gradient-border {
  position: relative;
  background: #1a1a1a;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #ff6600, #fbbf24);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .article-card,
  .service-card,
  .case-card {
      grid-template-columns: 1fr;
  }
}

/* Dark Mode Enhancements */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Performance Optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ff6600;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .cookie-popup,
  header,
  footer {
      display: none;
  }
}
