/* ==========================================================================
   TIREGENI / ARI AALTONEN — MASTER PORTFOLIO STYLES
   Curated Fine Art Sculptures & Master Builder Fabrication
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12151c;
  --bg-tertiary: #1a1e28;
  --bg-card: rgba(20, 24, 33, 0.88);
  --bg-card-hover: rgba(28, 34, 46, 0.96);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.35);
  
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dark: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.15);
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 12px 32px -10px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 22px 48px -12px rgba(245, 158, 11, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #1c1813 0%, var(--bg-primary) 65%);
  min-height: 100vh;
}

/* Ambient Lighting Background */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 650px;
  background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-glow);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #000;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-switch {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 10px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.btn-switch:hover {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  transform: translateY(-2px);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo-badge {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--accent-gold-light);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   PORTFOLIO SWITCH BANNER (Floating & Prominent)
   ========================================================================== */
.portfolio-switch-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 12px 0;
  margin-top: 80px;
  position: relative;
  z-index: 90;
}

.switch-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.switch-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.switch-bar-tag {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 60px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-glow);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold-light);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  aspect-ratio: 4/5;
  background: #000;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.hero-card-badge {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 8px;
}

.hero-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.hero-card-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCULPTURE SERIES SHOWCASE (Fine Art Gallery Grid)
   ========================================================================== */
.sculpture-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-video-preview {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .card-video-preview video {
  opacity: 1;
}

.video-play-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-card:hover .video-play-pill {
  background: var(--accent-blue);
  color: #000;
  border-color: var(--accent-blue);
  transform: translate(-50%, -50%) scale(1.08);
}

.gallery-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  transition: var(--transition);
}

.card-badge.badge-available,
.modal-badge.badge-available {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
  color: #34d399 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.card-badge.badge-private-collection,
.modal-badge.badge-private-collection {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: var(--accent-blue) !important;
}

.card-photo-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  transition: var(--transition);
}

.gallery-card:hover .card-photo-counter {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.card-body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.88rem;
  color: var(--accent-gold-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-dim);
}

.card-scale {
  font-weight: 600;
  color: var(--text-main);
}

.card-cta-hint {
  color: var(--accent-gold);
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   CAROUSEL LIGHTBOX MODAL (Dedicated Single-Sculpture Multi-Photo View)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 11, 0.96);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 1240px;
  width: 100%;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  position: relative;
}

/* Carousel Media Viewer (Left Pane) */
.carousel-media-pane {
  background: #000;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.carousel-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.carousel-video {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Carousel Navigation Arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.carousel-nav-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev {
  left: 16px;
}

.carousel-nav-btn.next {
  right: 16px;
}

/* Carousel Counter Badge */
.carousel-counter-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 10;
}

/* Swipe Hint */
.carousel-swipe-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  pointer-events: none;
}

/* Carousel Bottom Thumbnail Bar */
.carousel-thumb-bar {
  background: rgba(10, 12, 16, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) transparent;
}

.carousel-thumb-btn {
  width: 64px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #111;
  flex-shrink: 0;
  transition: var(--transition);
  padding: 0;
}

.carousel-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-gold);
  font-size: 0.62rem;
  font-weight: 700;
  gap: 2px;
}

.carousel-thumb-btn.active {
  border-color: var(--accent-gold);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.carousel-thumb-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Details Panel (Right Pane) */
.carousel-details-pane {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 92vh;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 20;
}

.lightbox-close:hover {
  background: var(--accent-gold);
  color: #000;
  transform: scale(1.08);
}

.modal-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-gold-glow);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--accent-gold-light);
  font-weight: 600;
  margin-bottom: 20px;
}

/* Photo Caption Box */
.modal-photo-caption {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.modal-photo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.modal-photo-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-long-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-line;
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.modal-spec-label {
  color: var(--text-dim);
  font-weight: 500;
}

.modal-spec-val {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
  max-width: 65%;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* ==========================================================================
   PHILOSOPHY & METHOD SECTION
   ========================================================================== */
.philosophy-section {
  padding: 100px 0;
  position: relative;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.method-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--bg-card-hover);
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-glow);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.method-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT THE ARTIST SECTION
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  aspect-ratio: 4/5;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   MAKER PAGE SPECIFIC STYLES (maker.html)
   ========================================================================== */
.maker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 32px;
}

.maker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.maker-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 48px -12px rgba(56, 189, 248, 0.2);
}

.maker-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.maker-details-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.maker-details-list li {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.maker-details-list li::before {
  content: "▹";
  color: var(--accent-gold);
  font-size: 1rem;
  line-height: 1.2;
}

/* Skills Tree Section */
.skills-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
}

.skill-icon-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skill-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-list li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Lapland Dossier Section */
.lapland-section {
  padding: 100px 0;
  position: relative;
}

.lapland-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.lapland-content h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #fff;
}

.lapland-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.lapland-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lapland-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 100px 0 120px;
  position: relative;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.contact-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.06);
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--accent-gold-glow);
}

.contact-cv-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   INSTAGRAM REEL CARD & MODAL EMBED STYLING
   ========================================================================== */
.card-ig-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.card-ig-iframe {
  width: 100%;
  height: 540px;
  margin-top: -56px;
  border: 0;
  pointer-events: none;
  display: block;
}

.card-ig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover .card-ig-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.carousel-ig-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 64px;
}

.carousel-ig-iframe {
  width: 400px;
  max-width: 100%;
  height: 66vh;
  min-height: 480px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .lapland-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .carousel-viewport {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  /* On mobile the header (with the profile switch) scrolls away with the page
     instead of staying pinned and eating up screen space. */
  .site-header {
    position: relative;
  }
  .nav-wrapper {
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .portfolio-switch-bar {
    margin-top: 0;
  }
  .nav-menu {
    display: none;
  }
  /* Every grid collapses to a single column that can never be wider than
     the screen. Without this, fixed minimum column widths (e.g. 340-390px)
     pushed the page wider than the phone, so the browser zoomed out and the
     sections only filled the left part of the screen. */
  .container {
    padding: 0 18px;
  }
  .gallery-grid, .maker-grid, .philosophy-grid, .skills-grid,
  .contact-grid, .hero-grid, .about-grid, .lapland-box {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .gallery-grid > *, .maker-grid > *, .philosophy-grid > *, .skills-grid > *,
  .contact-grid > *, .hero-grid > *, .about-grid > *, .lapland-box > * {
    min-width: 0;
    max-width: 100%;
  }
  section, main, footer {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
  }
  h1, h2, h3, h4, p, .hero-subtitle, .contact-info-val {
    overflow-wrap: break-word;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
  .contact-item {
    gap: 12px;
  }
  img, video, iframe {
    max-width: 100%;
  }
  .contact-card {
    padding: 36px 20px;
  }
}
