﻿/* RESET */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: #f5f5dc;
  overflow-x: hidden;
  width: 100%;
  /* Improve scrolling performance */
  -webkit-overflow-scrolling: touch;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  width: 100%;
  /* Optimize rendering */
  contain: layout style paint;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  gap: 15px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid transparent;
  border-radius: 25px;
  text-decoration: none;
  color: #f5f5dc;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s;
}
.nav-btn:hover::before {
  left: 100%;
}
.nav-btn:hover {
  background: #ffd700;
  color: #000;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}
.nav-btn i {
  font-size: 1.1rem;
}
.nav-btn span {
  font-size: 0.95rem;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  color: #f5f5dc;
  overflow: hidden;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top, rgba(255,215,0,0.24), transparent 32%), linear-gradient(180deg, #081017 0%, #111c26 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -120px;
  width: 780px;
  height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,215,0,0.16), transparent 55%);
  filter: blur(90px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  pointer-events: none;
}
.hero-text {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 50px 40px 40px;
  background: rgba(12, 20, 30, 0.88);
  border: 1px solid rgba(255, 215, 0, 0.14);
  border-radius: 34px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  /* Reduce backdrop-filter for better performance */
  backdrop-filter: blur(8px);
  /* Optimize for GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}
.hero .label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 18px;
  color: #ffd54f;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(255, 215, 0, 0.08);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.04;
  margin: 0;
  text-shadow: 0 20px 35px rgba(0, 0, 0, 0.24);
}
.hero p {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #ede8d3;
}
.hero .btn-primary {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 36px;
  background: linear-gradient(90deg, #ffd700, #ffcc33);
  color: #111;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(255, 215, 0, 0.26);
}
.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(255, 215, 0, 0.3);
}
.hero-note {
  margin-top: 22px;
  color: #f1e9c0;
  font-size: 1rem;
  line-height: 1.75;
  opacity: 0.95;
}

/* MARQUEE - CSS Animation for better performance */
.marquee-banner {
  width: 100%;
  min-height: 20vh;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #111;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.marquee-banner::before {
  content: "We build websites at affordable price and with SEO optimization — our services will satisfy you. Trusted design, fast launch, strong results.";
  position: absolute;
  white-space: nowrap;
  color: #ffd700;
  font-size: clamp(1rem, 1.1vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  /* Smooth CSS animation */
  animation: marquee-scroll 25s linear infinite;
  /* GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* SERVICES SLIDER */
.slider {
  width: 100%;
  overflow: hidden;
}
.slides {
  display: flex;
  /* Optimize transition for smoother animation */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}
.slide {
  min-width: 100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}
.card {
  flex: 1 1 calc(50% - 10px);
  height: 620px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 16px;
  overflow: hidden;
  /* Optimize transitions for better performance */
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  /* GPU acceleration */
  will-change: transform, filter;
  transform: translateZ(0);
}
.card:hover {
  transform: translateY(-8px);
  filter: brightness(1.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  padding: 32px 28px;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.93) 40%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 420px;
}
.service-icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon i {
  font-size: 3.5rem;
  color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.08));
  padding: 20px 22px;
  border-radius: 50%;
  border: 3px solid #ffd700;
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.45), inset 0 0 15px rgba(255, 215, 0, 0.1);
  /* Optimize transition */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}
.card:hover .service-icon i {
  transform: scale(1.18) rotate(10deg);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.65), inset 0 0 20px rgba(255, 215, 0, 0.15);
}
.overlay h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin-bottom: 8px;
}
.overlay p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
  opacity: 0.98;
  color: #fafafa;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.service-price {
  margin: 18px 0 8px;
  display: flex;
  justify-content: center;
}
.price {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  padding: 9px 20px;
  border-radius: 26px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.45);
  transition: all 0.3s ease;
}
.card:hover .price {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.55);
}
.btn-service {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 28px;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(255,255,255,0.35);
}
.btn-service:hover {
  background: #ffd700;
  color: #000;
  border-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.55);
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: gold;
  color: black;
  text-decoration: none;
  border-radius: 5px;
}

/* SECTION TITLES */
#services {
  margin-bottom: 80px;
}
#services h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd54f;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background: #ffd700;
  color: #111;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Optimize scrolling performance */
html {
  scroll-behavior: smooth;
  /* Improve scrolling on touch devices */
  -webkit-overflow-scrolling: touch;
}

/* Optimize sections for better performance */
section {
  /* Contain layout and paint for better performance */
  contain: layout style paint;
}

/* Optimize images for better loading */
img {
  /* Prevent layout shift */
  max-width: 100%;
  height: auto;
  /* Optimize rendering */
  image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 900px) {
  .slide {
    gap: 16px;
  }
  .card {
    flex: 1 1 100%;
    height: 520px;
  }
  .overlay {
    padding: 28px 22px;
    gap: 8px;
    min-height: 360px;
  }
  .service-icon i {
    font-size: 3rem;
    padding: 18px 20px;
  }
  .overlay h3 {
    font-size: 1.35rem;
    letter-spacing: 1.2px;
  }
  .overlay p {
    font-size: 0.95rem;
  }
  .price {
    font-size: 1rem;
    padding: 8px 18px;
  }
  .btn-service {
    padding: 10px 24px;
    font-size: 0.92rem;
  }
}

@media (max-width: 600px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
    gap: 10px;
  }
  .nav-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .nav-btn i {
    font-size: 1rem;
  }
  .nav-btn span {
    font-size: 0.85rem;
  }
  .hero {
    padding: 60px 16px;
    height: 90vh;
  }
  .about {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .about img {
    width: 180px;
    height: 260px;
  }
  .contact {
    padding: 30px 16px;
  }
  .contact-icons {
    gap: 20px;
  }
  .contact-btn {
    padding: 16px;
    min-width: 80px;
  }
  .contact-btn i {
    font-size: 1.5rem;
  }
  .card {
    height: 480px;
  }
  .overlay {
    padding: 24px 18px;
    gap: 8px;
    min-height: 320px;
  }
  .service-icon i {
    font-size: 2.8rem;
    padding: 16px 18px;
  }
  .overlay h3 {
    font-size: 1.2rem;
    letter-spacing: 1.1px;
  }
  .overlay p {
    font-size: 0.9rem;
  }
  .price {
    font-size: 0.95rem;
    padding: 7px 16px;
  }
  .btn-service {
    padding: 10px 22px;
    font-size: 0.88rem;
  }
}

/* ABOUT */
.about {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(0,0,0,0.8));
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}
.about img {
  width: 280px;
  height: 380px;
  object-fit: cover;
  border-radius: 50% / 30%;
  border: 4px solid #ffd700;
  flex-shrink: 0;
  /* Optimize transition */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}
.about img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(255,215,0,0.3);
}
.about div {
  flex: 1;
  min-width: 300px;
}
.about h2 {
  color: #ffd54f;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f0efe6;
  margin-bottom: 15px;
}

/* Jump animation for about section */
@keyframes jump {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.jump {
  animation: jump 0.6s ease;
}

/* CONTACT */
.contact {
  padding: 50px 30px;
  text-align: center;
  margin-bottom: 40px;
}
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: #f5f5dc;
  transition: all 0.3s ease;
  min-width: 100px;
}
.contact-btn:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-5px);
}
.contact-btn i {
  font-size: 2rem;
  margin-bottom: 8px;
}
.contact-btn span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, #09101a 0%, #121c2b 100%);
  color: #f5f5dc;
  padding: 40px 20px;
}
.footer-content {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.footer-brand,
.footer-links,
.footer-trust {
  flex: 1 1 240px;
}
.footer-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.footer-heading {
  margin: 0 0 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd54f;
}
.footer-links a {
  display: inline-block;
  margin-bottom: 10px;
  color: #f5f5dc;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #ffd54f;
}
.footer-trust p {
  margin: 0;
  line-height: 1.8;
}
.footer-testimonial {
  margin-top: 12px !important;
  font-style: italic;
  color: #ffd54f !important;
  font-size: 0.9rem;
}
.footer-bottom {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(245, 95, 25, 0.8);
}

@media (max-width: 740px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  .footer-bottom {
    padding-top: 10px;
  }
}
