/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

:root {
  --bg-color: #000000;
  --bg-card: rgba(18, 18, 18, 0.5);
  --border-color: rgba(192, 132, 252, 0.15);
  --border-hover: rgba(192, 132, 252, 0.4);
  --accent-purple: #c084fc;
  --accent-purple-glow: rgba(192, 132, 252, 0.15);
  --accent-teal: #2dd4bf;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --navbar-height: 80px;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Dot Grid Background System */
.dot-grid-bg {
  position: relative;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='24' height='24' fill='none'%3e%3ccircle fill='rgba(255,255,255,0.06)' cx='16' cy='16' r='1.5'%3e%3c/circle%3e%3c/svg%3e");
}

/* Mouse cursor follower spotlight on dot-grid backgrounds */
.dot-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='24' height='24' fill='none'%3e%3ccircle fill='rgba(192, 132, 252, 0.3)' cx='16' cy='16' r='1.5'%3e%3c/circle%3e%3c/svg%3e");
  opacity: 0;
  transition: opacity 0.4s ease;
  mask-image: radial-gradient(180px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(180px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), black 0%, transparent 100%);
  z-index: 1;
}

.dot-grid-bg:hover::after {
  opacity: 1;
}

/* Layout Containers & Spacing */
.section-padding {
  padding: 100px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--accent-purple);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.purple-highlight {
  color: var(--accent-purple);
}

.section-description {
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 0 auto;
  font-size: 16px;
}

/* Button & Link Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-purple);
  color: #000;
  border: 1px solid var(--accent-purple);
}

.btn-primary:hover {
  background-color: #a855f7;
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

/* Shiny Hover Animation Effect on Buttons */
.shiny-btn {
  position: relative;
  overflow: hidden;
}

.shiny-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.shiny-btn:hover::before {
  left: 150%;
  transition: left 0.8s ease-in-out;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent-purple);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 28px;
  height: 28px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-purple);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-purple);
}

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

.nav-link.active {
  color: var(--accent-purple);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle i {
  width: 28px;
  height: 28px;
}

/* Mobile Dropdown Navigation */
.mobile-menu {
  display: none;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(192, 132, 252, 0.1);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  position: absolute;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  z-index: 99;
}

.mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
  color: var(--accent-purple);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--navbar-height) + 60px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spotlight-overlay {
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle 800px at 50% -20%, rgba(192, 132, 252, 0.18) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transform: scale(0.9);
  animation: spotlight-appear 2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes spotlight-appear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 9999px;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}

.badge-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-purple);
}

.hero-badge span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 850px;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.gradient-text-bg {
  display: inline-block;
  background: linear-gradient(90deg, #6366f1, #c084fc);
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 8px;
}

.gradient-text {
  color: #000;
}

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

.hero-actions .btn {
  width: 160px;
  height: 48px;
}

.hero-mockup {
  width: 80%;
  max-width: 960px;
  perspective: 1000px;
}

.mockup-frame {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(192, 132, 252, 0.05);
  transform: rotateX(8deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-frame:hover {
  transform: rotateX(0deg) scale(1.02);
}

.mockup-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Portfolio / Designs Section */
.portfolio-categories {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.category-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-purple);
}

.category-header h4 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #080808;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(192, 132, 252, 0.1);
  background: rgba(18, 18, 18, 0.8);
}

.service-icon-container {
  margin-bottom: 24px;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-purple);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About Us & Team */
.mb-20 {
  margin-bottom: 80px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(192, 132, 252, 0.1);
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.value-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.value-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-subheader {
  margin-bottom: 40px;
}

.team-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
}

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

.team-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(192, 132, 252, 0.1);
}

.team-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.team-info {
  padding: 24px;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-member-role {
  color: var(--accent-purple);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.team-member-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Stats Section */
.stats {
  padding: 80px 0;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-purple);
  margin: 0 auto 16px auto;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(192, 132, 252, 0.1);
}

.client-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.client-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.client-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.client-role {
  font-size: 13px;
  color: var(--accent-purple);
}

.star-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star-icon {
  width: 16px;
  height: 16px;
  fill: var(--accent-purple);
  color: var(--accent-purple);
}

.testimonial-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Us Section */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px rgba(192, 132, 252, 0.1);
}

.contact-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-card-content {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.3s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.mb-6 {
  margin-bottom: 30px;
}

.form-submit-btn {
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 600;
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.form-submit-btn:hover {
  background-color: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #000;
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.3);
}

/* Footer Section */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  text-align: center;
  background: #020202;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Scroll Animation System (Observer Triggers) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-item:nth-child(1) { animation-delay: 0.1s; }
.reveal-item:nth-child(2) { animation-delay: 0.3s; }
.reveal-item:nth-child(3) { animation-delay: 0.5s; }
.reveal-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes slide-up-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero-badge {
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 30px;
    padding: 0 10px;
  }

  .hero-mockup {
    width: 95%;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-padding {
    padding: 60px 0;
  }
}
