/* === HILLSTOP — MAIN STYLESHEET === */
/* Color Palette: Deep Indigo + Mint + Coral on Dark */
:root {
  --bg-primary: #14141e;
  --bg-secondary: #1e1e32;
  --bg-card: #252542;
  --bg-card-hover: #2c2c50;
  --accent-primary: #00d4aa;
  --accent-primary-dark: #00b894;
  --accent-secondary: #ff6b6b;
  --accent-warm: #ffe66d;
  --text-primary: #f0f0f8;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  --border: #333350;
  --nav-bg: #0d0d19;
  --gradient-hero: linear-gradient(135deg, #14141e 0%, #1a1e35 40%, #1e2a3a 70%, #14141e 100%);
  --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
  --gradient-coral: linear-gradient(135deg, #ff6b6b 0%, #e85d5d 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-nav: 0 2px 20px rgba(0,0,0,0.4);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --navbar-height: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navbar-height) + 20px); }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: 52px; letter-spacing: -0.02em; }
h2 { font-size: 38px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p { margin-bottom: 16px; color: var(--text-secondary); }

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

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

.section-title {
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.accent-underline {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ========== NAVIGATION (.site-nav CLASS — NOT bare nav) ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: var(--shadow-nav);
  height: var(--navbar-height);
  transition: background 0.3s ease;
}
.site-nav.scrolled {
  background: #0a0a16;
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav .nav-brand .brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
}
.site-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.site-nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: var(--accent-primary);
  background: rgba(0,212,170,0.08);
}
.site-nav .nav-links .btn-nav {
  background: var(--accent-primary);
  color: #14141e;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-left: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-nav .nav-links .btn-nav:hover {
  background: var(--accent-primary-dark);
  color: #14141e;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,170,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,107,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero .hero-badge {
  display: inline-block;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.3);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1.12;
}
.hero h1 .highlight {
  color: var(--accent-primary);
}
.hero .hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}
.hero .hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--accent-primary);
  color: #14141e;
}
.btn-primary:hover {
  background: var(--accent-primary-dark);
  color: #14141e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}
.hero .hero-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 50%;
}

/* ========== SERVICES ========== */
.services {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.service-card .service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,212,170,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-primary);
  margin-bottom: 20px;
}
.service-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.65;
}

/* ========== ABOUT / FEATURES ========== */
.about {
  padding: 100px 0;
  background: var(--bg-primary);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { font-size: 16px; line-height: 1.75; }
.feature-list {
  list-style: none;
  margin-top: 24px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
}
.feature-list li::before {
  content: '\2713';
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.about-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-stat { text-align: center; }
.about-stat .stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  display: block;
}
.about-stat .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ========== TECH STACK ========== */
.tech {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.tech-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.tech-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.tech-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0,212,170,0.05);
}

/* ========== CONTACT ========== */
.contact {
  padding: 100px 0;
  background: var(--bg-primary);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  margin-bottom: 14px;
}
.contact-info p {
  color: var(--text-secondary);
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 15px;
}
.contact-detail .detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,212,170,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-feedback {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: none;
}
.form-feedback.success { color: var(--accent-primary); display: block; }
.form-feedback.error { color: var(--accent-secondary); display: block; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}
.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--accent-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 0;
}

/* ========== COUNTER SECTION ========== */
.counter-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.counter-item .counter-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  display: block;
}
.counter-item .counter-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* ========== SCROLL REVEAL ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .hero .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 140px 0 80px; text-align: center; }
  .hero h1 { font-size: 36px; }
  .hero .hero-sub { margin-left: auto; margin-right: auto; }
  .hero .hero-buttons { justify-content: center; }
  .hero .hero-content { max-width: 100%; }

  .nav-toggle { display: flex; }

  .site-nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 96px 28px 40px;
    gap: 4px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    transition: right 0.35s ease;
    z-index: 999;
  }
  .site-nav .nav-links.open { right: 0; }
  .site-nav .nav-links a {
    font-size: 16px;
    padding: 12px 16px;
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .site-nav .nav-links .btn-nav { margin-left: 0; text-align: center; }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 30px; }
  .hero .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .counter-grid { grid-template-columns: 1fr 1fr; }
  .about-stats-row { grid-template-columns: 1fr; }
  .section-subtitle { font-size: 16px; }
}
