/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0a0a1a;
  --bg-mid: #141428;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg-hover: rgba(255, 255, 255, 0.10);
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --text: #e8e8f0;
  --text-dim: #9999b0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: linear-gradient(170deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Sections ===== */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.accent {
  color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 5rem;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* Background blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  will-change: transform;
  --mx: 0px;
  --my: 0px;
  transition: --mx 0.15s, --my 0.15s;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 10%;
  left: -5%;
  animation: blobFloat1 20s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #4a3fff;
  top: 50%;
  right: -10%;
  animation: blobFloat2 25s ease-in-out infinite;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: #ff3565;
  bottom: 10%;
  left: 30%;
  animation: blobFloat3 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { translate: 0 0; scale: 1; }
  25% { translate: 30px -40px; scale: 1.05; }
  50% { translate: -20px 20px; scale: 0.95; }
  75% { translate: 40px 10px; scale: 1.02; }
}

@keyframes blobFloat2 {
  0%, 100% { translate: 0 0; scale: 1; }
  25% { translate: -25px 30px; scale: 0.97; }
  50% { translate: 35px -15px; scale: 1.04; }
  75% { translate: -15px -25px; scale: 0.98; }
}

@keyframes blobFloat3 {
  0%, 100% { translate: 0 0; scale: 1; }
  25% { translate: 20px 35px; scale: 1.03; }
  50% { translate: -30px -10px; scale: 0.96; }
  75% { translate: 25px -20px; scale: 1.01; }
}

/* ===== Glass Card ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s,
              box-shadow 0.3s;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  perspective: 600px;
  cursor: default;
}

.service-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  display: block;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ===== Articles ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  padding: 1.8rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.article-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.article-card .read-more {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s;
}

.article-card:hover .read-more {
  color: var(--accent);
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-text p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.about-details {
  padding: 2rem;
}

.about-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.925rem;
}

.detail-label {
  color: var(--text-dim);
}

/* ===== Contact ===== */
.contact-section {
  text-align: center;
}

.contact-card {
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-card p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 1rem;
}

#email-svg-container {
  margin: 2rem auto;
  cursor: pointer;
  display: inline-block;
}

#email-svg-container svg {
  display: block;
}

.email-svg-text {
  font-family: var(--font);
  font-size: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: fill 0.5s;
}

.email-svg-text.animate {
  animation: drawText 2s ease forwards;
}

@keyframes drawText {
  0% {
    stroke-dashoffset: 800;
    fill: transparent;
  }
  70% {
    stroke-dashoffset: 0;
    fill: transparent;
  }
  100% {
    stroke-dashoffset: 0;
    fill: var(--accent);
  }
}

.contact-address {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blob-1, .blob-2, .blob-3 {
    opacity: 0.08;
  }
}
