/**
 * Iris Turfle Portfolio
 * Bootstrap-Compatible Custom Styles
 * Dark Mode Default
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Colors - Primitive Values */
  --color-midnight-blue: #0F1B2A;
  --color-ice-gray: #F2F4F7;
  --color-soft-cyan: #41C8D8;
  --color-deep-slate: #3A4651;
  
  /* Colors - Semantic Values (DEFAULT TO DARK MODE) */
  --color-bg-primary: #0A1520;
  --color-bg-secondary: var(--color-midnight-blue);
  --color-text-primary: var(--color-ice-gray);
  --color-text-secondary: #B8C5D1;
  --color-text-accent: var(--color-soft-cyan);
  --color-border: rgba(242, 244, 247, 0.1);
  --color-shadow: rgba(0, 0, 0, 0.3);
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  
  /* Transitions */
  --transition-normal: 150ms cubic-bezier(0.33, 1, 0.68, 1);
  --transition-slow: 300ms cubic-bezier(0.25, 1, 0.5, 1);
  
  /* Z-Index */
  --z-signature-line: 50;
}

/* Light Mode Override */
:root[data-theme="light"] {
  --color-bg-primary: var(--color-ice-gray);
  --color-bg-secondary: #FFFFFF;
  --color-text-primary: var(--color-midnight-blue);
  --color-text-secondary: var(--color-deep-slate);
  --color-border: rgba(15, 27, 42, 0.1);
  --color-shadow: rgba(15, 27, 42, 0.08);
}

/* Dark Mode Explicit */
:root[data-theme="dark"] {
  --color-bg-primary: #0A1520;
  --color-bg-secondary: var(--color-midnight-blue);
  --color-text-primary: var(--color-ice-gray);
  --color-text-secondary: #B8C5D1;
  --color-border: rgba(242, 244, 247, 0.1);
  --color-shadow: rgba(0, 0, 0, 0.3);
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* ============================================
   BOOTSTRAP OVERRIDES FOR DARK MODE
   ============================================ */

/* Navbar Dark Theme */
.navbar-dark {
  background-color: rgba(15, 27, 42, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.navbar {
  width: 100%;
  max-width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: visible;
}

.navbar .container {
  max-width: none !important;
  width: 100% !important;
  overflow: visible !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Override Bootstrap container max-widths at all breakpoints for navbar */
@media (min-width: 576px) {
  .navbar .container {
    max-width: none !important;
  }
}

@media (min-width: 768px) {
  .navbar .container {
    max-width: none !important;
  }
}

@media (min-width: 992px) {
  .navbar .container {
    max-width: none !important;
  }
}

@media (min-width: 1200px) {
  .navbar .container {
    max-width: none !important;
  }
}

@media (min-width: 1400px) {
  .navbar .container {
    max-width: none !important;
  }
}

/* Ensure navbar is always visible on large screens */
@media (min-width: 992px) {
  .navbar {
    width: 100% !important;
    max-width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .navbar .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;
    align-items: center !important;
    overflow: visible !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }
  
  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
    max-width: 100% !important;
    position: relative !important;
    right: 0 !important;
  }
  
  .navbar-nav .nav-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .navbar-nav .nav-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(242, 244, 247, 0.9) !important;
    position: relative !important;
    text-decoration: none !important;
  }
  
  .navbar-brand {
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--color-text-primary) !important;
    display: inline-block !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
  }
}

.navbar-collapse {
  overflow: visible !important;
}

.navbar-nav {
  flex-wrap: nowrap;
  overflow: visible;
  white-space: nowrap;
}

.navbar-nav .nav-item {
  white-space: nowrap;
}

/* ============================================
   HIGHLIGHTS CAROUSEL
   ============================================ */

.highlights-carousel {
  background: linear-gradient(135deg, rgba(15, 27, 42, 0.5) 0%, rgba(10, 21, 32, 0.8) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.highlights-carousel .container {
  position: relative;
  padding-left: 70px;
  padding-right: 70px;
}

.highlights-carousel .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.highlights-carousel .carousel {
  position: relative;
}

/* Improved carousel fade transition - faster fade out, sequential fade in */
.highlights-carousel .carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.25s;
  transition-timing-function: ease-in;
}

.highlights-carousel .carousel-fade .carousel-item.active {
  opacity: 1;
  transition-duration: 0.35s;
  transition-delay: 0.2s;
  transition-timing-function: ease-out;
}

.highlights-carousel .carousel-fade .carousel-item-next.carousel-item-start,
.highlights-carousel .carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition-duration: 0.35s;
  transition-delay: 0.2s;
  transition-timing-function: ease-out;
}

.highlights-carousel .carousel-fade .active.carousel-item-start,
.highlights-carousel .carousel-fade .active.carousel-item-end {
  opacity: 0;
  transition-duration: 0.25s;
  transition-delay: 0s;
  transition-timing-function: ease-in;
}

.carousel-content {
  padding: var(--space-6) 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.carousel-content .row {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.carousel-content .col-md-6:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.carousel-content .col-md-6:last-child {
  display: none;
}

.carousel-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.2;
  text-align: center;
}

.carousel-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-content .btn {
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.carousel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-accent);
  opacity: 0.3;
  height: 100%;
  min-height: 200px;
}

.carousel-icon svg {
  width: 120px;
  height: 120px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background-color: rgba(65, 200, 216, 0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(65, 200, 216, 0.3);
  opacity: 1;
  transition: all var(--transition-normal);
  z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(65, 200, 216, 0.25);
  border-color: var(--color-text-accent);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(0.9);
  opacity: 1;
  background-size: 50%;
  width: 24px;
  height: 24px;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-indicators {
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 5;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-text-secondary);
  opacity: 0.4;
  border: 2px solid transparent;
  margin: 0 6px;
  transition: all var(--transition-normal);
  padding: 0;
}

.carousel-indicators button:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.carousel-indicators button.active {
  opacity: 1;
  background-color: var(--color-text-accent);
  width: 24px;
  border-radius: 5px;
  transform: scale(1);
}

/* Tablet and below */
@media (max-width: 992px) {
  .highlights-carousel .container {
    padding-left: 60px;
    padding-right: 60px;
  }
  
  .carousel-content .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 44px;
    height: 44px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-size: 45%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .highlights-carousel .container {
    padding-left: 50px;
    padding-right: 50px;
  }
  
  .carousel-content {
    padding: var(--space-4) 0;
    min-height: 250px;
  }
  
  .carousel-content .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .carousel-content .col-md-6:first-child {
    max-width: 100%;
    padding: 0 var(--space-2);
  }
  
  .carousel-text {
    max-width: 100%;
  }
  
  .carousel-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
  }
  
  .carousel-text {
    font-size: 1rem;
    margin-bottom: var(--space-3);
  }
  
  .carousel-icon {
    min-height: 150px;
    margin-top: var(--space-3);
  }
  
  .carousel-icon svg {
    width: 80px;
    height: 80px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: 5px;
  }
  
  .carousel-control-next {
    right: 5px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-size: 40%;
    width: 20px;
    height: 20px;
  }
  
  .carousel-indicators {
    margin-bottom: var(--space-3);
  }
  
  .carousel-indicators button {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
  
  .carousel-indicators button.active {
    width: 20px;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .carousel-content {
    min-height: 220px;
  }
  
  .carousel-title {
    font-size: 1.5rem;
  }
  
  .carousel-text {
    font-size: 0.95rem;
  }
  
  .carousel-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
  }
}

.navbar-brand {
  color: var(--color-text-primary) !important;
  transition: color var(--transition-normal);
  position: relative;
  z-index: 1001;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar-brand:hover {
  color: var(--color-text-accent) !important;
}

.navbar-nav .nav-link {
  color: rgba(242, 244, 247, 0.9) !important;
  transition: color var(--transition-normal);
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  position: relative;
  z-index: 1001;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-text-primary) !important;
}

.navbar-nav .nav-link.active {
  color: var(--color-text-primary) !important;
  font-weight: 700;
}

/* Cards */
.card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-text-accent);
  box-shadow: 0 4px 8px var(--color-shadow);
}

.card-body {
  color: var(--color-text-primary);
}

/* Buttons */
.btn-primary {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
  border: none;
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  background-color: var(--color-text-accent);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow);
}

.btn-outline-light {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
  transition: all var(--transition-normal);
}

.btn-outline-light:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg-primary);
  border-color: var(--color-text-primary);
}

/* Breadcrumbs */
.breadcrumb-nav {
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  margin-top: 56px; /* Navbar height */
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--color-text-secondary);
}

.breadcrumb-item a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.breadcrumb-item a:hover {
  color: var(--color-text-accent);
}

.breadcrumb-item.active {
  color: var(--color-text-primary);
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--color-text-secondary);
  padding: 0 var(--space-1);
  opacity: 0.5;
}

/* Badges */
.badge.bg-secondary {
  background-color: var(--color-bg-primary) !important;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-normal);
}

.badge.bg-secondary:hover {
  border-color: var(--color-text-accent);
  color: var(--color-text-accent);
}

/* ============================================
   SIGNATURE VERTICAL LINE - SCROLL INDICATOR
   ============================================ */

.signature-line {
  position: fixed;
  right: var(--space-4);
  top: 0;
  width: 3px;
  height: 100vh;
  z-index: var(--z-signature-line);
  pointer-events: none;
  overflow: hidden;
}

.signature-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(65, 200, 216, 0.2);
}

.signature-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--scroll-progress, 0%);
  background: linear-gradient(
    to bottom,
    var(--color-soft-cyan),
    var(--color-soft-cyan) 50%,
    rgba(65, 200, 216, 0.8) 50%,
    rgba(65, 200, 216, 0.8)
  );
  transition: height 0.05s linear;
  box-shadow: 0 0 10px rgba(65, 200, 216, 0.5);
}

@media (max-width: 768px) {
  .signature-line {
    display: none;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.section-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-10);
}

.page-header__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.page-header__subtitle {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero.py-5 {
  padding-bottom: var(--space-2) !important;
}

.about.py-5 {
  padding-top: var(--space-2) !important;
}

.hero__headline {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.hero__subtext {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

.social-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  color: var(--color-text-primary);
  transform: scale(1.05);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.portrait-placeholder {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px var(--color-shadow);
  background-color: var(--color-deep-slate);
  position: relative;
}

.portrait-placeholder::before {
  content: '';
  display: block;
  padding-top: 125%;
}

.portrait-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   ABOUT CARDS
   ============================================ */

.about-card {
  height: 100%;
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow);
  border-color: var(--color-text-accent);
}

.about-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.about-card__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

/* ============================================
   PROJECT BLOCKS
   ============================================ */

.project-block {
  margin-bottom: var(--space-8);
  transition: all var(--transition-normal);
}

.project-block:hover {
  box-shadow: 0 4px 8px var(--color-shadow);
  border-color: var(--color-text-accent);
}

.project-block__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.project-block__heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

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

.project-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-block__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.project-block__list li::before {
  content: '▸';
  position: absolute;
  left: var(--space-2);
  color: var(--color-text-accent);
  font-weight: 700;
}

.github-link {
  text-decoration: none;
  transition: all var(--transition-normal);
}

.github-link:hover {
  transform: translateY(-2px);
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding-left: var(--space-6);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-soft-cyan);
  opacity: 0.3;
}

.timeline__entry {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline__marker {
  position: absolute;
  left: -18px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-soft-cyan);
  border: 3px solid var(--color-bg-secondary);
  box-shadow: 0 0 0 2px var(--color-soft-cyan);
  z-index: 1;
  transition: all var(--transition-normal);
}

.timeline__entry:hover .timeline__marker {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(65, 200, 216, 0.2);
}

.timeline__content {
  transition: all var(--transition-normal);
}

.timeline__entry:hover .timeline__content {
  transform: translateX(4px);
  box-shadow: 0 4px 8px var(--color-shadow);
  border-color: var(--color-text-accent);
}

.timeline__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.timeline__org {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-accent);
  display: inline-block;
  margin-right: var(--space-2);
}

.timeline__date {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.timeline__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline__bullets li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.timeline__bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-soft-cyan);
  font-weight: 700;
}

/* ============================================
   ACTIVITIES
   ============================================ */

.activities-container {
  position: relative;
  padding-left: var(--space-6);
}

.activities-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-soft-cyan);
  opacity: 0.3;
  z-index: 0;
}

.activity-item {
  position: relative;
  z-index: 1;
  transition: all var(--transition-normal);
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow);
  border-color: var(--color-text-accent);
}

.activity-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: calc(var(--space-5) + 0.25rem);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-soft-cyan);
  border: 3px solid var(--color-bg-secondary);
  box-shadow: 0 0 0 2px var(--color-soft-cyan);
  z-index: 2;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.activity-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(65, 200, 216, 0.2);
}

.activity-item__header {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.activity-item__role {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.activity-item__org {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-accent);
}

.activity-item__date {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.activity-item__outcome {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-info__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.contact-detail__label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail__value {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.contact-detail__value:hover {
  color: var(--color-text-accent);
}

/* Copy Email Button */
.copy-email-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.5rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.copy-email-btn:hover {
  background-color: rgba(65, 200, 216, 0.1);
  border-color: var(--color-text-accent);
  color: var(--color-text-accent);
  transform: scale(1.05);
}

.copy-email-btn:active {
  transform: scale(0.95);
}

.copy-email-btn svg {
  width: 16px;
  height: 16px;
}

.copy-feedback {
  display: block;
  color: var(--color-text-accent);
  font-size: 0.75rem;
  margin-top: var(--space-1);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.copy-feedback.show {
  opacity: 1;
}

/* ============================================
   PROJECT DETAIL
   ============================================ */

.project-header__back {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.project-header__back:hover {
  color: var(--color-text-accent);
}

.metric-card {
  transition: all var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-shadow);
  border-color: var(--color-text-accent);
}

.metric-card__value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-accent);
}

.metric-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-sidebar__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* ============================================
   ERROR PAGE
   ============================================ */

.error-page__code {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-soft-cyan);
}

.error-page__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.error-page__message {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  z-index: -1;
}

.skip-link:focus {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  border-radius: 4px;
  text-decoration: none;
}

/* ============================================
   PAGE HEADER SPACING
   ============================================ */

.page-header {
  padding-top: 100px !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .navbar .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .hero__headline {
    font-size: 2.5rem;
  }
  
  .hero__subtext {
    font-size: 1rem;
  }
  
  .section-heading {
    font-size: 2rem;
    margin-bottom: var(--space-6);
  }
  
  .page-header__title {
    font-size: 2.5rem;
  }
  
  .page-header__subtitle {
    font-size: 1rem;
  }
  
  .project-block__title {
    font-size: 2rem;
  }
  
  .project-block__heading {
    font-size: 1.5rem;
  }
  
  .timeline {
    padding-left: var(--space-4);
  }
  
  .timeline::before {
    left: 3px;
  }
  
  .timeline__entry {
    padding-left: var(--space-4);
  }
  
  .timeline__marker {
    left: -10px;
    width: 10px;
    height: 10px;
  }
  
  .activities-container {
    padding-left: var(--space-4);
  }
  
  .activities-container::before {
    left: 3px;
  }
  
  .activity-item::before {
    left: -10px;
    width: 10px;
    height: 10px;
  }
  
  .activity-item__role {
    font-size: 1.5rem;
  }
  
  .error-page__code {
    font-size: 6rem;
  }
  
  .error-page__title {
    font-size: 2rem;
  }
  
  .error-page__message {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: 2rem;
  }
  
  .page-header__title {
    font-size: 2rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-10);
}

.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.footer__subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.footer__text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: var(--space-1);
}

.footer__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.footer__link:hover {
  color: var(--color-text-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-2);
}

.footer__social-link {
  color: var(--color-text-secondary);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: transparent;
}

.footer__social-link:hover {
  color: var(--color-text-accent);
  background-color: rgba(65, 200, 216, 0.1);
  transform: translateY(-2px);
}

.footer__divider {
  border-color: var(--color-border);
  opacity: 0.5;
  margin: var(--space-4) 0;
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-text-accent);
  color: var(--color-bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: 0 4px 12px var(--color-shadow);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(65, 200, 216, 0.4);
  background-color: var(--color-text-primary);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: var(--space-2);
    right: var(--space-2);
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* Hide non-essential elements */
  .navbar,
  .back-to-top,
  .signature-line,
  .skip-link,
  .footer__social,
  .hero__actions,
  .btn,
  .navbar-toggler {
    display: none !important;
  }

  /* Page breaks */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }

  /* Links */
  a {
    color: #000 !important;
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  a[href^="#"]:after {
    content: "";
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Sections */
  .hero,
  .about,
  .projects-grid,
  .timeline,
  .activities-container {
    page-break-inside: avoid;
  }

  /* Footer */
  .site-footer {
    border-top: 1px solid #000;
    margin-top: 2rem;
    padding-top: 1rem;
  }

  .footer__copyright {
    font-size: 10pt;
  }

  /* Page setup */
  @page {
    margin: 2cm;
  }

  /* Headers and footers */
  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
  }

  h3 {
    font-size: 14pt;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills .progress {
  background-color: rgba(242, 244, 247, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(242, 244, 247, 0.15);
}

.skills .progress-bar {
  background-color: var(--color-text-accent);
  transition: width 1s ease-out;
}

.skills .card-title {
  color: var(--color-text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.skills .fw-semibold {
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.skills .text-muted {
  color: var(--color-text-secondary) !important;
  opacity: 1 !important;
  font-weight: 500;
}

.skills .card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.skills .card-body {
  color: var(--color-text-primary);
}

/* ============================================
   PROJECT FILTERING
   ============================================ */

.project-filter-btn {
  transition: all var(--transition-normal);
}

.project-filter-btn.active {
  background-color: var(--color-text-accent);
  border-color: var(--color-text-accent);
  color: var(--color-bg-primary);
}

.project-item {
  transition: all var(--transition-normal);
}

.project-item.hidden {
  display: none !important;
}

/* ============================================
   SOCIAL SHARING
   ============================================ */

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.social-share-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
