/* =========================================================
   QuickConverter — Premium Frontend Theme
   Author: QuickConverter Team
   Version: 1.0.0
   ========================================================= */

/* ---------- Base Styles ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Header ---------- */
.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: background 0.3s ease-in-out;
}
.logo {
  display: flex;
  align-items: center;
}
.site-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
}
.logo span {
  font-weight: 700;
  color: #0078d7;
  font-size: 1.25rem;
}
nav a {
  margin: 0 1rem;
  font-weight: 600;
  transition: color 0.2s ease-in-out, border-bottom 0.2s;
}
nav a:hover,
nav a.active {
  color: #00bfa5;
  border-bottom: 2px solid #00bfa5;
  padding-bottom: 3px;
}
.dark-toggle {
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Hero Section ---------- */
.hero-section {
  background: linear-gradient(135deg, #0078d7, #00bfa5);
  color: white;
  padding: 5rem 3rem;
  position: relative;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-text {
  flex: 1 1 500px;
}
.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-text .highlight {
  color: #ffeb3b;
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #e9f8ff;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #ffeb3b;
  color: #222;
}
.btn-primary:hover {
  background: #ffe600;
}
.btn-outline {
  border: 2px solid #fff;
  color: white;
}
.btn-outline:hover {
  background: white;
  color: #0078d7;
}

/* Hero Image */
.dashboard-preview {
  width: 520px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Categories ---------- */
.page-container {
  padding: 4rem 3rem;
  text-align: center;
}
.center {
  text-align: center;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.category-card img {
  height: 48px;
  margin-bottom: 1rem;
}
.category-card h3 {
  color: #0078d7;
  margin-bottom: 0.5rem;
}
.btn-secondary {
  background: #0078d7;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
}
.btn-secondary:hover {
  background: #005bb5;
}

/* ---------- Promo Banner ---------- */
.promo-banner {
  background: linear-gradient(90deg, #0078d7, #00bfa5);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}
.promo-banner h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.promo-banner p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: linear-gradient(135deg, #ffeb3b, #ffc107);
  color: #222;
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}
.sticky-cta:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
footer {
  background: #f9f9f9;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #555;
}

/* ---------- Fade-Up Animation (AOS-style) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.fade-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Dark Mode ---------- */
.dark-mode {
  background: #121212;
  color: #eee;
}
.dark-mode .glass-header {
  background: rgba(25, 25, 25, 0.8);
}
.dark-mode .category-card {
  background: #1f1f1f;
}
.dark-mode .promo-banner {
  background: linear-gradient(90deg, #222, #0078d7);
}
.dark-mode footer {
  background: #1a1a1a;
  color: #aaa;
}
.dark-mode .btn-outline {
  border-color: #eee;
  color: #eee;
}
.dark-mode .btn-outline:hover {
  background: #eee;
  color: #121212;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .dashboard-preview {
    width: 100%;
  }
  nav a {
    margin: 0 0.6rem;
  }
  .sticky-cta {
    right: 15px;
    bottom: 20px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
}



/* === Smooth Scrolling === */
html {
  scroll-behavior: smooth;
}

/* === Fade-In Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delayed {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Progress Animation (subtle bounce) === */
@keyframes progressGlow {
  0% { box-shadow: 0 0 5px rgba(0,184,148,0.2); }
  50% { box-shadow: 0 0 10px rgba(0,184,148,0.4); }
  100% { box-shadow: 0 0 5px rgba(0,184,148,0.2); }
}

.progress-bar #progressInner {
  animation: progressGlow 2s infinite ease-in-out;
}
/* HEADER LAYOUT FIX */
.glass-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* CENTER NAV */
.header-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

/* RIGHT SIDE */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* USER PROFILE */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.user-profile:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* AVATAR (NO IMAGE = NO BREAK) */
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0078d7, #00c6ff);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* USERNAME */
.username {
  font-size: 0.9rem;
  font-weight: 600;
}

/* DARK MODE */
body.dark-mode .user-profile:hover {
  background: rgba(255, 255, 255, 0.12);
}

