:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #ff3b30;
  /* Swiss Red */
  --grid-gap: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* --- GRID LAYOUT --- */
.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gap);
  padding: 2rem;
  max-width: 100vw;
}

/* --- TYPOGRAPHY --- */
h1.hero-title {
  grid-column: 1 / -1;
  font-size: 11vw;
  /* Massive */
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: uppercase;
  margin-bottom: 4rem;
  border-top: 10px solid var(--accent-color);
  padding-top: 1rem;
}

h2.section-title {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 6px;
  background: var(--accent-color);
  margin-top: 5px;
  transform: scaleX(1);
  /* Visible by default */
  transform-origin: left;
}

h2.section-title:hover::after {
  animation: redraw-line 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes redraw-line {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

h3.job-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h4.job-company {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--accent-color);
  padding-left: 10px;
}

p,
li {
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* --- SECTIONS --- */
section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gap);
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.left-col {
  grid-column: 1 / 4;
}

.right-col {
  grid-column: 5 / -1;
}

/* Specific Layout Adjustments */
.hero-subtitle {
  grid-column: 8 / -1;
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: -3rem;
  margin-bottom: 6rem;
  text-align: right;
  border-top: 2px solid black;
  padding-top: 1rem;
}

.role-tag {
  display: inline-block;
  background: black;
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.role-tag.accent {
  background: var(--accent-color);
}

/* Experience Items */
.job-item {
  margin-bottom: 3rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
}

.job-item:last-child {
  border-bottom: none;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category h3 {
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* Footer & Contact */
.contact-section {
  grid-column: 1 / -1;
  background: black;
  color: white;
  padding: 4rem 2rem;
  margin: 0 -2rem -2rem -2rem;
  /* Bleed full width */
  text-align: center;
}

.contact-link {
  font-size: 3rem;
  font-weight: 900;
  border-bottom: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--accent-color);
  color: white;
  padding: 0 10px;
}

.back-btn {
  display: inline-block;
  margin-top: 3rem;
  font-size: 1rem;
  text-transform: uppercase;
  border: 1px solid white;
  padding: 1rem 2rem;
  transition: background 0.3s;
}

.back-btn:hover {
  background: white;
  color: black;
}

/* --- ANIMATIONS --- */
.revealing-text {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.revealing-text span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.loaded .revealing-text span {
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  h1.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    /* Mobile: limited to prevent overflow */
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    margin-top: 0;
    text-align: left;
    margin-bottom: 3rem;
  }

  .left-col,
  .right-col {
    grid-column: 1 / -1;
  }

  h2.section-title {
    font-size: 2.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-link {
    font-size: 1.5rem;
  }

  .contact-section {
    margin: 0 -1rem -1rem -1rem;
    padding: 3rem 1rem;
  }
}

/* Handwritten Font for Copyright */
.handwritten {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

/* ========================================
   RED LIGHT / NIGHTCLUB THEME
   ======================================== */

/* Neon Animations - Medium Intensity */
@keyframes neon-flicker-controlled {

  0%,
  100% {
    text-shadow:
      0 0 5px #ff0040,
      0 0 10px #ff0040,
      0 0 20px rgba(255, 0, 64, 0.5);
    opacity: 1;
  }

  92% {
    text-shadow:
      0 0 5px #ff0040,
      0 0 10px #ff0040,
      0 0 20px rgba(255, 0, 64, 0.5);
    opacity: 1;
  }

  93% {
    text-shadow: 0 0 2px #ff0040;
    opacity: 0.85;
  }

  94% {
    text-shadow:
      0 0 5px #ff0040,
      0 0 10px #ff0040,
      0 0 20px rgba(255, 0, 64, 0.5);
    opacity: 1;
  }
}

@keyframes title-glow-pulse {

  0%,
  100% {
    text-shadow:
      0 0 10px #ff69b4,
      0 0 20px rgba(255, 105, 180, 0.4);
  }

  50% {
    text-shadow:
      0 0 15px #ff69b4,
      0 0 30px rgba(255, 105, 180, 0.6);
  }
}

@keyframes glow-border-medium {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 0, 64, 0.6), inset 0 0 3px rgba(255, 0, 64, 0.2);
  }

  50% {
    box-shadow: 0 0 12px rgba(255, 0, 64, 0.8), inset 0 0 5px rgba(255, 0, 64, 0.3);
  }
}

@keyframes scan-line {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

@keyframes bg-pulse {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Red Light Mode Base */
body.redlight-mode {
  --bg-color: #0a0a0a;
  --text-color: #fff0f5;
  --accent-color: #ff0040;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a10 50%, #0a0a0a 100%);
  background-size: 200% 200%;
  animation: bg-pulse 8s ease infinite;
  position: relative;
}

/* Scan Line Overlay */
body.redlight-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.5), transparent);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

/* Hero Title - Flickering Neon */
body.redlight-mode h1.hero-title {
  color: #ff0040;
  animation: neon-flicker-controlled 4s ease-in-out infinite;
  border-top-color: #ff69b4;
}

/* Section Titles - Pulsing Glow */
body.redlight-mode h2.section-title {
  color: #ff69b4;
  animation: title-glow-pulse 3s ease-in-out infinite;
}

body.redlight-mode h2.section-title::after {
  background: linear-gradient(90deg, #ff0040, #ff69b4, #ff0040);
  background-size: 200% 100%;
  animation: bg-pulse 4s linear infinite;
  box-shadow: 0 0 5px rgba(255, 0, 64, 0.5);
}

/* Job Titles */
body.redlight-mode h3.job-title {
  color: #ffffff;
}

/* Company Names */
body.redlight-mode h4.job-company {
  color: #ff69b4;
  border-left-color: #ff0040;
}

/* Role Tags */
body.redlight-mode .role-tag {
  background: transparent;
  border: 2px solid #ff0040;
  color: #ff0040;
  animation: glow-border-medium 2.5s ease-in-out infinite;
}

body.redlight-mode .role-tag.accent {
  background: #ff0040;
  color: #000;
  border-color: #ff69b4;
  box-shadow: 0 0 15px #ff0040, 0 0 30px #ff0040;
}

/* Job Items */
body.redlight-mode .job-item {
  border-bottom-color: rgba(255, 0, 64, 0.3);
  position: relative;
}

body.redlight-mode .job-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff0040, #ff69b4, #ff0040);
  box-shadow: 0 0 10px #ff0040;
  opacity: 0.7;
}

/* List Items */
body.redlight-mode li::before {
  content: '♦';
  color: #ff0040;
  text-shadow: 0 0 5px #ff0040;
}

/* Links */
body.redlight-mode a {
  color: #ff69b4;
  text-shadow: 0 0 3px rgba(255, 105, 180, 0.5);
}

body.redlight-mode a:hover {
  color: #ff0040;
  text-shadow: 0 0 10px #ff0040;
}

/* Contact Section */
body.redlight-mode .contact-section {
  background: linear-gradient(135deg, #1a0a10 0%, #2a0a15 50%, #1a0a10 100%);
  background-size: 200% 200%;
  animation: bg-pulse 5s ease infinite;
  border-top: 2px solid #ff0040;
  box-shadow: 0 -10px 30px rgba(255, 0, 64, 0.3);
}

body.redlight-mode .contact-link {
  color: #ff0040;
  border-bottom-color: #ff69b4;
}

body.redlight-mode .contact-link:hover {
  background: #ff0040;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
}

body.redlight-mode .back-btn {
  border-color: #ff0040;
  color: #ff69b4;
}

body.redlight-mode .back-btn:hover {
  background: #ff0040;
  color: #000;
  box-shadow: 0 0 8px rgba(255, 0, 64, 0.5);
}

/* Hero Subtitle */
body.redlight-mode .hero-subtitle {
  border-top-color: #ff0040;
}

body.redlight-mode .hero-subtitle p {
  color: #ff69b4;
  text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

/* Skills Category */
body.redlight-mode .skill-category h3 {
  color: #ff0040;
  text-shadow: 0 0 5px rgba(255, 0, 64, 0.5);
}

/* Paragraphs */
body.redlight-mode p,
body.redlight-mode li {
  color: #e0d0d5;
}

body.redlight-mode strong {
  color: #ffffff;
}

body.redlight-mode em {
  color: #ff69b4;
}

/* Leia image glow */
body.redlight-mode img[alt="Leia"] {
  box-shadow: 0 0 20px #ff0040, 0 0 40px rgba(255, 0, 64, 0.5);
  border: 2px solid #ff0040;
}