/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  --bg-color: #F8FAFC;
  --text-color: #1E293B;
  --text-muted: #64748B;
  --accent-primary: #4F46E5;
  /* Indigo */
  --accent-secondary: #06B6D4;
  /* Cyan */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(148, 163, 184, 0.2);
  --nav-height: 80px;
  --header-bg: rgba(248, 250, 252, 0.9);
  --section-spacing: 120px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  /* Body font */
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Headings use Outfit */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Dynamic Background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* Modern soft blobs */
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navigation */
header {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: -4px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 99px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

nav a:hover,
nav a.active {
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.04);
}

nav a.active::after {
  width: 20px;
  opacity: 1;
  bottom: 4px;
}

/* Main Content */
main {
  padding-top: var(--nav-height);
  min-height: calc(100vh - 80px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 20px;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-color);
  background: linear-gradient(180deg, #1E293B 20%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero span.highlight {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.cta-button {
  padding: 18px 48px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 99px;
  box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.5);
}

.cta-button:hover::before {
  left: 100%;
}

/* Features/Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin: 40px 0 var(--section-spacing) 0;
}

.card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  padding: 48px;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
  backdrop-filter: blur(10px);
}

/* Stagger card animations if possible, but basic delay is fine */
.features .card:nth-child(2) {
  animation-delay: 0.7s;
}

.features .card:nth-child(3) {
  animation-delay: 0.8s;
}

.card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  /* Soft large shadow */
}

.card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text-color);
}

.card p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Technology & About Pages */
.text-page-hero {
  padding: 80px 0 60px;
  text-align: left;
}

.text-page-hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-color) 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.technology-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 120px;
}

.technology-item {
  padding: 40px;
  border-radius: 24px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.technology-item:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--glass-border);
}

.technology-item h3 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.technology-item p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.8;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.about-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: #94A3B8;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  header {
    padding: 15px 20px;
    height: auto;
    flex-direction: column;
  }

  nav {
    display: block;
    width: 100%;
    margin-top: 15px;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* Increase top padding on main to account for taller fixed header */
  main {
    padding-top: 200px;
  }

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

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