* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

nav {
  background: var(--nav-bg, #1a1a2e);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
nav .logo { color: #e94560; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 25px; flex-wrap: wrap; }
nav ul li a { color: #fff; text-decoration: none; transition: color 0.3s; position: relative; }
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00aaff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
nav ul li a:hover::after { transform: scaleX(1); }
nav a:hover { color: #e94560; }

.hero {
  background: var(--hero-bg, linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%));
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }
.hero .btn {
  display: inline-block;
  padding: 14px 40px;
  background: #e94560;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}
.hero .btn:hover { background: #c73650; }

.services { padding: 80px 0; background: #f8f9fa; }
.services h2 { text-align: center; font-size: 2.2rem; margin-bottom: 50px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card {
  background: #fff;
  padding: 35px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.service-card h3 { margin-bottom: 10px; }

.gallery { padding: 80px 0; }
.gallery h2 { text-align: center; font-size: 2.2rem; margin-bottom: 50px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.contact { padding: 80px 0; background: #f8f9fa; }
.contact h2 { text-align: center; font-size: 2.2rem; margin-bottom: 50px; }
.contact form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact input, .contact textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}
.contact textarea { min-height: 150px; resize: vertical; }
.contact button {
  padding: 14px;
  background: var(--btn-bg, #1a1a2e);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.contact button:hover { background: #e94560; }

footer {
  background: var(--footer-bg, #1a1a2e);
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
}
footer a { color: #e94560; text-decoration: none; }
footer .social { margin-top: 10px; }
footer .social a { margin: 0 10px; font-size: 1.2rem; }

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.08); }
  70% { transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-200deg) scale(0); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes flipIn {
  from { opacity: 0; transform: perspective(600px) rotateX(80deg); }
  to { opacity: 1; transform: perspective(600px) rotateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0) rotate(15deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  56% { transform: scale(1); }
}
@keyframes glitchIn {
  0% { opacity: 0; clip-path: inset(80% 0 0 0); transform: translateX(-20px); }
  20% { opacity: 0.3; }
  40% { opacity: 1; clip-path: inset(0 0 80% 0); transform: translateX(20px); }
  60% { clip-path: inset(40% 0 40% 0); }
  80% { clip-path: inset(0 0 0 0); transform: translateX(0); }
  100% { opacity: 1; }
}
@keyframes elastic {
  0% { opacity: 0; transform: scaleX(0); }
  60% { transform: scaleX(1.15); }
  80% { transform: scaleX(0.9); }
  100% { opacity: 1; transform: scaleX(1); }
}

.animar {
  opacity: 0;
}

.animar.visible.fade-in { animation: fadeIn 0.5s ease forwards; }
.animar.visible.slide-down { animation: slideDown 0.7s ease forwards; }
.animar.visible.slide-up { animation: slideUp 0.6s ease forwards; }
.animar.visible.slide-left { animation: slideLeft 0.7s ease forwards; }
.animar.visible.slide-right { animation: slideRight 0.8s ease forwards; }
.animar.visible.scale-in { animation: scaleIn 0.6s ease forwards; }
.animar.visible.bounce-in { animation: bounceIn 0.8s ease forwards; }
.animar.visible.rotate-in { animation: rotateIn 0.8s ease forwards; }
.animar.visible.flip-in { animation: flipIn 0.8s ease forwards; }
.animar.visible.zoom-in { animation: zoomIn 0.8s ease forwards; }
.animar.visible.elastic { animation: elastic 0.8s ease forwards; }

nav ul li.animar.visible.slide-down:nth-child(1) { animation-delay: 0.05s; }
nav ul li.animar.visible.slide-down:nth-child(2) { animation-delay: 0.1s; }
nav ul li.animar.visible.slide-down:nth-child(3) { animation-delay: 0.15s; }
nav ul li.animar.visible.slide-down:nth-child(4) { animation-delay: 0.2s; }
nav ul li.animar.visible.slide-down:nth-child(5) { animation-delay: 0.25s; }

.service-card.animar.visible.slide-up:nth-child(1) { animation-delay: 0.1s; }
.service-card.animar.visible.slide-up:nth-child(2) { animation-delay: 0.2s; }
.service-card.animar.visible.slide-up:nth-child(3) { animation-delay: 0.3s; }
.service-card.animar.visible.slide-up:nth-child(4) { animation-delay: 0.4s; }

.gallery-grid img.animar.visible.scale-in:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid img.animar.visible.scale-in:nth-child(2) { animation-delay: 0.2s; }
.gallery-grid img.animar.visible.scale-in:nth-child(3) { animation-delay: 0.3s; }
.gallery-grid img.animar.visible.scale-in:nth-child(4) { animation-delay: 0.4s; }

.contact input.animar.visible.slide-right:nth-of-type(1) { animation-delay: 0.1s; }
.contact input.animar.visible.slide-right:nth-of-type(2) { animation-delay: 0.2s; }
.contact input.animar.visible.slide-right:nth-of-type(3) { animation-delay: 0.3s; }

footer .social a.animar.visible.rotate-in:nth-child(1) { animation-delay: 0.7s; }
footer .social a.animar.visible.rotate-in:nth-child(3) { animation-delay: 0.8s; }
footer .social a.animar.visible.rotate-in:nth-child(5) { animation-delay: 0.9s; }

@media (max-width: 768px) {
  nav .container { flex-direction: column; gap: 10px; }
  nav ul { justify-content: center; gap: 15px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 80px 20px; min-height: 60vh; }
}
