:root {
    /* Daraz Color Palette */
    --primary: #000000;
    --primary-light: #000000;
    --primary-dark: #D94A1F;
    --secondary: #2EBBAB;
    --accent: #FFC800;
    --dark: #333333;
    --darker: #1A1A1A;
    --light: #F5F5F5;
    --gray: #999999;
    --card-bg: #FFFFFF;
    --card-bg-dark: #222222;
}


.daraz-navbar {
    position: fixed;
    top: 0;
}

/* Enhanced Dark Mode Toggle */
.theme-toggle-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.dark-mode .theme-toggle-container {
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: #e0e0e0;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-toggle::after {
    content: '☀';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #333;
    transition: all 0.3s ease;
}

.dark-mode .theme-toggle {
    background-color: #444;
}

.dark-mode .theme-toggle::before {
    left: calc(100% - 23px);
    background-color: #f5f5f5;
}

.dark-mode .theme-toggle::after {
    content: '☾';
    left: auto;
    right: 7px;
    color: #fff;
}

.theme-toggle:hover {
    background-color: #d0d0d0;
}

.dark-mode .theme-toggle:hover {
    background-color: #555;
}

.theme-toggle-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    user-select: none;
    transition: color 0.3s ease;
}

.dark-mode .theme-toggle-label {
    color: #f5f5f5;
}

/* Body and Main Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    transition: all 0.3s ease;
}

.dark-mode {
    background-color: var(--darker);
    color: #E5E5E5;
}

#digital-marketing {
    padding: 80px 0;
    background: linear-gradient(145deg, #F8F9FF 0%, #E6E9FF 100%);
}

.dark-mode #digital-marketing {
    background: linear-gradient(145deg, #0D0D1A 0%, #1A1A2E 100%);
}

.category-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.dark-mode .category-title {
    color: #F8F9FF;
}

.category-title i {
    color: rgb(148, 148, 148);
    margin-left: 15px;
    animation: float 3s ease-in-out infinite;
}

.marketing-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.marketing-item {
    padding: 22px 25px;
    border-bottom: 1px solid #E6E9FF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin-bottom: 12px;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.marketing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transition: all 0.3s ease;
}

.marketing-item:hover::before {
    width: 6px;
}

.marketing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(241, 88, 44, 0.25);
}

.marketing-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.marketing-title i {
    color: var(--primary);
    font-size: 1.3rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(241, 88, 44, 1);
    box-shadow: 0 0 10px rgba(241, 88, 44, 0.1);
    animation: blink 3s infinite;
    transition: all 0.3s ease;
}

.dark-mode .marketing-item {
    background-color: var(--card-bg-dark);
    border-color: #444444;
}

.dark-mode .marketing-item:hover {
    background-color: #333333;
}

.dark-mode .marketing-title {
    color: #F8F9FF;
}

.dark-mode .marketing-desc {
    color: #D1D5FF;
}

.marketing-desc {
    color: black;
}

/* Search bar styles */
.search-container {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transition: top 0.3s ease;
}

.search-container.active {
    top: 0;
}

.search-container input {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}

.dark-mode .search-container {
    background: var(--card-bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .search-container input {
    background: #333;
    border-color: #444;
    color: white;
}

/* Animation Keyframes */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Gradient Icons */
.fa-chart-line {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-hashtag {
    background: linear-gradient(45deg, #3F51B5, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-pen-fancy {
    background: linear-gradient(45deg, #9C27B0, #E91E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-ad {
    background: linear-gradient(45deg, #FF5722, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle-container {
        bottom: 10;
        padding: 6px 12px;
    }

    .category-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .theme-toggle-container {
        bottom: 10px;
        gap: 6px;
        padding: 5px 10px;
    }

    .theme-toggle {
        width: 44px;
        height: 24px;
    }

    .theme-toggle::before {
        width: 18px;
        height: 18px;
    }

    .theme-toggle-label {
        font-size: 13px;
    }
}



/* Back to Top Button */
.fabs {
  position: fixed;
  bottom: 97px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2b6777, #52ab98);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  opacity: 1;
  transform: translateY(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fabs.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fabs:hover {
  background: linear-gradient(135deg, #52ab98, #2b6777);
  transform: translateY(-1px) scale(1.09);
  box-shadow: 0 6px 25px rgba(43, 103, 119, 0.4);
}

.fabs:active {
  transform: scale(0.98);
}

/* Animation when scrolling appears */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fabs {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    bottom: 100px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .fabs {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    bottom: 100px;
    right: 22px;
  }
}
