:root {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --bg-color: #f8f9fa;
  --text-color: #202124;
  --text-secondary: #5f6368;
  --primary-color: #1a73e8;
  --primary-variant: #185abc;
  --accent-color: #34a853;
  --surface-color: #ffffff;
  --border-color: #dadce0;
  --gradient-ai: linear-gradient(135deg, #1a73e8 0%, #34a853 50%, #fbbc04 100%);
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition-default: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header & Nav */
header {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  transition: var(--transition-default);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-color);
}

.logo img {
  height: 56px;
  width: auto;
  transition: var(--transition-default);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-default);
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-default);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-variant);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: rgba(26, 115, 232, 0.04);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 120px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('assets/images/hero_banner.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-color);
}

.hero h1 span {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  margin: 0 auto 40px;
}

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

/* Section Common */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* Service Pillars Section */
.services {
  background-color: var(--bg-color);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.pillar-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-default);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.card-header-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-default);
}

.pillar-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
}

.pillar-desc {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 20px;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-list li {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.pillar-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.pillar-list li strong {
  color: var(--text-color);
}

/* Featured Pillar (Strategic Highlight) */
@media (min-width: 769px) {
  .pillar-featured {
    grid-column: 1 / -1;
    flex-direction: row !important;
  }
  .pillar-featured .card-header-img {
    width: 40%;
    height: auto;
    min-height: 100%;
  }
  .pillar-featured .pillar-body {
    width: 60%;
  }
}

.pillar-featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(26, 115, 232, 0.15);
}

.pillar-featured:hover {
  box-shadow: 0 0 30px rgba(26, 115, 232, 0.3);
}

/* Products Section */
.products {
  background-color: var(--surface-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.product-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-default);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-body {
  padding: 32px;
  position: relative;
}

.product-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
}

.product-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.badge {
  position: absolute;
  top: 32px;
  right: 32px;
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Matrix Section */
.matrix {
  background-color: var(--bg-color);
}

.table-wrapper {
  overflow-x: auto;
  background-color: var(--surface-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.expertise-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.expertise-table th, .expertise-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.expertise-table th {
  background-color: rgba(26, 115, 232, 0.05);
  color: var(--text-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.expertise-table tbody tr:nth-child(even) {
  background-color: rgba(248, 249, 250, 0.5);
}

.expertise-table tbody tr:hover {
  background-color: rgba(26, 115, 232, 0.02);
}

.expertise-table td:first-child {
  font-weight: 700;
  color: var(--primary-color);
}

/* Tech Stack Section */
.tech-stack {
  background-color: var(--surface-color);
  text-align: center;
}

.tech-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.tech-logo-item {
  background-color: var(--bg-color);
  padding: 20px 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition-default);
}

.tech-logo-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.tech-name {
  font-weight: 700;
  color: var(--text-color);
  font-size: 16px;
}

/* Contact Section */
.contact {
  background-color: var(--bg-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input, .form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition-default);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Footer */
footer {
  background-color: #202124;
  color: #9aa0a6;
  padding: 60px 0;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin-bottom: 8px;
}

.footer-subtext {
  color: #5f6368;
  font-size: 12px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }
  .nav-links {
    display: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
