:root {
  --primary-color: #7d5fff;
  --secondary-color: #ff4dff;
  --accent-blue: #00d2ff;
  --bg-dark: #0f0c29;
  --bg-deep: #050510;
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --neon-glow: 0 0 15px rgba(125, 95, 255, 0.5);
  --gradient-main: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --gradient-neon: linear-gradient(90deg, #7d5fff, #ff4dff);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Blur Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(100px);
}

.blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0.2;
}

.blob-1 {
  background: var(--primary-color);
  top: -100px;
  right: -100px;
}

.blob-2 {
  background: var(--secondary-color);
  bottom: -100px;
  left: -100px;
}

.blob-3 {
  background: var(--accent-blue);
  top: 40%;
  left: 30%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 16, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.navbar.sticky {
  padding: 15px 8%;
  background: rgba(15, 12, 41, 0.95);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo span {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

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

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

.nav-cta {
  background: var(--gradient-neon);
  padding: 12px 25px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--neon-glow);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(125, 95, 255, 0.7);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 8% 0;
  gap: 50px;
}

.hero-content {
  flex: 1;
  animation: slideInLeft 1s ease;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
}

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

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 600px;
}

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

.btn {
  padding: 15px 35px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient-neon);
  color: #fff;
  box-shadow: var(--neon-glow);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 77, 255, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease;
}

.hero-visual img {
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 0 30px rgba(125, 95, 255, 0.3));
  transition: var(--transition);
}

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

/* Advantages Section */
section {
  padding: 100px 8%;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-head h2 span {
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 25px;
  display: block;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

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

/* Portfolio Section */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 25px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: var(--neon-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info .category {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.portfolio-info h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.portfolio-actions {
  display: flex;
  gap: 10px;
}

.btn-sm {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}

/* Services Section */
.service-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 100px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-img {
  flex: 1;
  position: relative;
}

.service-img img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.service-text {
  flex: 1;
}

.service-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.service-text p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  margin-bottom: 35px;
}

.service-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
}

.service-features li::before {
  content: '✦';
  color: var(--secondary-color);
  font-weight: bold;
}

/* Pricing Section */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 50px 40px;
  border-radius: 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border-color: var(--secondary-color);
  transform: scale(1.05);
  background: rgba(255, 77, 255, 0.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-neon);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}

.pricing-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testi-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 35px;
  border-radius: 20px;
  position: relative;
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.2;
}

.testi-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-neon);
}

.testi-user h5 {
  font-size: 16px;
}

.testi-user span {
  font-size: 13px;
  color: var(--text-muted);
}

.rating {
  color: #ffb800;
  margin-top: 15px;
}

/* CTA & Contact */
.final-cta {
  text-align: center;
  background: linear-gradient(rgba(15, 12, 41, 0.8), rgba(15, 12, 41, 0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  margin: 0 8% 100px;
  padding: 100px 50px;
  border: 1px solid var(--glass-border);
}

.final-cta h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.final-cta p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.8;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}

.contact-form {
  background: var(--glass-bg);
  padding: 50px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

.social-links {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.social-btn {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* Footer */
footer {
  padding: 50px 8%;
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

footer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

/* Animations */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(125, 95, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(125, 95, 255, 0.6); }
  100% { box-shadow: 0 0 5px rgba(125, 95, 255, 0.2); }
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 48px; }
  .hero { flex-direction: column; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-content p { margin: 0 auto 35px; }
}

@media (max-width: 991px) {
  .navbar { padding: 15px 5%; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 12, 41, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    flex-direction: column;
    gap: 25px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-content h1 { font-size: 40px; }
  .service-row, .service-row.reverse { flex-direction: column; gap: 40px; }
  .contact-container { grid-template-columns: 1fr; }

  /* Footer mobile */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 6%;
    gap: 20px;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .hero-content h1 { font-size: 32px; }
  .pricing-card { padding: 30px 20px; }

  /* Footer extra small */
  footer {
    padding: 32px 5%;
  }

  .footer-nav {
    gap: 14px 20px;
    font-size: 13px;
  }
}
