/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #e2e2e8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: all .3s ease;
}
.site-header.scrolled {
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
}
.logo-text {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  letter-spacing: -0.02em;
}
.main-nav {
  display: flex; align-items: center; gap: 32px;
}
.main-nav a {
  font-size: .9rem; font-weight: 500; color: #a0a0b0;
  transition: color .2s;
}
.main-nav a:hover { color: #fff; }
.nav-cta {
  background: #6366f1 !important; color: #fff !important;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600 !important; font-size: .85rem !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: #4f46e5 !important; }

/* Burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; border-radius: 2px; transition: all .3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99,102,241,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(99,102,241,.08) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 720px;
}
.hero-tag {
  display: inline-block;
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: #818cf8;
  margin-bottom: 20px;
  background: rgba(99,102,241,.1);
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(99,102,241,.2);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; color: #fff;
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #818cf8, #a5b4fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: #8888a0;
  max-width: 560px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 10px;
  font-size: .95rem; font-weight: 600;
  transition: all .25s ease; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary {
  background: #6366f1; color: #fff;
}
.btn-primary:hover { background: #4f46e5; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #c0c0d0;
  border: 1.5px solid rgba(255,255,255,.15);
}
.btn-outline:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-dark { background: #0f0f17; }
.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: #818cf8; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: #7878a0;
  max-width: 600px; margin-bottom: 48px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.service-card {
  background: #13131d;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 32px;
  transition: all .3s ease;
}
.service-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99,102,241,.08);
}
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,.1);
  border-radius: 12px; margin-bottom: 20px;
  color: #818cf8;
}
.service-card h3 {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  margin-bottom: 10px;
}
.service-card p {
  font-size: .92rem; color: #8888a0; line-height: 1.6;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-text p {
  font-size: 1rem; color: #9090a8; margin-top: 16px;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.stat-card {
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 28px;
  text-align: center;
  transition: all .3s ease;
}
.stat-card:hover {
  border-color: rgba(99,102,241,.25);
}
.stat-number {
  display: block;
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #a5b4fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .85rem; color: #7878a0; font-weight: 500;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 24px;
}
.project-card {
  background: #13131d;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; overflow: hidden;
  transition: all .3s ease;
}
.project-card:hover {
  border-color: rgba(99,102,241,.25);
  transform: translateY(-4px);
}
.project-img {
  height: 240px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.project-mock {
  width: 100%; max-width: 320px;
  background: rgba(0,0,0,.3); border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.mock-bar {
  height: 20px; background: rgba(0,0,0,.4);
  display: flex; align-items: center; padding: 0 8px; gap: 4px;
}
.mock-bar::before, .mock-bar::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.mock-content {
  display: flex; padding: 12px; gap: 10px; min-height: 120px;
}
.mock-sidebar {
  width: 50px; background: rgba(255,255,255,.06); border-radius: 4px; flex-shrink: 0;
}
.mock-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mock-main.full { width: 100%; }
.mock-line {
  height: 8px; background: rgba(255,255,255,.12); border-radius: 4px;
}
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }
.mock-grid-small {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mock-box {
  width: 60px; height: 40px;
  background: rgba(255,255,255,.08); border-radius: 4px;
}
.mock-box.tall { height: 60px; flex: 1; }
.mock-hero-block {
  height: 40px; background: rgba(255,255,255,.1); border-radius: 4px;
}
.project-info { padding: 28px; }
.project-type {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: #818cf8;
}
.project-info h3 {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin: 8px 0 10px;
}
.project-info p {
  font-size: .92rem; color: #8888a0; line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: #0a0a0f;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 32px;
  transition: all .3s ease;
}
.testimonial-card:hover {
  border-color: rgba(99,102,241,.2);
}
.stars { color: #fbbf24; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text {
  font-size: .95rem; color: #b0b0c0;
  line-height: 1.65; margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.author-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #fff;
}
.testimonial-author strong {
  display: block; color: #fff; font-size: .9rem;
}
.testimonial-author span {
  font-size: .8rem; color: #6868a0;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: #13131d;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; overflow: hidden;
  transition: all .3s ease; cursor: pointer;
}
.blog-card:hover {
  border-color: rgba(99,102,241,.25);
  transform: translateY(-4px);
}
.blog-img { height: 180px; }
.blog-info {
  display: flex; gap: 12px; padding: 20px 24px 0; align-items: center;
}
.blog-tag {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: #818cf8;
  background: rgba(99,102,241,.1); padding: 3px 10px; border-radius: 12px;
}
.blog-read { font-size: .78rem; color: #6868a0; }
.blog-card h3 {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  padding: 12px 24px 0; line-height: 1.35;
}
.blog-card > p {
  font-size: .88rem; color: #7878a0;
  padding: 8px 24px 24px; line-height: 1.55;
}

/* ===== CTA ===== */
.cta-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(99,102,241,.12) 0%, transparent 70%),
    #0a0a0f;
  text-align: center;
  padding: 120px 0;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; color: #fff;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.cta-inner > p:first-of-type {
  font-size: 1.05rem; color: #8888a0;
  margin-bottom: 32px;
}
.cta-email {
  margin-top: 16px; font-size: .88rem; color: #6868a0;
}
.cta-email a { color: #818cf8; }
.cta-email a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 60px;
  background: #08080d;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc { font-size: .9rem; color: #6868a0; max-width: 280px; }
.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.footer-col h4 {
  font-size: .82rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col a, .footer-legal {
  display: block; font-size: .88rem; color: #6868a0;
  margin-bottom: 8px; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: .82rem; color: #4848a0; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: .08s; }
.fade-in:nth-child(3) { transition-delay: .16s; }
.fade-in:nth-child(4) { transition-delay: .24s; }
.fade-in:nth-child(5) { transition-delay: .32s; }
.fade-in:nth-child(6) { transition-delay: .4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: #13131d; flex-direction: column;
    padding: 80px 32px 32px; gap: 20px;
    transition: right .3s ease; z-index: 99;
    border-left: 1px solid rgba(255,255,255,.06);
  }
  .main-nav.open { right: 0; }
  .burger { display: block; z-index: 101; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 60px; }
}
