/* ==========================================
   成都必合科技有限公司 - 主页样式
   ========================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: #4f46e5;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #1e1b4b;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.06);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: float 20s infinite ease-in-out;
}

.hero-particle:nth-child(1) { width: 300px; height: 300px; top: -50px; left: -80px; animation-delay: 0s; }
.hero-particle:nth-child(2) { width: 200px; height: 200px; top: 40%; right: -40px; animation-delay: -4s; }
.hero-particle:nth-child(3) { width: 150px; height: 150px; bottom: 10%; left: 20%; animation-delay: -8s; }
.hero-particle:nth-child(4) { width: 100px; height: 100px; top: 20%; right: 30%; animation-delay: -12s; background: rgba(124, 58, 237, 0.1); }
.hero-particle:nth-child(5) { width: 250px; height: 250px; bottom: -60px; right: 10%; animation-delay: -6s; }
.hero-particle:nth-child(6) { width: 180px; height: 180px; top: 60%; left: 5%; animation-delay: -10s; background: rgba(79, 70, 229, 0.08); }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(5deg); }
  50% { transform: translate(-20px, 20px) rotate(-3deg); }
  75% { transform: translate(15px, 10px) rotate(2deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 70px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  margin: 8px auto 0;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: #f8f9ff;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  color: #4f46e5;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: #888;
  font-size: 14px;
}

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

.cap-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.cap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.12);
}

.cap-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.cap-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 12px;
}

.cap-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ---------- AI Featured Card ---------- */
.cap-card-featured {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.cap-card-featured:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

.cap-card-featured h3 {
  color: #fff;
}

.cap-card-featured p {
  color: rgba(255,255,255,0.8);
}

/* ---------- AI Achievements ---------- */
.section-ai {
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.section-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

.section-ai .section-title {
  color: #fff;
}

.section-ai .section-title::after {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
}

.section-ai .section-desc {
  color: rgba(255,255,255,0.6);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ai-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ai-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.ai-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.ai-card h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.ai-card p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- AI Tech Tag ---------- */
.tech-category-featured {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  padding: 24px;
}

.tech-category-featured h3 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.1);
}

.tag-ai {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.tag-ai:hover {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

/* ---------- Case Featured Card ---------- */
.case-card-featured {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.case-card-featured:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}

.case-card-featured .case-img {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

/* ---------- Tech Stack ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.tech-category {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.tech-category:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tech-category h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2ff;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4f46e5;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.tech-tag:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Cases ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.case-img {
  width: 200px;
  min-height: 180px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-placeholder {
  font-size: 56px;
}

.case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 10px;
}

.case-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}

/* ---------- 员工专区 Portal ---------- */
.section-portal {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
}

/* ---------- 员工登录框 ---------- */
.portal-login {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.login-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  backdrop-filter: blur(10px);
}

.login-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.login-box h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}

.login-box > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form .form-group {
  text-align: left;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-form input:focus {
  outline: none;
  border-color: #818cf8;
  background: rgba(255, 255, 255, 0.15);
}

.code-group {
  display: flex;
  gap: 10px;
}

.code-group input {
  flex: 1;
}

.send-code-btn {
  padding: 0 16px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.send-code-btn:hover {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
}

.send-code-btn:disabled {
  background: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.login-btn {
  margin-top: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  transform: translateY(-2px);
}

.login-tip {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 已登录状态 ---------- */
.portal-content {
  position: relative;
}

.portal-user-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-flex;
}

.user-phone {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.logout-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- 消息提示 ---------- */
.login-message {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.login-message.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.login-message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.section-portal .section-title {
  color: #fff;
}

.section-portal .section-title::after {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
}

.section-portal .section-desc {
  color: rgba(255,255,255,0.6);
}

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

.portal-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: block;
}

.portal-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.2);
}

.portal-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.portal-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portal-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  line-height: 1.6;
}

.portal-btn {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portal-card:hover .portal-btn {
  background: linear-gradient(135deg, #a78bfa, #c4b5fd);
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.4);
}

.portal-agent-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.portal-agent-links .portal-btn {
  padding: 8px 20px;
  font-size: 13px;
}

.portal-agent-links .portal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.4);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.contact-info::-webkit-scrollbar {
  width: 6px;
}

.contact-info::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.3);
  border-radius: 3px;
}

.contact-info::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 70, 229, 0.5);
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.contact-item:hover {
  background: #f8f9ff;
}

.contact-headquarters {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.contact-headquarters:hover {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}

.contact-item h4 {
  margin-bottom: 6px;
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: #fafbff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4f46e5;
  background: #fff;
}

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

/* ---------- Footer ---------- */
.footer {
  background: #1e1b4b;
  color: rgba(255,255,255,0.6);
  padding: 30px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
}

.footer p {
  font-size: 14px;
}

.icp {
  margin-top: 8px;
}

.icp a {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  transition: color 0.2s ease;
}

.icp a:hover {
  color: rgba(255,255,255,0.7);
}

/* ---------- Fade-up Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 15px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    flex-direction: column;
  }

  .case-img {
    width: 100%;
    min-height: 140px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  .stat-number {
    font-size: 36px;
  }
}
