/* ============================================
   DigiOps Landing Page - Modern Single Screen
   ============================================ */

/* CSS Variables - DigiOps Color Palette */
:root {
  --digi-blue: #1e6bb8;
  --digi-blue-dark: #154d87;
  --digi-blue-light: #3498db;
  --digi-green: #27ae60;
  --digi-green-light: #2ecc71;
  --digi-dark: #1a2332;
  --digi-darker: #0f1620;
  --digi-gray: #2e3d49;
  --digi-cream: #f5f5f5;
  --digi-orange: #f7951d;
  --digi-orange-light: #ffa940;
  --digi-text: #1a2332;
  --digi-text-muted: #5a6a7a;
  --gradient-primary: linear-gradient(135deg, var(--digi-blue) 0%, var(--digi-green) 100%);
  --gradient-light: linear-gradient(180deg, #e8ecf3 0%, #d4dbe8 50%, #eef1f6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(30, 107, 184, 0.15) 0%, rgba(39, 174, 96, 0.15) 100%);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* ============================================
   Hero Landing Section
   ============================================ */
.hero-landing {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-light);
  overflow: hidden;
}

/* Animated Background Pattern */
.hero-landing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(30, 107, 184, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(39, 174, 96, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(247, 149, 29, 0.08) 0%, transparent 30%);
  animation: bgPulse 8s ease-in-out infinite;
}

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

/* Grid pattern overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(30, 107, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 107, 184, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ============================================
   Floating Particles
   ============================================ */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 10px rgba(30, 107, 184, 0.5), 0 0 20px rgba(30, 107, 184, 0.3);
  animation: particleFloat 15s infinite ease-in-out, particleTwinkle 2s infinite ease-in-out;
}

@keyframes particleTwinkle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.particle:nth-child(1) { left: 10%; top: 20%; animation: particleFloat 12s infinite ease-in-out, particleTwinkle 2s infinite ease-in-out; animation-delay: 0s, 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation: particleFloat 14s infinite ease-in-out, particleTwinkle 2.5s infinite ease-in-out; animation-delay: 2s, 0.3s; }
.particle:nth-child(3) { left: 60%; top: 10%; animation: particleFloat 16s infinite ease-in-out, particleTwinkle 1.8s infinite ease-in-out; animation-delay: 4s, 0.6s; }
.particle:nth-child(4) { left: 80%; top: 70%; animation: particleFloat 13s infinite ease-in-out, particleTwinkle 2.2s infinite ease-in-out; animation-delay: 1s, 0.9s; }
.particle:nth-child(5) { left: 30%; top: 50%; animation: particleFloat 15s infinite ease-in-out, particleTwinkle 1.5s infinite ease-in-out; animation-delay: 3s, 1.2s; }
.particle:nth-child(6) { left: 70%; top: 40%; animation: particleFloat 11s infinite ease-in-out, particleTwinkle 2.8s infinite ease-in-out; animation-delay: 5s, 1.5s; }
.particle:nth-child(7) { left: 90%; top: 30%; animation: particleFloat 17s infinite ease-in-out, particleTwinkle 1.6s infinite ease-in-out; animation-delay: 2.5s, 0.4s; }
.particle:nth-child(8) { left: 5%; top: 60%; animation: particleFloat 14s infinite ease-in-out, particleTwinkle 2.3s infinite ease-in-out; animation-delay: 4.5s, 0.8s; }

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-100px) translateX(50px);
  }
  50% {
    transform: translateY(-50px) translateX(-30px);
  }
  75% {
    transform: translateY(-150px) translateX(20px);
  }
}

/* ============================================
   Decorative Elements
   ============================================ */
.deco-gear {
  position: absolute;
  color: rgba(30, 107, 184, 0.08);
  font-size: 200px;
  animation: gearSpin 30s linear infinite;
  pointer-events: none;
}

.deco-gear-1 {
  top: -50px;
  right: -50px;
  animation-direction: normal;
}

.deco-gear-2 {
  bottom: -80px;
  left: -80px;
  font-size: 250px;
  color: rgba(39, 174, 96, 0.06);
  animation-direction: reverse;
  animation-duration: 40s;
}

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

.deco-line {
  position: absolute;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.2;
  pointer-events: none;
}

.deco-line-1 {
  width: 200px;
  top: 30%;
  left: -100px;
  transform: rotate(-30deg);
  animation: lineGlow 3s ease-in-out infinite;
}

.deco-line-2 {
  width: 150px;
  bottom: 25%;
  right: -75px;
  transform: rotate(30deg);
  animation: lineGlow 3s ease-in-out infinite 1.5s;
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.1; width: 150px; }
  50% { opacity: 0.4; width: 200px; }
}

/* ============================================
   Main Content Container
   ============================================ */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  animation: contentFadeIn 1s ease-out;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Logo
   ============================================ */
.hero-logo {
  margin-bottom: 1.5rem;
  animation: logoFloat 4s ease-in-out infinite;
}

.hero-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(30, 107, 184, 0.3));
  transition: transform 0.3s ease;
}

.hero-logo:hover img {
  transform: scale(1.1);
}

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

/* ============================================
   Hero Text
   ============================================ */
.hero-text {
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.title-line {
  display: block;
  color: var(--digi-text);
  text-shadow: 0 2px 20px rgba(30, 107, 184, 0.15);
}

.title-line.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
  background-size: 200% 200%;
}

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

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--digi-orange);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(247, 149, 29, 0.3);
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--digi-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-cards {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 107, 184, 0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  width: 220px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  animation: cardSlideUp 0.8s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(30, 107, 184, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(30, 107, 184, 0.1);
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(30, 107, 184, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(30, 107, 184, 0.3);
  transition: all 0.4s ease;
}

.feature-card:hover .card-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 40px rgba(30, 107, 184, 0.4);
}

/* Image-based icons */
.card-icon-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.card-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  transition: all 0.4s ease;
}

.feature-card:hover .card-icon-img img {
  transform: scale(1.15);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
}

.feature-card h3 {
  color: var(--digi-text);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-card p {
  color: var(--digi-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================
   CTA Buttons
   ============================================ */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(30, 107, 184, 0.4),
    0 0 0 0 rgba(30, 107, 184, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 15px 40px rgba(30, 107, 184, 0.5),
    0 0 0 4px rgba(30, 107, 184, 0.2);
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.btn-secondary {
  background: transparent;
  color: var(--digi-text);
  border: 2px solid rgba(30, 107, 184, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(30, 107, 184, 0.1);
  border-color: var(--digi-blue);
  transform: translateY(-3px);
  color: var(--digi-text);
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 107, 184, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--digi-text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.trust-item i {
  font-size: 1.2rem;
  color: var(--digi-green);
}

.trust-item:hover {
  color: var(--digi-text);
  transform: translateY(-2px);
}

.trust-item:hover i {
  color: var(--digi-green-light);
}

/* ============================================
   Feature Cards as Links
   ============================================ */
a.feature-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.feature-card:hover {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   Footer Links
   ============================================ */
.hero-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-footer a {
  color: var(--digi-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.hero-footer a:hover {
  color: var(--digi-blue);
  text-decoration: none;
}

.footer-divider {
  color: rgba(30, 107, 184, 0.3);
  font-size: 0.85rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .hero-content {
    padding: 1.5rem;
  }

  .hero-logo img {
    width: 90px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .feature-cards {
    gap: 1rem;
  }

  .feature-card {
    width: 100%;
    max-width: 280px;
    padding: 1.5rem 1rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .card-icon-img {
    width: 70px;
    height: 70px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .trust-bar {
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.8rem;
  }

  .deco-gear {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-landing {
    min-height: 100dvh;
  }

  .hero-logo img {
    width: 80px;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .feature-card {
    padding: 1.25rem 1rem;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }
}

/* ============================================
   Accessibility & Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .hero-landing {
    background: #fff;
    min-height: auto;
  }

  .particles,
  .deco-gear,
  .deco-line,
  .hero-overlay {
    display: none;
  }

  .hero-title,
  .hero-subtitle,
  .feature-card h3 {
    color: #000;
  }
}
