/**
 * OFO Development Website - Common Styles
 * Contains core styles shared across all pages
 */

/* Base styles */
body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* Nav styles */
.nav-link {
  color: #d1d5db;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 600px;
  background-color: #1f2937;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(-0.5rem);
}

.group:hover .dropdown-menu,
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Active states for menu items */
.mobile-menu.active {
  max-height: 500px !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: #d1d5db;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #374151;
  transform: translateX(0.5rem);
}

.dropdown-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  color: #eab308;
}

/* Mobile Menu Animation */
.mobile-menu {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backdrop Blur Effect */
nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Accordion Transitions */
.accordion div {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Dropdown Footer */
.dropdown-menu > div:last-child {
  border-top: 1px solid #374151;
  background-color: #1f2937;
  padding: 1rem;
}

.dropdown-menu > div:last-child h3 {
  color: #eab308;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Hero section with video background */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 20, 0.9), rgba(10, 10, 20, 0.7));
  z-index: -1;
}

/* Particle animation canvas */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Premium badge */
.premium-badge {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-radius: 0.25rem;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
}

.premium-badge::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 0.3rem;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  z-index: -1;
  opacity: 0.5;
}

/* Amber/gold gradient text styling */
.golden-text {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glassmorphism effects */
.glass-card {
  background: rgba(25, 25, 35, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Premium CTA buttons */
.premium-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #121212;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  z-index: 1;
}

.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.premium-btn:active {
  transform: translateY(1px);
}

.premium-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.premium-btn:hover::before {
  left: 100%;
}

.premium-btn-outline {
  position: relative;
  background: transparent;
  color: #ffd700;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #ffd700;
  z-index: 1;
}

.premium-btn-outline:hover {
  color: #121212;
  border-color: #ffa500;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.premium-btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  transition: width 0.3s ease;
  z-index: -1;
}

.premium-btn-outline:hover::before {
  width: 100%;
}

/* Feature list with premium styling */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border-radius: 50%;
  color: #121212;
  font-weight: bold;
  font-size: 0.875rem;
}

/* Value proposition cards */
.value-card {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.value-card .icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.value-card .icon svg {
  width: 2rem;
  height: 2rem;
  color: #ffd700;
}

.value-card .progress-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
}

.value-card .progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 85%;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border-radius: 2px;
}

.value-card:nth-child(2) .progress-bar::after {
  width: 90%;
}

.value-card:nth-child(3) .progress-bar::after {
  width: 95%;
}

/* Process steps */
.process-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #121212;
}

.process-step::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  width: 1px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, #ffd700, transparent);
}

.process-step:last-child::after {
  display: none;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Staggered animations */
.staggered-item {
  opacity: 0;
}

.staggered-item:nth-child(1) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.staggered-item:nth-child(2) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.staggered-item:nth-child(3) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

.staggered-item:nth-child(4) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.7s;
}

/* Counter animation */
.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(25, 25, 35, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.counter-item:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(25, 25, 35, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(35, 35, 45, 0.9);
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
.footer {
  background: linear-gradient(to bottom, #111827, #0f172a);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.05) 50%, transparent 70%);
  filter: blur(50px);
  opacity: 0.7;
  bottom: -150px;
  right: -150px;
  z-index: 0;
}

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

.footer-link:hover {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateX(5px);
}

.social-icon {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.tech-logo {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
  max-width: 100%;
  max-height: 30px;
}

.tech-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Technology card */
.tech-card {
  background: rgba(25, 25, 35, 0.5);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.tech-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tech-card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: #ffd700;
}

/* Case study card */
.case-study-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.case-study-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.case-study-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Reading progress indicator */
.progress-container {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress-bar-indicator {
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffa500);
  width: 0%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 5rem;
    text-align: center;
  }

  .feature-list {
    display: inline-block;
    text-align: left;
  }
  
  .dropdown-menu {
    width: 100%;
    max-width: 600px;
  }
}
