/* ============================================
   Creative Vision IT - WordPress Hosting Landing Page
   Optimized for Performance & PageSpeed 100
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0d6efd;
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --dark: #212529;
  --light: #f8f9fa;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* --- Global Styles --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.7; color: #333; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: var(--transition); }

/* --- Navbar --- */
#mainNav { transition: var(--transition); padding: 12px 0; }
#mainNav.scrolled { background: rgba(33,37,41,0.98) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.2); padding: 6px 0; }
.navbar-brand { font-size: 1.3rem; letter-spacing: -0.5px; }
.nav-link { font-weight: 500; padding: 8px 16px !important; position: relative; }
.nav-link:hover { color: #25D366 !important; }

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d4a2e 100%);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .container { position: relative; z-index: 2; }
.stat-box {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px 10px;
  backdrop-filter: blur(5px);
}
.hero-illustration { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-20px) } }

/* --- Trust Badges --- */
.trust-badge {
  padding: 15px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.trust-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* --- About Card --- */
.about-card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #e9ecef;
}

/* --- Domain Price Card --- */
.domain-price-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.domain-price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.price-tag { font-size: 1rem; }
.price-tag .currency { font-size: 1.5rem; font-weight: 700; color: var(--primary); vertical-align: super; }
.price-tag .amount { font-size: 3.5rem; font-weight: 800; color: var(--primary); }
.price-tag .period { font-size: 1.2rem; color: #666; }
.domain-features li { padding: 8px 0; font-size: 1.05rem; border-bottom: 1px solid #f0f0f0; }
.domain-features li:last-child { border: none; }

/* --- Pricing Cards --- */
.pricing-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 2px solid #e9ecef;
  opacity: 0;
  transform: translateY(30px);
}
.pricing-card.animate-in { opacity: 1; transform: translateY(0); }
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.pricing-card.featured { border-color: var(--success); transform: scale(1.02); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-10px); }
.pricing-card.featured.animate-in { transform: scale(1.02); }
.popular-badge {
  position: absolute; top: 15px; right: -35px;
  background: var(--success); color: #fff;
  padding: 5px 40px; font-size: 0.8rem; font-weight: 700;
  transform: rotate(45deg); z-index: 1;
  text-transform: uppercase; letter-spacing: 1px;
}
.pricing-header {
  padding: 30px 20px;
  text-align: center;
  color: #fff;
}
.basic-header { background: linear-gradient(135deg, #667eea, #764ba2); }
.premium-header { background: linear-gradient(135deg, #198754, #20c997); }
.business-header { background: linear-gradient(135deg, #fd7e14, #dc3545); }
.pricing-body { padding: 30px; }
.price-display { text-align: center; padding: 10px 0 20px; }
.price-display .currency { font-size: 1.3rem; font-weight: 700; color: var(--dark); vertical-align: super; }
.price-display .price { font-size: 3rem; font-weight: 800; color: var(--dark); }
.price-display .period { font-size: 1rem; color: #666; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 25px; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }
.pricing-features li:last-child { border: none; }

/* --- Reseller Cards --- */
.reseller-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #fff3cd;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.reseller-card.animate-in { opacity: 1; transform: translateY(0); }
.reseller-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--warning); }
.reseller-card li { padding: 8px 0; }

/* --- Feature Cards --- */
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid #e9ecef;
  opacity: 0;
  transform: translateY(30px);
}
.feature-card.animate-in { opacity: 1; transform: translateY(0); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
}

/* --- FAQ --- */
.accordion-item { border: 1px solid #e9ecef; margin-bottom: 10px; border-radius: var(--radius) !important; overflow: hidden; }
.accordion-button { font-weight: 600; padding: 18px 20px; }
.accordion-button:not(.collapsed) { background: #e8f5e9; color: var(--success); }
.accordion-button:focus { box-shadow: none; border-color: var(--success); }

/* --- Contact --- */
.contact-info-card, .contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}
.contact-info-card.animate-in, .contact-form-card.animate-in { opacity: 1; transform: translateY(0); }
.contact-item { display: flex; align-items: flex-start; }
.contact-item i { margin-top: 3px; }

/* --- Social Icons --- */
.social-icon {
  width: 45px; height: 45px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  transition: var(--transition);
}
.social-icon:hover { transform: translateY(-3px); color: #fff; }
.social-icon.facebook { background: #1877f2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.tiktok { background: #010101; }
.social-icon.linkedin { background: #0077b5; }
.social-icon.whatsapp { background: #25D366; }

/* --- Footer --- */
footer a { color: #adb5bd; }
footer a:hover { color: #25D366; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: #adb5bd; transition: var(--transition); }
.footer-links li a:hover { color: #fff; padding-left: 5px; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed; bottom: 25px; right: 25px;
  width: 60px; height: 60px;
  background: #25D366;
  color: #fff; font-size: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { background: #128C7E; color: #fff; transform: scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5) } 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0) } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0) } }

/* --- Back to Top --- */
.back-to-top {
  position: fixed; bottom: 100px; right: 30px;
  width: 45px; height: 45px;
  background: var(--dark);
  color: #fff; border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 9998;
  font-size: 1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--success); transform: translateY(-3px); }

/* --- Form Validation --- */
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
.form-control:focus, .form-select:focus { border-color: var(--success); box-shadow: 0 0 0 0.2rem rgba(25,135,84,0.25); }
.input-group-text { background: var(--light); border-color: #dee2e6; color: #666; }

/* --- Animation --- */
.domain-price-card, .about-card { opacity: 0; transform: translateY(30px); }
.domain-price-card.animate-in, .about-card.animate-in { opacity: 1; transform: translateY(0); }
.animate-in { transition: opacity 0.6s ease, transform 0.6s ease; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .hero-section { text-align: center; }
  .hero-section .d-flex { justify-content: center; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-10px); }
  .pricing-card.featured.animate-in { transform: none; }
}
@media (max-width: 767.98px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-section .lead { font-size: 1rem; }
  .price-display .price { font-size: 2.5rem; }
  .price-tag .amount { font-size: 2.5rem; }
  .stat-box h3 { font-size: 1.2rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.6rem; bottom: 20px; right: 20px; }
  .back-to-top { bottom: 85px; right: 25px; }
}
@media (max-width: 575.98px) {
  .hero-section h1 { font-size: 1.6rem; }
  .pricing-header { padding: 20px 15px; }
  .pricing-body { padding: 20px 15px; }
  section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

/* --- Print --- */
@media print {
  .whatsapp-float, .back-to-top, #mainNav { display: none !important; }
  .hero-section { min-height: auto; background: #1a3a5c; }
  .pricing-card, .feature-card, .reseller-card, .domain-price-card, .contact-info-card, .contact-form-card, .about-card { opacity: 1; transform: none; }
}
