/* ============================================
   AERSPECK TECH & THINGS LTD — Portfolio CSS
   Color palette derived from logo: Purple tones
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary palette from logo */
  --primary-deep: #5B1A8A;
  --primary: #7B2D8E;
  --primary-light: #9B4DCA;
  --primary-bright: #B44FE0;
  --primary-glow: #C77DFF;
  --primary-soft: #E0B0FF;

  /* Accent / complementary */
  --accent: #D946EF;
  --accent-warm: #F472B6;
  --accent-gold: #F5A623;

  /* Neutrals */
  --bg-dark: #0A0A0F;
  --bg-section: #0E0E18;
  --bg-card: #151525;
  --bg-card-hover: #1C1C35;
  --surface: #1A1A2E;
  --surface-light: #252545;
  --border: rgba(155, 77, 202, 0.15);
  --border-light: rgba(155, 77, 202, 0.25);

  /* Text */
  --text-primary: #F5F5FF;
  --text-secondary: #B8B8D0;
  --text-muted: #7A7A9E;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7B2D8E, #B44FE0);
  --gradient-hero: linear-gradient(135deg, #0A0A0F 0%, #1A0A2E 40%, #0E0E18 100%);
  --gradient-card: linear-gradient(145deg, rgba(123, 45, 142, 0.08), rgba(180, 79, 224, 0.04));
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(155, 77, 202, 0.15), transparent 70%);
  --gradient-cta: linear-gradient(135deg, #7B2D8E, #D946EF);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(123, 45, 142, 0.3);
  --shadow-glow-lg: 0 0 60px rgba(123, 45, 142, 0.25);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(123, 45, 142, 0.12);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-bright);
  animation: pulse-dot 2s ease-in-out infinite;
}

.section-title {
  margin-bottom: 16px;
}

.section-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123, 45, 142, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 45, 142, 0.5);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(123, 45, 142, 0.1);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ---- Animations ---- */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes counter-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

/* Scroll-triggered animation classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ---- Loading Screen ---- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 80px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: loader-progress 1.5s ease-in-out infinite;
}

@keyframes loader-progress {
  0% {
    width: 0%;
    transform: translateX(0);
  }

  50% {
    width: 60%;
  }

  100% {
    width: 100%;
    transform: translateX(0);
  }
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(123, 45, 142, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary-bright);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-cta);
  color: #fff;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 15px rgba(123, 45, 142, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(123, 45, 142, 0.5);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-deep);
  top: -150px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  bottom: -100px;
  left: -50px;
  animation: float-slow 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: var(--primary-glow);
  top: 50%;
  left: 50%;
  animation: float 6s ease-in-out infinite 1s;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 45, 142, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 45, 142, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
}

.hero-text {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(123, 45, 142, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-glow);
  margin-bottom: 24px;
  animation: slide-up 0.8s ease forwards;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  margin-bottom: 24px;
  animation: slide-up 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-title .line {
  display: block;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  animation: slide-up 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: slide-up 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: slide-up 0.8s ease 0.4s forwards;
  opacity: 0;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in 1s ease 0.5s forwards;
  opacity: 0;
}

.hero-phone-mockup {
  position: relative;
  z-index: 2;
}

.hero-phone-mockup img {
  width: 320px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
}

.hero-floating-card {
  position: absolute;
  background: rgba(21, 21, 37, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  top: 15%;
  left: -30px;
  animation-delay: 0s;
}

.hero-floating-card.card-2 {
  bottom: 20%;
  right: -40px;
  animation-delay: 1.5s;
}

.floating-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.floating-card-icon.purple {
  background: rgba(123, 45, 142, 0.2);
}

.floating-card-icon.green {
  background: rgba(34, 197, 94, 0.2);
}

.floating-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.floating-card-value {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Orbit ring around phone */
.hero-orbit-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 15px var(--primary-bright);
  animation: orbit 12s linear infinite;
}

/* ---- Services Section ---- */
#services {
  padding: var(--section-padding);
  position: relative;
}

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

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(123, 45, 142, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: rgba(123, 45, 142, 0.25);
  transform: scale(1.1);
}

.service-title {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-tag {
  padding: 4px 12px;
  background: rgba(123, 45, 142, 0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--primary-glow);
  font-weight: 500;
}

/* ---- Projects Section ---- */
#projects {
  padding: var(--section-padding);
  background: var(--bg-section);
  position: relative;
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 15px rgba(123, 45, 142, 0.3);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
}

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

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.project-type-badge {
  padding: 6px 14px;
  background: rgba(123, 45, 142, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-info {
  padding: 24px;
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  padding: 4px 10px;
  background: rgba(123, 45, 142, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* For projects without real images */
.project-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.project-placeholder.gradient-1::before {
  background: linear-gradient(135deg, #1a0a2e, #2d1b4e, #1e0e3e);
}

.project-placeholder.gradient-2::before {
  background: linear-gradient(135deg, #0e1a2e, #1b2d4e, #0e1e3e);
}

.project-placeholder.gradient-3::before {
  background: linear-gradient(135deg, #1a2e0e, #2d4e1b, #1e3e0e);
}

.project-placeholder.gradient-4::before {
  background: linear-gradient(135deg, #2e0e1a, #4e1b2d, #3e0e1e);
}

.project-placeholder.gradient-5::before {
  background: linear-gradient(135deg, #0e2e2e, #1b4e4e, #0e3e3e);
}

.project-placeholder.gradient-6::before {
  background: linear-gradient(135deg, #2e2e0e, #4e4e1b, #3e3e0e);
}

.project-placeholder.gradient-7::before {
  background: linear-gradient(135deg, #1a0a3e, #3d1b6e, #2e0e5e);
}

.project-placeholder-text {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 20px;
}

.project-placeholder-icon {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  margin-bottom: 8px;
}

/* ---- About / Why Us Section ---- */
#about {
  padding: var(--section-padding);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border);
}

.about-stat-card {
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.about-stat-card:hover {
  background: var(--surface-light);
  transform: translateY(-4px);
}

.about-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.about-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-glow);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.about-feature:hover {
  background: rgba(123, 45, 142, 0.06);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(123, 45, 142, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.about-feature-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Process / How We Work ---- */
#process {
  padding: var(--section-padding);
  background: var(--bg-section);
  position: relative;
}

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

.process-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(123, 45, 142, 0.4);
}

.process-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 200px;
  margin: 0 auto;
}

/* ---- Testimonials ---- */
#testimonials {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-track 30s linear infinite;
  width: max-content;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-track {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  min-width: 380px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.testimonial-quote {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 12px;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Technologies Section ---- */
#technologies {
  padding: var(--section-padding);
  background: var(--bg-section);
}

.tech-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all var(--transition-smooth);
  cursor: default;
}

.tech-logo-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.tech-logo-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-logo-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ---- CTA Section ---- */
#cta {
  padding: var(--section-padding);
  position: relative;
}

.cta-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-glow);
  animation: spin-slow 20s linear infinite;
  pointer-events: none;
}

.cta-title {
  position: relative;
  margin-bottom: 16px;
}

.cta-description {
  position: relative;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 40px;
}

.cta-buttons {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-trust {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-trust-icon {
  color: #22C55E;
}

/* ---- Contact Section ---- */
#contact {
  padding: var(--section-padding);
  background: var(--bg-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.contact-info>p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.contact-method:hover {
  background: rgba(123, 45, 142, 0.06);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: rgba(123, 45, 142, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-method-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.contact-method-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

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

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A7A9E' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 011 0L8 9.293l5.354-4.647a.5.5 0 01.638.765l-6 5.25a.5.5 0 01-.638 0l-6-5.25a.5.5 0 010-.765z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
}

/* ---- Footer ---- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--primary-deep);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  color: #fff;
}

.footer-social-link:hover .fa-facebook-f { color: #1877F2; }
.footer-social-link:hover .fa-linkedin-in { color: #0A66C2; }
.footer-social-link:hover .fa-instagram { color: #E4405F; }
.footer-social-link:hover .fa-github { color: #fff; }

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-link {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-glow);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-cta);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(123, 45, 142, 0.4);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
}

/* ---- Cursor glow (desktop) ---- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(123, 45, 142, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  display: none;
}

@media (hover: hover) {
  .cursor-glow {
    display: block;
  }
}

/* ---- Responsive Design ---- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin: 0 auto 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 350px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-timeline::before {
    display: none;
  }

  .tech-logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 100px 32px 32px;
    align-items: flex-start;
    gap: 4px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-phone-mockup img {
    width: 260px;
  }

  .hero-orbit-ring {
    width: 320px;
    height: 320px;
  }

  .hero-floating-card {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .cta-card {
    padding: 48px 24px;
    border-radius: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .testimonial-card {
    min-width: 300px;
    max-width: 300px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .projects-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .tech-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .testimonials-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ---- Particle canvas ---- */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- FontAwesome & Link Fixes ---- */
/* Service cards as anchor tags */
a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Project cards as anchor tags */
a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Contact methods as anchor tags */
a.contact-method {
  text-decoration: none;
  color: inherit;
}

a.contact-method:hover .contact-method-value {
  color: var(--primary-glow);
}

/* FontAwesome icon sizing in service icons */
.service-icon i {
  font-size: 1.5rem;
  color: var(--primary-glow);
}

/* FontAwesome in floating cards */
.floating-card-icon i {
  font-size: 1.1rem;
}

/* FontAwesome in about stat icons */
.about-stat-icon i {
  font-size: 1.5rem;
}

/* FontAwesome in about feature icons */
.about-feature-icon i {
  font-size: 1.2rem;
}

/* Testimonial quote icon */
.testimonial-quote i {
  font-size: 1.8rem;
  color: var(--primary-glow);
  opacity: 0.5;
}

/* Contact method icon FA */
.contact-method-icon i {
  color: var(--primary-glow);
}

/* CTA trust icons */
.cta-trust-icon i {
  color: var(--primary-glow);
}

/* Project placeholder icons (FontAwesome) */
.project-placeholder-icon i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer social icons */
.footer-social-link i {
  font-size: 1rem;
}

/* Scroll to top icon */
.scroll-top i {
  font-size: 1rem;
}