/* ============================================
   FONTS & CSS VARIABLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600&family=Inter:wght@400;500;600;700&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #333;
  --background-color: #ffffff;
  --accent-color: #ff7f50;
  --spacing: 20px;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --sidebar-width: 250px;
  
  /* Light mode variables */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #333;
  --text-muted: #666;
  --text-light: #999;
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --border-light: #e0e0e0;
  --border-medium: #ddd;
}

/* Dark mode variables */
body.dark-mode {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;
  --text-primary: #e8e8e8;
  --text-secondary: #d0d0d0;
  --text-muted: #a0a0a0;
  --text-light: #888;
  --shadow-sm: rgba(255, 255, 255, 0.03);
  --shadow-md: rgba(255, 255, 255, 0.06);
  --shadow-lg: rgba(255, 255, 255, 0.1);
  --border-light: #333;
  --border-medium: #444;
  --accent-color: #ff8c6b;
  --secondary-color: #b8b8b8;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  margin: 0;
  height: 100%;
}

button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

a {
  text-decoration: none;
}

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  font-weight: 300;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  display: flex;
  flex-direction: column;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  z-index: 1000;
}

.scroll-progress div {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 100%;
  background-color: var(--accent-color);
  transform-origin: left;
  transition: width 0.1s ease-out;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 2rem;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.nav-text {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.subtitle-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-top: -1.5rem;
}

/* Hero Image */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px var(--shadow-md);
}

/* Spotify Player */
.spotify-player {
  position: relative;
  width: 100%;
  padding: 0.75rem 0;
  background: var(--bg-tertiary);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.spotify-player iframe {
  display: block;
  border-radius: 8px;
  width: 60%;
  max-width: 350px;
  height: 80px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.spotify-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  font-weight: 400;
  text-align: center;
}

/* Instagram Link */
.hero-instagram-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-primary);
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  z-index: 10;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.hero-instagram-link:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .hero-instagram-link {
  color: var(--text-primary);
}

/* About Me Button */
.hero-about-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-primary);
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  z-index: 10;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  outline: none;
}

.hero-about-link:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .hero-about-link {
  color: var(--text-primary);
}

/* About Me Text Overlay */
.about-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-text-overlay.active {
  display: flex;
  opacity: 1;
}

.about-text-content {
  max-width: 600px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.about-text-content p {
  margin-bottom: 1.5rem;
  opacity: 0;
}

.about-text-content p.typing {
  opacity: 1;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-color);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-toggle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.75rem 0;
}

.toggle-button {
  background: transparent !important;
  border: 1px solid var(--border-medium) !important;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  width: fit-content;
  max-width: 180px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.toggle-button::after {
  content: '›';
  font-size: 1.2rem;
  margin-left: 0;
  transition: transform 0.3s ease;
  transform: rotate(90deg);
  opacity: 0.5;
}

.toggle-button:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: #999 !important;
  color: var(--secondary-color) !important;
  transform: none;
  box-shadow: none;
}

.toggle-button.active {
  background: transparent !important;
  border-color: #999 !important;
  color: var(--secondary-color) !important;
  box-shadow: none;
}

.toggle-button.active::after {
  transform: rotate(-90deg);
  opacity: 1;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
}

.nav-links.active {
  max-height: 400px;
  opacity: 1;
  margin: 0.5rem 0;
}

.nav-links.visible {
  display: flex;
}

.nav-item {
  padding: 0.875rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.nav-item::before {
  display: none;
}

.nav-item:hover {
  color: var(--accent-color);
  background: rgba(255, 127, 80, 0.1);
  transform: none;
  padding-left: 1.5rem;
}

.nav-item.active {
  color: var(--accent-color);
  background: rgba(255, 127, 80, 0.15);
  font-weight: 600;
  padding: 0.875rem 1.5rem;
}

.nav-item.active::after {
  display: none;
}

body.dark-mode .nav-item.active {
  color: #ffaa88;
  background: rgba(255, 170, 136, 0.2);
}

.bottom-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: flex-start;
}

/* ============================================
   CONTENT & GALLERY
   ============================================ */
.content {
  padding: 4rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  background: var(--bg-primary);
}

.gallery-section {
  margin-bottom: 8rem;
  background: var(--bg-primary);
}

.gallery-section:first-of-type {
  margin-top: 4rem;
}

.gallery-section h2 {
  text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  text-transform: lowercase;
  color: var(--text-primary);
  margin-bottom: 3rem;
  position: relative;
}

.gallery-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.gallery-subsection {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.gallery-subsection h3 {
  text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  text-transform: lowercase;
  color: var(--text-primary);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.gallery-subsection .gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

/* Street reflection photos - smaller and consistent aspect ratio */
#street .gallery-subsection .gallery-grid {
  max-width: 1000px;
  margin: 0 auto;
  gap: 15px;
  padding: 15px;
}

#street .gallery-subsection .gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  aspect-ratio: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  padding: 30px;
}

/* Street section main photos - single row with smaller size */
#street > .gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: var(--bg-tertiary);
  box-shadow: 0 4px 6px var(--shadow-md);
  display: block;
  border-radius: 0;
}

.gallery-grid img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-lg);
}

/* Concept portrait standalone hero image */
.concept-hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 5rem;
  display: block;
  cursor: pointer;
  background: var(--bg-tertiary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   3D MODEL PORTFOLIO STYLES
   ============================================ */
.model-section {
  margin: 0;
  padding: 0;
  background: var(--bg-secondary);
}

.section-wrapper {
  max-width: 1400px;
  margin: 0 auto 6rem;
  padding: 4rem 3rem;
  background: var(--bg-secondary);
}

.section-wrapper:first-child {
  padding-top: 6rem;
}

.section-title {
  font-family: 'Inter', 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  text-transform: lowercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.7;
}

.sketchfab-layout {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.model-spacer {
  height: 4rem;
}

.sketchfab-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.sketchfab-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-card {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.ak-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: 550px;
}

.ak-left {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  background: var(--bg-tertiary);
}

.ak-left img,
.ak-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.ak-right {
  overflow: hidden;
}

.cigs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cigs-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.cigs-grid img:hover {
  transform: translateY(-12px) rotate(3deg);
  box-shadow: 0 20px 40px var(--shadow-lg);
}

.sofa-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sofa-layout img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--shadow-md);
  transition: all 0.4s ease;
}

.sofa-layout img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px var(--shadow-lg);
}

/* Fantasy Weapons Showcase */
.fantasy-weapons-wrapper {
  background: var(--bg-secondary);
  padding: 4rem 3rem;
  margin-bottom: 0;
}

.fantasy-weapons-wrapper .section-title {
  text-align: center;
}

.fantasy-weapons-wrapper .section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
}

.weapons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.weapon-item {
  position: relative;
  overflow: hidden;
}

.weapon-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--shadow-md);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
}

.weapon-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 32px var(--shadow-lg);
}

.weapon-label {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  text-transform: lowercase;
  opacity: 0.8;
}

/* Dagger Showcase - now part of weapons */
.dagger-wrapper {
  background: var(--bg-secondary);
  padding: 0 3rem 4rem;
  margin-bottom: 0;
}

.dagger-showcase {
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.dagger-main {
  position: relative;
  overflow: hidden;
}

.dagger-main img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--shadow-md);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dagger-main:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 32px var(--shadow-lg);
}

/* ============================================
   3D MODEL PORTFOLIO WORKFLOW
   ============================================ */
.dagger-workflow {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  text-align: center;
}

.workflow-item {
  padding: 1.5rem 1rem;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-sm);
  transition: all 0.3s ease;
}

.workflow-item:hover {
  box-shadow: 0 6px 16px var(--shadow-md);
}

.workflow-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.workflow-item p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
  z-index: 1101;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1101;
}

.lightbox-nav:hover {
  background-color: rgba(255, 127, 80, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ============================================
   FOOTER & MISC
   ============================================ */
footer {
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid #eee;
  background: var(--bg-primary);
}

.social-links {
  padding-top: 2rem;
  text-align: center;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 1.1rem;
  transition: var(--transition);
}

.instagram-link:hover {
  color: var(--accent-color);
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

#back-to-top.visible {
  display: flex;
  opacity: 0.9;
}

#back-to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
}

/* ============================================
   PORTFOLIO NAVIGATION BAR
   ============================================ */
.portfolio-nav-bar {
  width: 100%;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 999;
  position: relative;
  overflow: hidden;
}

/* Pixelation canvas for nav bar */
#navPixelCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 0;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.portfolio-nav-btn {
  background: transparent;
  border: none;
  padding: 1.5rem 3rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  transition: all 0.3s ease;
  position: relative;
}

.portfolio-nav-btn::after {
  display: none;
}

.portfolio-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.portfolio-nav-btn.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nav-text {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }

  #street > .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .ak-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ak-left {
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
  }

  .cigs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-subsection .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .concept-hero {
    max-width: 100%;
    margin-bottom: 3rem;
  }

  #street .gallery-subsection .gallery-grid {
    max-width: 100%;
    gap: 12px;
  }

  #street .gallery-subsection .gallery-grid img {
    height: 220px;
  }

  .dagger-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dagger-workflow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .weapons-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 0;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    order: 2;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    padding: 3rem 1.5rem;
  }

  .nav-text {
    font-size: 3.5rem;
    order: 1;
    text-align: center;
    font-weight: 800;
  }

  .subtitle-text {
    font-size: 1rem;
    text-align: center;
    order: 1;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
  }

  .hero-right {
    order: 1;
    margin: 0;
    width: 100%;
  }

  .hero-image {
    width: 100%;
    height: auto;
    box-shadow: none;
  }

  .main-nav {
    order: 2;
    width: 100%;
    display: none;
  }

  .portfolio-toggle {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    margin-left: 0;
  }

  .bottom-links {
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .toggle-button {
    font-size: 0.85rem;
    padding: 0.625rem 1rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-shadow: none;
    justify-content: center;
  }

  .toggle-button::after {
    margin-left: 0.5rem;
  }

  .nav-links {
    padding: 0 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding-left: 1rem;
  }

  .photo-nav {
    margin-left: 0;
    padding-left: 1rem;
  }

  .photo-nav .nav-item {
    padding-left: 1rem;
  }

  .nav-item {
    padding: 0.75rem 1rem;
    text-align: center;
    width: 100%;
  }

  .nav-item::before {
    display: none;
  }

  .nav-item:hover {
    padding-left: 1rem;
    transform: translateX(0);
  }

  .nav-item.active {
    padding: 0.75rem 1rem;
  }

  .nav-item.active::after {
    display: none;
  }

  .hero-instagram-link {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    border-width: 1px;
    z-index: 20;
  }

  .hero-about-link {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    border-width: 1px;
    z-index: 20;
  }

  .about-text-overlay {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    z-index: 15;
    align-items: flex-start;
    padding-top: 4rem;
  }

  .about-text-content {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 100%;
    color: var(--text-muted);
  }

  .spotify-player {
    padding: 0.5rem 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.7);
  }

  .spotify-label {
    font-size: 0.55rem;
  }

  .spotify-player iframe {
    height: 80px;
    width: 80%;
    max-width: 280px;
  }

  .content {
    padding: 2rem 1rem;
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 12px;
  }

  .gallery-grid img {
    width: 100%;
    height: auto;
    grid-row-end: auto !important;
  }

  .gallery-section h2 {
    font-size: 2rem;
  }

  .section-wrapper {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .ak-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.5rem;
  }

  .ak-left {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
    background: transparent;
  }

  .ak-left img,
  .ak-right img {
    height: auto;
    object-fit: contain;
  }

  .cigs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sofa-layout {
    gap: 2rem;
  }

  .project-card {
    border-radius: 16px;
  }

  .sketchfab-layout {
    border-radius: 16px;
  }

  .photo-portfolio .gallery-section {
    margin-top: 5rem;
  }

  .model-section {
    margin: 0;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .scroll-progress {
    display: none;
  }

  .portfolio-nav-bar {
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    box-shadow: none;
    border-bottom: 1px solid var(--border-light);
  }

  body.dark-mode .portfolio-nav_bar {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border-light);
  }

  .portfolio-nav-container {
    padding: 0;
    width: 100%;
    flex-direction: row-reverse;
  }

  .portfolio-nav-btn {
    padding: 1.25rem 2rem;
    font-size: 0.95rem;
    flex: 1;
    font-weight: 400;
    color: var(--text-muted);
  }

  .portfolio-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
  }

  .portfolio-nav-btn.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
  }

  body.dark-mode .portfolio-nav-btn {
    color: var(--text-muted);
  }

  body.dark-mode .portfolio-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
  }

  body.dark-mode .portfolio-nav-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  }

  .spotify-player {
    padding: 0.5rem 0;
    border-radius: 0;
    background: var(--bg-tertiary);
  }

  body.dark-mode .spotify-player {
    background: var(--bg-tertiary);
  }

  /* ...existing code... */
}

@media (max-width: 480px) {
  .hero-left {
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .nav-text {
    font-size: 3rem;
    font-weight: 800;
  }

  .subtitle-text {
    font-size: 0.9rem;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
  }

  .portfolio-toggle {
    padding: 0 0.75rem;
  }

  .toggle-button {
    font-size: 0.8rem;
    padding: 0.5rem 0.875rem;
  }

  .nav-links {
    padding: 0 0.75rem;
  }

  .nav-item {
    font-size: 0.9rem;
    padding: 0.625rem 0.875rem;
  }

  .hero-instagram-link {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    z-index: 20;
  }

  .hero-about-link {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    z-index: 20;
  }

  .about-text-overlay {
    padding: 1.5rem 1rem;
    overflow-y: auto;
    padding-top: 3.5rem;
  }

  .about-text-content {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 8px;
  }

  .gallery-grid img {
    width: 100%;
    height: auto;
    grid-row-end: auto !important;
  }

  .section-wrapper {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .sofa-layout {
    gap: 1.5rem;
  }

  .project-card {
    border-radius: 16px;
  }

  .sketchfab-layout {
    border-radius: 16px;
  }

  .photo-portfolio .gallery-section {
    margin-top: 5rem;
  }

  .model-section {
    margin: 0;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .scroll-progress {
    display: none;
  }

  .portfolio-nav-bar {
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    box-shadow: none;
    border-bottom: 1px solid var(--border-light);
  }

  body.dark-mode .portfolio-nav-bar {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border-light);
  }

  .portfolio-nav-container {
    padding: 0;
    width: 100%;
    flex-direction: row-reverse;
  }

  .portfolio-nav-btn {
    padding: 1.25rem 2rem;
    font-size: 0.9rem;
    flex: 1;
    font-weight: 400;
    color: #666;
  }

  .portfolio-nav-btn:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.03);
  }

  .portfolio-nav-btn.active {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
  }

  .sketchfab-embed-wrapper {
    padding-bottom: 80%;
  }
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.dark-mode-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 15;
}

.theme-switch {
  position: relative;
  width: 70px;
  height: 34px;
  background: var(--bg-tertiary);
  border-radius: 34px;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-shadow: 0 2px 8px var(--shadow-md);
}

.theme-switch:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px var(--shadow-lg);
}

.theme-slider {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--accent-color);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  left: 4px;
  box-shadow: 0 2px 6px var(--shadow-md);
  z-index: 1;
}

body.dark-mode .theme-slider {
  transform: translateX(32px);
}

.theme-icon {
  font-size: 14px;
  transition: opacity 0.2s ease;
  user-select: none;
  z-index: 0;
  position: relative;
}

.sun-icon {
  opacity: 1;
  filter: brightness(0);
  order: 2;
}

.moon-icon {
  opacity: 0.4;
  filter: brightness(0) invert(1);
  order: 1;
}

body.dark-mode .sun-icon {
  opacity: 0.4;
}

body.dark-mode .moon-icon {
  opacity: 1;
}

/* ============================================
   RESPONSIVE DARK MODE
   ============================================ */
@media (max-width: 768px) {
  /* ...existing code... */
  
  .dark-mode-toggle {
    position: relative;
    bottom: auto;
    right: auto;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .theme-switch {
    width: 60px;
    height: 30px;
    padding: 0 6px;
  }

  .theme-slider {
    width: 22px;
    height: 22px;
  }

  body.dark-mode .theme-slider {
    transform: translateX(28px);
  }

  .theme-icon {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* ...existing code... */
  
  .dark-mode-toggle {
    position: relative;
    bottom: auto;
    right: auto;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .theme-switch {
    width: 54px;
    height: 28px;
    padding: 0 5px;
  }

  .theme-slider {
    width: 20px;
    height: 20px;
  }

  body.dark-mode .theme-slider {
    transform: translateX(24px);
  }

  .theme-icon {
    font-size: 11px;
  }
}

/*# sourceMappingURL=style.css.map */
