/* kivilcimlab.com */

:root {
  /* Brand Palette */
  --brick: #922e00;
  --aegean: #0083b7;
  --petrol: #07344c;
  --pecan: #2f1e16;
  --cotton: #f7f7f0;
  --slate: #4f5663;
  --slate-light: #9ba3b3;

  /* Theme Tokens */
  --bg: #09090b;
  /* Grained Charcoal / Deep Black */
  --card-bg: rgba(255, 255, 255, 0.015);
  --card-hover-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.15);

  --text-primary: var(--cotton);
  --text-secondary: var(--slate-light);

  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Global Cursor Glow */
.global-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, color-mix(in srgb, var(--pecan) 40%, transparent) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  margin-top: -300px;
  margin-left: -300px;
}



/* Base Layout */
.lab-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8rem 5% 6rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Generic Glass Card */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2.5rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.glass-card:hover {
  border-color: var(--card-hover-border);
  background: var(--card-hover-bg);
}

/* Header / Hero */
header {
  margin-bottom: 6rem;
  animation: fadeUp 1s var(--transition-slow) forwards;
  position: relative;
}

.hero-card {
  padding: 3.5rem;
  color: var(--text-secondary);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 600;
}

.hero-divider {
  width: 50px;
  height: 3px;
  background-color: var(--brick);
  margin: 1.5rem 0;
  border-radius: 2px;
}

.hero-subtitle {
  font-family: 'Papyrus', fantasy;
  font-size: 1.75rem;
  color: var(--text-secondary);
  font-weight: bold;
  line-height: 1.4;
}

.hero-subtitle strong {
  font-weight: bold;
  color: var(--text-secondary);
}

.hero-subtitle-second {
  display: inline-block;
  margin-top: 0.75rem;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Restrained Buttons */
.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.glass-btn svg {
  width: 14px;
  height: 14px;
  transition: stroke var(--transition-fast), transform var(--transition-fast);
  stroke: var(--text-secondary);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.glass-btn:hover svg {
  stroke: var(--aegean);
  transform: translate(2px, -2px);
}

.glass-btn.hover-brick:hover {
  border-color: var(--brick);
  color: var(--text-primary);
}

/* Projects Timeline */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.year-section {
  position: relative;
}

.year-title {
  color: var(--slate);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.year-title::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background: var(--card-border);
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Project Cards */
.card-content {
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.project-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Brand Status Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--aegean);
  animation: pulseDot 2s infinite;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Footer */
.lab-footer {
  margin-top: 8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate);
  font-size: 0.9rem;
}

.lab-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 131, 183, 0.6);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 131, 183, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 131, 183, 0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--slate);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cotton);
}

@media (max-width: 560px) {
  .hero-card {
    padding: 2rem 1.25rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-divider {
    margin: 1.25rem auto;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .hero-intro {
    margin: 0 auto 2rem;
    font-size: 1rem;
  }

  .hero-links {
    justify-content: center;
  }

  .lab-footer {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }

  .lab-footer .footer-links {
    justify-content: center;
  }

  .project-header {
    align-items: flex-start;
  }
}