/* ============================================
   TechSolutions - 日本企業向けソフトウェア開発会社
   Style Sheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #005A9E;
  --primary-light: #00A3E0;
  --primary-dark: #003D6B;
  --primary-gradient: linear-gradient(135deg, #005A9E 0%, #00A3E0 100%);
  --accent: #00A3E0;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --text: #1E293B;
  --text-light: #64748B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0,90,158,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,90,158,0.4);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text .jp {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: block;
  line-height: 1.2;
}

.logo-text .en {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--primary);
  background: var(--gray-50);
}

/* ---- Language Switch ---- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  background: var(--gray-100);
  border-radius: 50px;
  padding: 3px;
}

.lang-btn {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--gray-500);
  font-family: 'Inter', sans-serif;
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,90,158,0.2);
}

.lang-btn:hover:not(.active) {
  color: var(--primary);
}

/* ---- Menu Toggle ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #003D6B 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}


.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,163,224,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,163,224,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(0,163,224,0.4), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(0,163,224,0.3), transparent),
    radial-gradient(3px 3px at 60% 20%, rgba(0,163,224,0.5), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(0,163,224,0.3), transparent),
    radial-gradient(3px 3px at 10% 80%, rgba(0,163,224,0.4), transparent),
    radial-gradient(2px 2px at 90% 40%, rgba(0,163,224,0.3), transparent);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,163,224,0.15);
  border: 1px solid rgba(0,163,224,0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .icon { font-size: 1rem; }

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'Inter', sans-serif;
}

.hero-stat .number .plus,
.hero-stat .number .unit {
  color: var(--primary-light);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ---- Page Header ---- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #0F172A 0%, #003D6B 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/tech-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,163,224,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,163,224,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}


.page-header h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  position: relative;
}

/* ---- Services Grid (Home) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- Advantages ---- */
.advantages {
  background: var(--gray-50);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-item .number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

.advantage-item .number .unit {
  font-size: 1.5rem;
  color: var(--primary-light);
}

.advantage-item h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- Process Steps ---- */
.process-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  opacity: 0.3;
}

.process-step {
  text-align: center;
  flex: 1;
  max-width: 200px;
  position: relative;
}

.step-num {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(0,90,158,0.3);
  position: relative;
  z-index: 2;
}

.process-step h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ---- Works Grid (Home) ---- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-image {
  height: 200px;
  background: linear-gradient(135deg, #E8F4FD 0%, #D1ECFA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.work-image span {
  position: relative;
  z-index: 1;
}

/* Home page work card background images */
.work-card:nth-child(1) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-sfa.jpg') center/cover no-repeat;
}
.work-card:nth-child(2) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-vehicle.jpg') center/cover no-repeat;
}
.work-card:nth-child(3) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-wms.jpg') center/cover no-repeat;
}

.work-info {

  padding: 24px;
}

.work-info .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 12px;
}

.work-info h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.work-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tags span {
  padding: 3px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 100px 0;
  background: var(--primary-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 80% 70%, rgba(255,255,255,0.1), transparent);
}

.cta-section h2 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-section .btn-white {
  position: relative;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
}

.footer h4 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ---- About Page ---- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro .text h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.about-intro .text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-intro .image {
  height: 400px;
  background: url('../images/about-office.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
}

.about-intro .image span {
  opacity: 0;
}


/* ---- Philosophy ---- */
.philosophy {
  background: var(--gray-50);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.philosophy-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.philosophy-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.philosophy-item .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.philosophy-item h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.philosophy-item p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary));
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-item .year {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-item .content h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.timeline-item .content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- Services Detail Page ---- */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-detail-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-detail-card .service-image {
  width: 160px;
  min-height: 200px;
  background: linear-gradient(135deg, #E8F4FD 0%, #D1ECFA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.service-detail-card .service-image span {
  position: relative;
  z-index: 1;
}

/* Service detail card background images */
.service-detail-card:nth-child(1) .service-image {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/service-web.jpg') center/cover no-repeat;
}
.service-detail-card:nth-child(2) .service-image {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/service-wms.jpg') center/cover no-repeat;
}
.service-detail-card:nth-child(3) .service-image {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/service-ai.jpg') center/cover no-repeat;
}
.service-detail-card:nth-child(4) .service-image {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/service-api.jpg') center/cover no-repeat;
}
.service-detail-card:nth-child(5) .service-image {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/service-cloud.jpg') center/cover no-repeat;
}
.service-detail-card:nth-child(6) .service-image {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/service-system.jpg') center/cover no-repeat;
}

.service-detail-card .service-body {

  padding: 28px;
}

.service-image {
  height: 100px;

  margin-bottom: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  border-radius: 18px;

  background: linear-gradient(
    135deg,
    #eef7ff,
    #dbeeff
  );

  border: 1px solid #cfe5ff;
}

.service-image img {
  height: 100%;
  width: auto;

  object-fit: contain;
}

.service-detail-card .service-body .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.service-detail-card .service-body h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-detail-card .service-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-detail-card .service-body ul {
  list-style: none;
}

.service-detail-card .service-body ul li {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.service-detail-card .service-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

/* ---- Works Page ---- */
.works-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.work-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-detail-card .work-image {
  height: 200px;
  background: linear-gradient(135deg, #E8F4FD 0%, #D1ECFA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.work-detail-card .work-image span {
  position: relative;
  z-index: 1;
}

/* Work detail card background images */
.work-detail-card:nth-child(1) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-sfa.jpg') center/cover no-repeat;
}
.work-detail-card:nth-child(2) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-vehicle.jpg') center/cover no-repeat;
}
.work-detail-card:nth-child(3) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-wms.jpg') center/cover no-repeat;
}
.work-detail-card:nth-child(4) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-api.jpg') center/cover no-repeat;
}
.work-detail-card:nth-child(5) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-data.jpg') center/cover no-repeat;
}
.work-detail-card:nth-child(6) .work-image {
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('../images/works-erp.jpg') center/cover no-repeat;
}


.work-detail-card .work-body {
  padding: 24px;
}

.work-detail-card .category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 12px;
}

.work-detail-card .work-body h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.work-detail-card .work-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-used span {
  padding: 3px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
}

/* ---- Technology Page ---- */
.tech-category {
  margin-bottom: 60px;
}

.tech-category h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
  position: relative;
}

.tech-category h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-gradient);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tech-item {
  text-align: center;
  padding: 24px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.tech-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Inter', sans-serif;
}

.tech-item h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.tech-item p {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ---- Contact Page ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group .required {
  color: #E53E3E;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(0,163,224,0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,90,158,0.3);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---- Contact Info ---- */
.contact-info {
  padding: 40px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.contact-info-item h4 {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.map-placeholder {
  margin-top: 32px;
  height: 200px;
  background: var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Stagger Animation ---- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* ---- Tablet (768px - 1024px) ---- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
  display: grid;

  grid-template-columns:
    1.3fr
    1.2fr
    1fr
    1.7fr;

  gap: 40px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

  .hero h1 {
    font-size: 2.8rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .process-steps {
    flex-wrap: wrap;
    gap: 32px;
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    max-width: 160px;
  }
}

/* ---- Mobile (below 768px) ---- */
@media (max-width: 767px) {
  .header-inner {
    height: 64px;
  }

  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--gray-200);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
    width: 100%;
    font-size: 1rem;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 12px;
    align-self: flex-start;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-page-grid {
    grid-template-columns: 1fr;
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-card {
    flex-direction: column;
  }

  .service-detail-card .service-image {
    width: 100%;
    min-height: 160px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-intro .image {
    height: 250px;
    order: -1;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    padding: 24px;
  }

  .contact-info {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .page-header {
    padding: 110px 0 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -23px;
  }

  .process-step {
    max-width: 140px;
  }

  .step-num {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
}

/* ---- Small Mobile (below 480px) ---- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .container {
    padding: 0 16px;
  }
}


