/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  box-shadow: 0 10px 25px rgba(108, 50, 172, 0.3);
  transform: translateY(-2px);
}

/* Scrollbar Styling */
html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: #1c1c1e;
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb {
  background: #39393a;
  border-radius: 5px;
  border: 2px solid #1c1c1e;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

body {
  scrollbar-width: thin;
  scrollbar-color: #39393a #1c1c1e;
}

/* Hero Section */
.hero {
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-title .word {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-light),
    #9d50bb
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wordReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.hero-title .word:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-title .word:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick Links Section */
.quick-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.7s backwards;
}

.quick-link-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  min-width: 150px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.quick-link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(134, 91, 251, 0.25);
}

.quick-link-card i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  display: block;
}

.quick-link-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.quick-link-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeInUp 0.8s ease 0.9s backwards;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: var(--primary-color);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    rgba(26, 26, 26, 0.5) 100%
  );
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    var(--primary-light),
    transparent
  );
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(134, 91, 251, 0.3);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

/* Category Sections */
.category-section {
  margin-bottom: 5rem;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  display: block;
}

/* Package Cards Grid - Optimized for more cards visible */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.packages-grid.centered {
  max-width: 350px;
  margin: 0 auto;
}

/* Ensure dedicated server cards don't stretch too wide */
.category-section .packages-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  justify-content: center;
}

.packages-grid.centered {
  grid-template-columns: 1fr;
}

.package-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.8rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(134, 91, 251, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(134, 91, 251, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.package-card:hover::before {
  opacity: 1;
}

.package-card.featured {
  border-color: var(--primary-color);
  background: rgba(134, 91, 251, 0.04);
}

.featured-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  padding: 0.35rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-header {
  margin-bottom: 1.2rem;
}

.package-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.package-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(134, 91, 251, 0.2);
  border: 1px solid rgba(134, 91, 251, 0.4);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-badge.cpanel {
  background: rgba(255, 140, 0, 0.2);
  border-color: rgba(255, 140, 0, 0.4);
  color: #ff8c00;
}

.package-badge.buy {
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.price-currency {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 700;
}

.price-amount {
  font-size: 2.5rem;
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.package-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.setup-fee {
  font-size: 0.85rem;
  color: #ff8c00;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.package-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.package-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features li i {
  color: var(--primary-color);
  font-size: 0.85rem;
  min-width: 14px;
}

.package-features li strong {
  color: var(--text-primary);
}

.package-notes {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary-color);
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border-radius: 6px;
}

.package-notes p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.package-notes p:last-child {
  margin-bottom: 0;
}

.package-note {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary-color);
  padding: 0.7rem;
  margin-bottom: 1.2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.package-note i {
  color: var(--primary-color);
}

.package-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: auto;
}

.package-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.package-cta:hover::before {
  width: 300px;
  height: 300px;
}

.package-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(134, 91, 251, 0.4);
}

.package-cta i {
  transition: transform 0.3s ease;
}

.package-cta:hover i {
  transform: translateX(3px);
}

/* Responsive Design */
@media (min-width: 1600px) {
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }

  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 992px) {
  .hero {
    height: 60vh;
    min-height: 450px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 500px;
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .quick-links {
    flex-direction: column;
    max-width: 250px;
    margin: 0 auto 2rem;
    gap: 0.8rem;
  }

  .quick-link-card {
    min-width: auto;
    width: 100%;
    padding: 1rem 1.2rem;
  }

  .services-section {
    padding: 3.5rem 0;
  }

  .category-section {
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
  }

  .category-icon {
    font-size: 2.2rem;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .package-card {
    padding: 1.5rem;
  }

  .package-header h3 {
    font-size: 1.2rem;
  }

  .price-amount {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 450px;
    padding: 2.5rem 1rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .quick-link-card {
    padding: 0.9rem 1rem;
  }

  .quick-link-card i {
    font-size: 1.6rem;
  }

  .quick-link-card h3 {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .category-icon {
    font-size: 2rem;
  }

  .package-card {
    padding: 1.3rem;
  }

  .package-header h3 {
    font-size: 1.15rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .package-features li {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }

  .package-cta {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 900px) and (max-height: 500px) {
  .hero {
    height: auto;
    min-height: 100vh;
  }
}
