/* —————————— CSS Reset & Base —————————— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* —————————— Color Theme —————————— */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-surface: #f9fafb;
  --color-surface-dark: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

/* —————————— Container & Layout —————————— */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* —————————— Header / Navigation —————————— */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 32px;
}
.nav-list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-list a:hover {
  color: var(--color-accent);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}
.nav-list a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 22px;
}
.menu-toggle span {
  display: block;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 320px;
    background: var(--color-bg);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
  }
  .nav-list.active { right: 0; }
}

/* —————————— Hero Section —————————— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.08;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--color-text);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* —————————— Buttons —————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-surface);
}
.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* —————————— Sections —————————— */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--color-surface);
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 60px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* —————————— Services Grid —————————— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* —————————— Work Grid —————————— */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-item {
  background: var(--color-surface-dark);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.work-image {
  width: 100%;
  height: 48px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
}
.work-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.work-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* —————————— About Section —————————— */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; }
}
.about-text h2 {
  margin-bottom: 20px;
  text-align: left;
}
.about-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent);
}
.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* —————————— CTA Section —————————— */
.cta-section {
  background: var(--color-accent);
  padding: 100px 0;
  text-align: center;
}
@media (max-width: 768px) {
  .cta-section { padding: 70px 0; }
}
.cta-title {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.cta-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
}
.cta-section .btn {
  background: #fff;
  color: var(--color-accent);
}
.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* —————————— Footer —————————— */
.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 80px 0 32px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-desc {
  color: #94a3b8;
  margin: 16px 0;
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.social-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.social-links a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #1e293b;;
  color: #64748b;
  font-size: 0.85rem;
}
