:root {
  --color-bg: #0b071a;
  --color-bg-alt: #150c2b;
  --color-primary: #a855f7;
  --color-primary-hover: #d946ef;
  --color-accent: #0ea5e9;
  --color-accent-2: #c026d3;
  --color-text: #f8fafc;
  --color-text-muted: #cbd5e1;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-main: 'Inter', system-ui, sans-serif;
  --container-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 40%);
  background-attachment: fixed;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

ul {
  list-style: none;
}

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

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

section {
  padding: 100px 0;
}

section.alt-bg {
  background-color: var(--color-bg-alt);
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-header.center {
  margin: 0 auto 60px;
}

.subtitle {
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 12px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 32px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #f472b6 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(217, 70, 239, 0.6);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.02);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 32px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pill-badge img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.avatar-group {
  display: flex;
}

.avatar-group img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  margin-left: -8px;
}

.avatar-group img:first-child {
  margin-left: 0;
}

.service-card,
.project-card,
.blog-card,
.value-card,
.role-card,
.result-card,
.info-card {
  background: linear-gradient(145deg, rgba(21, 12, 43, 0.9) 0%, rgba(11, 7, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  border-left: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.service-card::after,
.project-card::after,
.blog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover::after,
.project-card:hover::after,
.blog-card:hover::after {
  opacity: 1;
}

.service-card:hover,
.project-card:hover,
.blog-card:hover,
.role-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 70, 239, 0.4);
  background: linear-gradient(145deg, rgba(40, 27, 84, 0.9) 0%, rgba(21, 12, 43, 0.95) 100%);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.2);
}

.glass-image-container {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(21, 12, 43, 0.9) 0%, rgba(11, 7, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(14, 165, 233, 0.3);
  padding: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-normal);
}

.glass-image {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

a:hover .glass-image-container {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.2);
}

a:hover .glass-image {
  transform: scale(1.05);
}

.grid {
  display: grid;
  gap: 32px;
}

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

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

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

header {
  position: absolute;
  /* Using absolute or fixed, but image seems floating */
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--container-width);
  height: 64px;
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

header.scrolled {
  position: fixed;
  background-color: rgba(10, 15, 28, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--color-primary);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  left: 0;
  transition: all var(--transition-fast);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.hero-wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

.hero-wave-divider .shape-fill {
  fill: var(--color-bg-alt);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 80%, transparent);
  z-index: 1;
  pointer-events: none;
}

.logo-marquee {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
  opacity: 0.5;
}

.logo-marquee img {
  height: 24px;
  filter: grayscale(100%) brightness(200%);
}

footer {
  background-color: #050810;
  padding: 80px 0 30px;
  border-top: 1px solid var(--color-border);
}

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

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

@media (max-width: 992px) {

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

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

  .hero-bg-image {
    width: 70%;
  }
}

@media (max-width: 768px) {
  header {
    width: calc(100% - 32px);
    top: 16px;
    padding: 0 16px;
  }

  header.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
  }

  .nav-container .btn-primary {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 50px;
    padding-left: 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-bg-image {
    width: 100%;
    opacity: 0.15;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .logo-marquee {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

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

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

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

@media (max-width: 576px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }
}