/* ===== CSS Variables ===== */
:root {
  --bg-primary: #faf9f7;
  --bg-secondary: #f0ede8;
  --bg-tertiary: #e4e0d8;
  --bg-card: #ffffff;
  --bg-header: rgba(250, 249, 247, 0.9);
  --bg-footer: #16130f;
  --bg-hero: #16130f;
  --bg-contact: #16130f;
  
  --text-primary: #1c1814;
  --text-secondary: #4a4440;
  --text-tertiary: #8a8480;
  --text-light: #faf9f7;
  --text-footer: #a09890;
  
  --accent-primary: #c41e3a;
  --accent-secondary: #d4a017;
  --accent-deep: #16130f;
  
  --border-color: #ddd8d0;
  --border-light: #e8e4de;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 68px;
  --container-max: 1320px;
  --section-padding: 96px;
}

/* Dark mode */
[data-theme="dark"] {
  --bg-primary: #0e0d0b;
  --bg-secondary: #1a1816;
  --bg-tertiary: #252320;
  --bg-card: #1a1816;
  --bg-header: rgba(14, 13, 11, 0.9);
  --bg-footer: #080706;
  --bg-hero: #080706;
  --bg-contact: #080706;
  
  --text-primary: #e4e0d8;
  --text-secondary: #a09890;
  --text-tertiary: #686058;
  --text-light: #e4e0d8;
  --text-footer: #686058;
  
  --border-color: #2a2825;
  --border-light: #252320;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  transition: var(--transition-slow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="zh"] body,
html[lang="zh"] * {
  font-family: 'Source Serif 4', 'Noto Sans SC', 'Georgia', serif;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.logo-flag {
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.logo-text {
  letter-spacing: 3px;
}

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

.nav-links a {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Buttons - Direct Selection */
.lang-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

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

/* Theme Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.theme-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: var(--transition-slow);
}

.theme-icon.sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon.moon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

[data-theme="dark"] .theme-icon.sun {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .theme-icon.moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  transition: var(--transition-fast);
}

.hamburger {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  padding: 48px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-fast);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.mobile-nav-links a {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
}

.mobile-lang-buttons {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

/* ===== Hero Section - Mega Background ==== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/banner.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #16130f;
  background-attachment: fixed;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 19, 15, 0.35) 0%,
    rgba(22, 19, 15, 0.05) 30%,
    rgba(22, 19, 15, 0.05) 60%,
    rgba(22, 19, 15, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 32px;
  margin-bottom: 32px;
  animation: heroEnter 1.2s ease-out forwards;
}

.hero-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 3.8rem;
  font-weight: 800;
  color: #1c1814;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 1.35rem;
  color: #3a3530;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.4);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover {
  background: #a81830;
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(196, 30, 58, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #1c1814;
  border: 1px solid rgba(28, 24, 20, 0.3);
}

.btn-secondary:hover {
  border-color: #1c1814;
  background: rgba(28, 24, 20, 0.05);
  transform: translateY(-3px);
}

/* ===== Hero Scroll Indicator ===== */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.hero-scroll span {
  display: block;
  color: rgba(28, 24, 20, 0.55);
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.7rem;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.scroll-indicator {
  width: 20px;
  height: 32px;
  border: 1px solid rgba(28, 24, 20, 0.3);
  border-radius: 10px;
  margin: 0 auto;
  position: relative;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: rgba(28, 24, 20, 0.5);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 5px; opacity: 1; }
  50% { top: 14px; opacity: 0.3; }
}

/* ===== Sections ===== */
section {
  padding: var(--section-padding) 0;
  transition: var(--transition-slow);
}

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

.section-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-divider {
  width: 50px;
  height: 2px;
  background: var(--accent-primary);
  margin: 0 auto 22px;
}

.section-subtitle {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== About Section ==== */
.about {
  background: var(--bg-secondary);
}

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

.about-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.about-text .section-divider {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 600px;
}

.about-stat-big {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.about-stat-big::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
}

.about-stat-big:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 2px;
}

/* ===== Services Section ==== */
.services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-primary);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--accent-secondary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* ===== Portfolio Section ==== */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.portfolio-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.06);
}

.portfolio-content {
  padding: 24px 28px;
  flex: 1;
  display: block;
  overflow: hidden;
}

.portfolio-category {
  display: block;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.portfolio-name {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.4;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0;
}

/* ===== Tech Section ==== */
.tech-section {
  background: var(--bg-hero);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.tech-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 160, 23, 0.05) 0%, transparent 50%);
}

.tech-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tech-text {
  text-align: left;
}

.tech-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 22px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.tech-desc {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 1.08rem;
  color: rgba(250, 249, 247, 0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 300;
}

.tech-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-image {
  width: 100%;
  height: auto;
  display: block;
}

.tech-section .btn-primary {
  background: var(--accent-secondary);
  color: #16130f;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.25);
}

.tech-section .btn-primary:hover {
  background: #c89815;
  box-shadow: 0 8px 32px rgba(212, 160, 23, 0.35);
}

/* ===== Contact Section - Mega Background ==== */
.contact {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hk-shenzhen.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #16130f;
  background-attachment: fixed;
  z-index: 0;
}

.contact-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 19, 15, 0.75);
}

.contact-inner {
  position: relative;
  z-index: 1;
  padding: 100px 32px;
}

.contact .section-header {
  margin-bottom: 48px;
}

.contact .section-title {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.contact .section-divider {
  background: var(--accent-secondary);
}

.contact-content {
  max-width: 780px;
  margin: 0 auto;
}

.contact-people {
  text-align: center;
  margin-bottom: 40px;
}

.contact-photo {
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background: rgba(22, 19, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(22, 19, 15, 0.8);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-card-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.contact-role {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.contact-text {
  font-size: 0.95rem;
  color: rgba(250, 249, 247, 0.8);
  margin-bottom: 6px;
  line-height: 1.6;
  font-weight: 300;
}

.contact-text a {
  color: var(--accent-secondary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.contact-text a:hover {
  border-bottom-color: var(--accent-secondary);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-footer);
  padding: 52px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.footer-logo .logo-flag {
  width: 24px;
  height: 17px;
}

.footer-text {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.92rem;
  color: var(--text-footer);
  margin-bottom: 8px;
  font-style: italic;
  font-weight: 300;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

/* ===== Animations ===== */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-visual {
    grid-template-columns: 1fr 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .tech-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px;
    --header-height: 60px;
  }
  
  .hero-bg {
    background-attachment: scroll;
  }
  
  .contact-bg {
    background-attachment: scroll;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .lang-buttons {
    display: none;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .hero-bg {
    background-attachment: scroll;
  }
  
  .contact-bg {
    background-attachment: scroll;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-img {
    height: 200px;
  }
  
  .about-visual {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 0.8rem;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .header-container {
    padding: 0 20px;
  }
  
  .about-text p {
    font-size: 1rem;
  }
  
  .contact-inner {
    padding: 72px 20px;
  }
  
  .contact-photo {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }
  
  .btn {
    width: 100%;
  }
  
  .portfolio-img {
    height: 170px;
  }
  
  .contact-card {
    padding: 22px 20px;
  }
  
  .about-visual {
    grid-template-columns: 1fr;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a81830;
}

/* ===== Selection ===== */
::selection {
  background: var(--accent-primary);
  color: #ffffff;
}

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


/* Tech eyebrow */
.tech-eyebrow {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
  letter-spacing: 3px;
  margin-bottom: 16px;
}


/* Portfolio luxury note */
.portfolio-luxury-note {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.82rem;
  color: var(--accent-secondary);
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  line-height: 1.5;
}
