/* Base Styles and Variables */
:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --primary: #7e22ce;
  --primary-foreground: #f8fafc;
  --primary-light: rgba(126, 34, 206, 0.1);
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #06b6d4;
  --accent-light: rgba(6, 182, 212, 0.1);
  --accent-foreground: #f8fafc;
  --border: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.5);
  --radius: 0.75rem;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --green: #10b981;
  --blue: #06b6d4;
  --purple: #7e22ce;
  --amber: #f59e0b;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

/* Backgrounds */
.bg-blur-container {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-blur-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(3rem);
  opacity: 0.2;
}

.bg-blur-element:nth-child(1) {
  top: -4rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background-color: var(--primary);
  animation: float 10s ease-in-out infinite;
}

.bg-blur-element:nth-child(2) {
  top: -4rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background-color: var(--accent);
  animation: float 8s ease-in-out infinite 2s;
}

.bg-blur-element:nth-child(3) {
  top: 40%;
  left: 25%;
  width: 18rem;
  height: 18rem;
  background-color: var(--primary);
  opacity: 0.15;
  animation: float 12s ease-in-out infinite 4s;
}

.bg-blur-element:nth-child(4) {
  bottom: 0;
  right: 25%;
  width: 18rem;
  height: 18rem;
  background-color: var(--accent);
  opacity: 0.15;
  animation: float 9s ease-in-out infinite 1s;
}

.bg-blur-element:nth-child(5) {
  bottom: 0;
  left: 0;
  width: 18rem;
  height: 18rem;
  background-color: var(--primary);
  opacity: 0.15;
  animation: float 11s ease-in-out infinite 3s;
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.text-primary {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  border: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary);
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.375rem;
}

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

.nav-link {
  color: var(--foreground);
  opacity: 0.8;
  transition: all 0.2s;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

/* Hero Section */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 5rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(126, 34, 206, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  background: linear-gradient(120deg, var(--foreground), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

.tech-showcase {
  margin-top: 5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

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

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
}

.tech-icon.accent {
  background-color: var(--accent-light);
  color: var(--accent);
}

.tech-icon.secondary {
  background-color: var(--secondary);
  color: var(--muted-foreground);
}

.tech-item p {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
}

.dot.green {
  background-color: var(--green);
}

.dot.blue {
  background-color: var(--blue);
}

.dot.purple {
  background-color: var(--purple);
}

.dot.amber {
  background-color: var(--amber);
}

/* Services Section */
.services-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.25rem;
  background-color: var(--primary-light);
  transition: width 0.3s;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.service-card:hover::after {
  width: 100%;
}

.service-card.white {
  background-color: white;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted-foreground);
  margin-top: auto;
}

.feature-box {
  background: linear-gradient(to right, rgba(126, 34, 206, 0.05), rgba(6, 182, 212, 0.05), rgba(126, 34, 206, 0.05));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
  border: 1px solid var(--border-light);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: white;
  color: var(--primary);
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
}

.text-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Portfolio Section */
.portfolio-section {
  background-color: var(--secondary);
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.cta-box {
  background: linear-gradient(to right, rgba(126, 34, 206, 0.05), rgba(6, 182, 212, 0.05), rgba(126, 34, 206, 0.05));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
  border: 1px solid var(--border-light);
}

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: white;
  color: var(--primary);
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(to bottom, var(--background), rgba(126, 34, 206, 0.05));
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 30rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--secondary);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-method p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.contact-form-container {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-header svg {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  transition: all 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

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

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-content,
.btn-loading,
.btn-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-loading,
.btn-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
}

.btn.submitting .btn-content {
  opacity: 0;
  visibility: hidden;
}

.btn.submitting .btn-loading {
  opacity: 1;
  visibility: visible;
}

.btn.submitted .btn-content,
.btn.submitted .btn-loading {
  opacity: 0;
  visibility: hidden;
}

.btn.submitted .btn-success {
  opacity: 1;
  visibility: visible;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}

.spinner .path {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Footer */
.footer {
  background-color: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info {
  max-width: 20rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-info p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
  transition: all 0.2s;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: -100px;
  right: 2rem;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.3s ease;
  max-width: 24rem;
  opacity: 0;
  visibility: hidden;
}

.toast.show {
  transform: translateY(-120px);
  opacity: 1;
  visibility: visible;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--green);
  color: white;
  border-radius: 9999px;
  flex-shrink: 0;
}

.toast-message h4 {
  margin-bottom: 0.25rem;
}

.toast-message p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive */
@media (min-width: 640px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.75rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: white;
    padding: 1rem;
    box-shadow: var(--shadow);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
    opacity: 0;
    visibility: hidden;
  }
  
  .nav-menu.active {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
  }
  
  .menu-toggle {
    display: flex;
  }
}
