/* ================================
   Modern UI — Best Computer Tech
================================ */

:root {
  --main: #0d6efd;
  --dark: #0b132b;
  --glass: rgba(255,255,255,0.15);
}

/* GLOBAL */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg,#f5f7fa,#c3cfe2);
  color: #222;
  scroll-behavior: smooth;
}

img {
  transition: transform .4s ease, box-shadow .4s ease;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

/* NAVBAR ANIMATION */
.navbar {
  transition: all .4s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 5px 25px rgba(0,0,0,.15);
}

/* HERO */
.hero {
  min-height: 75vh;
  background: linear-gradient(120deg, #0d6efd, #6610f2);
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  top:-80px;
  right:-80px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

/* CARDS */
.card {
  border:none;
  border-radius:18px;
  backdrop-filter: blur(10px);
  background: var(--glass);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  transition: all .4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

/* BUTTON ANIMATION */
.btn {
  border-radius: 30px;
  transition: all .3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

/* THUMBNAILS */
.thumb {
  overflow: hidden;
  border-radius: 14px;
}

.thumb img:hover {
  transform: scale(1.12) rotate(1deg);
}

/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
footer {
  background: #0b132b;
  color: #fff;
  padding: 50px 0;
}

/* MOBILE */
@media (max-width:768px){
  .hero { text-align:center; }
}


/* ==============================
   ADMIN PANEL THEME
============================== */
.admin-sidebar {
  background: linear-gradient(180deg, #984422, #f9c74f);
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.admin-sidebar h5 {
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.admin-menu .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 12px 15px;
  margin: 6px 0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.admin-menu .nav-link i {
  margin-right: 8px;
}

.admin-menu .nav-link:hover {
  background: #ffc107;
  color: #000;
  transform: translateX(6px);
}

.admin-menu .nav-link.active {
  background: #ffc107;
  color: #000;
  box-shadow: 0 0 15px rgba(255,193,7,0.7);
}

/* ==============================
   STAT CARDS
============================== */
.stat-card {
  background: linear-gradient(135deg, #984422, #f9c74f);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card.gold {
  background: linear-gradient(135deg, #f9c74f, #ffc107);
  color: #000;
}

.stat-card.warning {
  background: linear-gradient(135deg, #984422, #ffc107);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
  opacity: 0;
  transition: 0.4s;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.stat-icon {
  font-size: 2.6rem;
  opacity: 0.9;
}

.stat-info span {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.stat-info h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.9rem;
}


/* ==============================
   RESPONSIVE ADMIN SIDEBAR
============================== */
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2000;
    transition: left 0.4s ease;
  }

  .admin-sidebar.show {
    left: 0;
  }

  .admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    display: none;
  }

  .admin-overlay.show {
    display: block;
  }

  .admin-toggle-btn {
    display: inline-block;
    background: #ffc107;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
  }
}

/* ==============================
   DARK MODE SUPPORT
============================== */
body.dark-mode {
  background: #111;
  color: #fff;
}

body.dark-mode .card {
  background: #1e1e1e;
  color: #fff;
}

body.dark-mode .admin-sidebar {
  background: linear-gradient(180deg,#111,#333);
}


/* ==============================
   ABOUT PAGE IMAGE (600x600)
============================== */
.about-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;   /* Forces perfect square (600x600 look) */
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #000;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Crops properly */
  transition: transform 0.6s ease;
}

/* Card Hover Animation */
.about-card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.about-card:hover .about-img {
  transform: scale(1.08);
}
/* ==============================
   ABOUT PAGE STYLES
============================== */

.stat-box {
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg,#984422,#f9c74f);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: 0.4s;
}

.stat-box:hover {
  transform: translateY(-6px);
}

.about-img-wrapper {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s;
}

.about-card:hover .about-img {
  transform: scale(1.08);
}

.team-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  transition: .4s;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-img-wrapper {
  width: 100%;
  aspect-ratio: 1/1; /* 600x600 safe */
  overflow: hidden;
  border-radius: 100%;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   ADVANCED SIDEBAR UI
============================ */
.admin-sidebar-modern {
  background: linear-gradient(180deg, #984422, #f9c74f);
  height: 100vh;
  width: 260px;
  position: fixed;
  left: 0;
  top: 0;
  padding: 15px;
  box-shadow: 5px 0 20px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  z-index: 999;
}

.sidebar-header {
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 15px;
}

.admin-menu-advanced .nav-item {
  margin-bottom: 6px;
  position: relative;
}

.admin-menu-advanced .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 12px 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-menu-advanced .nav-link::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: rgba(255,255,255,0.15);
  transition: 0.4s;
}

.admin-menu-advanced .nav-link:hover::before {
  left: 0;
}

.admin-menu-advanced .nav-link:hover {
  background: #ffc107;
  color: #000;
  transform: translateX(8px);
}

.admin-menu-advanced .nav-link.active {
  background: #ffc107;
  color: #000;
  box-shadow: 0 0 20px rgba(255,193,7,0.7);
}

.admin-menu-advanced i {
  font-size: 1.2rem;
}

.nav-title {
  font-size: 0.75rem;
  margin: 15px 0 8px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  font-weight: bold;
}

/* ============================
   MOBILE
============================ */
@media (max-width: 768px) {
  .admin-sidebar-modern {
    left: -100%;
  }
  .admin-sidebar-modern.open {
    left: 0;
  }
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 998;
}
.admin-overlay.show {
  display: block;
}

.dark-mode {
  background: #121212;
  color: #fff;
}

.dark-mode .card {
  background: #1e1e1e;
  color: #fff;
}
.admin-sidebar-modern.mini {
  width: 80px;
}

.admin-sidebar-modern.mini .nav-link span,
.admin-sidebar-modern.mini .sidebar-header,
.admin-sidebar-modern.mini .sidebar-user h6,
.admin-sidebar-modern.mini .sidebar-user small {
  display: none;
}

.admin-sidebar-modern.mini .nav-link {
  justify-content: center;
}
/* ==============================
   ADMIN PANEL THEME
============================== */
.admin-sidebar-modern {
  background: linear-gradient(180deg, #984422, #f9c74f);
  min-height: 100vh;
  border-radius: 18px;
  padding: 15px;
  transition: 0.4s;
}

.admin-menu .nav-link {
  color: #fff;
  padding: 12px 15px;
  margin: 6px 0;
  border-radius: 10px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-menu .nav-link i {
  margin-right: 10px;
}

.admin-menu .nav-link:hover,
.admin-menu .nav-link.active {
  background: #ffc107;
  color: #000;
}

.sidebar-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #ffc107;
  object-fit: cover;
}

/* MINI SIDEBAR */
.admin-sidebar-modern.mini {
  width: 80px;
}

.admin-sidebar-modern.mini span {
  display: none;
}

.admin-sidebar-modern.mini .nav-link {
  justify-content: center;
}

/* STAT CARDS */
.stat-card {
  background: linear-gradient(135deg, #984422, #f9c74f);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-card.gold { background: linear-gradient(135deg, #f9c74f, #ffc107); color:#000; }
.stat-card.warning { background: linear-gradient(135deg, #984422, #ffc107); }

.stat-icon { font-size: 2.6rem; }
