:root {
  --cbd-bg: #ebebeb;

  --cbd-black: #1a1a1a;
  --cbd-white: #ebebeb;
  --cbd-primary: #003153;

  /* --cbd-bg: #ebebeb;
  --cbd-primary: #0f3230; 
  --cbd-primary: #003153;
    */

  --cbd-blue-calm: #8b93ff;

  --cbd-orange: #ffa85c;
  --cbd-yellow: #fed35b;
  --cbd-purple: #c3abff;
  --cbd-pink: #fbc1d4;
  --cbd-lightblue: #7dd3fc;

  --cbd-green: #4caf50;
  --cbd-darkblue: #144647;
  --cbd-cyan: #33f6b3;
  --cbd-orange-red: #ff6f4f;
  --cbd-nct: #0f172a;
  --cbd-lavieflo: #fadadd;
  --cbd-nzon: #0c4a6e;
  --cbd-reyden: #cda550;
  --cbd-fatbear: #e07b39;
}

html,
body {
  color: #777;
  background-color: var(--cbd-bg) !important;
}

* {
  color: var(--cbd-primary);
}

p,
h2,
h3,
h4,
h5 {
  color: var(--cbd-primary) !important;
}

/* coloring */
.cbd-white-content {
  color: var(--cbd-white) !important;
}

.challenge-solution {
  background-color: var(--cbd-orange);
  border-radius: 30px;
  padding: 50px;
}

.cbd-mobile-img {
  max-height: 550px !important;
}

/* Header */
#mainHeader {
  transition: transform 0.4s ease-in-out, opacity 0.3s ease !important;
}

.hide-header {
  transform: translateY(-100%) !important;
  opacity: 0.9;
}

.white-header span {
  color: var(--cbd-white) !important;
}

.white-header .button-icon-link span {
  color: var(--cbd-white) !important;
}

.sm-screen span {
  color: var(--cbd-white) !important;
}

.cbd-light-content {
  color: var(--cbd-white) !important;
}

.cbd-primary-bg {
  background-color: var(--cbd-primary) !important;
}

/* Pre loader */
.number span {
  color: white !important;
}

.percentage-first span {
  color: white !important;
}

.percentage-last span {
  color: white !important;
}

.preloader-wrap {
  /* background-image: url("../cbd/img/parallax.png") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */

  background: var(--cbd-primary) !important;
}

.accordion dt:hover .acc-button-icon,
.accordion dt.accordion-active .acc-button-icon {
  background: var(--cbd-orange) !important;
}

.button-border {
  background-color: var(--cbd-primary) !important;
}

.button-border span {
  color: var(--cbd-white);
}

.cbd-slider-img {
  height: 70vh !important;
  object-fit: contain !important;
}

.cbd-img-contain {
  object-fit: contain !important;
}

.card {
  background-color: #ffffff !important;
  border-radius: 30px !important;
  margin: 20px !important;
  margin-right: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  padding: 20px;
  text-align: center;
}

.card h1,
.card h5,
.card li,
.card strong {
  color: #0f172a;
}

.cbd_padding_left {
  padding-left: 80px;
}

.cbd-overview-title {
  padding-bottom: 20px;
}

.cbd-project-desc {
  font-size: 20px;
}

.cbd-li {
  font-weight: 600;
  font-size: 24px;
  padding-bottom: 20px;
  color: var(--cbd-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.108) !important;
}

.cbd-project-title-container {
  margin-bottom: -50px !important;
}

/* Tablet styles (iPad) - max-width: 1024px */
@media only screen and (max-width: 1024px) {
  .cbd-project-title-container {
    margin-bottom: -30px !important;
  }

  .cbd-panel {
    max-width: 400px !important;
  }

  .card {
    margin: 15px !important;
    margin-right: 15px !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
  }

  .cbd_padding_left {
    padding-left: 60px;
  }

  .card .one_half {
    width: 100% !important;
    /* float: none !important; */
    margin-bottom: 20px !important;
  }

  .card .one_half.last {
    margin-bottom: 0 !important;
  }

  .card h1 {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
  }

  .card .one_half.last h5 {
    text-align: center;
  }
}

/* Screenshot title centering */
.screenshot_title {
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 30px !important;
}

.screenshot_title h5 {
  text-align: center !important;
  margin: 0 auto !important;
}

/* Mobile styles - max-width: 767px */
@media only screen and (max-width: 767px) {
  .icon-wrap {
    margin-right: 10px !important;
  }

  .cbd-project-desc {
    font-size: 18px;
  }

  .cbd-li {
    font-size: 20px;
  }

  .cbd-panel {
    max-width: 400px !important;
  }

  .cbd-img-contain {
    object-fit: contain !important;
    max-width: 400px !important;
  }

  .card {
    margin: 10px !important;
    margin-right: 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  }

  .cbd_padding_left {
    padding-left: 40px;
  }

  .card .one_half {
    width: 100% !important;
    float: none !important;
    margin-bottom: 15px !important;
  }

  .card .one_half.last {
    margin-bottom: 0 !important;
  }

  .card h1 {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

  .card h5 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }

  .card ul {
    padding-left: 15px !important;
  }

  .card li {
    margin-bottom: 8px !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .card .one_half.last h5 {
    text-align: center;
  }
}

/* Screenshot title centering */
.screenshot_title {
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 30px !important;
}

.screenshot_title h5 {
  text-align: center !important;
  margin: 0 auto !important;
}

/* Small mobile styles - max-width: 479px */
@media only screen and (max-width: 479px) {
  #copy-email {
    font-size: x-large !important;
  }

  .cbd-panel {
    max-width: 400px !important;
  }

  .cbd-img-contain {
    object-fit: contain !important;
    max-width: 400px !important;
  }

  .card {
    margin: 5px !important;
    margin-right: 5px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  }

  .cbd_padding_left {
    padding-left: 20px;
  }

  .card h1 {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
  }

  .card h5 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }

  .card ul {
    padding-left: 12px !important;
  }

  .card li {
    margin-bottom: 6px !important;
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .card .one_half.last h5 {
    text-align: center;
  }
}

/* Screenshot title centering */
.screenshot_title {
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 30px !important;
}

.screenshot_title h5 {
  text-align: center !important;
  margin: 0 auto !important;
}

@media only screen and (min-width: 770px) {
  .cbd-margin-top {
    margin-top: -50px;
  }
}

.parallax-desc {
  color: white !important;
}

.techstack-section {
  padding: 40px 0;
  /* Reduced from 80px to 40px */
}

.techstack-title {
  text-align: center;
  margin-bottom: 40px;
  /* Reduced from 60px to 40px */
}

.techstack-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
  /* Reduced from 60px to 40px */
}

.techstack-category {
  text-align: center;
}

.category-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  /* Reduced from 30px to 20px */
  color: var(--cbd-primary);
  position: relative;
  display: inline-block;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  border-radius: 1px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Center align items */
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: transparent;
  position: relative;
  overflow: hidden;
  min-width: 120px;
  /* Ensure consistent width */
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 212, 255, 0.05)); */
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.tech-item:hover::before {
  opacity: 1;
}

.tech-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
}

.tech-icon-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover .tech-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.techstack-icon {
  font-size: 50px;
  transition: all 0.3s ease;
}

.tech-name {
  font-size: 14px;
  font-weight: 500;
  /* color: #666; */
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
  text-align: center;
  line-height: 1.2;
}

.tech-item:hover .tech-name {
  /* color: #333; */
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .techstack-section {
    padding: 30px 0;
    /* Reduced for mobile */
  }

  .techstack-categories {
    gap: 30px;
    /* Reduced for mobile */
  }

  .tech-grid {
    gap: 20px;
  }

  .techstack-icon {
    font-size: 50px;
  }

  .category-title {
    font-size: 20px;
    margin-bottom: 15px;
    /* Reduced for mobile */
  }

  .tech-item {
    padding: 15px;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    gap: 15px;
  }

  .techstack-icon {
    font-size: 40px;
  }

  .tech-name {
    font-size: 12px;
  }

  .tech-item {
    min-width: 70px;
  }
}

.primary-font-title {
  font-size: 20px !important;
}

.cbd-project-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.cbd-project-title h4 {
  margin: 0;
}

@media only screen and (max-width: 1537px) {
  .img-mask {
    height: 80% !important;
  }
}

.app-store-badge {
  height: 40px;
  width: 120px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.app-store-badge:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}
