/* ============================================
   assets/css/style.css
   Vidya IT Services - Main Stylesheet
   ============================================ */

:root {
  --blue: #0056b3;
  --blue-dark: #003d82;
  --blue-light: #e8f0fb;
  --orange: #ff6b35;
  --orange-dark: #e85520;
  --orange-light: #fff3ee;
  --dark: #1a1f2e;
  --gray: #6c757d;
  --light: #f8f9fa;
  --white: #ffffff;
  --border: #e9ecef;
  --shadow: 0 4px 20px rgba(0,86,179,0.10);
  --shadow-lg: 0 8px 40px rgba(0,86,179,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font-main: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.25;
}
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange); }
img { max-width: 100%; }

/* ---- Buttons ---- */
.btn-primary, .btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary:hover, .btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-orange {
  background: var(--orange);
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 600;
  transition: var(--transition);
}
.btn-orange:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
}
.btn-whatsapp { background: #25D366; border: none; color: #fff; font-weight: 600; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }

/* ---- Navbar ---- */
#mainNav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1050;
}
#mainNav.scrolled { padding: 8px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.brand-logo { font-family: var(--font-main); font-weight: 800; font-size: 22px; color: var(--dark); }
.brand-v { color: var(--orange); }
.brand-it { background: var(--blue); color: #fff; padding: 1px 6px; border-radius: 4px; }
.nav-link {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  color: var(--dark) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--blue) !important; background: var(--blue-light); }

/* Mega Menu */
.mega-menu { min-width: 600px; left: 50%; transform: translateX(-50%); border-radius: var(--radius); padding: 20px; }
.mega-menu-item { color: var(--dark) !important; border-radius: var(--radius-sm); transition: var(--transition); }
.mega-menu-item:hover { background: var(--blue-light); color: var(--blue) !important; }
.mega-icon { width: 38px; height: 38px; background: var(--blue-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 16px; flex-shrink: 0; }
.mega-title { font-family: var(--font-main); font-weight: 600; font-size: 14px; color: var(--dark); }
.mega-desc { font-size: 12px; color: var(--gray); }

/* Cart Button */
.cart-btn, .cart-btn-mobile {
  position: relative; color: var(--dark);
  display: flex; align-items: center;
  width: 42px; height: 42px;
  justify-content: center; border-radius: 50%;
  transition: var(--transition);
}
.cart-btn:hover, .cart-btn-mobile:hover { background: var(--blue-light); color: var(--blue); }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, #0a1628 0%, #0056b3 50%, #003d82 100%);
  min-height: 90vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 80px 0;
}
.hero-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,53,0.2); border: 1px solid rgba(255,107,53,0.3);
  color: #ffb59b; padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero-title { font-size: clamp(36px, 5vw, 62px); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero-title span { color: var(--orange); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 520px; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat-num { font-family: var(--font-main); font-size: 28px; font-weight: 800; color: var(--orange); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.hero-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 32px; color: #fff; }
.hero-card-icon { width: 52px; height: 52px; background: var(--orange); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }

/* ---- Section Styles ---- */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-family: var(--font-main); font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--orange); }
.section-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.section-title span { color: var(--blue); }
.section-subtitle { font-size: 16px; color: var(--gray); max-width: 560px; }

/* ---- Service Cards ---- */
.service-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition); height: 100%;
  position: relative; overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0; background: var(--orange); transition: var(--transition); }
.service-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { height: 100%; }
.service-icon { width: 60px; height: 60px; background: var(--blue-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--blue); margin-bottom: 20px; transition: var(--transition); }
.service-card:hover .service-icon { background: var(--blue); color: #fff; }
.service-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.service-card p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.service-price { font-family: var(--font-main); font-weight: 700; color: var(--blue); font-size: 16px; }

/* ---- Product Cards ---- */
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); height: 100%; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--blue-light); }
.product-card img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.product-card:hover img { transform: scale(1.04); }
.product-card-body { padding: 20px; }
.product-badge { background: var(--orange-light); color: var(--orange); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.product-price { font-family: var(--font-main); font-size: 20px; font-weight: 800; color: var(--blue); }
.product-price-original { font-size: 14px; color: var(--gray); text-decoration: line-through; }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--blue); padding: 48px 0; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-main); font-size: 42px; font-weight: 800; color: var(--orange); display: block; }
.stat-label { color: rgba(255,255,255,0.85); font-size: 14px; }

/* ---- Testimonials ---- */
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.testimonial-card::before { content: '"'; font-size: 80px; color: var(--blue-light); position: absolute; top: -10px; right: 20px; font-family: Georgia, serif; line-height: 1; }
.testimonial-rating { color: #ffc107; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: var(--dark); font-style: italic; margin-bottom: 20px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-right: 12px; }
.testimonial-name { font-family: var(--font-main); font-weight: 700; font-size: 14px; }
.testimonial-company { font-size: 12px; color: var(--gray); }

/* ---- Blog Cards ---- */
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); height: 100%; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-category { background: var(--blue-light); color: var(--blue); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card h5 { font-size: 17px; font-weight: 700; margin: 10px 0 8px; }

/* ---- CTA Section ---- */
.cta-section { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); padding: 80px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: rgba(255,107,53,0.1); border-radius: 50%; }

/* ---- Forms ---- */
.form-control, .form-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,86,179,0.12); }
.form-label { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--dark); }

/* ---- Admin Panel ---- */
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
  overflow: hidden;
}
.admin-sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
/* THIS IS THE KEY FIX — nav inside sidebar scrolls */
.admin-sidebar nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 20px;
}
.admin-sidebar nav::-webkit-scrollbar { width: 3px; }
.admin-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.admin-sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

.admin-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 14px; font-family: var(--font-main); font-weight: 500;
  border-radius: 0; transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active { color: #fff; background: rgba(255,255,255,0.07); border-left-color: var(--orange); }
.admin-nav-link i { font-size: 16px; width: 20px; }
.admin-nav-section { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.3); padding: 16px 20px 6px; }

.admin-content { margin-left: 260px; min-height: 100vh; background: #f0f4f8; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 28px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.admin-page-content { padding: 28px; }

/* Admin Cards */
.stat-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); transition: var(--transition); }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.stat-card-value { font-family: var(--font-main); font-size: 32px; font-weight: 800; color: var(--dark); }
.stat-card-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* Admin Table */
.admin-table { background: #fff; border-radius: var(--radius); overflow: hidden; }
.admin-table table { margin: 0; }
.admin-table thead th { background: var(--light); font-family: var(--font-main); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); border: none; padding: 14px 16px; }
.admin-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--light); }

/* Status Badges */
.badge-pending    { background: #fff3cd; color: #856404; }
.badge-confirmed  { background: #d1ecf1; color: #0c5460; }
.badge-processing { background: #cce5ff; color: #004085; }
.badge-completed  { background: #d4edda; color: #155724; }
.badge-cancelled  { background: #f8d7da; color: #721c24; }
.badge-verified   { background: #d4edda; color: #155724; }
.badge-failed     { background: #f8d7da; color: #721c24; }
.badge-new        { background: #cce5ff; color: #004085; }
.badge-paid       { background: #d4edda; color: #155724; }
.badge-sent       { background: #cce5ff; color: #004085; }
.badge-draft      { background: #e2e3e5; color: #383d41; }
.badge-open       { background: #cce5ff; color: #004085; }
.badge-in_progress{ background: #fff3cd; color: #856404; }
.badge-resolved   { background: #d4edda; color: #155724; }
.badge-closed     { background: #e2e3e5; color: #383d41; }
.badge-screenshot_uploaded { background: #fff3cd; color: #856404; }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999; transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { background: #1da851; color: #fff; transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.65); }
}

/* ---- Footer ---- */
.site-footer { background: var(--dark); }
.footer-top { padding: 64px 0 48px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--orange); }
.brand-logo-light { font-family: var(--font-main); font-weight: 800; font-size: 22px; color: #fff; }
.brand-it-light { background: var(--orange); color: #fff; padding: 1px 6px; border-radius: 4px; }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.7; }
.footer-heading { font-family: var(--font-main); font-weight: 700; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; display: flex; justify-content: space-between; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-links strong { color: rgba(255,255,255,0.85); font-size: 14px; }
.footer-links span { color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 10px; }
.footer-contact-item i { color: var(--orange); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); font-size: 16px; transition: var(--transition); }
.footer-social a:hover { background: var(--orange); color: #fff; }

/* ---- Cart Page ---- */
.cart-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .mega-menu { min-width: 100%; left: 0; transform: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 767px) {
  .hero-section { min-height: auto; padding: 60px 0; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .stat-number { font-size: 32px; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 22px; }
}

/* ---- Utilities ---- */
.text-orange { color: var(--orange) !important; }
.text-blue { color: var(--blue) !important; }
.bg-blue { background-color: var(--blue) !important; }
.bg-orange { background-color: var(--orange) !important; }
.bg-blue-light { background-color: var(--blue-light) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.fw-800 { font-weight: 800 !important; }
.font-main { font-family: var(--font-main) !important; }

/* Flash messages */
.flash-success { background: #d4edda; border-left: 4px solid #28a745; color: #155724; padding: 14px 20px; border-radius: var(--radius-sm); }
.flash-error   { background: #f8d7da; border-left: 4px solid #dc3545; color: #721c24; padding: 14px 20px; border-radius: var(--radius-sm); }
.flash-info    { background: #cce5ff; border-left: 4px solid #0056b3; color: #004085; padding: 14px 20px; border-radius: var(--radius-sm); }

.admin-sidebar { overflow: hidden !important; }
.admin-sidebar nav { overflow-y: auto !important; flex: 1 !important; max-height: calc(100vh - 80px) !important; }
