/* ------------------
   Tech2Space: CINEMATIC DARK UI
   Theme: Avant-Garde, Immersive, Non-Standard
------------------ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #030303;
  --bg-panel: #0A0A0A;
  --text-primary: #EDEDED;
  --text-secondary: #888888;
  --accent: #FFFFFF;
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.2);
  --glass: rgba(10, 10, 10, 0.6);
  --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
  /* Custom cursor feel implies controlled experience */
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Background Grain Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Typography Overhaul */
h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  /* Massive responsive text */
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.mono-tag {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-bright);
  padding: 6px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

/* Layout Utilities */
.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

.spacer-lg {
  height: 15vh;
}

.spacer-md {
  height: 10vh;
}

/* ------------------
   HEADER: Floating Island
------------------ */
nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  z-index: 100;
  transition: all 0.4s var(--easing);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--easing);
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* ------------------
   HERO: Asymmetric & Bold
------------------ */
.hero {
  padding-top: 25vh;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 span {
  display: block;
}

.hero h1 span.indent {
  margin-left: 15vw;
  color: var(--text-secondary);
}

.hero-footer {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  border-top: 1px solid var(--border-dim);
  padding-top: 32px;
}

.scroll-indicator {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
  display: inline-block;
  cursor: pointer;
  transition: color 0.3s;
}

.scroll-indicator:hover {
  color: var(--text-primary);
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(12px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ------------------
   TECH STACK: Marquee
------------------ */
.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  background: var(--bg-panel);
  padding: 40px 0;
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  gap: 80px;
  animation: marquee 30s linear infinite;
  padding-right: 80px;
}

.marquee-item {
  font-family: 'Space Grotesk';
  font-size: 24px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ------------------
   PROCESS: Workflow
------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dim);
  /* Gap color */
  border: 1px solid var(--border-dim);
  margin-top: 60px;
}

.process-step {
  background: var(--bg-deep);
  padding: 60px 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--border-dim);
  display: inline-block;
  border-radius: 100px;
  width: fit-content;
}

.process-step h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

/* ------------------
   SECTIONS: Bento Grids & Sticky Cards
------------------ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.bento-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  padding: 40px;
  border-radius: 24px;
  transition: transform 0.5s var(--easing), border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  /* Ensure left alignment */
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.card-num {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: block;
}

.bento-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 90%;
}

/* ------------------
   PROJECTS: Horizontal Strip
------------------ */
.project-strip {
  border-top: 1px solid var(--border-dim);
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s;
  align-items: center;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.project-year {
  font-family: 'Space Grotesk';
  font-size: 18px;
  color: var(--text-secondary);
}

.project-content h3 {
  font-size: 32px;
  margin-bottom: 8px;
}

.project-tags {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.tag {
  font-size: 11px;
  border: 1px solid var(--border-dim);
  padding: 4px 12px;
  border-radius: 100px;
  color: var(--text-secondary);
}

/* ------------------
   CONTACT FORM
------------------ */
.contact-form {
  max-width: 600px;
  margin-top: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--text-secondary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: var(--text-primary);
  color: var(--bg-deep);
  border: none;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #fff;
}


/* ------------------
   CTA: Big Button
------------------ */
.big-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 0;
}

.cta-btn {
  font-family: 'Space Grotesk';
  font-size: 5vw;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 8px;
  transition: all 0.3s var(--easing);
}

.cta-btn:hover {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ------------------
   FOOTER
------------------ */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 12px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.footer-col a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: span 1;
  }

  .hero h1 span.indent {
    margin-left: 0;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-links {
    display: none;
  }

  /* Hide nav on mobile for simplicity */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* ------------------
   EFFECTS: Cursor & Animations
------------------ */

  /* Hide default cursor on desktops */
  @media (min-width: 1024px) {

    body,
    a,
    button,
    .bento-card {
      cursor: none !important;
    }
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
  }

  .cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
  }

  .cursor-outline.hover {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    backdrop-filter: blur(2px);
  }

  /* Scroll Reveal States */
  .animate-text,
  .bento-card,
  .project-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .animate-text.visible,
  .bento-card.visible,
  .project-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
}