@font-face {
  font-family: 'jostbold';
  src: url('jost.bold-webfont.woff2') format('woff2'),
       url('jost.bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --deep-purple: #4A148C;
  --soft-purple: #7B1FA2;
  --light-purple: #BA68C8;
  --pale-cyan: #80DEEA;
  --warm-gray: #ECEFF1;
}

body.retro-80s-style {
  font-family: 'jostbold', sans-serif;
  background: 
    linear-gradient(to bottom, #0F0C29 0%, #2A0845 100%);
  color: var(--warm-gray);
  line-height: 1.6;
}

.retro-title {
  font-family: 'jostbold', sans-serif;
  color: var(--warm-gray);
  text-shadow: 
    2px 2px 0 rgba(74, 20, 140, 0.5),
    4px 4px 0 rgba(123, 31, 162, 0.3);
  position: relative;
  letter-spacing: 2px;
}

.retro-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, 
    transparent, 
    var(--pale-cyan), 
    transparent);
}

.retro-subtitle {
  font-family: 'jostbold', sans-serif;
  color: var(--light-purple);
  position: relative;
  display: inline-block;
  padding: 0 15px;
}

.retro-button-80s,
.retro-button-90s,
.retro-button-2000s,
.retro-link {
  font-family: 'jostbold', sans-serif;
  transition: all 0.3s ease;
}

.retro-button-80s {
  border: 2px solid var(--light-purple);
  background: rgba(74, 20, 140, 0.2);
  color: var(--warm-gray);
  padding: 8px 20px;
  position: relative;
}

.retro-button-80s:hover {
  background: rgba(74, 20, 140, 0.4);
  box-shadow: 0 0 10px rgba(186, 104, 200, 0.3);
}

.retro-button-90s {
  background: transparent;
  color: var(--light-purple);
  border-bottom: 2px solid var(--pale-cyan);
  padding: 6px 0;
}

.retro-button-90s:hover {
  letter-spacing: 1px;
  color: var(--pale-cyan);
}

.retro-button-2000s {
  background: rgba(128, 222, 234, 0.1);
  color: var(--pale-cyan);
  border: 1px solid var(--pale-cyan);
  padding: 8px 20px;
}

.retro-button-2000s:hover {
  background: rgba(128, 222, 234, 0.2);
  letter-spacing: 1px;
}

.retro-link {
  color: var(--light-purple) !important;
  text-decoration: none;
  position: relative;
}

.retro-link:before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pale-cyan);
  transition: width 0.3s ease;
}

.retro-link:hover:before {
  width: 100%;
}

.retro-footer {
  font-family: 'jostbold', sans-serif;
  border-top: 1px solid rgba(186, 104, 200, 0.3);
  background: rgba(15, 23, 42, 0.3);
  position: relative;
}

.retro-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--pale-cyan),
    transparent
  );
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(128, 222, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 222, 234, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link.start { color: #9b4d96; }
.nav-link.about { color: #f472b6; }
.nav-link.contacts { color: #06b6d4; }
.nav-link.projects { color: #f59e0b; }
.nav-link.thanks { color: #6366f1; }

.nav-link:hover {
  color: #ffffff;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.mobile-link.start { color: #9b4d96; }
.mobile-link.about { color: #f472b6; }
.mobile-link.contacts { color: #06b6d4; }
.mobile-link.projects { color: #f59e0b; }
.mobile-link.thanks { color: #6366f1; }

.mobile-link:hover {
  color: #333333;
  background-color: #ffffff;
}

.nav-link span, .mobile-link span {
    text-transform: lowercase !important;
}

.nav-highlight {
  position: relative;
}

.nav-highlight ::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
}
.nav-highlight:hover::after {
  opacity: 1;
  bottom: -6px;
}
.active-nav::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  opacity: 1;
  transition: all 0.3s ease;
}
.nav-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover {
  transform: translateY(-2px);
}
#mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}
#mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}