/* ------------------
   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: 3px solid var(--border-dim);
  border-radius: 100px;
  z-index: 100 !important;
  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(-50%);
  }
}

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

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

.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);
  grid-auto-rows: minmax(240px, auto);
  gap: 24px;
  margin-top: 60px;
}

.row-span-2 {
  grid-row: span 2;
}

.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-3 {
  grid-column: span 3;
}

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

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

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

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

.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);
}

/* ------------------
   BENTO GRID LAYOUT
------------------ */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
  }

  .bento-card {
    grid-column: span 1 !important;
  }
}

.services-section {
  margin-top: 80px;
}

.bento-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 24px;
  margin: 60px 0;
}

.bento-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 20px;
}

.bento-item:hover::after {
  opacity: 1;
}

.bento-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Large bento items - span 2 columns */
.bento-large {
  grid-column: span 2;
}

.row-span-2 {
  grid-row: span 2;
}

.bento-large .bento-content h3 {
  font-size: 32px;
}

.bento-large .bento-content p {
  font-size: 15px;
}

.bento-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-icon {
  font-size: 32px;
  opacity: 0.9;
}

.bento-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

.bento-content h3 {
  font-size: 26px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.bento-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin: 0;
}

.bento-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Service-specific accent colors */
.bento-ai .bento-accent {
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.4), transparent);
}

.bento-web .bento-accent {
  background: linear-gradient(90deg, transparent, rgba(100, 255, 200, 0.4), transparent);
}

.bento-mobile .bento-accent {
  background: linear-gradient(90deg, transparent, rgba(255, 150, 100, 0.4), transparent);
}

.bento-custom .bento-accent {
  background: linear-gradient(90deg, transparent, rgba(200, 100, 255, 0.4), transparent);
}

.bento-design .bento-accent {
  background: linear-gradient(90deg, transparent, rgba(255, 200, 100, 0.4), transparent);
}

.bento-seo .bento-accent {
  background: linear-gradient(90deg, transparent, rgba(100, 255, 150, 0.4), transparent);
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
  .bento-grid-new {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }

  .bento-large {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .bento-item {
    padding: 28px;
    font-size: 13px;
  }

  .bento-icon {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .bento-grid-new {
    gap: 12px;
    margin: 40px 0;
  }

  .bento-item {
    padding: 20px;
  }

  .bento-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .bento-content p {
    font-size: 12px;
    line-height: 1.6;
  }
}

/* ------------------
   PORTFOLIO GRID
------------------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 80px;
  margin-top: 60px;
}

.portfolio-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  background: var(--bg-deep);
  /* Optional: ensures content stands out */
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
  border-color: var(--text-secondary);
  transform: translateY(-4px);
}

.portfolio-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  /* border: 1px solid var(--border-dim); Removed to avoid double border */
  aspect-ratio: 16/10;
  position: relative;
  background: var(--bg-panel);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  opacity: 0.9;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
  opacity: 1;
}

.portfolio-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-content h3 {
  color: var(--accent);
}

.portfolio-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ------------------
   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: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.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;
}

/* ------------------
   CONTACT PAGE
------------------ */
.contact-hero {
  min-height: 80vh;
  padding-top: 20vh;
}

.contact-email-section {
  margin-top: 80px;
}

.contact-label {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.contact-email-link {
  font-size: 32px;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 8px;
  display: inline-block;
  transition: all 0.3s var(--easing);
}

.contact-email-link:hover {
  border-color: var(--text-primary);
  color: var(--accent);
}

.contact-location-section {
  margin-top: 60px;
}

.contact-location {
  font-size: 24px;
  line-height: 1.6;
}

/* Social Links */
.social-links {
  margin-top: 40px;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: transparent;
}

.social-icon:hover {
  border-color: var(--border-bright);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon.linkedin:hover {
  color: #0A66C2;
}

.social-icon.instagram:hover {
  color: #E4405F;
}

/* Alert Messages */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alert-success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #90EE90;
}

.alert-error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #FF6B6B;
}

/* ------------------
   PORTFOLIO PAGE
------------------ */
.portfolio-hero {
  min-height: 60vh;
  padding-top: 20vh;
}

.portfolio-intro {
  margin-top: 40px;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

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

/* ------------------
   ABOUT PAGE
------------------ */
.about-hero {
  min-height: 60vh;
  padding-top: 20vh;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.manifesto-title {
  font-size: 32px;
  line-height: 1.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.stat-card {
  grid-column: span 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-number {
  font-size: 60px;
  margin-bottom: 0;
}

.stat-label {
  margin-top: 16px;
}

/* ------------------
   SERVICES PAGE
------------------ */
.services-hero {
  min-height: 60vh;
  padding-top: 20vh;
}

.services-intro {
  margin-top: 40px;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 18px;
}

.service-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 12px;
  line-height: 1.6;
}

/* ------------------
   LEGAL PAGES
------------------ */
.legal-hero {
  min-height: 60vh;
  padding-top: 20vh;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.legal-card-title {
  font-size: 22px;
}

.legal-card-text {
  margin-top: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-link {
  color: var(--text-primary);
  text-decoration: underline;
}

.legal-footer-note {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-dim);
}

.legal-date {
  color: var(--text-secondary);
  font-size: 13px;
}


/* ------------------
   MOBILE MENU
------------------ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--easing);
  border-radius: 2px;
}

.mobile-menu-btn:hover span {
  background: var(--accent);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--easing), visibility 0.4s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.mobile-menu-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-size: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--easing);
  line-height: 1;
  padding: 0;
}

.mobile-menu-close:hover {
  background: var(--text-primary);
  color: var(--bg-deep);
  border-color: var(--text-primary);
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.mobile-nav-links a {
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: all 0.3s var(--easing);
  position: relative;
  padding: 8px 0;
}

.mobile-nav-links a:hover {
  color: var(--accent);
  transform: translateX(10px);
}

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

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

/* ------------------
   VISION SECTION
------------------ */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vision-title {
  font-size: 40px;
  line-height: 1.2;
}

.vision-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


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

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

  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: 1;
  transform: translateY(0);
  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);
}

/* ------------------
   RESPONSIVE DESIGN
------------------ */

/* Tablet Styles */
@media (max-width: 1024px) {
  .wrapper {
    padding: 0 6vw;
  }

  nav {
    width: 94%;
    padding: 14px 24px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
  }

  h2 {
    font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  }

  .hero {
    padding-top: 20vh;
    min-height: 85vh;
  }

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

  .hero-footer {
    margin-top: 60px;
    gap: 32px;
  }

  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

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

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

  .process-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .process-step {
    padding: 50px 32px;
    min-height: 280px;
  }

  .project-item {
    grid-template-columns: 1fr 2fr;
    padding: 50px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-links {
    gap: 40px;
  }

  .vision-grid {
    gap: 32px;
  }

  .vision-title {
    font-size: 32px;
  }

  .about-hero {
    min-height: 55vh;
    padding-top: 18vh;
  }

  .manifesto-grid {
    gap: 48px;
  }

  .manifesto-title {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 48px;
  }

  .contact-hero {
    min-height: 75vh;
    padding-top: 18vh;
  }

  .contact-email-section {
    margin-top: 60px;
  }

  .contact-email-link {
    font-size: 28px;
  }

  .contact-form {
    max-width: 100%;
  }

  .portfolio-hero {
    min-height: 55vh;
    padding-top: 18vh;
  }

  .portfolio-intro {
    margin-top: 32px;
    max-width: 100%;
    font-size: 16px;
  }

  .project-item {
    grid-template-columns: 1fr 2fr;
    padding: 50px 0;
  }

  /* Services & Legal */
  .services-intro {
    font-size: 16px;
    margin-top: 32px;
  }

  .legal-grid {
    gap: 20px;
  }

  .legal-card-title {
    font-size: 20px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .wrapper {
    padding: 0 5vw;
  }

  nav {
    width: 90%;
    padding: 12px 20px;
    top: 16px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav-links a {
    font-size: 28px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .mono-tag {
    font-size: 10px;
    padding: 5px 10px;
  }

  .hero {
    padding-top: 18vh;
    min-height: 80vh;
  }

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

  .hero-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .hero-footer div:last-child {
    text-align: left;
  }

  .hero-footer p {
    font-size: 16px !important;
    max-width: 100% !important;
  }

  .spacer-lg {
    height: 10vh;
  }

  .spacer-md {
    height: 6vh;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

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

  .bento-card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .bento-card h3 {
    font-size: 22px;
  }

  .bento-card p {
    font-size: 14px;
    max-width: 100%;
  }

  .card-num {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .marquee-wrapper {
    padding: 32px 0;
  }

  .marquee-content {
    gap: 60px;
    padding-right: 60px;
  }

  .marquee-item {
    font-size: 18px;
  }

  .process-grid {
    margin-top: 40px;
  }

  .process-step {
    padding: 40px 24px;
    min-height: 240px;
  }

  .process-step h3 {
    font-size: 20px;
  }

  .step-num {
    font-size: 12px;
    padding: 3px 10px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
  }

  .project-year {
    font-size: 14px;
  }

  .project-content h3 {
    font-size: 24px;
  }

  .project-tags {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .tag {
    font-size: 10px;
    padding: 3px 10px;
  }

  .big-cta {
    padding: 60px 0;
  }

  .cta-btn {
    font-size: 8vw;
  }

  footer {
    padding: 60px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-col {
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .footer-col h4 {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .footer-col a {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .contact-form {
    max-width: 100%;
  }

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

  .form-control {
    padding: 14px;
    font-size: 14px;
  }

  .btn-submit {
    width: 100%;
    padding: 14px 28px;
  }

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

  .vision-title {
    font-size: 26px;
  }

  .vision-content p {
    font-size: 16px !important;
  }

  .about-hero {
    min-height: 50vh;
    padding-top: 16vh;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .manifesto-title {
    font-size: 24px;
  }

  .manifesto-content p {
    font-size: 16px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .stat-number {
    font-size: 48px;
  }

  .stat-label {
    font-size: 10px;
  }

  .contact-hero {
    min-height: 70vh;
    padding-top: 16vh;
  }

  .contact-email-section {
    margin-top: 48px;
  }

  .contact-email-link {
    font-size: 22px;
    word-break: break-all;
  }

  .contact-location {
    font-size: 18px;
  }

  .contact-location-section {
    margin-top: 48px;
  }

  .portfolio-hero {
    min-height: 50vh;
    padding-top: 16vh;
  }

  .portfolio-intro {
    margin-top: 24px;
    font-size: 16px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
  }

  .project-year {
    font-size: 14px;
  }

  .project-content h3 {
    font-size: 24px;
  }

  .project-description {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .services-hero,
  .legal-hero {
    min-height: 50vh;
    padding-top: 16vh;
  }

  .services-intro {
    font-size: 16px;
    margin-top: 24px;
    max-width: 100%;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-card-title {
    font-size: 20px;
  }

  .legal-footer-note {
    padding: 32px 0;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .wrapper {
    padding: 0 4vw;
  }

  nav {
    padding: 10px 16px;
  }

  .logo {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

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

  .hero {
    padding-top: 16vh;
  }

  .bento-card {
    padding: 24px 20px;
  }

  .bento-card h3 {
    font-size: 20px;
  }

  .process-step {
    padding: 32px 20px;
    min-height: 200px;
  }

  .process-step h3 {
    font-size: 18px;
  }

  .marquee-item {
    font-size: 16px;
  }

  .cta-btn {
    font-size: 10vw;
  }

  .vision-title {
    font-size: 22px;
  }

  .vision-content p {
    font-size: 15px !important;
  }

  .mobile-nav-links a {
    font-size: 24px;
    gap: 24px;
  }

  .mobile-menu-close {
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .about-hero {
    min-height: 45vh;
    padding-top: 14vh;
  }

  .manifesto-title {
    font-size: 20px;
  }

  .manifesto-content p {
    font-size: 15px !important;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 9px;
  }

  .contact-hero {
    min-height: 65vh;
    padding-top: 14vh;
  }

  .contact-email-section {
    margin-top: 40px;
  }

  .contact-email-link {
    font-size: 18px;
    word-break: break-all;
  }

  .contact-label {
    font-size: 11px;
  }

  .contact-location {
    font-size: 16px;
  }

  .contact-location-section {
    margin-top: 40px;
  }

  .portfolio-hero {
    min-height: 45vh;
    padding-top: 14vh;
  }

  .portfolio-intro {
    margin-top: 20px;
    font-size: 15px;
  }

  .project-item {
    padding: 32px 0;
  }

  .project-content h3 {
    font-size: 20px;
  }

  .project-description {
    font-size: 14px;
  }

  /* Services & Legal */
  .services-hero,
  .legal-hero {
    min-height: 45vh;
    padding-top: 14vh;
  }

  .services-intro {
    font-size: 15px;
    margin-top: 20px;
  }

  .service-description {
    font-size: 14px;
  }

  .legal-card-title {
    font-size: 18px;
  }

  .legal-card-text {
    font-size: 14px;
  }
}

/* ------------------
   CUSTOM CURSOR
------------------ */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  display: none;
  /* Hidden by default for mobile */
}

@media (pointer: fine) {

  .cursor-dot,
  .cursor-outline {
    display: block;
  }
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--text-primary);
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 1px solid var(--text-primary);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effect */
body:hover .cursor-outline {
  opacity: 1;
}

/* Hide default cursor only on devices with pointer */
@media (pointer: fine) {
  /* body {
    cursor: none;
  } */

  /* We'll just show the custom cursor on top, maybe keeping default is safer for UX unless requested to hide */
}

/* When hovering over links/buttons */
body.hovering .cursor-outline {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
}

/* ------------------
   FEATURE DECK (Premium Redesign)
------------------ */
.feature-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 60px;
  justify-content: center;
}

.feature-card {
  flex: 1 1 calc(25% - 24px);
  min-width: 280px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Hover State */
.feature-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Large Watermark Number */
.feature-card .watermark-num {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s;
  z-index: 0;
}

.feature-card:hover .watermark-num {
  color: rgba(255, 255, 255, 0.06);
  transform: scale(1.05) translate(-10px, 10px);
}

/* Icon Container */
.feature-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  z-index: 1;
  position: relative;
}

.feature-card:hover .feature-icon-box {
  background: var(--text-primary);
  border-color: var(--text-primary);
  transform: rotate(-5deg);
}

.feature-card:hover .feature-icon-box svg {
  stroke: var(--bg-deep);
  /* Invert icon color on hover */
}

/* Content */
.feature-content {
  position: relative;
  z-index: 1;
}

.feature-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.feature-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.feature-card:hover .feature-content p {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 1100px) {
  .feature-card {
    flex: 1 1 calc(50% - 24px);
  }
}

@media (max-width: 600px) {
  .feature-card {
    flex: 1 1 100%;
  }
}

/* ------------------
   PAIN POINTS (Interactive List)
------------------ */
.pain-list {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  border-top: 1px solid var(--border-dim);
}

.pain-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-dim);
  transition: background-color 0.3s;
  cursor: default;
  position: relative;
}

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

.pain-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  color: var(--text-secondary);
  padding-top: 8px;
  /* Align with text */
}

.pain-header h3 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: transform 0.3s var(--easing);
}

.pain-item:hover .pain-header h3 {
  transform: translateX(10px);
  color: var(--accent);
}

.pain-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
}

/* Status Indicator */
.pain-status {
  position: absolute;
  right: 0;
  top: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s var(--easing);
}

.pain-item:hover .pain-status {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Pain List */
@media (max-width: 900px) {
  .pain-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pain-num {
    margin-bottom: 8px;
  }

  .pain-status {
    display: none;
  }
}


/* ------------------
   HOW WE WORK (Zigzag Timeline)
   Items alternate: 1=left, 2=right, 3=left, 4=right
------------------ */
.timeline-wrapper {
  padding: 100px 0;
  position: relative;
}

.timeline-header {
  margin-bottom: 60px;
  padding: 0 20px;
}

.timeline-header h2 {
  margin-top: 16px;
  font-size: clamp(28px, 5vw, 48px);
}

.timeline-header p {
  margin-top: 16px;
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
}

.timeline-header .mono-tag {
  font-size: clamp(10px, 1.5vw, 11px);
}

.timeline-track {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Center Line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  width: 100%;
  min-height: 150px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* ODD items (1, 3) - LEFT side */
.timeline-item:nth-child(2) .timeline-content-box {
  margin-right: calc(50% + 60px);
  text-align: left;
}

.timeline-item:nth-child(2) .timeline-dot-wrapper {
  left: 50%;
}

/* EVEN items (2, 4) - RIGHT side */
.timeline-item:nth-child(3) .timeline-content-box,
.timeline-item:nth-child(5) .timeline-content-box {
  margin-left: calc(50% + 60px);
  text-align: left;
}

.timeline-item:nth-child(3) .timeline-dot-wrapper,
.timeline-item:nth-child(5) .timeline-dot-wrapper {
  left: 50%;
}

/* Item 1 - LEFT */
.timeline-item:nth-child(2) .timeline-content-box {
  margin-right: calc(50% + 60px);
}

/* Item 2 - RIGHT */
.timeline-item:nth-child(3) .timeline-content-box {
  margin-left: calc(50% + 60px);
}

/* Item 3 - LEFT */
.timeline-item:nth-child(4) .timeline-content-box {
  margin-right: calc(50% + 60px);
}

/* Item 4 - RIGHT */
.timeline-item:nth-child(5) .timeline-content-box {
  margin-left: calc(50% + 60px);
}

/* Dot Wrapper - centered on line */
.timeline-dot-wrapper {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--bg-deep);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

.timeline-dot-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

/* Content Box */
.timeline-content-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-content-box:hover {
  border-color: var(--text-secondary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.timeline-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.timeline-icon svg {
  color: var(--text-primary);
}

.timeline-step-number {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.timeline-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.timeline-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Connector lines from dot to content */
.timeline-item:nth-child(2) .timeline-content-box::before,
.timeline-item:nth-child(4) .timeline-content-box::before {
  content: '';
  position: absolute;
  top: 42px;
  right: -60px;
  width: 60px;
  height: 2px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.2), transparent);
}

.timeline-item:nth-child(3) .timeline-content-box::before,
.timeline-item:nth-child(5) .timeline-content-box::before {
  content: '';
  position: absolute;
  top: 42px;
  left: -60px;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
  .timeline-wrapper {
    padding: 60px 0;
  }

  .timeline-header {
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .timeline-header h2 {
    font-size: 32px;
  }

  .timeline-header p {
    font-size: 16px;
    max-width: 100%;
  }

  .timeline-line {
    left: 30px;
    transform: none;
  }

  .timeline-item:nth-child(2) .timeline-content-box,
  .timeline-item:nth-child(3) .timeline-content-box,
  .timeline-item:nth-child(4) .timeline-content-box,
  .timeline-item:nth-child(5) .timeline-content-box {
    margin-left: 90px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-dot-wrapper {
    left: 30px !important;
    transform: translateX(-50%);
  }

  .timeline-content-box::before {
    display: none;
  }

  .timeline-content-box {
    padding: 28px;
  }
}


@media (max-width: 480px) {
  .timeline-wrapper {
    padding: 40px 0;
  }

  .timeline-header {
    margin-bottom: 30px;
    padding: 0 12px;
  }

  .timeline-header h2 {
    font-size: 24px;
    margin-top: 12px;
  }

  .timeline-header p {
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.5;
  }

  .timeline-header .mono-tag {
    font-size: 9px;
    padding: 4px 8px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item:nth-child(2) .timeline-content-box,
  .timeline-item:nth-child(3) .timeline-content-box,
  .timeline-item:nth-child(4) .timeline-content-box,
  .timeline-item:nth-child(5) .timeline-content-box {
    margin-left: 70px;
  }

  .timeline-dot-wrapper {
    left: 20px !important;
  }

  .timeline-content-box {
    padding: 24px;
  }

  .timeline-title {
    font-size: 20px;
  }

  .timeline-description {
    font-size: 14px;
  }
}

/* ------------------
   NETWORK CANVAS ANIMATION
------------------ */
.network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background: transparent;
}

/* Ensure content appears above canvas */
.wrapper,
.hero,
.portfolio-grid,
nav {
  /* position: relative; */
  z-index: 1;
}

/* ------------------
   3 PILLARS SECTION
------------------ */
.pillars-section {
  padding: 80px 0;
}

.pillars-header {
  text-align: left;
  margin-bottom: 60px;
  padding: 0 20px;
}

.pillars-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-top: 16px;
}

.pillars-header p {
  margin-top: 16px;
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-secondary);
  max-width: 700px;
}

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

.pillar-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pillar-number {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: 'Space Grotesk', monospace;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.pillar-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.pillar-icon svg {
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05) rotate(-5deg);
}

.pillar-card:hover .pillar-icon svg {
  color: #fff;
}

.pillar-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.pillar-detail {
  margin-bottom: 24px;
}

.pillar-detail:last-child {
  margin-bottom: 0;
}

.pillar-detail h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.pillar-detail p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsive Pillars */
@media (max-width: 768px) {
  .pillars-section {
    padding: 60px 0;
  }

  .pillars-header {
    margin-bottom: 40px;
    padding: 0 16px;
  }

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

  .pillar-card {
    padding: 32px;
  }

  .pillar-number {
    font-size: 36px;
    top: 24px;
    right: 24px;
  }

  .pillar-icon {
    width: 56px;
    height: 56px;
  }

  .pillar-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .pillars-section {
    padding: 40px 0;
  }

  .pillars-header {
    padding: 0 12px;
  }

  .pillar-card {
    padding: 28px;
  }

  .pillar-number {
    font-size: 32px;
    top: 20px;
    right: 20px;
  }

  .pillar-icon {
    width: 48px;
    height: 48px;
  }

  .pillar-icon svg {
    width: 24px;
    height: 24px;
  }

  .pillar-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .pillar-detail h4 {
    font-size: 11px;
  }

  .pillar-detail p {
    font-size: 14px;
  }

  .tech-tag {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* Pillar List Styles */
.pillar-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.pillar-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pillar-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  top: 2px;
}