/* Modern Reset & Base Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0b0c10;
  --bg-card: #171923;
  --bg-light-section: #12141d;
  --text-main: #f7fafc;
  --text-muted: #a0aec0;
  --primary: #7c3aed; 
  --primary-hover: #6d28d9;
  --accent: #00f2fe;
  --radius-lg: 16px;
  --radius-md: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother animation curve */

  --bg-dark: #0f1015; 
  --bg-card: #171923;
  --bg-light-section: #12141d;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  /* Added a subtle radial gradient for depth */
  background: radial-gradient(circle at 50% -20%, #1a1b26, var(--bg-dark) 70%);
  background-attachment: fixed;
  color: var(--text-main);
  -webkit-text-size-adjust: 100%; 
}

body {
  line-height: 1.6;
  overflow-x: hidden; 
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

.max-width-md {
  max-width: 650px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light-section);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Typography elements */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Menu */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #1a202c;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 25px;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
  padding: 8px 0;
}

.nav-links li a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Mobile Hamburger Toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero UI */
.hero {
  padding: 180px 0 100px 0;
  text-align: center;
}

.badge {
  background-color: rgba(124, 58, 237, 0.15);
  color: #9375ec;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 40px auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Universal Buttons & Hover Animations */
.btn-primary, .btn-secondary, .btn-nav {
  display: inline-block;
  padding: 14px 28px; 
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  min-height: 48px; 
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid #2d3748;
}

.btn-secondary:hover {
  background-color: #1a202c;
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.02);
}

.btn-nav {
  background-color: var(--primary);
  color: #ffffff !important; /* Forces the text color to stay bright white */
  font-weight: 500;
  
  /* Horizontal and vertical padding adjustments */
  padding: 8px 22px !important; 
  font-size: 0.9rem;
  
  /* Overrides the global min-height constraint causing the squished look */
  min-height: auto !important; 
  line-height: 1.2;
  
  /* Centers the text perfectly within the custom padding box */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-nav:hover {
  transform: translateY(-2px) scale(1.05);
  background-color: var(--primary-hover);
}

.btn-full {
  width: 100%;
  display: block;
}

/* Cards & Interactivity Layout Configurations */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid #2d3748;
  transition: var(--transition);
}

/* INTERACTIVE CARD HOVER EFFECT */
.interactive-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.highlight-card {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
  position: relative;
}

.val-card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.interactive-card:hover h3 {
  color: var(--accent); /* Changes title color slightly on hover */
}

.val-card p {
  color: var(--text-muted);
}

/* Pricing Grid Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center; /* Keeps the middle card aligned well if scaled */
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.scale-up {
  transform: scale(1.05);
}

.scale-up:hover {
  transform: translateY(-8px) scale(1.05);
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.price {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 15px 0;
  font-weight: 500;
}

.price span {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  border-bottom: 1px solid #2d3748;
  padding-bottom: 25px;
}

.features-list {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.features-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.features-list li strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 10px;
  margin-top: 15px;
}

/* Service Grid Details */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.service-item {
  background-color: rgba(23, 25, 35, 0.4);
  padding: 25px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 55, 72, 0.5);
  transition: var(--transition);
}

.service-item .icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.service-item:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.service-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.service-item:hover h4 {
  color: var(--accent);
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Portfolio Section Styles */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-img-placeholder {
  background-color: #212431;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
  border-bottom: 1px solid #2d3748;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-img-placeholder {
  background-color: #2a2e3f; /* Lightens image placeholder on hover */
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.portfolio-info p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.sample-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  padding: 5px 0;
  transition: var(--transition);
}

.sample-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* Embedded Form UI */
.form-card {
  max-width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input, 
.form-group textarea, 
.form-select {
  width: 100%;
  background-color: #0b0c10;
  border: 1px solid #2d3748;
  border-radius: var(--radius-md);
  padding: 14px 16px; 
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  appearance: none; /* Smooths out default dropdown styles */
}

.form-group input:focus, 
.form-group textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
  transform: scale(1.01);
}

@media data-color-mode {
  .form-group input, .form-group textarea, .form-select { font-size: 16px; }
}

.form-status-msg {
  margin-top: 15px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Footer style */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #1a202c;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .scale-up {
    transform: scale(1); /* Removes forced scale on mobile to prevent squishing */
  }
  .scale-up:hover {
    transform: translateY(-8px) scale(1);
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }

  .menu-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(11, 12, 16, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
    border-top: 1px solid #1a202c;
  }

  .nav-links.active { left: 0; }
  .nav-links li { margin: 20px 0; width: 80%; text-align: center; }
  .nav-links li a { margin-left: 0; font-size: 1.25rem; width: 100%; }
  .btn-nav { display: block; width: 100%; }

  .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .hero { padding: 140px 0 60px 0; }
  .hero h1 { font-size: 2.4rem; line-height: 1.2; }
  .hero-subtitle { font-size: 1.05rem; margin-bottom: 30px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; gap: 12px; }
  .btn-secondary { margin-left: 0; }
}

/* Point-Form Layout Fixes for Content Cards */
.bullet-list {
  list-style: none;
  margin-top: 15px;
  text-align: left;
}

.bullet-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

/* Custom subtle bullet indicator */
.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.bullet-list li strong {
  color: var(--text-main);
}