/* ============================================
   ESTRELIS CLOUD — Main Stylesheet
   ============================================ */

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

:root {
  --bg:        #080D18;
  --bg-2:      #0F1628;
  --bg-card:   #141E35;
  --border:    rgba(255, 255, 255, 0.07);
  --accent:    #3B82F6;
  --accent-h:  #60A5FA;
  --teal:      #34D399;
  --text:      #F1F5F9;
  --text-2:    #94A3B8;
  --text-3:    #64748B;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r:         12px;
  --r-sm:      8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.br-desktop { display: inline; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(59,130,246,0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* === SECTION TAG === */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#navbar.scrolled {
  background: rgba(8, 13, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 14px 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--text); }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: rgba(8, 13, 24, 0.97);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 12px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, black 0%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.22);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 36px;
}
.hero-title {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 44px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.platforms-label { font-size: 13px; color: var(--text-3); }
.platform-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.platform-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 56px;
  text-align: center;
}
.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 6px;
}
.stat-divider { width: 1px; height: 64px; background: var(--border); }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 110px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 68px;
}
.section-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--text-2); line-height: 1.65; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: rgba(59,130,246,0.32);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.1);
}
.service-icon {
  width: 46px;
  height: 46px;
  background: rgba(59,130,246,0.1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 110px 0; background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-content h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 20px;
}
.about-lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}
.differentiators { display: flex; flex-direction: column; gap: 26px; }
.diff-item { display: flex; gap: 16px; align-items: flex-start; }
.diff-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-top: 2px;
  color: var(--teal);
}
.diff-icon svg { width: 20px; height: 20px; }
.diff-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.diff-item p { font-size: 14px; color: var(--text-2); margin: 0; }

.certs-panel { display: flex; flex-direction: column; gap: 14px; }
.cert-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s;
}
.cert-card:hover { border-color: rgba(59,130,246,0.3); }
.cert-card.dim { opacity: 0.6; }
.cert-badge {
  min-width: 52px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cert-badge.aws   { background: rgba(255,153,0,0.14);  color: #FF9900; }
.cert-badge.k8s   { background: rgba(50,108,229,0.14); color: #326CE5; }
.cert-badge.azure { background: rgba(0,120,212,0.14);  color: #0078D4; }
.cert-badge.ms    { background: rgba(243,83,37,0.14);  color: #F35325; }
.cert-badge.gcp   { background: rgba(66,133,244,0.14); color: #4285F4; }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 110px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: 16px;
}
.contact-info > p { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 36px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-link svg { width: 18px; height: 18px; min-width: 18px; }
.contact-link:hover { color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group textarea { resize: vertical; min-height: 124px; }

.form-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
}
.form-feedback.success {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.22);
  color: var(--teal);
}
.form-feedback.success svg { width: 18px; height: 18px; min-width: 18px; }
.form-feedback.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.22);
  color: #F87171;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 260px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-3); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 0 28px; }
  .stat-divider { height: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .br-desktop { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .stats-grid { flex-direction: column; gap: 0; }
  .stat-item { padding: 20px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .stat-item:last-child { border-bottom: none; }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}
