:root {
  --bg-dark: #f8f9fb;
  --bg-grad: linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
  --surface: #ffffff;
  --surface-light: #f5f7fa;
  --text-primary: #1a1f35;
  --text-secondary: #525966;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.15);
  --accent: #10b981;
  --accent-warm: #ef4444;
  --border: rgba(59, 130, 246, 0.1);
  --border-light: rgba(59, 130, 246, 0.2);
  --shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
  --shadow-lg: 0 10px 30px rgba(59, 130, 246, 0.15);
  --radius: 20px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-grad);
  color: var(--text-primary);
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% -50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
.container { width: min(92%, var(--max-width)); margin: 0 auto; position: relative; z-index: 1; }
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffffff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-btn { margin-left: 10px; }
.menu-toggle, .menu-icon { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 15px 45px rgba(59, 130, 246, 0.3); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}
.hero { padding: 100px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-copy { animation: fadeInUp 0.8s ease-out; }
.eyebrow, .section-label {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p, .section-head p, .card p, .project-card p, .contact-info p, .info-item span, .cta-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 36px 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.stat-card:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.05); transform: translateY(-5px); }
.stat-card strong { display: block; font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.stat-card span { color: var(--text-secondary); font-size: 0.95rem; display: block; }
.hero-panel-wrap { position: relative; min-height: 500px; display: grid; place-items: center; }
.glow { position: absolute; border-radius: 50%; filter: blur(40px); }
.glow-a { width: 280px; height: 280px; background: rgba(0, 217, 255, 0.15); top: -80px; left: -80px; }
.glow-b { width: 320px; height: 320px; background: rgba(139, 92, 246, 0.12); bottom: -100px; right: -100px; }
.hero-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 246, 255, 0.7));
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
.hero-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-panel p { margin-bottom: 24px; }
.service-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.service-pills span {
  padding: 8px 14px;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.85rem;
  color: var(--primary);
  transition: all 0.3s ease;
}
.service-pills span:hover { background: rgba(59, 130, 246, 0.2); border-color: var(--primary); }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-grid div {
  padding: 16px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
}
.mini-grid strong { display: block; margin-bottom: 6px; color: var(--primary); font-size: 0.95rem; }
.mini-grid span { color: var(--text-secondary); font-size: 0.85rem; display: block; }
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.02) 100%); border-top: 1px solid var(--border); }
.section-head { margin-bottom: 60px; max-width: 600px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 16px 0 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cards-grid { display: grid; gap: 24px; }
.three-cols { grid-template-columns: repeat(3, 1fr); }
.four-cols { grid-template-columns: repeat(4, 1fr); }
.card, .project-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(243, 246, 255, 0.5));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.08));
  transition: left 0.3s ease;
  z-index: 0;
}
.card:hover::before { left: 0; }
.card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15); }
.card > * { position: relative; z-index: 1; }
.card h3, .project-card h3 { margin: 0 0 14px; font-size: 1.35rem; color: var(--text-primary); }
.card ul { margin: 0; padding-left: 20px; list-style: none; }
.card li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.card li::before { content: '?'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 20px;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
.mini-card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(243, 246, 255, 0.4));
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.mini-card:hover { border-color: var(--secondary); transform: translateY(-5px); background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1)); }
.mini-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.mini-card p { margin: 0; }
.compact-grid .mini-card { min-height: 160px; display: flex; flex-direction: column; justify-content: center; }
.project-card .tag { margin-bottom: 14px; }
.panel-chip, .tag { display: inline-flex; padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(59, 130, 246, 0.2); background: rgba(59, 130, 246, 0.15); color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cta-banner {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.06));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.cta-banner h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; }
.contact-form form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  font: inherit;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
input::placeholder, textarea::placeholder { color: rgba(82, 89, 102, 0.5); }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}
textarea { resize: vertical; min-height: 120px; }
.info-stack { display: grid; gap: 16px; margin-top: 24px; }
.info-item {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.05);
  transition: all 0.3s ease;
}
.info-item:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.12); }
.info-item strong { display: block; margin-bottom: 6px; color: var(--primary); font-size: 0.95rem; }
.alert { margin-bottom: 24px; padding: 16px 20px; border-radius: 16px; border: 1.5px solid transparent; backdrop-filter: blur(10px); }
.alert.success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #059669; }
.alert.error { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.3); color: var(--accent-warm); }
.site-footer { padding: 40px 0 30px; border-top: 1px solid var(--border); background: rgba(243, 246, 255, 0.5); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner p, .footer-links a { color: var(--text-primary); font-size: 0.95rem; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--primary); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@media (max-width: 1080px) {
  .hero-grid, .three-cols, .four-cols, .contact-grid, .cta-banner { grid-template-columns: 1fr; }
  .cards-grid.three-cols, .cards-grid.four-cols { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px; }
  .footer-inner { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-left: auto;
  }
  .menu-icon span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 24px;
  }
  .menu-toggle:checked ~ .nav-links { display: flex; }
  .menu-toggle:checked ~ .menu-icon span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
  .menu-toggle:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .menu-icon span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }
  .nav-btn { margin-left: 0; }
  .hero-stats, .mini-grid, .cards-grid.three-cols, .cards-grid.four-cols, .form-row, .contact-grid { grid-template-columns: 1fr; }
  .cta-banner, .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-panel-wrap { min-height: auto; }
}
