/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - TAKA IDEA (LIGHT SUNSET THEME)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Warm Sunset & Sunflower Light Palette */
  --bg-body: #FAF9F6;
  --bg-section-alt: #FFFBF5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --border-subtle: #E2E8F0;
  --border-glass: rgba(245, 158, 11, 0.15);
  --border-glass-hover: rgba(234, 88, 12, 0.35);
  
  /* Primary Warm Accents */
  --accent-orange: #EA580C;  /* Sunset Orange */
  --accent-sunflower: #F59E0B; /* Sunflower Yellow */
  --accent-amber: #D97706;     /* Deep Amber */
  --accent-warm-tint: #FEF3C7; /* Soft Amber Tint */
  --accent-orange-tint: #FFEDD5; /* Soft Orange Tint */

  /* Text Colors */
  --text-primary: #0F172A;   /* Deep Slate */
  --text-secondary: #475569; /* Slate Grey */
  --text-muted: #64748B;     /* Medium Muted Grey */
  --text-light: #FFFFFF;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
  --grad-sunflower: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  --grad-warm-bg: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  --grad-soft-glow: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(234, 88, 12, 0.04) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(234, 88, 12, 0.08);
  --shadow-warm-hover: 0 25px 50px -12px rgba(234, 88, 12, 0.18);
  
  /* Transitions */
  --trans-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast: all 0.15s ease;
}

/* Base resets & global styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
  border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background glowing blobs */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  animation: float 22s infinite alternate ease-in-out;
}
.blob1 {
  width: 550px;
  height: 550px;
  background: #FDE68A;
  top: -10%;
  right: -5%;
}
.blob2 {
  width: 500px;
  height: 500px;
  background: #FFEDD5;
  bottom: -10%;
  left: -5%;
  animation-delay: -5s;
}
.blob3 {
  width: 400px;
  height: 400px;
  background: #FEF08A;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 8%) scale(1.08); }
  100% { transform: translate(-5%, -5%) scale(0.92); }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background-color: rgba(250, 249, 246, 0.85);
  transition: var(--trans-smooth);
}
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  padding: 10px 0;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-sunflower);
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-orange);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: var(--trans-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 170px 0 90px;
  position: relative;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-warm-tint);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--accent-amber);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-sunflower);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--trans-smooth);
}
.btn-primary {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(234, 88, 12, 0.35);
}
.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--accent-sunflower);
  color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FEATURED CASE STUDIES (EDITORIAL SHOWCASE)
   ========================================================================== */
.featured-section {
  padding: 60px 0 80px;
}
.section-header-editorial {
  margin-bottom: 48px;
}
.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2.3rem;
  color: var(--text-primary);
}

.flagship-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flagship-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--trans-smooth);
  cursor: pointer;
}
.flagship-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-warm-hover);
}
.flagship-card.reverse {
  grid-template-columns: 1fr 1.1fr;
}
.flagship-card.reverse .flagship-thumb {
  order: 2;
}

.flagship-thumb {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  min-height: 340px;
}
.flagship-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans-smooth);
}
.flagship-card:hover .flagship-thumb img {
  transform: scale(1.03);
}

.flagship-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  box-shadow: var(--shadow-sm);
}

.flagship-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flagship-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.flagship-company {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.flagship-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.flagship-title {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.flagship-snippet {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.flagship-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.flagship-tag {
  background: var(--bg-body);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.flagship-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--trans-fast);
}
.flagship-card:hover .flagship-btn {
  color: var(--accent-sunflower);
  transform: translateX(4px);
}

/* ==========================================================================
   BENTO GRID SECTION (AI PRODUCTS & WEB APPS)
   ========================================================================== */
.bento-section {
  padding: 60px 0 80px;
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.bento-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-warm-hover);
}
.bento-card-thumb {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #F1F5F9;
}
.bento-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans-smooth);
}
.bento-card:hover .bento-card-thumb img {
  transform: scale(1.04);
}

.bento-tag {
  display: inline-block;
  background: var(--accent-warm-tint);
  color: var(--accent-orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}
.bento-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.bento-snippet {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.bento-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.bento-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.bento-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   ARCHIVE & SECONDARY PROJECTS (COMPACT GRID)
   ========================================================================== */
.archive-section {
  padding: 80px 0;
}
.archive-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}
.search-box {
  position: relative;
  min-width: 280px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--trans-fast);
}
.search-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--trans-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--grad-primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.archive-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-smooth);
  cursor: pointer;
}
.archive-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-md);
}
.archive-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #F1F5F9;
}
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--trans-smooth);
}
.archive-card:hover .archive-thumb img {
  transform: scale(1.05);
}
.archive-body {
  padding: 20px;
}
.archive-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.archive-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.archive-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   ABOUT / CV SECTION
   ========================================================================== */
.about-section {
  padding: 90px 0;
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
}
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;

}
.bio-sidebar {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 32px;
  box-shadow: var(--shadow-sm);

  height: fit-content;
}
.bio-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}
.bio-name {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.bio-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 16px;
}
.bio-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.bio-tags {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bio-tag-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}
.bio-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bio-tag-item {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Timeline */
.timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.timeline-dot {
  position: absolute;
  left: -9px;
  top: 32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}
.timeline-header {
  margin-bottom: 12px;
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;

  display: block;
  margin-bottom: 4px;
}
.timeline-role {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.timeline-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.timeline-body ul {
  margin-top: 12px;
  padding-left: 20px;
}
.timeline-body li {
  margin-bottom: 6px;
}

/* ==========================================================================
   MODAL LIGHTBOX (LIGHT MODE POLISH)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans-smooth);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  background: var(--bg-card);
  width: 92%;
  max-width: 1060px;
  max-height: 92vh;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  position: relative;
  padding: 40px;
}
.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-body);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
  z-index: 10;
}
.modal-close:hover {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-color: transparent;
}

.modal-project-cat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.modal-project-title {
  font-size: 2.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.25;
}

/* Light Mode Gallery Container */
.modal-gallery-wrap {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}
.modal-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}
.modal-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* Zoom hint button overlay */
.gallery-zoom-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-fast);
  cursor: pointer;
  z-index: 5;
}
.gallery-zoom-hint:hover {
  background: #FFFFFF;
  color: var(--accent-orange);
  border-color: var(--accent-sunflower);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--trans-fast);
  z-index: 6;
}
.gallery-nav:hover {
  background: #FFFFFF;
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-50%) scale(1.05);
}
.gallery-nav-prev { left: 16px; }
.gallery-nav-next { right: 16px; }

.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  z-index: 6;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: var(--trans-smooth);
}
.gallery-dot.active {
  background: var(--accent-orange);
  width: 22px;
  border-radius: 10px;
}

/* Sidebar & Details Layout */
.modal-desc-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.modal-project-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.modal-project-text h3, .modal-project-text h4 {
  color: var(--text-primary);
  margin: 20px 0 10px;
}
.modal-project-text ul {
  padding-left: 20px;
  margin: 10px 0 20px;
}
.modal-sidebar {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  height: fit-content;
}
.modal-sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-meta-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.22);
  transition: var(--trans-smooth);
  width: 100%;
  text-align: center;
}
.modal-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.32);
}

.modal-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--accent-orange);
  color: var(--accent-orange) !important;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-smooth);
  width: 100%;
  text-align: center;
}
.modal-download-btn:hover {
  background: var(--accent-warm-tint);
  border-color: var(--accent-sunflower);
  color: #C2410C !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Download Callout Box in Project Details */
.download-callout-box {
  background: linear-gradient(135deg, #FFFDF8 0%, #FEF5EA 100%);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0 28px;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.08);
}
.download-callout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.download-callout-badge {
  background: var(--grad-primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
}
.download-callout-title {
  font-size: 1.15rem;
  margin: 0 !important;
  color: var(--text-primary);
  font-weight: 700;
}
.download-callout-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.download-features-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(234, 88, 12, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.download-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.download-feature-icon {
  font-size: 1.1rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.download-note-info {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(234, 88, 12, 0.25);
}

/* Full-Screen Image Zoom Overlay */
.full-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans-smooth);
  padding: 24px;
  cursor: zoom-out;
}
.full-zoom-overlay.open {
  opacity: 1;
  visibility: visible;
}
.full-zoom-img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.full-zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
  cursor: pointer;
  z-index: 2010;
}
.full-zoom-close:hover {
  background: var(--accent-orange);
  color: #FFFFFF;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #0F172A;
  color: #F8FAFC;
  padding: 60px 0 40px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-link {
  color: #94A3B8;
  font-weight: 500;
}
.footer-link:hover {
  color: var(--accent-sunflower);
}
.footer-meta {
  color: #64748B;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.footer-version {
  color: var(--accent-sunflower);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
}

/* Responsive Breakpoints & RWD Polishing */
@media (max-width: 992px) {
  .flagship-card, .flagship-card.reverse {
    grid-template-columns: 1fr;
  }
  .flagship-card.reverse .flagship-thumb {
    order: 0;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .modal-desc-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 12px;
  }
  .nav-list {
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero {
    padding: 150px 0 60px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .btn {
    width: 100%;
  }
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 32px;
  }
  .controls-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .search-box {
    width: 100%;
  }
  .search-input {
    width: 100%;
  }
  .search-input:focus {
    width: 100%;
  }
  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    padding: 6px;
    border-radius: 99px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbars */
  }
  .filter-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbars for Chrome/Safari */
  }
  .filter-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .modal-container {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }
  .modal-body {
    padding: 32px 20px;
  }
  .modal-project-title {
    font-size: 1.5rem;
    padding-right: 24px;
  }
  .modal-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
  .modal-desc-grid {
    gap: 24px;
  }
  .modal-sidebar {
    padding: 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .bio-sidebar {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .card-body {
    padding: 20px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
}
