/* ----------------------------------
   DATACENTER PAGE CSS (V3 LIGHT THEME OVERHAUL)
   Inspired by Yotta & CtrlS infrastructure
---------------------------------- */

/* Base Styles */
.datacenter-page {
  font-family: var(--primary-font);
  background-color: #f8fafc;
  color: #1e293b;
}

.dc-section {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
}

/* Colors & Theme Adaptations */
.bg-1 {
  background-color: #ffffff;
}
.bg-2 {
  background-color: #f8fafc;
}

/* Typography */
.dc-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
}
.dc-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.dc-para {
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Standardized Buttons (Exact padding, size & margins) */
.dc-btn, .dc-btn-outline, .dc-btn-white, .dc-btn-white-outline {
  height: 48px !important;
  line-height: 45px !important;
  padding: 0 28px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

/* Primary Button */
.dc-btn {
  background-color: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(103, 61, 230, 0.2);
}
.dc-btn:hover {
  background-color: #512da8 !important;
  border-color: #512da8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(103, 61, 230, 0.35);
}

/* Outline Button */
.dc-btn-outline {
  background: transparent !important;
  border: 1.5px solid rgba(18, 10, 31, 0.2) !important;
  color: var(--dark) !important;
}
.dc-btn-outline:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(103, 61, 230, 0.35);
}

/* White Buttons for bottom CTA Card */
.dc-btn-white {
  background-color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.dc-btn-white:hover {
  background-color: #f1f5f9 !important;
  border-color: #f1f5f9 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.dc-btn-white-outline {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}
.dc-btn-white-outline:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Hero Section Layout (Modeled after index.php) */
.hero-section {
  position: relative;
  background-color: #ffffff;
  padding: 80px 0 50px;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}
.dc-hero-grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}
.dc-hero-glow {
  position: absolute;
  top: 10%; right: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(103, 61, 230, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.dc-badge-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-green 2s infinite;
}

/* Wrapper */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

/* Hero Content */
.hero-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--titles-font);
  font-weight: 800;
  font-size: clamp(2.01rem, calc(0.5rem + 2.9004vw), 2.75rem);
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero-off {
  color: var(--primary);
}

.hero-text {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Hero List Section */
.hero-list-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hero-ul-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-list-item {
  font-size: 16px;
  position: relative;
  padding-left: 28px;
  color: var(--dark);
  font-weight: 500;
}

.hero-list-item::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 0;
}

/* Hero Buttons & Container gaps */
.hero-button-timer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px !important;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cta-button-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px !important;
  flex-wrap: wrap;
}
@media (max-width: 991px) {
  .cta-button-container {
    justify-content: center;
    margin-top: 15px;
  }
}

.hero-guarantee {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}
.hero-guarantee-text {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46%;
}

/* Interactive Dashboard Console (No Images, Crisp Light Mode!) */
.dc-hero-console {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 45px rgba(0, 16, 51, 0.05);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.console-dots {
  display: flex;
  gap: 6px;
}
.console-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.console-dots .dot-1 { background-color: #ef4444; }
.console-dots .dot-2 { background-color: #f59e0b; }
.console-dots .dot-3 { background-color: #10b981; }
.console-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Metric Display Rows */
.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.console-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  transition: all 0.3s ease;
}
.console-metric:hover {
  background: #f1f5f9;
  border-color: rgba(103, 61, 230, 0.3);
}
.metric-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  font-family: monospace;
}
.text-success { color: #10b981 !important; }
.text-warning { color: #f59e0b !important; }

/* Real-time looking Server Load bars */
.server-bar-container {
  margin-top: 20px;
}
.server-load-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.server-load-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
  width: 78%;
  animation: load-pulse 4s infinite alternate;
}

/* Feature Cards (No blurs, Crisp Light Mode!) */
.dc-feature-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 32px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 16, 51, 0.03);
  overflow: hidden;
  z-index: 2;
}
.dc-feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dc-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 61, 230, 0.3);
  box-shadow: 0 15px 35px rgba(103, 61, 230, 0.08);
}
.dc-feature-card:hover::before {
  transform: scaleX(1);
}
.dc-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(103, 61, 230, 0.08);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}
.dc-feature-card:hover .dc-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}
.dc-feature-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.dc-feature-card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Interactive 9-Layer Security Architecture (Timeline) */
.security-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.security-timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-dot {
  position: absolute;
  top: 30px;
  width: 16px; height: 16px;
  background-color: #ffffff;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}
.timeline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 16, 51, 0.02);
}
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: rgba(103, 61, 230, 0.01);
  box-shadow: 0 10px 25px rgba(103, 61, 230, 0.06);
}
.timeline-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-item:nth-child(odd) .timeline-card h5 {
  justify-content: flex-end;
}
.timeline-num {
  font-size: 11px;
  font-weight: 800;
  background: rgba(103, 61, 230, 0.1);
  color: var(--primary);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.timeline-card p {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Technical CSS/SVG Electrical Path (Power Redundancy) */
.electrical-path-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 15px 45px rgba(0, 16, 51, 0.05);
}
.grid-flow-line {
  stroke-dasharray: 8;
  animation: dash 20s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}
.flow-node-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}
@keyframes pulse-glow {
  0% { r: 5; opacity: 0.5; }
  100% { r: 9; opacity: 0.9; }
}

/* Precision Cooling visualizer component */
.cooling-visualizer {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 15px 45px rgba(0, 16, 51, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rack-diagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.rack-column {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rack-server-slot {
  height: 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}
.rack-server-slot::after {
  content: "";
  width: 4px; height: 4px;
  background-color: #10b981;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
.rack-server-slot:nth-child(3n)::after {
  animation-delay: 0.5s;
}
.rack-server-slot:nth-child(3n+1)::after {
  animation-delay: 1s;
}

/* Airflow Stream Indicators */
.airflow-diagram {
  height: 90px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.airflow-stream-cold {
  position: absolute;
  left: 0; right: 0; bottom: 15px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, transparent 100%);
  animation: stream-left 3s linear infinite;
}
.airflow-stream-hot {
  position: absolute;
  left: 0; right: 0; top: 15px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #ef4444 100%);
  animation: stream-right 3s linear infinite;
}
@keyframes stream-left {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes stream-right {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Network Connection Latency Graph (SVG line) */
.network-latency-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 45px rgba(0, 16, 51, 0.05);
}
.pulse-circle {
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Custom stats tags */
.dc-stats-row {
  display: flex;
  gap: 30px;
}
.dc-stat {
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}
.dc-stat h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
  line-height: 1.1;
}
.dc-stat p {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
}

/* Compliance Certifications */
.dc-cert-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 16, 51, 0.02);
}
.dc-cert-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: rgba(103, 61, 230, 0.02);
  box-shadow: 0 16px 32px rgba(103, 61, 230, 0.1);
}
.cert-icon {
  color: var(--primary);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.dc-cert-box:hover .cert-icon {
  transform: scale(1.1);
}
.cert-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
}

/* Comparison Table (Responsive & Modern) */
.comp-table-container {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 10px 40px rgba(0, 16, 51, 0.02);
}
.dc-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.dc-compare-table th, .dc-compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dc-compare-table th {
  font-weight: 700;
  font-size: 15px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dc-compare-table td {
  font-size: 15px;
  color: #334155;
}
.dc-compare-table td.feature-name {
  font-weight: 600;
  color: var(--dark);
}
.dc-compare-table tr:last-child th, .dc-compare-table tr:last-child td {
  border-bottom: none;
}
.dc-compare-table tr.highlight-row {
  background: rgba(103, 61, 230, 0.02);
}
.comp-badge-rated4 {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

/* Base CTA Consultation Card (Light primary gradient background) */
.dc-cta-card {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.05) 0%, rgba(49, 27, 146, 0.02) 100%) !important;
  border: 1px solid rgba(103, 61, 230, 0.15) !important;
  border-radius: 24px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(103, 61, 230, 0.03);
}
.dc-cta-card h2 {
  color: var(--dark) !important;
}
.dc-cta-card p {
  color: #475569 !important;
}
.dc-cta-mesh {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(103, 61, 230, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

/* Animations */
@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes load-pulse {
  0% { width: 72%; }
  100% { width: 84%; }
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: left !important;
    align-items: flex-start;
    gap: 35px;
  }
  .hero-content,
  .hero-image {
    width: 100%;
  }
  .hero-button-timer {
    justify-content: flex-start !important;
  }
  .hero-section {
    padding: 90px 0 50px;
  }
  .dc-hero-console {
    margin-top: 20px;
  }
  .security-timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding: 15px 15px 15px 40px;
    text-align: left !important;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }
  .timeline-item:nth-child(odd) .timeline-card h5 {
    justify-content: flex-start;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
}

@media (max-width: 768px) {
  .dc-title {
    font-size: 28px;
  }
  .dc-section {
    padding: 50px 0;
  }
  .dc-stats-row {
    flex-direction: column;
    gap: 15px;
  }
  .timeline-card {
    padding: 14px;
  }
  .dc-cta-card {
    padding: 35px 20px !important;
  }
}

/* Z-Index Utility to raise containers above background elements */
.z-index-2 {
  position: relative !important;
  z-index: 2 !important;
}
