@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  /* Colors - 90s Retro Modern Palette */
  --magic-blue: #0077C0;
  --magic-blue-dark: #005A91;
  --matte-black: #121212;
  --matte-black-elevated: #1e1e1e;
  --pinstripe-silver: #C4CED4;
  --accent-gold: #F2C75C;
  --off-white: #F5f5f5;
  
  /* Text */
  --font-heading: 'Bebas Neue', cursice;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-snap: all 0.15s ease-out;

  /* Spacing & Borders */
  --container-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--matte-black);
  line-height: 1.6;
  overscroll-behavior-y: none;
}

body.dark-mode {
  background-color: var(--matte-black);
  color: var(--off-white);
}

/* Utils */
.pinstripe-bg {
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(196, 206, 212, 0.1) 20px,
    rgba(196, 206, 212, 0.1) 21px
  );
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Reveal Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

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

.reveal-stagger {
  transition-delay: calc(var(--stagger-index, 0) * 0.1s);
}


/* Layout */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */

.site-header {
  background-color: var(--matte-black);
  color: var(--off-white);
  padding: 1.5rem 0;
  border-bottom: 4px solid var(--magic-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--magic-blue);
}

.brand h1 span {
  color: var(--off-white);
}

.tagline {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* Navigation */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--off-white);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-snap);
}

.main-nav a:hover {
  color: var(--magic-blue);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Theme toggle button */

.theme-toggle {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--off-white);
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition-snap);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--magic-blue);
}


/* Hero */

.hero {
  padding: 6rem 0;
  background: var(--matte-black);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--pinstripe-silver);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(196, 206, 212, 0.05) 40px,
    rgba(196, 206, 212, 0.05) 41px
  );
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text h2 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 1.5rem;
  
  /* Entrance Animation */
  opacity: 0;
  transform: translateX(-50px);
  animation: flyInRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-text p {
  max-width: 32rem;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-30px);
  animation: flyInRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.hero-text .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

@keyframes flyInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.hero-image {
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  border: 4px solid var(--magic-blue);
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
  will-change: transform;
}

.hero-image:hover img {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 119, 192, 0.4);
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--matte-black-elevated);
  position: relative;
}

body.dark-mode .section-alt {
  background-color: #1a1a1a;
}

.section h2 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--magic-blue);
  margin-bottom: 2rem;
}


/* Cards & Glassmorphism */

.card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  flex: 1;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--magic-blue);
}

body.dark-mode .card {
  background-color: var(--matte-black-elevated);
  border-color: rgba(255, 255, 255, 0.05);
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .glass {
  background: rgba(18, 18, 18, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}


/* Buttons */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--magic-blue);
  color: var(--off-white);
  box-shadow: 4px 4px 0 var(--matte-black);
}

.btn-secondary {
  background-color: var(--matte-black);
  color: var(--off-white);
  box-shadow: 4px 4px 0 var(--magic-blue);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--matte-black);
  background-color: var(--magic-blue-dark);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--magic-blue);
  background-color: var(--matte-black-elevated);
}


/* Product layout */

.product-layout {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  align-items: flex-start;
}

.product-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 250px;
}

.product-btn {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--off-white);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--matte-black);
  transition: var(--transition-snap);
  position: relative;
  overflow: hidden;
}

.product-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background-color: var(--magic-blue);
  transition: var(--transition-snap);
  z-index: 0;
}

.product-btn span {
  position: relative;
  z-index: 1;
}

.product-btn.active {
  color: var(--off-white);
  border-color: var(--magic-blue);
  background-color: var(--magic-blue);
  box-shadow: 4px 4px 0 var(--matte-black);
}

.product-btn:hover:not(.active) {
  background-color: rgba(0, 119, 192, 0.1);
  border-color: var(--magic-blue);
  padding-left: 1.75rem;
}

body.dark-mode .product-btn {
  background-color: var(--matte-black-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--off-white);
}

body.dark-mode .product-btn.active {
  background-color: var(--magic-blue);
  box-shadow: 4px 4px 0 var(--off-white);
}

.product-display {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  transition: var(--transition-smooth);
}

body.dark-mode .product-display {
  background-color: var(--matte-black-elevated);
  border-color: rgba(255, 255, 255, 0.05);
}

.product-display img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  margin-bottom: 2rem;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              opacity 0.6s ease,
              filter 0.6s ease;
}

.product-display img.updating {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.product-display h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  color: var(--magic-blue);
  text-transform: uppercase;
}

.product-display p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 40rem;
}


/* Career Timeline - Iteration A: Vertical Striped */

.timeline-container {
  margin-top: 5rem;
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--magic-blue);
  transform: translateX(-50%) scaleY(var(--timeline-scale, 0));
  transform-origin: top;
  opacity: 0.2;
  transition: transform 0.1s linear;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  position: relative;
}

.timeline-item {
  width: 45%;
  position: relative;
  z-index: 1;
}

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

.timeline-item:nth-child(even) {
  align-self: flex-end;
}

.timeline-item:nth-child(odd) {
  align-self: flex-start;
  text-align: right;
}

/* Marker Dot on the line */
.timeline-item::after {
  content: "";
  position: absolute;
  top: 2rem;
  width: 24px;
  height: 24px;
  background-color: var(--matte-black);
  border: 4px solid var(--magic-blue);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 119, 192, 0.4);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd)::after {
  right: -11.1%;
  transform: translateX(50%);
}

.timeline-item:nth-child(even)::after {
  left: -11.1%;
  transform: translateX(-50%);
}

.timeline-item:hover::after {
  background-color: var(--magic-blue);
  box-shadow: 0 0 20px var(--magic-blue);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--magic-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-year {
  opacity: 0.8;
  transform: scale(1.05);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.timeline-item:nth-child(odd) .timeline-tags {
  justify-content: flex-end;
}

.tag {
  background-color: rgba(0, 119, 192, 0.1);
  color: var(--magic-blue);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(0, 119, 192, 0.2);
}

body.dark-mode .tag {
  background-color: rgba(0, 119, 192, 0.2);
  color: var(--off-white);
}



/* Guessing game */

.game-form {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  background: var(--matte-black-elevated);
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 6px solid var(--accent-gold);
}

.game-form label {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--off-white);
}

.game-form input[type="number"] {
  width: 100px;
  padding: 0.8rem;
  background: var(--matte-black);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

.game-result {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Forms */

.form-row {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.two-column {
  flex-direction: row;
  gap: 2rem;
}

.two-column > div {
  flex: 1;
}

label,
legend {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-snap);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--magic-blue);
  box-shadow: 0 0 0 4px rgba(0, 119, 192, 0.1);
}

body.dark-mode input[type="text"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
  background-color: var(--matte-black);
  color: var(--off-white);
  border-color: rgba(255, 255, 255, 0.1);
}

.required {
  color: var(--accent-gold);
  margin-left: 0.25rem;
}

.error-message {
  color: #ff5252;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.thank-you {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background-color: var(--magic-blue);
  color: var(--off-white);
  border-left: 6px solid var(--accent-gold);
  display: none;
  box-shadow: var(--shadow-strong);
}

/* Footer */

.site-footer {
  background-color: var(--matte-black);
  color: var(--off-white);
  padding: 4rem 0;
  border-top: 4px solid var(--magic-blue);
  text-align: center;
}

.site-footer p {
  margin: 0.5rem 0;
  opacity: 0.8;
}

.footer-small {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 2rem !important;
}

/* Responsive Breakpoints */

@media (max-width: 1024px) {
  :root {
    --container-width: 95%;
  }

  .hero-text h2 {
    font-size: 3rem;
  }

  .product-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .product-controls {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 1rem;
  }

  .product-btn {
    white-space: nowrap;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .header-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .two-column {
    flex-direction: column;
    gap: 1rem;
  }
  
  .game-form {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
    align-self: flex-end !important;
    text-align: left !important;
  }
  
  .timeline-item::after {
    left: -40px !important;
    right: auto !important;
    transform: none !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-start;
  }

  .timeline-year {
    font-size: 3rem;
  }
}


