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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;
  --accent-glow: rgba(37, 99, 235, 0.2);
  
  --gradient-main: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --gradient-text: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  --gradient-bg: linear-gradient(120deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(8, 145, 178, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

p {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

ul {
  list-style: none;
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.title-glow {
  text-shadow: 0 0 40px rgba(37, 99, 235, 0.15);
}

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

/* Sections */
section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 3rem;
}

/* Advanced Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  z-index: 1;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
  transform: skewX(-20deg);
  transition: 0.7s ease;
  z-index: -1;
}

.glass-panel:hover::before {
  left: 150%;
}

.glass-panel:hover {
  transform: translateY(-12px) scale(1.02);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.15), 0 0 20px rgba(124, 58, 237, 0.05);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-normal);
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition-bounce);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-bounce);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 10px 25px -5px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  z-index: -1;
  transition: opacity 0.4s;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
  background: white;
  box-shadow: var(--glass-shadow);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.15);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 10rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(8, 145, 178, 0.08) 0%, transparent 40%);
  animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(2%, 2%); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: float 5s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 3.5rem;
  padding: 0 10%;
  color: var(--text-secondary);
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-delay {
  animation: float 6s ease-in-out infinite 3s;
}

/* Stats Section */
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  background: white;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stat-number span {
  font-size: 2.5rem;
  margin-left: 5px;
  color: var(--accent-blue);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Enhanced Grid Layouts */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.15);
  transition: var(--transition-bounce);
}

.glass-panel:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Workflow Section */
.workflow-step {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.workflow-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-number {
  font-size: 6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px rgba(37, 99, 235, 0.2);
  line-height: 1;
  transition: var(--transition-normal);
}

.workflow-step:hover .step-number {
  -webkit-text-stroke: 2px var(--accent-blue);
  transform: scale(1.1);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Footer */
footer {
  background: white;
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1.2rem;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  transition: var(--transition-normal);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .workflow-step, .workflow-step:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .nav-links.show {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  
  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
  }
  
  .hero-btns {
    flex-direction: column;
  }
}

