/* Main Content Spacing */
main {
  padding-top: 70px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(52,58,64,0.8)), url('../../images/hero1-modern-office-technology_orig.jpg') center/cover;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 100px,
    rgba(212, 40, 40, 0.02) 100px,
    rgba(212, 40, 40, 0.02) 101px
  );
  animation: distortion 8s infinite linear;
}

@keyframes distortion {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 24px;
  text-shadow: 
    -3px 0 var(--glitch-red),
    3px 0 var(--glitch-cyan),
    0 0 20px rgba(255,255,255,0.3);
  animation: hero-glitch 6s infinite;
}

@keyframes hero-glitch {
  0%, 90%, 100% {
    text-shadow: 
      -3px 0 var(--glitch-red),
      3px 0 var(--glitch-cyan),
      0 0 20px rgba(255,255,255,0.3);
  }
  92% {
    text-shadow: 
      -5px -2px var(--glitch-red),
      5px 2px var(--glitch-cyan),
      0 0 20px rgba(255,255,255,0.3);
    transform: translate(-2px, 1px);
  }
  94% {
    text-shadow: 
      2px -3px var(--glitch-red),
      -2px 3px var(--glitch-cyan),
      0 0 20px rgba(255,255,255,0.3);
    transform: translate(1px, -1px);
  }
  96% {
    text-shadow: 
      -1px 2px var(--glitch-red),
      1px -2px var(--glitch-cyan),
      0 0 20px rgba(255,255,255,0.3);
    transform: translate(1px, 2px);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 32px;
  opacity: 0.9;
  filter: drop-shadow(-1px 0 rgba(255,0,0,0.3)) drop-shadow(1px 0 rgba(0,255,255,0.3));
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Archive Overview Section */
.archive-overview {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
}

.archive-overview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(212, 40, 40, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--glitch-red), var(--accent), var(--glitch-cyan));
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.featured-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(212, 40, 40, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glitch-cyan), transparent);
  animation: card-scan 5s infinite;
}

@keyframes card-scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.featured-card:hover {
  transform: perspective(1000px) rotateX(5deg) scale(1.02);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(212, 40, 40, 0.1),
    inset 0 0 0 1px rgba(0, 255, 255, 0.1);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: all 0.3s ease;
}

.featured-card:hover .card-image {
  filter: grayscale(0%) contrast(1.2);
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.card-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Timeline Section */
.timeline-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
  transform: rotate(15deg);
}

.timeline-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--glitch-red), var(--accent), var(--glitch-cyan));
  transform: translateX(-50%);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  max-width: 450px;
}

.timeline-year {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 
    -2px 0 var(--glitch-red),
    2px 0 var(--glitch-cyan);
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 
    0 0 0 4px var(--bg-primary),
    0 0 0 6px var(--accent),
    0 0 20px rgba(212, 40, 40, 0.4);
  animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
  0%, 100% {
    box-shadow: 
      0 0 0 4px var(--bg-primary),
      0 0 0 6px var(--accent),
      0 0 20px rgba(212, 40, 40, 0.4);
  }
  50% {
    box-shadow: 
      0 0 0 4px var(--bg-primary),
      0 0 0 8px var(--accent),
      0 0 30px rgba(212, 40, 40, 0.6);
  }
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 60px;
  }
  
  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }
  
  .timeline-marker {
    left: 20px;
  }
}

/* Technical Specifications Section */
.specifications-section {
  padding: 80px 0;
  background: var(--bg-card);
  position: relative;
}

.specifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.spec-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--glitch-red) 0%, var(--accent) 50%, var(--glitch-cyan) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(212, 40, 40, 0.08);
}

.spec-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(-1px 0 var(--glitch-red)) drop-shadow(1px 0 var(--glitch-cyan));
}

.spec-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.spec-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.spec-details {
  list-style: none;
  font-size: 0.875rem;
}

.spec-details li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(173, 181, 189, 0.2);
  display: flex;
  justify-content: space-between;
}

.spec-details li:last-child {
  border-bottom: none;
}

/* Data Visualization Section */
.data-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(52,58,64,0.7)), url('../../images/section3-data-center-server_orig.jpg') center/cover;
  background-attachment: fixed;
  color: white;
  position: relative;
  overflow: hidden;
}

.data-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 50px,
    rgba(0, 255, 255, 0.02) 50px,
    rgba(0, 255, 255, 0.02) 52px
  );
  animation: diagonal-scan 10s infinite linear;
}

@keyframes diagonal-scan {
  0% { transform: translateX(-100px) translateY(-100px); }
  100% { transform: translateX(100px) translateY(100px); }
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.data-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.data-card:hover::before {
  left: 100%;
}

.data-card:hover {
  transform: scale(1.05);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 
    0 16px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.data-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 
    -2px 0 var(--glitch-red),
    2px 0 var(--glitch-cyan);
}

.data-label {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.data-description {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Contact Form Section */
.contact-section {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  padding: 40px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--primary);
  text-shadow: 
    -1px 0 var(--glitch-red),
    1px 0 var(--glitch-cyan);
}

.contact-details {
  list-style: none;
  margin-bottom: 32px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(-0.5px 0 var(--glitch-red)) drop-shadow(0.5px 0 var(--glitch-cyan));
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(212, 40, 40, 0.05);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glitch-red), var(--accent), var(--glitch-cyan));
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit-button {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-button::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;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(0, 53, 102, 0.3),
    inset -1px 0 var(--glitch-red),
    inset 1px 0 var(--glitch-cyan);
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Error States */
.form-error {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.2) !important;
}

.error-message {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Loading States */
.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}