/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: #c6a0f6;
  --primary-blue: #8aadf4;
  --secondary-gray: #b8c0e0;
  --dark-bg: #24273a;
  --light-bg: #ffffff;
  --text-dark: #24273a;
  --text-light: #b8c0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  box-shadow: 0 4px 15px rgba(198, 160, 246, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 160, 246, 0.4);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.btn--outline:hover {
  background: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
}

.btn--large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

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

.nav__logo {
  width: 32px;
  height: 32px;
  color: var(--primary-purple);
}

.nav__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

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

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--primary-purple);
}

.nav__cta {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(198, 160, 246, 0.3);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

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

.hero__content {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero__highlight {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--light-bg);
}

.hero__stat-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mockup {
  perspective: 1000px;
}

.mockup__browser {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.3s ease;
  width: 400px;
}

.mockup__browser:hover {
  transform: rotateY(-10deg) rotateX(5deg);
}

.browser__header {
  background: #f5f5f5;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

.browser__dots span:nth-child(1) {
  background: #ff5f57;
}
.browser__dots span:nth-child(2) {
  background: #ffbd2e;
}
.browser__dots span:nth-child(3) {
  background: #28ca42;
}

.browser__url {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: #666;
  flex: 1;
}

.browser__content {
  height: 300px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.preview__website {
  padding: 20px;
  height: 100%;
}

.preview__header {
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  margin-bottom: 16px;
}

.preview__hero {
  height: 80px;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 6px;
  margin-bottom: 16px;
}

.preview__sections {
  display: flex;
  gap: 12px;
}

.preview__section {
  flex: 1;
  height: 60px;
  background: #f8f9fa;
  border-radius: 4px;
}

/* Section Headers */
.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section__description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
  background: #f8f9fa;
}

.portfolio__filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter__btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: #4a5568;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter__btn--active,
.filter__btn:hover {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: white;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.portfolio__item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
}

.portfolio__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.portfolio__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio__item:hover .portfolio__image img {
  transform: scale(1.05);
}

.portfolio__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(198, 160, 246, 0.9) 0%,
    rgba(138, 173, 244, 0.9) 100%
  );
  color: white;
  padding: 24px;
  display: flex;
  align-items: end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
}

.portfolio__info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio__info p {
  margin-bottom: 16px;
  opacity: 0.9;
}

.portfolio__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio__tags span {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.portfolio__cta {
  text-align: center;
  padding: 40px 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.portfolio__cta p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 24px;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: white;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service__card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-blue) 100%
  );
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-purple);
}

.service__card--featured {
  border-color: var(--primary-purple);
  box-shadow: 0 10px 30px rgba(198, 160, 246, 0.15);
  position: relative;
}

.service__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.service__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--primary-purple);
}

.service__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service__description {
  color: #4a5568;
  margin-bottom: 24px;
  line-height: 1.6;
}

.service__features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.service__features li {
  padding: 8px 0;
  color: #4a5568;
  position: relative;
  padding-left: 24px;
}

.service__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-purple);
  font-weight: bold;
}

.service__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-top: auto;
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: #f8f9fa;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.pricing__card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.pricing__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing__card--featured {
  border-color: var(--primary-purple);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(198, 160, 246, 0.2);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pricing__header {
  margin-bottom: 24px;
}

.pricing__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.pricing__subtitle {
  color: #4a5568;
  font-size: 0.9rem;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
}

.pricing__currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4a5568;
}

.pricing__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-purple);
}

.pricing__period {
  font-size: 1rem;
  color: #4a5568;
}

.pricing__features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.pricing__feature:last-child {
  border-bottom: none;
}

.pricing__check {
  width: 20px;
  height: 20px;
  color: var(--primary-purple);
  flex-shrink: 0;
}

.pricing__btn {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.pricing__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 160, 246, 0.3);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: white;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial__card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial__content {
  margin-bottom: 24px;
}

.testimonial__stars {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.testimonial__text {
  font-style: italic;
  color: #4a5568;
  line-height: 1.6;
  font-size: 1.1rem;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.testimonial__role {
  color: var(--primary-purple);
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid2" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid2)"/></svg>');
}

.cta__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta__description {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: white;
  padding: 80px 0 20px;
}

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

.footer__brand {
  max-width: 400px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.footer__logo-text {
  font-size: 20px;
  font-weight: 700;
}

.footer__description {
  color: var(--text-light);
  line-height: 1.6;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__list a:hover {
  color: var(--primary-purple);
}

.footer__bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
}

.footer__bottom p {
  margin-bottom: 8px;
}

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

  .hero__title {
    font-size: 3rem;
  }

  .mockup__browser {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .mockup__browser {
    width: 300px;
  }

  .section__title {
    font-size: 2rem;
  }

  .portfolio__grid,
  .services__grid,
  .pricing__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .pricing__card--featured {
    transform: none;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta__title {
    font-size: 2rem;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .portfolio__filter {
    flex-direction: column;
    align-items: center;
  }

  .mockup__browser {
    width: 250px;
  }

  .service__card,
  .pricing__card,
  .testimonial__card {
    padding: 24px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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