/* ========================================================
   RO'ZIMUROD MUXAMMADOV - PORTFOLIO DESIGN SYSTEM
   Inspiration: Qurifolio Luxury Magazine Style
   Colors: Cream Ivory (#F4EFEA), Matte Charcoal (#161616),
           Vibrant Orange (#FF5D17 / #F85A12)
   ======================================================== */

:root {
  --bg-cream: #F4EFEA;
  --bg-white: #FFFFFF;
  --bg-dark: #151515;
  --bg-dark-card: #1E1E1E;
  
  --text-dark: #121212;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --text-light-muted: #A3A3A3;
  
  --accent-orange: #FF5D17;
  --accent-orange-hover: #E04E0F;
  --accent-orange-subtle: rgba(255, 93, 23, 0.12);

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --hero-person-width: min(640px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ========================================================
   NAVIGATION BAR
   ======================================================== */
.site-header {
  background-color: var(--bg-cream);
  padding: 24px 0 12px;
  position: relative;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-symbol {
  width: 32px;
  height: 32px;
  background: var(--accent-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

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

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--text-dark);
  color: #fff;
}

/* Download CV Button */
.btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-cv:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 93, 23, 0.3);
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-cream);
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
  padding-bottom: 0px; /* Zero gap at bottom */
}

/* Giant Magazine Headline */
.hero-headline-bg {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.hero-text-row {
  font-size: clamp(3.8rem, 10.5vw, 9.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  display: block;
}

/* Layer 1: Behind person - Solid Charcoal Black */
.hero-text-back {
  z-index: 1;
  color: var(--text-dark);
}

/* Layer 3: Over person - White Stroked Outline (Masked strictly over person's body & face) */
.hero-text-front {
  z-index: 3;
  color: transparent;
  -webkit-text-stroke: 2px #FFFFFF;
  text-stroke: 2px #FFFFFF;
  -webkit-mask-image: url('../assets/hero_portrait_cutout.png');
  mask-image: url('../assets/hero_portrait_cutout.png');
  -webkit-mask-size: var(--hero-person-width) auto;
  mask-size: var(--hero-person-width) auto;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
}

/* Orange Star Motif */
.orange-star-motif {
  position: absolute;
  top: 160px;
  left: calc(50% - 340px);
  width: 170px;
  height: 170px;
  z-index: 1;
  animation: floatSlow 6s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: rotate(0deg) translateY(0); }
  100% { transform: rotate(12deg) translateY(-8px); }
}

/* Hero Person Cutout Portrait (Enlarged and touching bottom) */
.hero-person-wrap {
  position: relative;
  z-index: 2;
  width: var(--hero-person-width);
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 20px;
  margin-bottom: 0px;
  line-height: 0;
}

.hero-person-img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  display: block;
  margin-bottom: 0px;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.18));
}

/* Scroll Down Circular Badge */
.scroll-badge-wrapper {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.scroll-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 2px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.scroll-badge:hover {
  transform: scale(1.08);
}

.scroll-text-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotateClockwise 12s linear infinite;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scroll-badge-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.mouse-icon {
  width: 16px;
  height: 24px;
  border: 2px solid white;
  border-radius: 9px;
  position: relative;
}

.mouse-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 5px;
  background: white;
  border-radius: 2px;
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 6px); opacity: 0; }
}

/* ========================================================
   ABOUT SECTION (MATTE DARK)
   ======================================================== */
.about-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
}

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

.about-tag {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.about-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-light);
}

.about-desc {
  font-size: 1.1rem;
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1rem;
  font-weight: 800;
  border: 1px solid rgba(255, 93, 23, 0.4);
}

.stat-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-light);
}

/* Right column photo with playful doodles (Enlarged) */
.about-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background checkered square pattern */
.about-checkered-bg {
  position: absolute;
  top: 0px;
  right: 10px;
  width: 260px;
  height: 260px;
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  z-index: 1;
  pointer-events: none;
}

.about-person-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

/* Orange doodle sparks */
.doodle-sparks {
  position: absolute;
  top: 10px;
  right: 90px;
  z-index: 3;
  width: 48px;
  height: 48px;
}

/* Orange wavy doodle */
.doodle-wave {
  position: absolute;
  bottom: 80px;
  right: 15px;
  z-index: 3;
  width: 55px;
  height: 30px;
}

/* ========================================================
   PROMPTS SECTION (INTERACTIVE WORKSPACE)
   ======================================================== */
.prompts-section {
  background-color: var(--bg-cream);
  padding: 100px 0 70px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.prompts-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-orange);
  margin-bottom: 12px;
  background: var(--accent-orange-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.prompts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .prompts-list {
    grid-template-columns: 1fr;
  }
}

.prompt-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.prompt-card.featured {
  grid-column: 1 / -1;
}

.prompt-card:hover {
  border-color: rgba(255, 93, 23, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.prompt-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.prompt-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prompt-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.prompt-title-group h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin: 0;
}

.btn-copy-prompt {
  background: var(--text-dark);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-copy-prompt:hover {
  background: var(--accent-orange);
  transform: translateY(-1px);
}

.btn-copy-prompt.copied {
  background: #10b981;
}

/* Prompt Box (Minimal Sleek Box with 2-line preview and fade) */
.prompt-body {
  position: relative;
  background: #151722;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  overflow: hidden;
  transition: max-height 0.35s ease, background-color 0.2s ease;
}

.prompt-text-content {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* Collapsed state (Default): show exactly 2 lines */
.prompt-card:not(.expanded) .prompt-body {
  max-height: 70px;
  cursor: pointer;
}

/* Gradient fade at bottom when collapsed */
.prompt-card:not(.expanded) .prompt-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(21, 23, 34, 0) 0%, rgba(21, 23, 34, 0.98) 100%);
  pointer-events: none;
}

/* Expanded state: full height */
.prompt-card.expanded .prompt-body {
  max-height: 2500px;
}

.prompt-text-content .step-highlight {
  color: #f59e0b;
  font-weight: 700;
}

/* Card footer and toggle expand button */
.prompt-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-toggle-expand {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-toggle-expand:hover {
  background: #f1f5f9;
  color: var(--accent-orange);
  border-color: rgba(255, 93, 23, 0.3);
}

.prompt-card.expanded .btn-toggle-expand {
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  border-color: rgba(255, 93, 23, 0.3);
}

/* Text state visibility */
.prompt-card:not(.expanded) .expand-text-less {
  display: none !important;
}
.prompt-card.expanded .expand-text-more {
  display: none !important;
}

/* Prompts Toolbar & Language Switcher */
.prompts-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  margin-top: 32px;
  margin-bottom: 24px;
}

.prompts-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}

.prompts-count-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  display: inline-block;
}

.prompts-lang-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prompts-lang-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.prompt-lang-pills {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.prompt-lang-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.prompt-lang-btn.active {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 93, 23, 0.35);
}

/* Independent Prompt Language Visibility */
.prompts-section[data-prompt-lang="uz"] .prompt-en {
  display: none !important;
}
.prompts-section[data-prompt-lang="en"] .prompt-uz {
  display: none !important;
}

/* ========================================================
   FEATURED PROJECTS SECTION (CREAM)
   ======================================================== */
.projects-section {
  background-color: var(--bg-cream);
  padding: 100px 0;
}

.section-headline {
  text-align: center;
  margin-bottom: 60px;
}

.section-headline h2 {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.section-headline p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 12px auto 0;
}

/* Project Cards */
.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Left mock browser preview */
.mockup-window {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.mockup-header {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
  margin-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-body {
  padding: 30px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #FFFDFB 0%, #F5F1EB 100%);
}

.mockup-body.mockup-screenshot-wrap {
  padding: 0;
  min-height: 260px;
  max-height: 310px;
  height: 275px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
  display: block;
}

.mockup-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .mockup-screenshot-img {
  transform: scale(1.04);
}

.mockup-badge-live {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mockup-badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.mockup-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
}

.mockup-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-weight: 700;
}

/* Right content */
.project-content-right {
  display: flex;
  flex-direction: column;
}

.project-pill {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.project-heading {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.project-details {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 26px;
}

.project-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary-link {
  background: var(--text-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary-link:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
}

.btn-tg-link {
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-tg-link:hover {
  background: #1d8bc0;
  transform: translateY(-2px);
}

/* ========================================================
   CONTACT & SOCIALS SECTION (DARK)
   ======================================================== */
.contact-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 100px 0 60px;
}

.contact-headline {
  text-align: center;
  margin-bottom: 50px;
}

.contact-headline h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-headline p {
  color: var(--text-light-muted);
  font-size: 1.05rem;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.social-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.social-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  background: rgba(255, 93, 23, 0.08);
}

.social-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.social-info {
  display: flex;
  flex-direction: column;
}

.social-label {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  font-weight: 600;
}

.social-handle {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-light);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light-muted);
  font-size: 0.88rem;
}

/* ========================================================
   MOBILE NAVIGATION DRAWER & TOGGLE BUTTON
   ======================================================== */
.mobile-toggle-btn {
  display: none;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 102;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-toggle-btn:hover {
  background: rgba(255, 93, 23, 0.12);
}

.mobile-toggle-btn .bar {
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-toggle-btn.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle-btn.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle-btn.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  background: #FAF7F2;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-inner {
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 22px;
}

.mobile-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.mobile-close-btn:hover {
  background: rgba(255, 93, 23, 0.15);
  color: var(--accent-orange);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 93, 23, 0.08);
  color: var(--accent-orange);
  border-left-color: var(--accent-orange);
  transform: translateX(4px);
}

.mobile-menu-bottom {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-lang-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-lang-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-drawer-lang-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.mobile-drawer-lang-switcher .lang-btn {
  text-align: center;
  padding: 8px 4px;
}

.mobile-drawer-cv-btn {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.88rem;
}

/* Lock body scrolling when mobile menu open */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ========================================================
   RESPONSIVE LAYOUT & MOBILE ADAPTATIONS
   ======================================================== */

/* Tablet & Mobile Screens (max-width: 960px) */
@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .desktop-cv-btn {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .nav-container {
    gap: 12px;
  }

  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    text-align: left;
  }

  .about-photo-wrapper {
    margin-top: 10px;
  }

  .about-stats {
    align-items: stretch;
  }

  /* Projects Section */
  .project-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }

  .mockup-body.mockup-screenshot-wrap {
    height: 230px;
    max-height: 260px;
  }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --hero-person-width: min(400px, 88vw);
  }

  .container {
    padding: 0 20px;
  }

  .site-header {
    padding: 16px 0 10px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .brand-symbol {
    width: 28px;
    height: 28px;
  }

  /* Compact header language switcher pills */
  .desktop-lang-switcher .lang-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  /* Hero Section */
  .hero-section {
    min-height: 560px;
  }

  .hero-headline-bg {
    top: 20px;
  }

  .hero-text-row {
    font-size: clamp(2.5rem, 10.4vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
  }

  .orange-star-motif {
    width: 100px;
    height: 100px;
    top: 130px;
    left: calc(50% - 150px);
  }

  .scroll-badge-wrapper {
    bottom: -35px;
  }

  .scroll-badge {
    width: 74px;
    height: 74px;
  }

  .scroll-badge-inner {
    width: 40px;
    height: 40px;
  }

  .scroll-text-svg text {
    font-size: 10px;
  }

  .mouse-icon {
    width: 13px;
    height: 20px;
  }

  /* About Section */
  .about-section {
    padding: 80px 0 55px;
  }

  .about-title {
    font-size: clamp(2.1rem, 7.5vw, 2.8rem);
    margin-bottom: 18px;
  }

  .about-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
  }

  .stat-item {
    gap: 14px;
  }

  .stat-text {
    font-size: 1.05rem;
  }

  .about-person-img {
    max-width: 320px;
    max-height: 400px;
  }

  .about-checkered-bg {
    width: 200px;
    height: 200px;
  }

  /* Prompts Section */
  .prompts-section {
    padding: 80px 0 55px;
  }

  .section-headline h2 {
    font-size: clamp(2.1rem, 7vw, 2.9rem);
  }

  .section-headline p {
    font-size: 1rem;
  }

  .prompts-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 18px;
    margin-top: 28px;
  }

  .prompts-count-badge {
    justify-content: center;
  }

  .prompts-lang-control {
    justify-content: space-between;
    width: 100%;
  }

  .prompt-lang-pills {
    width: 100%;
    display: flex;
  }

  .prompt-lang-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
  }

  .prompts-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .prompt-card {
    padding: 18px 16px;
  }

  .btn-copy-prompt {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .btn-toggle-expand {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  /* Projects Section */
  .projects-section {
    padding: 80px 0 50px;
  }

  .project-card {
    padding: 22px;
    gap: 22px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
  }

  .project-heading {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .project-details {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .project-btns {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary-link,
  .btn-tg-link {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* Contact Section */
  .contact-section {
    padding: 80px 0 45px;
  }

  .contact-headline h2 {
    font-size: clamp(2.1rem, 7vw, 2.8rem);
  }

  .social-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 45px;
  }
}

/* Small Smartphone Screens (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --hero-person-width: min(320px, 86vw);
  }

  .container {
    padding: 0 16px;
  }

  .site-header {
    padding: 14px 0 8px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  /* Hide header lang switcher on extra-small screens to avoid crowding with brand and hamburger */
  .desktop-lang-switcher {
    display: none;
  }

  /* Hero Section */
  .hero-section {
    min-height: 500px;
  }

  .hero-headline-bg {
    top: 15px;
  }

  .hero-text-row {
    font-size: clamp(2.1rem, 9.5vw, 3.2rem);
    letter-spacing: -0.04em;
  }

  .orange-star-motif {
    width: 75px;
    height: 75px;
    top: 120px;
    left: calc(50% - 120px);
  }

  .hero-person-img {
    max-height: 480px;
  }

  .scroll-badge-wrapper {
    bottom: -28px;
  }

  .scroll-badge {
    width: 62px;
    height: 62px;
    border-width: 1.5px;
  }

  .scroll-badge-inner {
    width: 32px;
    height: 32px;
  }

  .scroll-text-svg text {
    font-size: 11px;
  }

  .mouse-icon {
    width: 11px;
    height: 16px;
    border-width: 1.5px;
  }

  /* About Section */
  .about-section {
    padding: 65px 0 40px;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .stat-item {
    gap: 12px;
  }

  .check-icon {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .stat-text {
    font-size: 0.95rem;
  }

  .about-person-img {
    max-width: 250px;
    max-height: 320px;
  }

  .about-checkered-bg {
    width: 150px;
    height: 150px;
  }

  .doodle-sparks {
    top: 0px;
    right: 35px;
    width: 32px;
    height: 32px;
  }

  .doodle-wave {
    bottom: 40px;
    right: 5px;
    width: 36px;
    height: 20px;
  }

  /* Prompts Section */
  .prompts-section {
    padding: 65px 0 40px;
  }

  .prompt-card {
    padding: 16px 14px;
  }

  .prompt-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .prompt-title-group h3 {
    font-size: 0.98rem;
  }

  .btn-copy-prompt {
    width: 100%;
    justify-content: center;
  }

  .prompt-body-preview {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Projects Section */
  .projects-section {
    padding: 65px 0 40px;
  }

  .project-card {
    padding: 16px;
    gap: 16px;
    margin-bottom: 20px;
  }

  .mockup-header {
    padding: 8px 12px;
  }

  .mockup-body.mockup-screenshot-wrap {
    height: 175px;
    min-height: 160px;
  }

  .mockup-badge-live {
    bottom: 8px;
    right: 8px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .project-pill {
    font-size: 0.72rem;
    padding: 5px 10px;
    margin-bottom: 10px;
  }

  .project-heading {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .project-details {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .project-features-list {
    gap: 5px;
    margin-bottom: 16px;
  }

  .project-feature-item {
    font-size: 0.74rem;
    padding: 4px 8px;
  }

  /* Contact Section */
  .contact-section {
    padding: 65px 0 35px;
  }

  .contact-headline h2 {
    font-size: 2rem;
  }

  .contact-headline p {
    font-size: 0.92rem;
  }

  .social-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .social-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .social-label {
    font-size: 0.75rem;
  }

  .social-handle {
    font-size: 0.92rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
    padding-top: 20px;
  }
}

