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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a;
  /* background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)), url('assets/background.png') repeat; */
  background-size: 400px;
  color: white;
  overflow-x: hidden;
}

.digital {
  color: #7c3aed;
}

nav {
  position: fixed;
  width: 100%;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  position: relative;
}

.nav-links a:hover {
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: #7c3aed;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a:hover {
  color: #7c3aed;
}

section {
  padding: 3rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
}

.service-item {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(165deg, #2a2a2a, #1a1a1a);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(165deg, #2a2a2a, #222);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.service-item:hover::before {
  transform: translateX(100%);
}

.service-item i {
  font-size: 2.5rem;
  color: #7c3aed;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.service-item p {
  font-size: 0.9rem;
  color: #888;
}

/* section:not(#hero):before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(124, 58, 237, 0.3), transparent);
} */

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

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

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

#hero {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.8), rgba(124, 58, 237, 0.8), rgb(147, 81, 245, 0.8), rgba(76, 29, 149, 0.8)),
              url('assets/main.png') center/cover;
  background-size: 400% 400%, cover;
  animation: gradientAnimation 60s ease infinite;
  color: white;
  text-align: left;
  position: relative;
  overflow: hidden;
  padding: 120px 10% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 95vh;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  mix-blend-mode: screen;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(26, 26, 26, 1), transparent);
}

h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
  letter-spacing: -2px;
  line-height: 1.2;
  float: left;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.animate-text, .animate-button {
  opacity: 0;
  transform: translateY(20px);
  animation: revealText 1s forwards;
  text-align: left;
}

.animate-text:nth-child(1) { animation-delay: 0.5s; }
.animate-text:nth-child(2) { animation-delay: 1s; }
.animate-text:nth-child(3) { animation-delay: 1.5s; }
.animate-button { animation-delay: 1.5s; }

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

#hero p {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

#hero .cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #8b4af0, #5928a7);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.6), transparent);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  place-items: center;
  justify-content: center;
}

.card {
  background: linear-gradient(165deg, #2a2a2a, #1a1a1a);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100%;
  text-align: left;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(165deg, #2a2a2a, #222);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.card:hover::before {
  transform: translateX(100%);
}

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

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #7c3aed;
}

.card .price {
  font-size: 1.4rem;
  margin: 1rem 0;
  color: #4c1d95;
}

.card .ideal {
  font-style: italic;
  color: #888;
  margin-bottom: 1.5rem;
}

.card ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.card ul li {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.card ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #4c1d95;
}

.card .cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card .cta-button:hover {
  background: linear-gradient(135deg, #8b4af0, #5928a7);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

.portfolio-item {
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
  overflow: hidden;
}

.portfolio-item a {
  text-decoration: none;
  color: white;
  width: 100%;
  text-align: center;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.portfolio-item h3 {
  padding: 1rem 1rem 0.5rem;
  margin: 0;
  font-size: 1.2rem;
}

.portfolio-item p {
  padding: 0 1rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.9));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item img {
  transition: transform 0.5s ease;
}

.portfolio-item:hover h3,
.portfolio-item:hover p {
  transform: translateY(-5px);
}

.portfolio-item h3,
.portfolio-item p {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

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

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
}

input,
textarea {
  padding: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #7c3aed;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

input:not(:placeholder-shown):invalid,
textarea:not(:placeholder-shown):invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

input:not(:placeholder-shown):invalid:focus,
textarea:not(:placeholder-shown):invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

input:not(:placeholder-shown):valid,
textarea:not(:placeholder-shown):valid {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.05);
}

button {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

button:hover {
  background: linear-gradient(45deg, #3a157a, #6832b3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

button.loading {
  position: relative;
  color: transparent;
}

button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-notification {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid #059669;
  border-radius: 5px;
  color: #34d399;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #888;
}

.modal-close:hover {
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 2px;
  transition: 0.3s;
}

#scroll-top {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.8);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 35px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 0;
}

#scroll-top:hover {
  background: rgba(76, 29, 149, 1);
}

footer {
  background: #2a2a2a;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid rgba(124, 58, 237, 0.3);
}

footer p {
  color: #888;
  font-size: 0.9rem;
}

#about p {
  text-align: justify;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
}

#contact p {
  text-align: justify;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .hero-content {
    align-items: center;
  }

  .service-cards {
    width: 100%;
    box-sizing: border-box;
  }

  .card {
    width: 100%;
    margin: 0 auto;
  }

  html, body {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
  }

  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
  }

  nav {
    width: 100%;
    max-width: 100vw;
    padding: 1rem;
  }

  #hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    max-width: 100vw;
  }

  .hamburger {
    display: flex;
    position: relative;
    right: 0;
    z-index: 1000;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(26, 26, 26, 0.95);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 0.5rem 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  .service-cards {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  section {
    padding: 1.5rem 0rem;
  }
  .services-overview, .service-cards {
    grid-template-columns: none;
  }
  #about p, #contact p, .portfolio-grid, .services-overview, .service-cards, form {
    padding: 1.5rem;
  }
}
