/* ==========================================================================
   HARJINDER — PREMIUM MINIMALIST PORTFOLIO
   Design Direction: Apple-style product page / modern mobile app feel
   Analyzed and created from reference: 
   - Authentic Header & Hero background shapes: Sky-blue cloud, Purple fluid blob, Cyan desk pad
   - True 3D perspective vector MacBook desk setup
   - iOS app icon grid (3 per row on desktop and mobile)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS VARIABLES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-pill: #F1F5F9;

  /* Typography */
  --text-primary: #0F172A;       /* Crisp deep black */
  --text-secondary: #475569;     /* Slate gray */
  --text-tertiary: #94A3B8;      /* Muted gray */
  --text-inverted: #FFFFFF;

  /* Accents & Gradients */
  --accent-blue: #0076FF;
  --accent-purple: #A825FF;
  --accent-gradient: linear-gradient(135deg, #0076FF 0%, #A825FF 100%);
  --link-blue: #2563EB;

  /* Borders & Outlines */
  --border-subtle: #E2E8F0;
  --border-card: rgba(15, 23, 42, 0.08);
  --border-focus: #0076FF;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-app-icon: 0 4px 14px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-app-icon-hover: 0 10px 24px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 20px 40px -10px rgba(15, 23, 42, 0.15);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-icon: 24px;          /* iOS squircle desktop */
  --radius-icon-mobile: 18px;   /* iOS squircle mobile */
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-handwritten: 'Caveat', cursive, sans-serif;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-normal: 240ms;
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: var(--bg-page);
  line-height: 1.5;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   AUTHENTIC HEADER & HERO BACKGROUND PASTEL SHAPES (Unified Atmospheric Mesh)
   Seamless multi-layer ambient gradient lighting balancing left & right sides
   -------------------------------------------------------------------------- */
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 65% 55% at 20% 12%, rgba(214, 235, 255, 0.7) 0%, rgba(234, 246, 255, 0.35) 50%, transparent 80%),
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(218, 232, 255, 0.8) 0%, rgba(232, 242, 255, 0.45) 45%, transparent 80%),
    radial-gradient(ellipse 60% 55% at 18% 52%, rgba(240, 230, 255, 0.65) 0%, rgba(248, 242, 255, 0.3) 50%, transparent 78%),
    radial-gradient(ellipse 65% 60% at 82% 48%, rgba(235, 226, 254, 0.75) 0%, rgba(244, 236, 255, 0.4) 50%, transparent 80%),
    radial-gradient(ellipse 75% 50% at 50% 72%, rgba(206, 240, 254, 0.65) 0%, rgba(232, 248, 255, 0.35) 55%, transparent 82%);
}

/* Supplemental Organic Glow Accent Layers */
.shape-top-sky, .glow-top-sky {
  position: absolute;
  top: -40px;
  right: 12%;
  width: 480px;
  height: 280px;
  background: radial-gradient(ellipse at 55% 45%, rgba(214, 232, 255, 0.6) 0%, transparent 75%);
  filter: blur(28px);
}

.shape-left-sky, .glow-left-sky {
  position: absolute;
  top: -30px;
  left: 5%;
  width: 420px;
  height: 260px;
  background: radial-gradient(ellipse at 35% 35%, rgba(220, 238, 255, 0.55) 0%, transparent 75%);
  filter: blur(26px);
}

.shape-left-purple, .glow-left-purple {
  position: absolute;
  top: 90px;
  left: 2%;
  width: 440px;
  height: 380px;
  background: radial-gradient(ellipse at 30% 45%, rgba(238, 228, 255, 0.55) 0%, transparent 75%);
  filter: blur(30px);
}

.shape-right-purple, .glow-top-purple {
  position: absolute;
  top: 60px;
  right: 3%;
  width: 480px;
  height: 420px;
  background: radial-gradient(ellipse at 60% 45%, rgba(234, 226, 254, 0.6) 0%, transparent 75%);
  filter: blur(28px);
}

.shape-desk-cyan, .glow-desk-cyan {
  position: absolute;
  top: 290px;
  left: 15%;
  width: 70%;
  height: 280px;
  background: radial-gradient(ellipse at 50% 50%, rgba(206, 238, 254, 0.5) 0%, transparent 78%);
  filter: blur(24px);
}

/* --------------------------------------------------------------------------
   PAGE WRAPPER
   -------------------------------------------------------------------------- */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   1. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  padding: 24px 0 16px;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--text-primary);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

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

.nav-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-spring);
}

.nav-link-cta:hover {
  color: var(--accent-blue);
  border-color: rgba(0, 118, 255, 0.3);
  transform: translateY(-1px);
}

.arrow-glyph {
  font-size: 13px;
  transition: transform var(--duration-fast) ease;
}

.nav-link-cta:hover .arrow-glyph {
  transform: translate(2px, -2px);
}

/* Mobile Hamburger Button: Circular with 3 lines */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) ease;
}

.mobile-menu-btn:hover {
  background: var(--bg-pill);
}

.hamburger-circle {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-circle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   MOBILE DRAWER NAVIGATION
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #FFFFFF;
  padding: 28px 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-spring);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.drawer-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-pill);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.drawer-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-link-highlight {
  color: var(--accent-blue);
  border-bottom: none;
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.drawer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   2. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 40px 0 68px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 32px;
}

/* Eyebrow */
.hero-eyebrow {
  display: block;
  margin-bottom: 18px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 18px;
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #334155;
  text-transform: uppercase;
}

/* Large Heading */
.hero-title {
  font-size: 64px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -2px;
  color: #0F172A;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #08A2FB 0%, #037DFD 25%, #4634FD 55%, #7921FA 80%, #AB17F2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hero Description */
.hero-description {
  font-size: 16.5px;
  line-height: 1.65;
  color: #334155;
  max-width: 460px;
  margin-bottom: 26px;
}

/* Handwritten Accent & Button Group */
.hero-accent-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.handwritten-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  user-select: none;
}

.handwritten-text {
  font-family: var(--font-handwritten);
  font-size: 28px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1;
  letter-spacing: 0.3px;
  transform: rotate(-1.5deg);
}

.handwritten-underline {
  width: 156px;
  height: 16px;
  margin-top: -2px;
  overflow: visible;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  transition: all var(--duration-fast) var(--ease-spring);
}

.btn-text-mobile {
  display: none;
}

.primary-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) ease;
}

.primary-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero Right: Authentic 3D Apple Laptop Desk Visual */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Desk Image Container */
.desk-image-container,
.desk-vector-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.desk-image-container:hover,
.desk-vector-container:hover {
  transform: translateY(-3px);
}

.desk-hero-image,
.desk-vector-svg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   3. PROJECTS SECTION (RESTORED APPLE APP ICONS)
   -------------------------------------------------------------------------- */
.projects-section {
  padding: 56px 0 80px;
}

.section-container {
  width: 100%;
}

/* Header Bar with Horizontal Divider */
.projects-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}

.projects-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #64748B;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow-divider-line {
  height: 1px;
  background: var(--border-subtle);
  flex-grow: 1;
  max-width: 220px;
}

.subtle-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--link-blue);
  transition: opacity var(--duration-fast) ease;
}

.subtle-view-all:hover {
  opacity: 0.8;
}

.subtle-view-all:hover .arrow-glyph {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   PROJECT GRID (3 PER ROW ON DESKTOP & STRICTLY 3 PER ROW ON MOBILE)
   iOS App Icon Concept
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 40px;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: transparent;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.project-item:hover {
  transform: translateY(-4px);
}

/* App Icon Area: Squircle, Soft Pastel Gradient, Inner Glow */
.app-icon-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(15, 23, 42, 0.05),
    0 1px 3px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal) var(--ease-spring);
  overflow: hidden;
  margin-bottom: 12px;
}

.project-item:hover .app-icon-wrapper {
  box-shadow: 
    inset 0 1.5px 2.5px rgba(255, 255, 255, 1),
    0 12px 24px rgba(15, 23, 42, 0.09),
    0 3px 8px rgba(15, 23, 42, 0.04);
  transform: scale(1.03);
}

/* Central SVG Vector Icon */
.app-icon-svg {
  width: 44px;
  height: 44px;
  display: block;
  transition: transform var(--duration-fast) ease;
}

.project-item:hover .app-icon-svg {
  transform: scale(1.08);
}

/* Tiny Circular Link Arrow Badge */
.app-icon-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all var(--duration-fast) ease;
}

.badge-arrow-svg {
  width: 11px;
  height: 11px;
  color: var(--text-primary);
  transition: transform var(--duration-fast) ease;
}

.project-item:hover .app-icon-badge {
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.project-item:hover .badge-arrow-svg {
  transform: translate(1.5px, -1.5px);
  color: var(--accent-blue);
}

/* Project Text Info */
.project-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 210px;
}

.project-name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
  transition: color var(--duration-fast) ease;
}

.project-item:hover .project-name {
  color: var(--link-blue);
}

.project-category-tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.project-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   PROJECT PALETTES (Prompt-Accurate Pastels)
   -------------------------------------------------------------------------- */
/* 1. ZeroBreakout: Sky blue / cyan / turquoise */
.theme-zerobreakout {
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
}
.theme-zerobreakout-icon {
  color: #0369A1;
}

/* 2. AI Tools Hub: Lavender / violet / indigo */
.theme-aitools {
  background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 50%, #C084FC 100%);
}
.theme-aitools-icon {
  color: #6B21A8;
}

/* 3. Notes AI: Warm cream / soft amber / gold */
.theme-notesai {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #FCD34D 100%);
}
.theme-notesai-icon {
  color: #92400E;
}

/* 4. Web Dev Tools: Sky blue / electric blue */
.theme-webdev {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #93C5FD 100%);
}
.theme-webdev-icon {
  color: #1D4ED8;
}

/* 5. More Projects: Soft coral / pink */
.theme-moreprojects {
  background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 50%, #FDA4AF 100%);
}
.theme-moreprojects-icon {
  color: #BE123C;
}

/* 6. Coming Soon: Mint / emerald */
.theme-comingsoon {
  background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 50%, #86EFAC 100%);
}
.theme-comingsoon-icon {
  color: #047857;
}

/* --------------------------------------------------------------------------
   4. QUOTE SECTION (Refined Card with Subtle Ambient Glow)
   -------------------------------------------------------------------------- */
.quote-section {
  position: relative;
  padding: 40px 0 36px;
  text-align: center;
}

.quote-container {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-glow {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  height: 140px;
  background: radial-gradient(circle, rgba(199, 210, 254, 0.5) 0%, rgba(224, 231, 255, 0.25) 50%, transparent 75%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
  color: #818CF8;
  opacity: 0.6;
  margin-bottom: 6px;
  user-select: none;
  position: relative;
  z-index: 1;
}

.quote-statement {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #64748B;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   5. SOCIAL LINKS SECTION
   -------------------------------------------------------------------------- */
.social-section {
  padding: 24px 0 56px;
  text-align: center;
}

.social-container {
  display: flex;
  justify-content: center;
}

.social-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all var(--duration-fast) var(--ease-spring);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover {
  color: var(--text-primary);
  background: #FFFFFF;
  border-color: rgba(0, 118, 255, 0.3);
  box-shadow: 0 6px 14px rgba(0, 118, 255, 0.1);
  transform: translateY(-2px) scale(1.06);
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 36px 0 44px;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
}

.footer-bg-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape-footer-left {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 280px;
  height: 220px;
  background: radial-gradient(ellipse at 30% 70%, rgba(214, 238, 254, 0.7) 0%, rgba(230, 245, 255, 0.3) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(22px);
}

.shape-footer-right {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 240px;
  background: radial-gradient(ellipse at 70% 70%, rgba(234, 224, 254, 0.65) 0%, rgba(243, 235, 254, 0.3) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(22px);
}

.footer-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-primary);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

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

.footer-bottom-row {
  text-align: center;
}

.footer-copyright {
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   CONNECT MODAL
   -------------------------------------------------------------------------- */
.connect-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.connect-modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-card);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-pill);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ECFDF5;
  color: #047857;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.modal-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.modal-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-pill);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.copy-email-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-icon {
  width: 14px;
  height: 14px;
}

/* Direct Inquiry / Collaboration Form (Firestore Powered) */
.modal-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 118, 255, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  resize: vertical;
  min-height: 68px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-spring);
  cursor: pointer;
}

.form-submit-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-size: 12px;
  min-height: 16px;
  transition: all var(--duration-fast) ease;
}

.form-status.success {
  color: #059669;
  font-weight: 600;
}

.form-status.error {
  color: #DC2626;
  font-weight: 600;
}

.modal-socials-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.modal-social-buttons {
  display: flex;
  gap: 8px;
}

.modal-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-social-btn:hover {
  background: #E2E8F0;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Desktop & Mobile Refinement)
   -------------------------------------------------------------------------- */

/* Tablet (<= 860px) */
@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-title {
    font-size: 46px;
  }
  .hero-description {
    font-size: 13.5px;
    max-width: 100%;
  }
  .desk-vector-container,
  .desk-image-container {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Mobile Screens (<= 640px) — DIRECT REFERENCE MATCH */
@media (max-width: 640px) {
  .site-wrapper {
    padding: 0 16px;
    overflow-x: clip;
  }

  /* Header */
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .site-header {
    padding: 16px 0 8px;
    background: transparent;
  }

  /* Background Canvas Mobile Scaling */
  .hero-bg-canvas {
    height: 420px;
  }
  .shape-top-sky, .glow-top-sky {
    top: -40px;
    right: -10px;
    width: 220px;
    height: 160px;
    filter: blur(18px);
  }
  .shape-left-sky, .glow-left-sky {
    top: -35px;
    left: -25px;
    width: 200px;
    height: 150px;
    filter: blur(18px);
  }
  .shape-left-purple, .glow-left-purple {
    top: 45px;
    left: -20px;
    width: 210px;
    height: 220px;
    filter: blur(20px);
  }
  .shape-right-purple, .glow-top-purple {
    top: 30px;
    right: -15px;
    width: 200px;
    height: 220px;
    filter: blur(18px);
  }
  .shape-desk-cyan, .glow-desk-cyan {
    top: 180px;
    left: 5%;
    width: 90%;
    height: 150px;
    filter: blur(16px);
  }

  /* Hero Section — 2-Column Side-by-Side on Mobile (Exact Reference) */
  .hero-section {
    padding: 10px 0 24px;
    overflow: visible;
  }
  .hero-container {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 8px;
    text-align: left;
  }
  .hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
  }
  .hero-eyebrow {
    margin-bottom: 8px;
  }
  .eyebrow-text {
    font-size: 8.5px;
    letter-spacing: 0.8px;
    font-weight: 700;
  }
  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1.02;
    text-align: left;
  }
  .hero-description {
    font-size: 10.5px;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: left;
    max-width: 100%;
    color: #475569;
  }
  .hero-accent-block {
    align-items: flex-start;
    gap: 0;
  }
  .handwritten-text {
    font-size: 18px;
    line-height: 1.1;
  }
  .handwritten-underline {
    width: 115px;
    height: 12px;
    margin-top: -1px;
  }

  /* Hero Visual Right Column (Laptop Desk Scene) */
  .hero-visual-wrapper {
    margin-top: 0;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
  }
  .desk-image-container,
  .desk-vector-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  .desk-hero-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.08);
    transform-origin: right center;
  }

  /* Projects Section */
  .projects-section {
    padding: 36px 0 54px;
  }
  .projects-header-bar {
    margin-bottom: 24px;
  }
  .eyebrow-divider-line {
    max-width: 120px;
  }

  /* STRICTLY 3 IN A ROW ON MOBILE */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8px;
    row-gap: 24px;
  }

  .project-item {
    width: 100%;
    max-width: 110px;
    margin: 0 auto;
  }

  .app-icon-wrapper {
    width: 86px;
    height: 86px;
    border-radius: var(--radius-icon-mobile);
    margin-bottom: 8px;
    box-shadow: 
      inset 0 1px 1.5px rgba(255, 255, 255, 0.9),
      0 3px 10px rgba(15, 23, 42, 0.05);
  }

  .app-icon-svg {
    width: 36px;
    height: 36px;
  }

  .app-icon-badge {
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
  }

  .badge-arrow-svg {
    width: 9px;
    height: 9px;
  }

  .project-name {
    font-size: 12.5px;
    line-height: 1.2;
  }

  .project-category-tag {
    display: none;
  }

  .project-desc {
    font-size: 10.5px;
    line-height: 1.35;
  }

  /* Quote Section Mobile */
  .quote-section {
    padding: 48px 0 40px;
  }
  .quote-mark {
    font-size: 40px;
  }
  .quote-statement {
    font-size: 20px;
  }

  /* Social Section */
  .social-section {
    padding: 16px 0 40px;
  }
  .social-btn {
    width: 40px;
    height: 40px;
  }

  /* Footer Mobile */
  .footer-top-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-social-links {
    gap: 16px;
  }
}

/* 390px Fine Tuning */
@media (max-width: 400px) {
  .site-wrapper {
    padding: 0 12px;
  }
  .hero-container {
    gap: 6px;
  }
  .eyebrow-text {
    font-size: 8px;
  }
  .hero-title {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .hero-description {
    font-size: 9.5px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .handwritten-text {
    font-size: 16px;
  }
  .handwritten-underline {
    width: 100px;
    height: 10px;
  }
  .app-icon-wrapper {
    width: 78px;
    height: 78px;
    border-radius: 16px;
  }
  .app-icon-svg {
    width: 32px;
    height: 32px;
  }
  .project-name {
    font-size: 11.5px;
  }
  .project-desc {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
