/* ===================================
   LEXI STEVENS PORTFOLIO - GLOBAL STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-bg: #1a1a1a;
  --darker-bg: #0f0f0f;
  --white: #ffffff;
  --pink: #d946a6;
  --purple: #a855f7;
  --orange: #ff8c42;
  --gold: #d4af37;
  --light-text: #e0e0e0;
  --border-color: #333333;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
}

/* ===================================
   NAVBAR STYLES
   =================================== */

.navbar {
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--gold);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.3rem;
}

.nav-links a:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.nav-links a.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  padding: 4rem 2rem;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--pink);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(217, 70, 166, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}

.btn-outline:hover {
  background: var(--pink);
  color: var(--white);
}

/* ===================================
   SECTION STYLES
   =================================== */

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

section h2 span {
  color: var(--pink);
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--light-text);
}

/* ===================================
   PORTFOLIO GRID
   =================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--darker-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--pink);
  box-shadow: 0 10px 30px rgba(217, 70, 166, 0.2);
}

.portfolio-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
}

.portfolio-card-content {
  padding: 1.5rem;
}

.portfolio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.portfolio-card p {
  color: var(--light-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.portfolio-tag {
  display: inline-block;
  background: rgba(217, 70, 166, 0.2);
  color: var(--pink);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

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

footer {
  background: var(--darker-bg);
  border-top: 2px solid var(--gold);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--light-text);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--purple);
}

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

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: var(--darker-bg);
  border: 1px solid var(--border-color);
  color: var(--white);
  border-radius: 5px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

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

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Skills grid: 2 columns on tablet */
  section > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    flex-wrap: wrap;
  }

  .hero {
    padding: 2rem 1rem;
    min-height: 40vh;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  /* Skills grid: 1 column on mobile */
  section > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===================================
   CONTACT MODAL STYLES
   =================================== */

.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.contact-modal.active {
  display: flex;
}

.contact-modal-content {
  background: var(--darker-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.contact-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(217, 70, 166, 0.8);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.contact-modal-close:hover {
  background: var(--pink);
}

/* ===================================
   NEON FLICKER BUTTON
   =================================== */

@keyframes neonFlicker {
  0% {
    box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink), inset 0 0 10px rgba(217, 70, 166, 0.3);
    opacity: 1;
  }
  5% {
    box-shadow: 0 0 8px var(--pink), 0 0 15px var(--pink), inset 0 0 8px rgba(217, 70, 166, 0.3);
    opacity: 0.95;
  }
  10% {
    box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink), inset 0 0 10px rgba(217, 70, 166, 0.3);
    opacity: 1;
  }
  15% {
    box-shadow: 0 0 6px var(--pink), 0 0 12px var(--pink), inset 0 0 6px rgba(217, 70, 166, 0.3);
    opacity: 0.9;
  }
  20% {
    box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink), inset 0 0 10px rgba(217, 70, 166, 0.3);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink), inset 0 0 10px rgba(217, 70, 166, 0.3);
    opacity: 1;
  }
}

@keyframes neonFlickerHover {
  0% {
    box-shadow: 0 0 10px white, 0 0 20px white, inset 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
  5% {
    box-shadow: 0 0 8px white, 0 0 15px white, inset 0 0 8px rgba(255, 255, 255, 0.3);
    opacity: 0.95;
  }
  10% {
    box-shadow: 0 0 10px white, 0 0 20px white, inset 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
  15% {
    box-shadow: 0 0 6px white, 0 0 12px white, inset 0 0 6px rgba(255, 255, 255, 0.3);
    opacity: 0.9;
  }
  20% {
    box-shadow: 0 0 10px white, 0 0 20px white, inset 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 10px white, 0 0 20px white, inset 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
}

.neon-connect-btn {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 2px solid var(--pink);
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  font-family: inherit;
  padding: 0.5rem 1rem;
  margin: 0;
  line-height: inherit;
  border-radius: 5px;
  transition: all 0.3s ease;
  animation: neonFlicker 4s infinite;
}

.neon-connect-btn:hover {
  border-color: white;
  animation: neonFlickerHover 4s infinite;
}
