/* ============================================
   Brandzivio - Premium Software Agency
   Style Sheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #050505;
  --bg-secondary: #101014;
  --bg-card: rgba(16, 16, 20, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --purple-primary: #8B5CF6;
  --purple-accent: #A855F7;
  --purple-glow: rgba(139, 92, 246, 0.3);
  --purple-subtle: rgba(139, 92, 246, 0.1);
  --white: #FFFFFF;
  --text-light: #D1D5DB;
  --text-muted: #6B7280;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul { list-style: none; }

/* --- Selection --- */
::selection {
  background: var(--purple-primary);
  color: var(--white);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-accent); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 60px; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}

.heading-xl {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.heading-lg {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.heading-sm {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple-primary);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before { left: 100%; }

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

.btn-secondary:hover {
  border-color: var(--purple-primary);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.7;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  z-index: 1001;
}

.navbar-brand img, .navbar-brand svg {
  width: 160px;
  height: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-link:hover {
  color: var(--white);
}

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

.navbar-link.active {
  color: var(--white);
}

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

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

@media (max-width: 768px) {
  .navbar-toggle { display: flex; }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 80px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-color);
  }

  .navbar-menu.active { right: 0; }

  .navbar-link { font-size: 1.1rem; }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--purple-subtle);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple-accent);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--purple-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-grid {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background-image:
    linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

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

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.3), transparent);
  top: -10%;
  right: -10%;
  animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.2), transparent);
  bottom: -10%;
  left: 10%;
  animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent);
  top: 30%;
  left: 20%;
  animation: float-orb 6s ease-in-out infinite;
}

.hero-shape {
  position: relative;
  z-index: 1;
  width: 450px;
  height: 450px;
}

.hero-shape-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 50%;
  animation: spin-slow 20s linear infinite;
}

.hero-ring:nth-child(1) {
  width: 100%;
  height: 100%;
}

.hero-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  animation-direction: reverse;
  animation-duration: 15s;
}

.hero-ring:nth-child(3) {
  width: 40%;
  height: 40%;
  animation-duration: 10s;
}

.hero-ring-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--purple-primary);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(139,92,246,0.6);
}

.hero-icon-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.hero-icon-main {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(139,92,246,0.3);
}

.hero-icon-main svg {
  width: 40px;
  height: 40px;
  fill: var(--white);
}

.hero-icon-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-floating-card {
  position: absolute;
  background: rgba(16, 16, 20, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-floating-card-1 {
  top: 10%;
  right: 0;
  animation-delay: 0s;
}

.hero-floating-card-2 {
  bottom: 15%;
  left: 0;
  animation-delay: 2s;
}

.hero-floating-card-3 {
  bottom: 5%;
  right: 15%;
  animation-delay: 4s;
}

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

.floating-card-icon.purple { background: var(--purple-subtle); }
.floating-card-icon.green { background: rgba(16, 185, 129, 0.15); }
.floating-card-icon.blue { background: rgba(59, 130, 246, 0.15); }

.floating-card-text {
  display: flex;
  flex-direction: column;
}

.floating-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.floating-card-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

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

  .hero p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 300px; }
  .hero-shape { width: 320px; height: 320px; }
  .hero-floating-card { display: none; }
}

@media (max-width: 480px) {
  .hero-shape { width: 260px; height: 260px; }
  .hero-icon-main { width: 60px; height: 60px; }
  .hero-icon-main svg { width: 30px; height: 30px; }
}

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

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--shadow-glow);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--purple-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Why Choose Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--purple-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
  box-shadow: 0 0 30px rgba(139,92,246,0.3);
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Timeline Section --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-primary), transparent);
}

@media (min-width: 768px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
}

.timeline-item {
  display: flex;
  gap: 40px;
  position: relative;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }
  .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.timeline-marker {
  position: absolute;
  left: 32px;
  width: 16px;
  height: 16px;
  background: var(--purple-primary);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
  z-index: 2;
  top: 24px;
}

@media (min-width: 768px) {
  .timeline-marker { left: 50%; transform: translateX(-50%); }
}

.timeline-content {
  flex: 1;
  padding-left: 72px;
}

@media (min-width: 768px) {
  .timeline-content {
    padding-left: 0;
    max-width: 45%;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
  }
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Featured Services --- */
.featured-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.featured-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: var(--transition);
}

.featured-card:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.featured-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--purple-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.featured-card:hover .featured-icon {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
}

.featured-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.featured-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 20px;
  }
  .featured-card .btn { display: none; }
}

/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.portfolio-thumb {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(168,85,247,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 25% 25%, var(--purple-primary) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--purple-accent) 1px, transparent 1px);
  background-size: 30px 30px;
}

.portfolio-thumb-icon {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  opacity: 0.5;
}

.portfolio-body {
  padding: 24px;
}

.portfolio-body h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.portfolio-body .badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--purple-subtle);
  color: var(--purple-accent);
  border-radius: var(--radius-full);
  margin-top: 8px;
}

/* --- CTA Section --- */
.cta-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(168,85,247,0.05));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-xl);
  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: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.05), transparent 60%);
  animation: float-orb 15s ease-in-out infinite;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

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

@media (max-width: 768px) {
  .cta-card { padding: 40px 24px; }
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img, .footer-brand svg {
  width: 160px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--purple-primary);
  background: var(--purple-subtle);
  color: var(--purple-accent);
  transform: translateY(-2px);
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--purple-accent);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-icon {
  width: 20px;
  color: var(--purple-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* --- Mouse Glow --- */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* --- Floating Blobs --- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--purple-glow);
  top: 20%;
  right: -10%;
  animation: float-blob 12s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(168,85,247,0.15);
  bottom: 10%;
  left: -5%;
  animation: float-blob 15s ease-in-out infinite reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(139,92,246,0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-blob 10s ease-in-out infinite;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -30px); }
  50% { transform: translate(-20px, 20px); }
  75% { transform: translate(20px, 30px); }
}

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

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Scroll Reveal Classes --- */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  animation: pulse-loader 1.5s ease-in-out infinite;
}

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

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

@keyframes pulse-loader {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes loader-progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.4);
}

/* --- Page Header --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

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

/* --- Contact Form --- */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

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

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--purple-primary);
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(168,85,247,0.04));
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-accent));
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '✓';
  color: var(--purple-primary);
  font-weight: 700;
}

/* --- Mobile Menu Overlay --- */
.navbar-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.navbar-overlay.active {
  opacity: 1; visibility: visible;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Touch Device Hover Fallbacks --- */
@media (hover: none) and (pointer: coarse) {
  .glass-card:hover, .service-card:hover, .why-card:hover,
  .pricing-card:hover, .portfolio-card:hover, .featured-card:hover {
    transform: none !important;
  }
  .service-card::before { transform: scaleX(1); }
  .mouse-glow { display: none; }
  .hero-floating-card, .blob { animation: none; }
  .service-card:hover .service-icon {
    background: var(--purple-subtle);
  }
}

/* --- Small Phone (375px and below) --- */
@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 40px; }
  .heading-xl { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .heading-lg { font-size: clamp(1.5rem, 6vw, 1.8rem); }
  .hero-visual { min-height: 220px; }
  .hero-shape { width: 200px; height: 200px; }
  .hero-icon-main { width: 48px; height: 48px; }
  .hero-icon-main svg { width: 24px; height: 24px; }
  .hero p { font-size: 1rem; }
  .navbar-menu { width: 260px; padding: 60px 24px; }
  .service-card, .why-card { padding: 24px 18px; }
  .pricing-card { padding: 32px 20px; }
  .portfolio-body { padding: 16px; }
  .portfolio-thumb { height: 180px; }
  .cta-card { padding: 32px 16px; }
  .services-grid, .why-grid, .pricing-grid { gap: 16px; }
  .timeline-content { padding-left: 60px; }
  .timeline-content p { font-size: 0.82rem; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
  .cta-buttons .btn { width: 100%; max-width: 280px; }
  .back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
  .footer { padding-top: 48px; }
  .footer-grid { gap: 32px; padding-bottom: 40px; }
}

/* --- Ultra Small Phone (320px) --- */
@media (max-width: 360px) {
  .hero-shape { width: 160px; height: 160px; }
  .hero-icon-main { width: 40px; height: 40px; }
  .hero-icon-main svg { width: 20px; height: 20px; }
  .navbar-menu { width: 240px; padding: 48px 16px; }
  .service-card, .why-card { padding: 20px 14px; }
  .pricing-card { padding: 24px 16px; }
  .timeline-content { padding-left: 50px; }
  .featured-card { padding: 16px; }
  .featured-icon { width: 48px; height: 48px; }
  .footer-brand p { max-width: 100%; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-purple { color: var(--purple-primary); }
.text-muted { color: var(--text-muted); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
