:root {
  --primary-color: #e94560;
  --secondary-color: #0f3460;
  --background-color: #161625;
  --card-background: rgba(255, 255, 255, 0.05);
  --text-color: #dcdcdc;
  --text-light: #a0a0a0;
  --header-height: 70px;
  --font-family: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  color: #fff;
  font-weight: 600;
}

section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background-color: rgba(22, 22, 37, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo .logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.logo .logo-sub {
  font-size: 0.6rem;
  color: var(--text-light);
  display: block;
  margin-top: -5px;
}

a {
  text-decoration: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 400;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(22, 22, 37, 0.8), rgba(22, 22, 37, 1)), url('https://www.transparenttextures.com/patterns/cubes.png');
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--background-color);
  transform: translateY(-3px);
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--card-background);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  text-align: center;
  background: var(--card-background);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 40px rgba(233, 69, 96, 0.2);
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--text-light);
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--card-background);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}
.project-card:hover {
   transform: translateY(-5px);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent);
  transform: translateY(30%);
  opacity: 0;
  transition: all 0.4s ease;
}
.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}
.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.project-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}
.project-link {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- About --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.about-image {
  flex-basis: 35%;
}
.about-image img {
  width: 100%;
  border-radius: 50%;
  border: 5px solid var(--primary-color);
}
.about-content {
  flex-basis: 65%;
}
.about-content .section-title {
  text-align: left;
}
.about-content .section-title::after {
  left: 0;
  transform: translateX(0);
}
.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.tech-stack span {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 2rem;
  border-left: 5px solid var(--primary-color);
}
.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.testimonial-author h4 {
    color: #fff;
    margin-bottom: 0.25rem;
}
.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}


/* --- Contact --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  background: var(--card-background);
  padding: 3rem;
  border-radius: 16px;
}
.contact-info p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.contact-info ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.social-links a {
  color: var(--text-color);
  transition: color 0.3s;
}
.social-links a:hover {
  color: var(--primary-color);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  background-color: #25D366;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s;
}
.btn-whatsapp:hover {
  background-color: #128C7E;
}
.form-group {
  margin-bottom: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-family);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.contact-form button {
  width: 100%;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem 0;
  background-color: #10101a;
  color: var(--text-light);
}


/* --- Animation --- */
.hidden-anim {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-50px);
  transition: all 1s;
}

.show-anim {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.service-card.hidden-anim:nth-child(2) {
  transition-delay: 200ms;
}
.service-card.hidden-anim:nth-child(3) {
  transition-delay: 400ms;
}
.project-card.hidden-anim:nth-child(2) {
  transition-delay: 200ms;
}
.project-card.hidden-anim:nth-child(3) {
  transition-delay: 400ms;
}


/* --- Responsive --- */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--background-color);
    transition: right 0.3s ease;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    gap: 2.5rem;
  }
  .hamburger {
    display: block;
  }
}
