/* -- jasonisa.css -- */

/* 🎨 jasonisa Design Update 01 Scheme
------------------------------------- */
:root {
  /* Core Palette - Dark/Slate/Charcoal */
  --bg-body: #121212;
  /* Very dark charcoal, almost black */
  --bg-card: #1e1e1e;
  /* Slightly lighter for cards */
  --bg-header: #0a0a0a;
  /* Darkest for header */

  /* Accents - Turquoise/Blue/Slate */
  --primary: #40e0d0;
  /* Turquoise */
  --secondary: #2f4f4f;
  /* Dark Slate Gray */
  --highlight: #00ced1;
  /* Dark Turquoise */
  --text-main: #e0e0e0;
  /* Off-white for readability */
  --text-muted: #a0a0a0;
  /* Light gray */

  --border: 1px solid var(--secondary);
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--highlight);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* padding: var(--spacing-lg) 0; Only center if needed, removed default centering */
}

/* Header & Nav */
header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--secondary);
  padding: var(--spacing-md) 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--highlight);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Navigation Visibility Fix */
.nav-links a:hover,
.nav-links a.active {
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
}

/* Typography */
h1,
h2,
h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: var(--spacing-sm);
  display: inline-block;
}

h2 {
  font-size: 1.8rem;
  color: var(--highlight);
  margin-top: var(--spacing-lg);
}

h3 {
  font-size: 1.4rem;
  color: var(--text-main);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-main);
  /* Ensure contrast */
  max-width: 800px;
  /* Comfortable reading width */
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Components */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary);
  color: var(--text-main);
  border: 1px solid var(--primary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: var(--primary);
  color: var(--bg-body);
  text-decoration: none;
  box-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}

/* Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--secondary);
  padding: var(--spacing-lg);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

/* Gallery Specifics */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid var(--secondary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--primary);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Word List - Refinement */
.word-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.word-item {
  color: var(--text-muted);
  /* Lighter tone */
  font-size: 0.95rem;
  padding: 4px 8px;
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid transparent;
}

/* Removed hover/active states that implied links as per directive */
.word-item:hover {
  color: var(--primary);
  border-color: var(--secondary);
  cursor: pointer;
  background: rgba(64, 224, 208, 0.1);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--bg-body);
  box-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
  transform: translateY(-3px);
}

/* Slideshow */
#slideshow-container {
  padding: var(--spacing-md);
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--secondary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--bg-header);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--secondary);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }

  .nav-links {
    justify-content: center;
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 6px 10px;
    /* Ensure visible touch targets */
    background: rgba(255, 255, 255, 0.05);
  }

  h1 {
    font-size: 2rem;
  }

  .container {
    width: 95%;
    padding: var(--spacing-sm);
  }
}



/* End of jasonisa.css */