/* ============================================================
   AIPERION — Modern AI & Cloud Consulting Website
   Design: Dark, minimal, startup aesthetic
   ============================================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --bg:             #050B18;
  --bg-2:           #080F1E;
  --surface:        rgba(255, 255, 255, 0.03);
  --surface-hover:  rgba(255, 255, 255, 0.06);
  --border:         rgba(255, 255, 255, 0.07);
  --border-active:  rgba(37, 99, 235, 0.4);

  --primary:        #2563EB;
  --primary-light:  #60A5FA;
  --accent:         #06B6D4;
  --accent-light:   #22D3EE;

  --gradient:       linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-text:  linear-gradient(135deg, #60A5FA 0%, #22D3EE 100%);
  --gradient-glow:  radial-gradient(ellipse at center, rgba(37,99,235,0.15) 0%, transparent 70%);

  --text:           #F0F4FF;
  --text-muted:     #8B9EC7;
  --text-faint:     #374151;

  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:    0 0 60px rgba(37, 99, 235, 0.12);

  --transition:     0.22s ease;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5 {
  line-height: 1.15;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

img, svg {
  display: block;
}

/* === LAYOUT === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
}

/* === UTILITY === */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.6); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 15px;
  border-radius: 14px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo svg {
  height: 34px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-nav > li > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  transition: color var(--transition);
}
.navbar-nav > li > a:hover {
  color: var(--text);
}

.navbar-cta {
  margin-left: 12px;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
}
.navbar-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 11, 24, 0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-nav a:hover {
  color: var(--primary-light);
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

/* Decorative background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: float-a 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.09) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: float-b 12s ease-in-out infinite;
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-30px, 20px) scale(1.05); }
  66%       { transform: translate(20px, -25px) scale(0.97); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(25px, -20px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 60px 0 80px;
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: bounce-scroll 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* === SECTION COMMON === */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === SERVICES === */
.services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.service-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08), var(--shadow-card);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* === APPROACH === */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

/* Connecting line between steps */
.approach-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,0.4), rgba(6,182,212,0.4));
}

.approach-step {
  text-align: center;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-light);
  position: relative;
  z-index: 1;
}

.approach-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.approach-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* === TECH STACK === */
.tech-stack {
  background: var(--bg-2);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  min-width: 160px;
}

.tech-item:hover {
  border-color: var(--border-active);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.tech-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.tech-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-content h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Founder card */
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Top gradient accent line */
.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

/* Subtle glow */
.founder-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.founder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(6,182,212,0.15));
  border: 2px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.founder-avatar-text {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.founder-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.founder-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.founder-skill-group .founder-tags {
  justify-content: flex-start;
}

.tag {
  padding: 5px 13px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Founder bio */
.founder-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Founder stats bar */
.founder-stats {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.founder-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.founder-stat + .founder-stat {
  border-left: 1px solid var(--border);
}

.founder-stat-value {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.founder-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* Founder skill groups */
.founder-skills {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.founder-skill-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.founder-skill-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-light);
}

/* LinkedIn profile link on card */
.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: opacity var(--transition);
}

.founder-linkedin:hover {
  opacity: 0.75;
}

/* === CONTACT === */
.contact {
  background: var(--bg-2);
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1.05;
}

.contact-inner > p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 44px;
}

.contact-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === FOOTER === */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo svg {
  height: 26px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

/* === DIVIDER === */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* === ANIMATIONS === */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 0.7s ease forwards;
}

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

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .container {
    padding: 0 20px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

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

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .approach-grid::before {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .section-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-item {
    min-width: 140px;
    flex: 1 1 140px;
  }
}
