/* ============================================
   DigiOps Security Overview - Toolbox Style
   ============================================ */
:root {
  --sec-blue: #1e6bb8;
  --sec-green: #27ae60;
  --sec-text: #1a2332;
  --sec-text-muted: #5a6a7a;
  --gradient-primary: linear-gradient(135deg, var(--sec-blue) 0%, var(--sec-green) 100%);
}

/* Page background - matches toolbox */
.security-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8ecf3 0%, #eef1f6 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.security-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(30, 107, 184, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(39, 174, 96, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.security-page::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(30, 107, 184, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 107, 184, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.security-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1rem;
}

/* Header */
.security-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: secFadeDown 0.8s ease-out;
}

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

.security-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.security-header p {
  color: var(--sec-text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Card */
.sec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 107, 184, 0.15);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: secCardIn 0.6s ease-out backwards;
}

.sec-card:nth-child(1) { animation-delay: 0.1s; }
.sec-card:nth-child(2) { animation-delay: 0.15s; }
.sec-card:nth-child(3) { animation-delay: 0.2s; }
.sec-card:nth-child(4) { animation-delay: 0.25s; }
.sec-card:nth-child(5) { animation-delay: 0.3s; }
.sec-card:nth-child(6) { animation-delay: 0.35s; }

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

/* Gradient top bar on hover */
.sec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.sec-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(30, 107, 184, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 0 50px rgba(30, 107, 184, 0.1);
  text-decoration: none;
  color: inherit;
}

/* Card icon/image area */
.sec-card-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.sec-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
  pointer-events: none;
}

.sec-card-visual img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.sec-card:hover .sec-card-visual img {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.2));
}

/* Remixicon icons */
.sec-card-visual .sec-icon {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(30, 107, 184, 0.2));
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.sec-card:hover .sec-card-visual .sec-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 18px rgba(30, 107, 184, 0.3));
}

/* Card content */
.sec-card-body {
  padding: 1.25rem 2rem 2.5rem;
  flex: 1;
}

.sec-card-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sec-text);
  margin-bottom: 0.5rem;
}

.sec-card-body p {
  color: var(--sec-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Arrow indicator */
.sec-card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(30, 107, 184, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sec-blue);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.sec-card:hover .sec-card-arrow {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateX(5px);
}

/* Contact card special styling */
.sec-card--contact {
  background: rgba(26, 35, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.sec-card--contact:hover {
  background: rgba(26, 35, 50, 0.95);
  border-color: rgba(30, 107, 184, 0.4);
}

.sec-card--contact .sec-card-body h2 {
  color: #fff;
}

.sec-card--contact .sec-card-body p {
  color: rgba(255, 255, 255, 0.8);
}

.sec-card--contact .sec-card-arrow {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sec-card--contact:hover .sec-card-arrow {
  background: var(--gradient-primary);
}

/* Glow effect */
.sec-card-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(30, 107, 184, 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .security-page {
    padding: 1.5rem 1rem;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sec-card-visual {
    height: 120px;
    padding: 1.5rem;
  }

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

  .sec-card-visual .sec-icon {
    font-size: 3rem;
  }

  .sec-card-body {
    padding: 1rem 1.5rem 2rem;
  }

  .sec-card-body h2 {
    font-size: 1.15rem;
  }
}
