:root {
  --bg-primary: #05050c;
  --bg-secondary: #0c0b1a;
  --bg-glass: rgba(255, 255, 255, 0.02);
  --bg-glass-hover: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-focus: rgba(167, 139, 250, 0.4);
  
  --color-primary: #a78bfa;
  --color-secondary: #06b6d4;
  --color-accent: #f43f5e;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  
  --grad-primary: linear-gradient(135deg, #a78bfa, #06b6d4);
  --grad-hover: linear-gradient(135deg, #c084fc, #22d3ee);
  --grad-accent: linear-gradient(135deg, #f43f5e, #fb7185);
  
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background elements styling */
.ambient-glows {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  top: 40%;
  right: -10%;
}

.glow-3 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, #a78bfa, #06b6d4, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-text-main);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 15px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  background: var(--grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 4% 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 40%, var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  animation: float 6s infinite ease-in-out;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Stats Section */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: rgba(12, 11, 26, 0.6);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 40px 0;
  margin-top: 60px;
}

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

.stat-num {
  font-size: 40px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* Services Section */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 4%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.tag {
  background: rgba(167, 139, 250, 0.1);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.section-header h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 18px;
}

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

.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-glass-hover);
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.08);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 28px;
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.card:hover .card-icon {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Tech Stack Section */
.tech-strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  padding: 30px;
  background: rgba(255,255,255,0.01);
  border-radius: 20px;
  border: 1px dashed var(--border-glass);
}

.tech-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.tech-icon i {
  color: var(--color-secondary);
}

/* Contact & Info grid */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(167, 139, 250, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.info-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-content p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 15px;
}

/* Form Styling */
.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 40px;
  backdrop-filter: blur(20px);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer styling */
footer {
  background: #020205;
  border-top: 1px solid var(--border-glass);
  padding: 80px 4% 40px;
  margin-top: 100px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 380px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 4% 50px;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 46px;
  }
}
