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

:root {
  --bg-primary: #06090e;
  --bg-secondary: #0d121f;
  --bg-card: rgba(18, 24, 38, 0.6);
  --bg-card-hover: rgba(26, 34, 54, 0.8);
  
  --primary: #8b5cf6; /* Neon Violet */
  --secondary: #06b6d4; /* Electric Cyan */
  --accent: #ec4899; /* Glow Pink */
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border-glow: rgba(139, 92, 246, 0.15);
  --border-glow-hover: rgba(6, 182, 212, 0.4);
  
  --nav-height: 80px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Gradients & Glow Blobs */
.glow-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s infinite alternate ease-in-out;
}

.glow-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -50px;
}

.glow-blob-2 {
  width: 600px;
  height: 600px;
  background: var(--secondary);
  top: 40%;
  left: -200px;
  animation-delay: -5s;
}

.glow-blob-3 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: 10%;
  right: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 40px) scale(1.1);
  }
  100% {
    transform: translate(-30px, -20px) scale(0.9);
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Common Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glow-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 9, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Language Toggle Switch */
.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 30px;
  display: flex;
  cursor: pointer;
  position: relative;
  width: 80px;
  height: 32px;
  justify-content: space-between;
  align-items: center;
}

.lang-toggle span {
  font-size: 0.75rem;
  font-weight: 700;
  width: 34px;
  text-align: center;
  z-index: 2;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  user-select: none;
}

.lang-toggle span.active {
  color: #fff;
}

.lang-toggle-bg {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 36px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  z-index: 1;
  transition: var(--transition-smooth);
}

.lang-toggle.id-active .lang-toggle-bg {
  left: 39px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Sections Layout */
section {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 1.25rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.hero-image {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float-visual 6s infinite alternate ease-in-out;
}

@keyframes float-visual {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-15px) rotate(1deg); }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: scale(1.1);
  transition: var(--transition-smooth);
}

.service-card h3 {
  font-size: 1.35rem;
  color: #fff;
}

/* Tech Stack Section */
.tech-container {
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tech-card {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.tech-card svg {
  width: 40px;
  height: 40px;
  fill: var(--text-secondary);
  transition: var(--transition-smooth);
}

.tech-card:hover svg {
  fill: var(--secondary);
  transform: translateY(-4px);
}

/* Cost Calculator Section */
.calculator-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-group label {
  font-weight: 600;
  font-family: var(--font-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
  transition: var(--transition-smooth);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

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

.feature-checkbox {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  user-select: none;
  transition: var(--transition-smooth);
}

.feature-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.checkbox-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 3px;
  display: none;
}

.feature-checkbox input:checked ~ .checkbox-custom {
  border-color: var(--secondary);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.feature-checkbox input:checked ~ .checkbox-custom::after {
  display: block;
}

.feature-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-checkbox input:checked + .checkbox-custom + span {
  color: #fff;
}

.calc-summary {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.price-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Portfolio Showcase Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

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

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

.portfolio-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-secondary);
}

.portfolio-info h3 {
  font-size: 1.25rem;
  color: white;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 0.90fr 1.1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: white;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem;
  background: rgba(18, 24, 38, 0.4);
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.faq-trigger:hover {
  background: rgba(18, 24, 38, 0.6);
}

.faq-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--secondary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  background: rgba(6, 9, 14, 0.4);
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-content p {
  padding: 1.5rem;
  font-size: 0.95rem;
}

.faq-item.active .faq-content {
  max-height: 500px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  background: #04060a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links h4 {
  color: white;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scroll Animation Classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 968px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 100px;
  }
  
  .badge {
    align-self: center;
  }
  
  .hero-tagline {
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Hamburger Menu */
.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(6, 9, 14, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-links.open {
    transform: translateY(0);
  }
  
  .nav-actions {
    display: none; /* Hide toggle on small screens or adjust */
  }
}

/* Modal Overlay & Card styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 14, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 500px;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary);
  font-size: 2rem;
}
