/* Modern Design System - Dark Premium Theme */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-card: #ffffff;
  --text-primary: #011F5B;
  /* Penn Blue */
  --text-secondary: #4a4a4a;
  --accent-primary: #990000;
  /* Penn Red */
  --accent-hover: #7a0000;
  --accent-glow: rgba(153, 0, 0, 0.15);
  --border-color: #e5e5e5;

  /* Typography */
  --font-main: 'Lato', system-ui, -apple-system, sans-serif;
  --font-heading: 'Lato', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 5rem 2rem;

  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: 1px solid rgba(1, 31, 91, 0.1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(to right, var(--text-primary), var(--accent-primary));
  /* Penn Blue to Red */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 25px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(1, 31, 91, 0.05);
  /* Light Penn Blue tint */
}

/* Navigation - Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--accent-primary);
  /* Penn Red for 'underwriting' */
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

/* Features/Projects Grid */
.projects {
  padding: var(--section-padding);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 200px;
  background: #2a2a2a;
  /* Placeholder bg */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-link {
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  gap: 0.8rem;
  color: var(--accent-primary);
}

/* Resume Section */
.resume-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  text-align: center;
}

.resume-preview {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: left;
}

.resume-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.resume-item {
  margin-bottom: 1.5rem;
}

.resume-item h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.resume-item .meta {
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  /* Simplified for MVP */
}

/* Gallery Slideshow */
.gallery-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  flex: 0 0 300px;
  height: 250px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.75rem));
    /* Adjust based on gap */
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 50%;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

/* For mobile lightbox nav */
@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    color: white;
    z-index: 2001;
  }
}