/* Base styles for exported sites */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* Nav */
.site-nav {
  background: #1a1a2e;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #764ba2;
  text-decoration: none;
}

.nav-title-mobile {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #eee;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #764ba2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #eee;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-top: 1px solid #0f3460;
  }
  .nav-links.open { display: flex; }
  .nav-title-full { display: none; }
  .nav-title-mobile { display: inline; }
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: #764ba2;
  color: #fff;
  padding: 8px 16px;
}

.skip-link:focus {
  left: 0;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
}

/* Gallery thumbnails */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Horizontal gallery (wide landscape images stacked) */
.horizontal-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.hgallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.hgallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.hgallery-item:hover img {
  transform: scale(1.03);
}

.hgallery-item figcaption {
  padding: 12px 16px;
  background: #f8f9fa;
  font-size: 15px;
  color: #333;
}

/* Vertical gallery (tall portrait images side by side) */
.vertical-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.vgallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  width: 280px;
}

.vgallery-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.vgallery-item:hover img {
  transform: scale(1.03);
}

.vgallery-item figcaption {
  padding: 10px 12px;
  background: #f8f9fa;
  font-size: 14px;
  color: #333;
}

@media (max-width: 640px) {
  .vgallery-item {
    width: 100%;
  }
}

/* Montage gallery */
.montage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 180px;
  gap: 6px;
}

.montage-gallery .montage-item {
  height: 100%;
}

.montage-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.montage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.montage-item:hover img {
  transform: scale(1.06);
}

/* Montage hover preview */
.montage-preview {
  display: none;
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  border: 2px solid rgba(118,75,162,0.4);
  background: #262624;
}

.montage-preview img {
  display: block;
  max-width: 50vw;
  max-height: 70vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  .montage-preview {
    display: none !important;
  }
}

/* Masonry gallery */
.masonry-gallery {
  column-count: 3;
  column-gap: 12px;
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .masonry-gallery {
    column-count: 1;
  }
}

/* Swiper carousel gallery */
.swiper-gallery .swiper {
  border-radius: 8px;
  overflow: hidden;
}

.swiper-gallery .swiper-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.swiper-gallery .swiper-button-prev,
.swiper-gallery .swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,0.35);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.swiper-gallery .swiper-button-prev::after,
.swiper-gallery .swiper-button-next::after {
  font-size: 18px;
}

.swiper-gallery .swiper-pagination-bullet-active {
  background: #764ba2;
}

@media (max-width: 768px) {
  .swiper-gallery .swiper-slide img {
    height: 300px;
  }
}

/* Jumbo gallery */
.jumbo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.jumbo-gallery[data-layout="grid"] {
  display: grid;
  grid-template-columns: repeat(var(--jumbo-cols, 1), 1fr);
}

.jumbo-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.jumbo-gallery[data-layout="single"] .jumbo-item {
  flex: 1 1 0%;
  min-width: 0;
}

.jumbo-item img {
  width: 100%;
  height: var(--jumbo-img-h, 500px);
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.jumbo-item:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .jumbo-gallery[data-layout="single"] {
    flex-direction: column;
  }
  .jumbo-gallery[data-layout="grid"] {
    grid-template-columns: 1fr !important;
  }
  .jumbo-item img {
    height: auto !important;
    min-height: 200px;
  }
}

/* Large gallery */
.large-gallery {
  display: grid;
  gap: 12px;
}

.large-gallery[data-flow="right-down"] {
  grid-template-columns: repeat(var(--lg-cols, 2), 1fr);
}

.large-gallery[data-flow="down"] {
  grid-template-columns: 1fr;
}

.lg-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.lg-item img {
  width: 100%;
  height: var(--lg-img-h, 300px);
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.lg-item:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .large-gallery[data-flow="right-down"] {
    grid-template-columns: 1fr !important;
  }
  .lg-item img {
    height: auto !important;
    min-height: 150px;
  }
}

/* Contact form (Web3Forms) */
.w3f-contact input:focus,
.w3f-contact textarea:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(118,75,162,0.15);
}

.w3f-submit:hover {
  opacity: 0.9;
}

.w3f-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.w3f-status.success {
  color: #0a8754;
}

.w3f-status.error {
  color: #dc3545;
}

/* GLightbox overrides */
.glightbox-clean .gslide-description {
  background: transparent;
}

.glightbox-clean .gdesc-inner {
  padding: 12px 0;
}

.glightbox-clean .gslide-title {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
}

/* Code viewer */
.code-viewer pre {
  overflow-x: auto;
}

/* Password gate */
.pw-box {
  background: #16213e;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  width: 90vw;
  color: #eee;
}

.pw-box h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.pw-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #aaa;
}

.pw-box input {
  width: 100%;
  padding: 12px 44px 12px 12px;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #2e2e2e;
  color: #eee;
  font-size: 16px;
  margin-bottom: 16px;
  transition: background 0.2s, border-color 0.2s;
}

.pw-box input:focus {
  outline: none;
  background: #3a3a3a;
  border-color: #555;
}

.pw-box button {
  background: #764ba2;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.pw-box button:hover {
  background: #9b7cc5;
}

#pw-error {
  color: #764ba2;
  margin-top: 8px;
  min-height: 20px;
}

/* File download links */
.file-download {
  transition: all 0.2s;
}

.file-download:hover {
  border-color: #764ba2 !important;
  background: #fff !important;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid #764ba2;
  outline-offset: 2px;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #764ba2;
  outline-offset: 2px;
}

/* === JESSE RIOS PORTFOLIO - PURPLE THEME === */
:root {
  --primary: #764ba2;
  --primary-light: #9b7cc5;
  --dark: #1a1a1a;
  --dark-light: #242424;
  --gray: #333;
  --gray-light: #f5f5f5;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.section { padding: 80px 20px; }
.section-dark { background: var(--dark); color: var(--white); }
.section-gray { background: var(--gray-light); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-light); margin-bottom: 40px; max-width: 600px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: 16px; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; border: 2px solid var(--dark); color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--gray); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.card-body { padding: 24px; }
.card-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card-text { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-primary { background: rgba(118,75,162,0.1); color: var(--primary); }
.divider { border: none; border-top: 1px solid #eee; margin: 40px 0; }
.skill-bar { margin-bottom: 20px; }
.skill-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.skill-bar-track { background: #e8e8e8; border-radius: 4px; height: 8px; overflow: hidden; }
.skill-bar-fill { background: linear-gradient(90deg, var(--primary), #667eea); height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--primary); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--primary); }
.timeline-date { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.timeline-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.timeline-text { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.tag { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; margin: 4px; background: var(--gray-light); color: var(--text); transition: all 0.2s; }
.tag:hover { background: var(--primary); color: var(--white); }
.hero-static { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.75); }
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 40px 20px; }
.pw-gate { position: fixed; inset: 0; background: var(--dark); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.pw-box { background: var(--dark-light); padding: 48px; border-radius: 12px; text-align: center; max-width: 420px; width: 90%; border: 1px solid var(--gray); }
.pw-box h2 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.pw-box p { color: #999; font-size: 14px; margin-bottom: 24px; }
.pw-box label { display: block; color: #999; font-size: 13px; margin-bottom: 8px; text-align: left; }
.pw-box input[type=password] { width: 100%; padding: 12px 16px; border: 1px solid var(--gray); background: var(--dark); color: var(--white); border-radius: var(--radius); font-size: 16px; margin-bottom: 16px; }
.pw-box input[type=password]:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.pw-box button { width: 100%; padding: 14px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius); font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.pw-box button:hover { background: var(--primary-light); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform 0.3s; }
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 768px) {
  .section { padding: 50px 16px; }
  .section-title { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-static { min-height: 400px; }
}
