/* LafitteWare LLC - Ocean/3D Integrated Design */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-0, #04121f);
  color: var(--text-0, #e6f3ff);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ocean gradient overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0,179,200,0.12), transparent 60%),
    radial-gradient(120% 80% at 80% 100%, rgba(122,166,255,0.08), transparent 60%);
}

/* Main container with 3D integration */
#all {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  z-index: 1;
}

#container {
  background: rgba(10, 32, 51, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(43, 217, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(43, 217, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Ocean wave effect on container */
#container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--acc-1, #2bd9ff), 
    var(--acc-2, #00b3c8), 
    var(--acc-3, #7aa6ff), 
    transparent
  );
  animation: waveFlow 3s ease-in-out infinite;
}

@keyframes waveFlow {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Header with nautical styling */
#header {
  background: linear-gradient(135deg, 
    rgba(0, 179, 200, 0.1), 
    rgba(122, 166, 255, 0.05)
  );
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

#header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://lafitteware.neocities.org/bluemirror.jpg') center/cover;
  opacity: 0.1;
  z-index: -1;
}

#header h1 {
  color: var(--text-0, #e6f3ff);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 
    0 0 20px rgba(43, 217, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

#header img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(43, 217, 255, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

#header img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(43, 217, 255, 0.6));
}

/* Navigation with nautical glow effects */
#nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#nav a {
  color: var(--text-0, #e6f3ff);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(43, 217, 255, 0.1);
  border: 1px solid rgba(43, 217, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(43, 217, 255, 0.2), 
    transparent
  );
  transition: left 0.5s ease;
}

#nav a:hover {
  background: rgba(43, 217, 255, 0.2);
  border-color: var(--acc-1, #2bd9ff);
  box-shadow: 
    0 0 20px rgba(43, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

#nav a:hover::before {
  left: 100%;
}

/* Content area with 3D depth */
#content {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
  position: relative;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(43, 217, 255, 0.1);
}

#content h2 {
  color: var(--acc-1, #2bd9ff);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(43, 217, 255, 0.3);
  position: relative;
}

#content h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--acc-1, #2bd9ff), transparent);
}

#content h3 {
  color: var(--acc-2, #00b3c8);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 1.5rem 0 1rem 0;
  text-shadow: 0 0 8px rgba(0, 179, 200, 0.3);
}

#content p {
  color: var(--text-0, #e6f3ff);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

#content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

#content li {
  color: var(--text-0, #e6f3ff);
  margin-bottom: 0.5rem;
  position: relative;
}

#content li::before {
  content: "→";
  color: var(--acc-1, #2bd9ff);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
  text-shadow: 0 0 5px rgba(43, 217, 255, 0.5);
}

/* Button styling with nautical effects */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(43, 217, 255, 0.2), 
    rgba(0, 179, 200, 0.1)
  );
  color: var(--text-0, #e6f3ff);
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid rgba(43, 217, 255, 0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(43, 217, 255, 0.1);
}

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

.btn:hover {
  background: linear-gradient(135deg, 
    rgba(43, 217, 255, 0.3), 
    rgba(0, 179, 200, 0.2)
  );
  border-color: var(--acc-1, #2bd9ff);
  box-shadow: 
    0 6px 25px rgba(43, 217, 255, 0.3),
    0 0 30px rgba(43, 217, 255, 0.2);
  transform: translateY(-2px);
}

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

/* Timeline with ocean wave styling */
.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 10px 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; }
}

/* Card grid for projects */
.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-bottom: 0.5rem;
  font-size: 1.2rem;
}

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

/* Skeleton loading animation */
.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; }
}

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

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  #container {
    background: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
  
  .print-note {
    display: block;
    color: #000 !important;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  #nav, canvas[data-hero-canvas], body::before {
    display: none !important;
  }
  
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  #all {
    padding: 1rem;
  }
  
  #container {
    padding: 1.5rem;
  }
  
  #header h1 {
    font-size: 2rem;
  }
  
  #nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  #nav a {
    text-align: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  #all {
    padding: 0.5rem;
  }
  
  #container {
    padding: 1rem;
  }
  
  #header h1 {
    font-size: 1.5rem;
  }
  
  #content {
    padding: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .timeline-item::before {
    animation: none !important;
  }
  
  .card::before {
    transition: none !important;
  }
  
  #container::before {
    animation: none !important;
  }
}