/* components.css - Ocean/3D Integrated Components */

/* Container utilities */
.container { 
  max-width: 1280px; 
  margin-inline: auto; 
  padding-inline: 1rem; 
}

.section { 
  padding-block: clamp(2rem, 6vw, 6rem); 
}

/* Enhanced reveal animations with ocean theme */
.reveal { 
  opacity: 1; 
  transform: translateY(0); 
  will-change: opacity, transform; 
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Ocean wave divider */
.wave-divider {
  position: relative;
  height: 2px;
  margin: 2rem 0;
  background: linear-gradient(90deg, 
    transparent, 
    var(--acc-1, #2bd9ff), 
    var(--acc-2, #00b3c8), 
    var(--acc-3, #7aa6ff), 
    transparent
  );
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(43, 217, 255, 0.3);
}

.wave-divider::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(43, 217, 255, 0.1), 
    transparent
  );
  border-radius: 2px;
  animation: waveGlow 3s ease-in-out infinite;
}

@keyframes waveGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Enhanced timeline with ocean depth */
.timeline { 
  position: relative; 
  margin: 2rem 0; 
  padding-left: 2rem; 
}

.timeline::before { 
  content: ""; 
  position: absolute; 
  left: 0.5rem; 
  top: 0; 
  bottom: 0; 
  width: 3px; 
  background: linear-gradient(
    to bottom,
    var(--acc-1, #2bd9ff),
    var(--acc-2, #00b3c8),
    var(--acc-3, #7aa6ff),
    transparent
  );
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(43, 217, 255, 0.3);
}

.timeline-item { 
  position: relative; 
  margin-bottom: 1.5rem; 
  padding-left: 1rem;
}

.timeline-item::before { 
  content: ""; 
  position: absolute; 
  left: -1.8rem; 
  top: 0.3rem; 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  background: radial-gradient(circle, var(--acc-1, #2bd9ff), var(--acc-2, #00b3c8)); 
  box-shadow: 
    0 0 15px rgba(43, 217, 255, 0.6),
    0 0 30px rgba(43, 217, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Ocean-themed card grid */
.card-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem; 
  margin: 2rem 0; 
}

.card { 
  background: rgba(10, 32, 51, 0.6); 
  border: 1px solid rgba(43, 217, 255, 0.2); 
  border-radius: 15px; 
  padding: 1.5rem; 
  backdrop-filter: blur(10px); 
  transition: all 0.3s ease; 
  position: relative; 
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--acc-1, #2bd9ff), 
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.card:hover { 
  transform: translateY(-5px); 
  border-color: rgba(43, 217, 255, 0.5); 
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(43, 217, 255, 0.2);
}

.card:hover::before {
  transform: translateX(100%);
}

.card h3 { 
  color: var(--acc-1, #2bd9ff);
  margin-top: 0; 
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(43, 217, 255, 0.3);
}

.card .meta { 
  color: var(--text-dim, #9fb6c7); 
  font-size: 0.9em; 
  margin-bottom: 1rem;
}

/* Enhanced skeleton with ocean shimmer */
.skeleton { 
  position: relative; 
  overflow: hidden; 
  background: linear-gradient(
    90deg,
    rgba(43, 217, 255, 0.1),
    rgba(43, 217, 255, 0.2),
    rgba(43, 217, 255, 0.1)
  );
  background-size: 200% 100%; 
  animation: shimmer 1.5s infinite; 
  border-radius: 4px;
}

@keyframes shimmer { 
  0% { background-position: 200% 0; } 
  100% { background-position: -200% 0; } 
}

/* Ocean-themed project cards for proposals */
.project-card {
  background: rgba(10, 32, 51, 0.7);
  border: 1px solid rgba(43, 217, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--acc-1, #2bd9ff), 
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 217, 255, 0.4);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(43, 217, 255, 0.15);
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-header h2 {
  color: var(--acc-1, #2bd9ff);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(43, 217, 255, 0.3);
}

.project-content p {
  color: var(--text-0, #e6f3ff);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(43, 217, 255, 0.1);
  color: var(--acc-1, #2bd9ff);
  border: 1px solid rgba(43, 217, 255, 0.3);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(43, 217, 255, 0.2);
}

.metric {
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim, #9fb6c7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.metric-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--acc-1, #2bd9ff);
  text-shadow: 0 0 5px rgba(43, 217, 255, 0.3);
}

/* Print styles */
.print-note { 
  display: none; 
}

@media print {
  body { 
    background: #fff !important; 
    color: #000 !important; 
  }
  
  .print-note { 
    display: block; 
    color: #000 !important; 
  }
  
  a { 
    color: #000 !important; 
    text-decoration: underline !important; 
  }
  
  #nav, img[style*="width: 25%"], img[style*="width: 15%"], canvas[data-hero-canvas] { 
    display: none !important; 
  }
  
  .project-card { 
    break-inside: avoid; 
    border: 1px solid #000 !important; 
    box-shadow: none !important; 
    background: #fff !important; 
    color: #000 !important; 
  }
  
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .timeline-item::before {
    animation: none !important;
  }
  
  .card::before,
  .project-card::before {
    transition: none !important;
  }
  
  .wave-divider::before {
    animation: none !important;
  }
  
  .skeleton {
    animation: none !important;
  }
}
