@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --accent2: #0f3460;
  --light: #f8f9fa;
  --text: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text); }
html { scroll-behavior: smooth; }

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll Top */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.scroll-top.active { opacity: 1; visibility: visible; }
.scroll-top:hover { background: #c73652; }

/* Header */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 997;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}
body.scrolled #header {
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.logo h1.sitename {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navmenu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.navmenu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.navmenu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}
.navmenu a:hover::after, .navmenu a.active::after { width: 100%; }
.btn-getstarted {
  background: var(--accent);
  color: #fff;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: 0.3s;
}
.btn-getstarted:hover { background: #c73652; }
.mobile-nav-toggle { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; }

/* Mobile Nav */
body.mobile-nav-active .navmenu {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.mobile-nav-active .navmenu ul { flex-direction: column; align-items: center; gap: 2rem; }
body.mobile-nav-active .navmenu a { font-size: 1.2rem; }
@media (max-width: 1199px) {
  .mobile-nav-toggle { display: block; }
  .navmenu { display: none; }
  body.mobile-nav-active .navmenu { display: flex; }
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.08; }
.shape-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -200px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: #0f3460; bottom: -100px; left: -100px; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary-hero {
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(233,69,96,0.4); }
.btn-outline-hero {
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 12px 34px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn-outline-hero:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p { color: var(--text-light); margin-top: 15px; font-size: 1rem; }

/* About */
#about { background: var(--white); }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid var(--accent);
  border-radius: 16px;
  z-index: -1;
}
.about-content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.about-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 1.5rem; }
.feature-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--accent), #c73652);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.feature-item h5 { font-weight: 600; color: var(--primary); margin-bottom: 0.3rem; }
.feature-item p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* Stats */
#stats {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  padding: 60px 0;
}
.stat-item { text-align: center; padding: 30px 20px; }
.stat-item .number { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 800; color: #fff; display: block; }
.stat-item .label { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 8px; }

/* Services */
#services { background: var(--light); }
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: 0.3s;
  border-top: 4px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.service-card:hover { transform: translateY(-8px); border-top-color: var(--accent); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(233,69,96,0.1), rgba(233,69,96,0.2));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 0.8rem; }
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* Portfolio */
#portfolio { background: #fff; }
.portfolio-filters {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin-bottom: 2.5rem;
}
.portfolio-filters li {
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  border: 1px solid #e2e8f0;
  transition: 0.3s;
}
.portfolio-filters li.filter-active, .portfolio-filters li:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.portfolio-item { position: relative; overflow: hidden; border-radius: 12px; }
.portfolio-item img { width: 100%; height: 220px; object-fit: cover; transition: 0.4s; }
.portfolio-info {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}
.portfolio-item:hover .portfolio-info { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-info h4 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.portfolio-info p { color: rgba(255,255,255,0.75); font-size: 0.85rem; }

/* Testimonials */
#testimonials { background: var(--light); }
.testimonial-card { background: #fff; border-radius: 16px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.testimonial-card p { color: var(--text-light); font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; }
.testimonial-card h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.testimonial-card h4 { color: var(--text-light); font-size: 0.85rem; font-weight: 400; }
.stars { color: #f6c90e; margin-top: 0.5rem; }
.swiper-pagination-bullet-active { background: var(--accent); }

/* Contact */
#contact { background: #fff; }
.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.contact-info-card .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.contact-info-card h3 { font-weight: 600; color: var(--primary); font-size: 1rem; margin-bottom: 0.3rem; }
.contact-info-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.contact-form .form-control {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: 0.3s;
  width: 100%;
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
  outline: none;
}
.contact-form label { font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 6px; display: block; }
.contact-form button[type=submit] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button[type=submit]:hover { background: #c73652; transform: translateY(-2px); }
.loading, .error-message, .sent-message { display: none; margin-bottom: 1rem; }
.sent-message { color: #28a745; }
.error-message { color: var(--accent); }

/* Footer */
#footer { background: var(--primary); color: rgba(255,255,255,0.75); padding-top: 60px; }
.footer-about .sitename { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; text-decoration: none; }
.footer-about p { margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  margin-right: 8px;
  transition: 0.3s;
  text-decoration: none;
}
.social-links a:hover { background: var(--accent); }
.footer-links h4, .footer-contact h4 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin-bottom: 1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-top { padding-bottom: 40px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.credits a { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .about .row { flex-direction: column; }
  .stat-item { margin-bottom: 1rem; }
  .service-card { margin-bottom: 1rem; }
}
@media (max-width: 576px) {
  section { padding: 60px 0; }
  .section-title h2 { font-size: 1.7rem; }
}
