/* ============================================
   DevOpsSchool.cn — Custom Styles
   World-Class Training & Consulting Website
   ============================================ */

/* === CSS Variables === */
:root {
  --primary: #1a365d;
  --primary-light: #1e4d8c;
  --secondary: #0d9488;
  --secondary-light: #14b8a6;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --dark: #0f172a;
  --light: #f8fafc;
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #1e4d8c 50%, #0d9488 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1a365d 30%, #1e4d8c 60%, #0d9488 100%);
  --gradient-cta: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
}

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

/* === Selection === */
::selection {
  background-color: var(--secondary);
  color: white;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-light);
}

/* === Glass Morphism === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === Gradient Text === */
.gradient-text {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* === Animated Gradient Border === */
.gradient-border {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--secondary), var(--primary-light), var(--accent)) border-box;
  border: 2px solid transparent;
}

.gradient-border-dark {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(var(--dark), var(--dark)) padding-box,
              linear-gradient(135deg, var(--secondary), var(--primary-light), var(--accent)) border-box;
  border: 2px solid transparent;
}

/* === Floating Animation === */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-30px) translateX(15px); }
  50% { transform: translateY(-15px) translateX(-10px); }
  75% { transform: translateY(-25px) translateX(5px); }
}

@keyframes float-slower {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(20px) translateX(-20px); }
  66% { transform: translateY(10px) translateX(15px); }
}

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

.animate-float-slow {
  animation: float-slow 10s ease-in-out infinite;
}

.animate-float-slower {
  animation: float-slower 14s ease-in-out infinite;
}

/* === Marquee Animation === */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.marquee-container:hover .animate-marquee {
  animation-play-state: paused;
}

/* === Pulse Glow === */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(13, 148, 136, 0.3); }
  50% { box-shadow: 0 0 40px rgba(13, 148, 136, 0.6); }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* === Shimmer Effect === */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === Icon Circle === */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-circle-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

/* === Section Divider === */
.section-divider {
  height: 4px;
  background: var(--gradient-primary);
  width: 80px;
  border-radius: 2px;
}

.section-divider-center {
  margin: 0 auto;
  height: 4px;
  background: var(--gradient-primary);
  width: 80px;
  border-radius: 2px;
}

/* === Navbar === */
.navbar-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Hero Shapes === */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

/* === Trust Badge === */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

/* === Client Logo Filter === */
.client-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* === Timeline === */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary-light));
  transform: translateX(-50%);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--secondary);
}

/* === Stat Counter === */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* === Domain Card === */
.domain-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.domain-card:hover {
  transform: translateY(-4px);
}

.domain-card.active {
  border-color: var(--secondary) !important;
  background: rgba(13, 148, 136, 0.05);
}

/* === Testimonial Card === */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

/* === Mobile Nav Overlay === */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* === Swiper Customization === */
.swiper-pagination-bullet-active {
  background: var(--secondary) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--secondary) !important;
}

/* === Responsive Helpers === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* === Print Styles === */
@media print {
  .no-print {
    display: none !important;
  }
}

/* === Focus Styles for Accessibility === */
*:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Loading Skeleton === */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
