/*
 * Sarah Wesolowski - Personal Website
 * Vibrant Modern Design
 *
 * COLOR PALETTE:
 * --hot-pink: #ff00b4      (primary accent - links, buttons, key highlights)
 * --cyan: #00ffbc          (secondary accent - gradients, hover states)
 * --periwinkle: #8ea5ff    (tertiary - softer accents, backgrounds)
 * --lavender: #c493ff      (highlights - tags, badges, decorative)
 * --white: #ffffff         (backgrounds, text on dark)
 * --dark: #1a1a2e          (text, dark backgrounds)
 *
 * FONTS:
 * - Space Grotesk: Bold geometric sans for headings
 * - Inter: Clean readable sans for body text
 */

/* ============================================
   CSS VARIABLES - Edit colors here
   ============================================ */
:root {
  /* Primary Palette */
  --hot-pink: #ff00b4;
  --cyan: #00ffbc;
  --periwinkle: #8ea5ff;
  --lavender: #c493ff;
  --white: #ffffff;

  /* Text & Backgrounds */
  --dark: #1a1a2e;
  --dark-soft: #2d2d44;
  --gray: #6b7280;
  --gray-light: #f3f4f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--hot-pink), var(--lavender));
  --gradient-accent: linear-gradient(135deg, var(--cyan), var(--periwinkle));
  --gradient-full: linear-gradient(135deg, var(--hot-pink), var(--lavender), var(--periwinkle), var(--cyan));

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.16);
  --glow-pink: 0 0 20px rgba(255, 0, 180, 0.3);
  --glow-cyan: 0 0 20px rgba(0, 255, 188, 0.3);

  /* Layout */
  --max-width: 820px;
  --radius: 12px;
  --radius-sm: 6px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

/* Gradient text effect for main headings */
.gradient-text,
h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.75rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Gradient underline for h2 */
h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.35rem;
  color: var(--dark-soft);
}

h4 {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 600;
}

p {
  margin: 0 0 1.25rem;
  color: var(--dark-soft);
}

a {
  color: var(--hot-pink);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

a:hover {
  color: var(--lavender);
}

/* Animated underline for inline links */
.article-content a,
.about-content a {
  background: linear-gradient(to right, var(--cyan), var(--periwinkle));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 2px;
}

.article-content a:hover,
.about-content a:hover {
  background-size: 100% 2px;
}

strong {
  font-weight: 600;
  color: var(--dark);
}

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--dark-soft);
}

li::marker {
  color: var(--hot-pink);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main {
  flex: 1;
  padding: 3rem 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  background: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-light);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.25s;
}

.site-title:hover {
  opacity: 0.8;
}

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

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--hot-pink);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  padding: 2.5rem 0;
  margin-top: auto;
  text-align: center;
}

footer p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.35rem;
  transition: all 0.25s;
}

.social-links a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.about-content {
  flex: 1;
}

.about-content h1 {
  margin-top: 0;
  font-size: 2.75rem;
}

/* Subtitle list with gradient bullets */
.subtitle-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray);
}

.subtitle-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.subtitle-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gradient-accent);
  border-radius: 50%;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.subtitle-list li:last-child {
  margin-bottom: 0;
}

.profile-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--gradient-primary) border-box;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow-pink);
}

.location {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.6;
}

.location i {
  color: var(--hot-pink);
  margin-right: 0.35rem;
  width: 1rem;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.page-header h1 {
  margin: 0 0 0.5rem;
}

.page-header p {
  color: var(--gray);
  margin: 0;
  font-size: 1.05rem;
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.publication {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-light);
  transition: background 0.2s;
}

.publication:last-child {
  border-bottom: none;
}

.publication:hover {
  background: linear-gradient(90deg, transparent, rgba(142, 165, 255, 0.05), transparent);
}

.publication-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.publication-authors {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.publication-venue {
  font-style: italic;
  color: var(--periwinkle);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.publication-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--hot-pink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.publication-links a:hover {
  color: var(--lavender);
}

/* ============================================
   PROJECTS
   ============================================ */
.project-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--periwinkle);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.02);
}

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

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.project-card h3 a {
  color: var(--dark);
  background: none;
}

.project-card h3 a:hover {
  color: var(--hot-pink);
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.project-category {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--gradient-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* ============================================
   CV PAGE
   ============================================ */
.cv-download {
  background: linear-gradient(135deg, rgba(142, 165, 255, 0.1), rgba(196, 147, 255, 0.1));
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
  border: 1px solid rgba(142, 165, 255, 0.2);
}

.cv-download p {
  margin-bottom: 1.5rem;
}

/* ============================================
   ARTICLE PAGES (Projects, Blog Posts)
   ============================================ */
.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin-bottom: 0.75rem;
}

.article-meta {
  color: var(--gray);
  font-size: 0.9rem;
}

.article-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.article-content h2 {
  margin-top: 3rem;
}

.article-content h2::after {
  background: var(--gradient-primary);
}

.article-content h4 {
  margin-top: 2rem;
  color: var(--hot-pink);
  font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--glow-pink);
  color: var(--white);
}

.btn:active {
  transform: translateY(0);
}

/* Secondary button style */
.btn-secondary {
  background: var(--white);
  color: var(--hot-pink);
  border: 2px solid var(--hot-pink);
}

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

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Gradient divider */
.divider {
  height: 3px;
  background: var(--gradient-full);
  border: none;
  border-radius: 2px;
  margin: 3rem 0;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 h1 {
  font-size: 6rem;
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .about-content h1 {
    font-size: 2.25rem;
  }

  .subtitle-list {
    align-items: center;
  }

  .profile-column {
    margin: 0 auto;
  }

  .profile-image {
    width: 160px;
    height: 160px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-links a::after {
    display: none;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .error-404 h1 {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .container {
    padding: 0 1rem;
  }

  main {
    padding: 2rem 0;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .location {
    font-size: 0.8rem;
  }

  .cv-download {
    padding: 1.5rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated gradient for special elements */
.animated-gradient {
  background: var(--gradient-full);
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: fadeIn 0.5s ease;
}
