/* styles.css, Luke Stevens, April 26th,2026 */

:root {
  --bg: #0B0F19;
  --card: #111827;
  --primary: #7C3AED;
  --secondary: #4F46E5;
  --text: #E5E7EB;
  --muted: #9CA3AF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.tagline {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.hero-buttons {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.3rem;
  transition: all 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
}

.btn.secondary {
  border: 1px solid #2a2f3a;
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

nav {
  margin-top: 2rem;
}

nav a {
  margin: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}

section {
  margin: 4rem 0;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid #1f2937;
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.15);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.about, .contact {
  max-width: 600px;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid #1f2937;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.profile-img {
  width: 18vw;
  max-width: 180px;
  height: 18vw;
  max-height: 180px;

  border-radius: 50%;
  margin-bottom: 1.2rem;
  object-fit: cover;

  border: 2px solid rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
  transition: all 0.3s ease;
}

.clickable-img {
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .btn {
    display: block;
    margin: 0.5rem auto;
  }
}
