@import url('https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');

/* ==========================================================================
   Design System & Tokens (Ultra-Minimalist Monochrome Style)
   ========================================================================== */

:root {
  /* Color Palette - Pure Black Background */
  --bg-color: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.02);

  --text-primary: #ffffff;
  --text-secondary: #8e9196;
  --text-tertiary: #5c5e63;

  --primary: #ffffff;
  --primary-hover: #f1f2f6;
  --accent: #3182f6;
  --accent-glow: rgba(49, 130, 246, 0.12);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);

  --font-family: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-brand: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container-max-width: 960px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-color);
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   Typography & Helper Classes
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: "Outfit", "Pretendard Variable", Pretendard, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15px;
  word-break: keep-all;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--container-max-width);
  height: 64px;
  display: flex;
  align-items: center;
  z-index: 1000;
  background-color: rgba(18, 19, 22, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dots {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 2px;
  width: 13px;
  height: 13px;
}

.logo-dots span {
  width: 3px;
  height: 3px;
  background-color: var(--text-tertiary);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.logo-dots span:nth-child(9) {
  background-color: var(--accent);
  box-shadow: 0 0 4px var(--accent);
}

.logo:hover .logo-dots span {
  background-color: var(--accent);
}

.logo span {
  font-weight: 400;
  color: var(--text-secondary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  color: var(--accent);
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(49, 130, 246, 0.2);
  border-radius: 6px;
  background: rgba(49, 130, 246, 0.05);
}

.nav-cta:hover {
  color: var(--text-primary);
  background: rgba(49, 130, 246, 0.15);
  border-color: rgba(49, 130, 246, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px 0;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(49, 130, 246, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(49, 130, 246, 0.15);
}

.hero-title {
  font-family: var(--font-brand);
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1.25;
  word-break: keep-all;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1b74e4;
  box-shadow: 0 4px 20px rgba(49, 130, 246, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.btn-block {
  width: 100%;
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px 0;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 240px;
    gap: 12px;
  }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px 0;
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
}

.section-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 24px;
  }
}

/* ==========================================================================
   Grids & Flat Clean Layouts (No Background Cards, Just Spacing)
   ========================================================================== */

/* About Section - Apple Bento Grid Layout */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s, box-shadow 0.5s;
  overflow: hidden;
  position: relative;
}

.about-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.035), transparent 45%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.about-item:hover::before {
  opacity: 1;
}

.about-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(49, 130, 246, 0.02);
}

.about-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.about-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-large {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

.bento-medium {
  grid-column: span 1;
}

.bento-wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

.bento-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* CSS flow graphic */
.bento-flow {
  gap: 8px;
  padding: 20px;
  max-width: 280px;
}

.flow-node {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
}

.highlight-node {
  color: #ffffff;
  border-color: var(--accent);
  background: rgba(49, 130, 246, 0.1);
  box-shadow: 0 0 15px rgba(49, 130, 246, 0.2);
}

.flow-arrow {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* CSS 1px Ruler graphic */
.bento-pixel {
  gap: 20px;
  max-width: 280px;
  height: 100px;
}

.pixel-ruler {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  border-bottom: 1px solid var(--text-tertiary);
  padding-bottom: 4px;
}

.ruler-mark {
  width: 1px;
  height: 12px;
  background: var(--text-tertiary);
}

.ruler-mark:nth-child(3) {
  height: 20px;
  background: var(--text-secondary);
}

.pixel-box {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--accent);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(49, 130, 246, 0.3);
  position: relative;
}

.pixel-box::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bento-large, .bento-wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .bento-visual {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }
}

/* Services & Portfolio Grid */
.services-grid, 
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .services-grid, 
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.service-card, 
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 36px;
  border-radius: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card:hover, 
.portfolio-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(49, 130, 246, 0.02);
}

/* Portfolio visual placeholder with animated CSS mockup */
.portfolio-visual {
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.portfolio-visual::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(49, 130, 246, 0) 70%);
  top: 10%;
  left: 15%;
  filter: blur(20px);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.portfolio-card:hover .portfolio-visual::before {
  transform: scale(1.3);
}

.portfolio-mockup {
  position: absolute;
  width: 150px;
  height: 110px;
  background: rgba(18, 19, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(20px) rotate(-6deg);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow: hidden;
}

.portfolio-card:hover .portfolio-mockup {
  transform: translateY(10px) rotate(0deg) scale(1.05);
  border-color: rgba(49, 130, 246, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(49, 130, 246, 0.1);
}

.portfolio-mockup-header {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.portfolio-mockup-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.portfolio-mockup-body {
  flex: 1;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-info h3, 
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.service-header-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.portfolio-info p, 
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.portfolio-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-card:hover .portfolio-tag {
  color: var(--accent);
  border-color: rgba(49, 130, 246, 0.2);
  background: rgba(49, 130, 246, 0.05);
}

/* Portfolio Filter Tabs */
.portfolio-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.portfolio-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s;
}

.portfolio-tab:active {
  transform: scale(0.96);
}

.portfolio-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.portfolio-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Minimalist Form Base (Bottom Line Border Only)
   ========================================================================== */

.contact-form-container {
  max-width: 480px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px;
  border-radius: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 10px 0;
  font-size: 15px;
  border-radius: 0;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Toast Notification (Toss Style)
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 100px);
  z-index: 10000;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-content {
  background: rgba(23, 24, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 28px;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  color: #30d158; /* Apple/Toss Safe Green */
  font-weight: bold;
  font-size: 14px;
}

.toast-message {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   Custom Background Glow (Subtle & Elegant)
   ========================================================================== */

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(49, 130, 246, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity 0.3s;
  opacity: 0; /* default hidden, shown via js */
}

/* Scroll Fade In Animation */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 80px 0;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  scroll-snap-align: end;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.footer-info p {
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 500px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* History Section Timeline */
.history-timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(49, 130, 246, 0.05) 100%);
}

.history-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 48px;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-dot {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: var(--transition-smooth);
}

.history-item:hover .history-dot {
  transform: scale(1.4);
  background-color: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.history-date {
  font-family: "Outfit", var(--font-family);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.history-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.history-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Gallery Section */
.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.gallery-card {
  width: 100%;
  max-width: 800px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  text-decoration: none;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(49, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(49, 130, 246, 0.05);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0d0f11;
  overflow: hidden;
}

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

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

.gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(7, 8, 9, 0.95) 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.95;
  transition: opacity 0.4s;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(49, 130, 246, 0.08);
  border: 1px solid rgba(49, 130, 246, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-overlay-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.gallery-overlay-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .gallery-overlay {
    padding: 20px;
  }
  .gallery-overlay-content h3 {
    font-size: 16px;
  }
  .gallery-overlay-content p {
    font-size: 12px;
  }
}

/* Scroll Indicator Dots */
.scroll-dots {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scroll-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
  transition: var(--transition-smooth);
}

.scroll-dot:hover span {
  background-color: var(--text-secondary);
  transform: scale(1.3);
}

.scroll-dot.active span {
  background-color: var(--accent);
  transform: scale(1.6);
  box-shadow: 0 0 10px var(--accent);
}

/* Tooltip style on hover */
.scroll-dot::after {
  content: attr(title);
  position: absolute;
  right: 24px;
  opacity: 0;
  pointer-events: none;
  background: rgba(13, 15, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-smooth);
  transform: translateX(10px);
}

.scroll-dot:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .scroll-dots {
    display: none;
  }
}

/* ==========================================================================
   Hamburger Button (Mobile Only)
   ========================================================================== */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: #000000;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1100;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: #111111;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

/* ==========================================================================
   Mobile Slide Menu
   ========================================================================== */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: rgba(13, 15, 17, 0.97);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1060;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-logo {
  font-size: 13px !important;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  flex: 1;
}

.mobile-menu-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 16px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.mobile-menu-cta {
  color: var(--accent);
  font-weight: 600;
}

.mobile-menu-extras {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  margin: 0 24px;
}

.mobile-menu-extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.mobile-menu-extra-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* Toggle Switch (Dark Mode) */
.toggle-switch {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.toggle-switch.active {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(20px);
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.mobile-menu-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-footer p {
  font-size: 11px;
  color: var(--text-tertiary);
}


/* ==========================================================================
   Roblox Section
   ========================================================================== */
.roblox {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.roblox-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .roblox-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.roblox-text-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roblox-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(49, 130, 246, 0.2);
}

.roblox-text-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.roblox-text-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.roblox-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.roblox-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Roblox Visual Card Styling */
.roblox-visual-card {
  height: 380px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.roblox-visual-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.roblox-portal-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
  animation: float-glow 8s infinite alternate ease-in-out;
}

@keyframes float-glow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(10px, -10px); }
}

.roblox-logo-container {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.roblox-visual-card {
  height: 380px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.roblox-portal-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
  animation: float-glow 8s infinite alternate ease-in-out;
}

.roblox-logo-container {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.roblox-cube {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.roblox-cube svg {
  width: 100%;
  height: 100%;
  color: #ffffff;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
}

.roblox-tag {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  z-index: 2;
}

.roblox-visual-card:hover .roblox-cube {
  transform: scale(1.1) rotate(15deg);
}

.roblox-logo-container .roblox-text {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-top: 12px;
}

.roblox-logo-container .roblox-o {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 1px;
}

.roblox-logo-container .roblox-o svg {
  width: 100%;
  height: 100%;
  color: #ffffff;
}

.roblox-tag {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  z-index: 2;
}

/* Inverted Theme for Sidebar (.mobile-menu) in Light Mode */
html.light-mode .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-right-color: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

html.light-mode .mobile-menu-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .mobile-menu-logo {
  color: #1a1a1a;
}

html.light-mode .mobile-menu-logo .logo-dots span {
  background-color: #9a9da3;
}

html.light-mode .mobile-menu-logo .logo-dots span:nth-child(9) {
  background-color: var(--accent);
}

html.light-mode .mobile-menu-close {
  color: #9a9da3;
}

html.light-mode .mobile-menu-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

html.light-mode .mobile-menu-link {
  color: #6b6e73;
}

html.light-mode .mobile-menu-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

html.light-mode .mobile-menu-link.mobile-menu-cta {
  color: var(--accent);
}

html.light-mode .mobile-menu-extras {
  border-top-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .mobile-menu-extra-label {
  color: #9a9da3;
}

html.light-mode .mobile-menu-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .mobile-menu-footer p {
  color: #9a9da3;
}

/* Light mode overrides for widgets inside sidebar */
html.light-mode .toggle-switch {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

html.light-mode .lang-switch {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

html.light-mode .lang-btn {
  color: #9a9da3;
}

html.light-mode .lang-btn.active {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

html.light-mode .lang-btn:hover {
  color: #6b6e73;
}

/* ==========================================================================
   Universal 3D Depth & Background float Styles
   ========================================================================== */
.bg-glow-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  animation: float-slow 25s infinite alternate ease-in-out;
}

.circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
  top: 15%;
  left: -10%;
}

.circle-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 80%);
  bottom: 15%;
  right: -10%;
  animation-delay: -5s;
}

.circle-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
  top: 55%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

/* ==========================================================================
   Header Theme Toggle Button (Desktop View)
   ========================================================================== */
.header-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-smooth);
  position: relative;
  background: none;
  border: none;
}

.header-theme-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

html.light-mode .header-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.header-theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toggle icons visibility based on theme */
html.dark-mode .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
html.dark-mode .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
  pointer-events: none;
}
html.light-mode .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
  pointer-events: none;
}
html.light-mode .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Responsive visibility for hamburger and desktop toggle */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* ==========================================================================
   Light Mode General CSS Override Variables
   ========================================================================== */
html.light-mode {
  --bg-color: #f2f4f6;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);

  --text-primary: #191f28;
  --text-secondary: #4e5968;
  --text-tertiary: #8b95a1;

  --primary: #191f28;
  --primary-hover: #333d4b;
  --accent: #3182f6;
  --accent-glow: rgba(49, 130, 246, 0.05);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
}

/* Light mode component style overrides */
html.light-mode body {
  background-color: var(--bg-color);
}

html.light-mode .bg-glow-circle {
  opacity: 0.05;
}

html.light-mode .header {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

html.light-mode .about-item,
html.light-mode .service-card,
html.light-mode .gallery-card,
html.light-mode .contact-form {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

html.light-mode .about-item:hover,
html.light-mode .service-card:hover,
html.light-mode .gallery-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

html.light-mode .bento-visual {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.04);
}

html.light-mode .flow-node {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

html.light-mode .portfolio-mockup {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .scroll-dot::after {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1c1c1e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.light-mode .form-group input,
html.light-mode .form-group textarea {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Light mode overrides for Roblox section visual card */
html.light-mode .roblox-visual-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

html.light-mode .roblox-visual-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

html.light-mode .roblox-cube svg {
  color: #000000;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.08));
}

html.light-mode .roblox-logo-container .roblox-text {
  color: #000000;
}

html.light-mode .roblox-logo-container .roblox-o svg {
  color: #000000;
}

/* Contact Footer Hover Interaction */
.contact-footer:hover {
  color: var(--accent) !important;
  opacity: 1 !important;
  text-shadow: 0 0 12px rgba(49, 130, 246, 0.4);
}

/* Enable native scroll snapping and smooth scrolling on mobile/tablet (where JS scroll-jacking is disabled) */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }
  section {
    scroll-snap-align: center;
  }
}

