* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #000000;
  color: #fff;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
}


a {
  color: #ffffff;
  text-decoration: none;
}

header {
  padding: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  position: relative;
  background-color: rgba(0, 0, 0, 0.75);
  border-bottom: 2px solid #ef631c;
  padding: 30px;
} 

nav {
  flex: 1;
}

.logo {
  position: relative;
  height: 60px;
  overflow: visible;
}

.logo img {
  position: relative; 
  height: 180px;
  top: -60px;
  left: -25px;
  filter: brightness(0) invert(1);
  z-index: 10;
}


nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px; 
  margin: 0 auto;
}

nav ul li a { 
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #ef631c;
}

.btn {
  background-color: #ef631c;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
}

.btn:hover {
  background-color: #ef631c;
}

.lang-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-right: 10px;
  gap: 5px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  color: white;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.lang-btn:hover {
  background-color: #ef631c;
  color: black;
}


@media (max-width: 768px) {
  .lang-vertical {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
    flex-direction: row; /* ⬅️ важна промяна – бутоните един до друг */
    gap: 8px;
    z-index: 9999;
  }

  .lang-btn {
    font-size: 13px;
    padding: 4px 6px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .lang-btn:hover {
    color: #ffa500;
  }

  .burger {
    margin-top: 40px; /* избутва бургер бутона под езиковите */
  }
}


/* Hero */
.hero {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.15;
  text-align: center;
}

.hero-text p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 300;
  opacity: 0.85;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/*
.hero-video video {
  width: 500px;
  max-width: none;
  height: auto;
  border-radius: 10px;
  background-color: black; 
  display: block;
}


/* Projects */
.projects {
  background-color: #1a1a1a;
  text-align: center;
  margin-top: 100px;
  padding: 0 40px;
}

h2 {
  text-align: center;
  font-size: 40px;
  color: #ffffff;
  margin: 100px 0 20px 0;
}


.project-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  flex-wrap: nowrap;
  max-width: 100%;
  margin: 0 auto;
  margin-top: -152px;
  padding: 80px 0;
  background-color: rgba(131, 130, 130, 0.542);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}



.project-item {
  transition: transform 0.3s ease;
}

.project-item:nth-child(1) {
  transform: perspective(1000px) rotateY(20deg);
}

.project-item:nth-child(2) {
  transform: perspective(1000px) rotateY(0deg);
}

.project-item:nth-child(3) {
  transform: perspective(1000px) rotateY(-20deg);
}

.project-item img {
  max-width: none;
  width: 380px;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.project-item img:hover {
  transform: scale(1.05);
} 

/* Pricing */
.icon {
  font-size: 25px; 
  margin-bottom: 10px;
  } 

.glow-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
}

.glow-card {
  width: 300px;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #444;
  transition: all 0.3s ease;
  text-align: center;
}

.glow-card:hover {
  transform: scale(1.05);
  border-color: #ffa500;
  box-shadow: 0 12px 30px rgba(255, 165, 0, 0.5);
}

.glow-card h2 {
  color: #ffa500;
  margin-bottom: 10px;
  font-size: 24px;
}

.glow-card h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 18px;
}

.glow-card p {
  color: #bbbbbb;
  margin-bottom: 20px;
}

.glow-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
  flex-grow: 1;
}

.glow-card ul li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 16px;
  color: #ffffff;
}

.glow-card ul li::before {
  content: '\f00c';
  font-family: FontAwesome;
  color: #ffa500;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}

.glow-card .card-btn {
  background-color: #ffa500;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.glow-card .card-btn:hover {
  background-color: #ff8c00;
}

@media (max-width: 768px) {
  .glow-container {
      flex-direction: column;
      align-items: center;
  }
}

/* Contact */
.contact {
  text-align: center;
  margin: 100px 0;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto 20px;
}

.contact input,
.contact textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
}

.contact button {
  background-color: #ffffff38;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-info p {
  margin: 5px 0;
}

/*
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}
*/


@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-video video {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

.burger {
  display: none;
  font-size: 30px; 
  cursor: pointer;
  color: white;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
}

.burger-text {
  font-size: 20px;
  font-weight: bold;
  margin-right: 8px;
}

@media (max-width: 768px) {
  #nav-menu {
    position: relative;
    z-index: 200;
  }

  .logo {
    z-index: 100;
  }
}


@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #111;
    padding: 20px;
    gap: 10px;
  }

  nav.active ul {
    display: flex;
  }

  .burger {
    display: block;
  }

  .btn {
    display: none;
  }

  .hero {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .project-gallery {
    flex-direction: column;
    align-items: center;
  }
  
  .project-item {
    margin-bottom: -50px;
  }  

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .review-list {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 100;
  }

  .navbar {
    position: relative;
  }
}


.about-hero {
  text-align: center;
  padding: 120px 20px 60px;
}

.about-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.about-hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.about-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 60px 20px;
}

.feature {
  background: #ffffff10;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.feature h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ef631c;
}

.feature p {
  font-size: 16px;
}

.about-end {
  text-align: center;
  padding: 80px 20px;
}

.about-end h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-end p {
  font-size: 18px;
  margin-bottom: 30px;
}



/* Анимация */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-section {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faq-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff10;
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #ffffff20;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-item.open .faq-answer {
  padding: 15px 20px;
  max-height: 300px;
}

.site-footer {
  background-color: rgba(0, 0, 0, 0.75);
  border-top: 2px solid #ef631c;
  color: #ccc;
  padding: 20px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  width: auto;
  height: 150px; 
  max-width: 100%; 
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #ccc;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ef631c;
}

.footer-copy {
  font-size: 14px;
  color: #777;
}

.comments-frame {
  width: 100%;
  height: 300px;
  border: none;
  overflow: hidden;
  margin: 40px 0;
}

/* За анимирания фон */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none; /* ЗАДЪЛЖИТЕЛНО – иначе няма да засече мишката */
}


/*slider*/
.slider-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px auto;
  position: relative;
}

.wrapper {
  width: 100%;
  max-width: 650px;
  aspect-ratio: 13 / 9; /* Поддържа пропорции */
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 7px solid #fff;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.15);
}


.wrapper .images {
  height: 100%;
  width: 100%;
  display: flex;
}

.wrapper .images .img-1 {
  height: 100%;
  width: 100%;
  background: url("img/tasty-1.png") no-repeat center center;
  background-size: cover;
}

.wrapper .images .img-2 {
  position: absolute;
  height: 100%;
  width: 50%;
  background: url("img/tasty-2.png") no-repeat center center;
  background-size: cover;
}

.wrapper .slider {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 99;
}

.wrapper .slider input {
  width: 100%;
  outline: none;
  background: none;
  -webkit-appearance: none;
}

.slider input::-webkit-slider-thumb {
  height: 486px;
  width: 3px;
  background: none;
  -webkit-appearance: none;
  cursor: col-resize;
}

.slider .drag-line {
  width: 3px;
  height: 486px;
  position: absolute;
  left: 49.85%;
  pointer-events: none;
}

.slider .drag-line::before,
.slider .drag-line::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 222px;
  background: #dcdcdc;
}

.slider .drag-line::before {
  top: 0;
}

.slider .drag-line::after {
  bottom: 0;
}

.slider .drag-line span {
  height: 42px;
  width: 42px;
  border: 3px solid #dcdcdc;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.slider .drag-line span::before,
.slider .drag-line span::after {
  position: absolute;
  content: "";
  top: 50%;
  border: 10px solid transparent;
  border-bottom-width: 0px;
  border-right-width: 0px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.slider .drag-line span::before {
  left: 40%;
  border-left-color: #dcdcdc;
}

.slider .drag-line span::after {
  left: 60%;
  border-top-color: #dcdcdc;
}

.monitor-sticker {
  position: absolute;
  top: 52%;    
  left: 50%;    
  width: 820px; 
  transform: translate(-50%, -50%);
  z-index: 999;
  pointer-events: none;
}

.monitor-sticker {
  height: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .monitor-sticker {
    display: none;
  }

  .wrapper .slider input {
    pointer-events: all;
  }
  
}

@media (max-width: 768px) {
  .wrapper {
    width: 90%;
    max-width: 320px;
    aspect-ratio: 13 / 9;
  }
}


/* социални линкове */
.social-links {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
}

.social-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 4px;
  text-align: center;
  position: absolute;
  right: 13px; 
  top: -110px;
}


.social-link {
  background-color: #fff;
  color: #000;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.social-link:hover {
  transform: scale(1.2);
  background-color: #000;
  color: #fff;
}



/* Настройки - иконка и панел */
.settings-title {
  font-weight: bold;
  text-align: center;
  color: rgb(0, 0, 0);
  font-size: 16px;
  padding: 10px;
}

.settings-title i {
  margin-right: 6px;
}

.settings-toggle {
  position: fixed;
  top: 260px;
  left: 20px;
  z-index: 1001;
  background-color: #fffffff9;
  color: #000;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  animation: rotateGear 8s linear infinite;
  font-size: 60px;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  box-shadow: 0 0 14px rgba(255, 165, 0, 0.55), 0 0 30px rgba(255, 165, 0, 0.2);
}

@keyframes rotateGear {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.gear-icon {
  position: fixed;
  top: 260px;
  left: 20px;
  z-index: 1001;
  cursor: pointer;
  display: inline-block;
  font-size: 58px;
  color: #ffa500;
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 165, 0, 0.6));
  line-height: 1;
  user-select: none;
}

@media (max-width: 768px) {
  .gear-icon {
    display: none !important;
  }
}

.settings-panel {
  position: fixed;
  top: calc(260px + 60px);
  left: 20px;
  background-color: #fffffff6;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}

.settings-panel button {
  padding: 8px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .settings-toggle {
    display: none;
  }
}

.social-links {
  right: 10px !important; /* Прибира линковете отдясно */
}

.social-links .link {
  margin-right: 0; /* Премахва допълнителен отстъп ако има */
}


@media (max-width: 768px) {
  nav ul {
    width: 250px; /* 👈 фиксирана ширина на менюто */
  }

  nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    padding: 10px 15px;
    box-sizing: border-box;
  }

  nav ul li a i {
    min-width: 22px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 36px;
    padding: 0 20px;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 16px;
    padding: 0 24px;
    text-align: center;
  }
}


@media (max-width: 1192px) {
  .navbar {
    flex-wrap: wrap;
    padding: 20px;
  }

  nav {
    width: 100%;
  }

  .burger {
    display: flex;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    color: white;
    gap: 8px;
    z-index: 1001;
    position: absolute;
    top: 40px;
    right: 20px;
  }
  

  .btn {
    display: none;
  }

  .lang-vertical {
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
    align-items: center;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #111;
    padding: 20px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  #nav-menu.active ul {
    display: flex;
  }

  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    background-color: #111;
    z-index: 1010;
  } 
  

  #nav-menu.active {
    max-height: 500px; /* достатъчно голямо за всички линкове */
  }

  #nav-menu ul li a {
    font-size: 18px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
  }
}

/* Scroll-to-top button */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #ffa500;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.45);
  transition: background 0.2s, transform 0.2s;
}

#scrollTop:hover {
  background: #ff8c00;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  #scrollTop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* === PRO FOOTER === */
.footer-pro {
  background: #0a0a0a;
  border-top: 2px solid #f5a623;
  padding: 60px 40px 20px;
  color: #ccc;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-logo {
  width: 180px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 20px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #f5a623;
  border-radius: 50%;
  margin-right: 10px;
  transition: background 0.2s;
}
.footer-socials a:hover {
  background: #f5a623;
}
.footer-socials a:hover svg {
  stroke: #000;
}
.footer-col h4 {
  color: #f5a623;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #f5a623;
}
.footer-contact-list li {
  color: #ccc;
  font-size: 14px;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 20px;
  font-size: 13px;
  opacity: 0.5;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================================
   CASE STUDY PAGES
   ============================================ */
.case-study-main {
  min-height: 60vh;
  padding-bottom: 60px;
}
.case-back-wrap {
  padding: 30px 20px 0;
  text-align: center;
}
.case-back-link {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.case-back-link:hover { color: #f5a623; }
.case-hero {
  text-align: center;
  padding: 36px 20px 0;
  max-width: 1000px;
  margin: 0 auto;
}
.case-mockup {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  margin: 0 auto 36px;
  display: block;
}
.case-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.case-hero > p {
  font-size: 18px;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 300;
  line-height: 1.7;
}
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5a623;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-visit:hover {
  background: #d9901f;
  transform: scale(1.03);
}
.btn-visit-disabled {
  background: #2a2a2a;
  color: #666;
  cursor: default;
  border: 1px solid #333;
}
.btn-visit-disabled:hover {
  background: #2a2a2a;
  transform: none;
}
.case-info-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #0d0d0d;
  border-top: 2px solid #f5a623;
  border-bottom: 1px solid #222;
  margin: 50px 0 0;
  padding: 0;
}
.case-info-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid #222;
}
.case-info-item:last-child { border-right: none; }
.case-info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f5a623;
  font-weight: 700;
  margin-bottom: 8px;
}
.case-info-value {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}
@media (max-width: 640px) {
  .case-hero h1 { font-size: 26px; }
  .case-hero > p { font-size: 15px; }
  .case-info-item {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #222;
    padding: 20px;
  }
  .case-info-item:last-child { border-bottom: none; }
  .btn-visit { font-size: 15px; padding: 12px 22px; }
}

/* ============================================
   PROJECT GRID REDESIGN
   ============================================ */
.projects-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) {
  .projects-grid-new { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid-new { grid-template-columns: 1fr; gap: 20px; }
}
.project-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.project-card:hover {
  transform: scale(1.03);
  border-color: #f5a623;
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 20px;
}
.project-card-body h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 8px;
}
.project-badge {
  display: inline-block;
  background: #f5a623;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.project-badge-demo {
  background: #333;
  color: #888;
}
.btn-view-project {
  display: inline-block;
  color: #f5a623;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #f5a623;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-view-project:hover {
  background: #f5a623;
  color: #000;
}
.filter-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: #f5a623;
  color: #f5a623;
  background: rgba(245,166,35,0.05);
}
.filter-btn.active {
  background: #f5a623;
  border-color: #f5a623;
  color: #000;
  font-weight: 700;
}
@media (max-width: 480px) {
  .filter-btn { padding: 7px 14px; font-size: 13px; }
  .project-card img { height: 180px; }
}

/* ============================================
   GLOBAL MOBILE FIXES — applied to all pages
   ============================================ */
@media (max-width: 768px) {

  /* No horizontal scroll on any element */
  *, *::before, *::after {
    max-width: 100%;
  }

  /* Footer */
  .footer-pro {
    padding: 40px 20px 20px;
  }
  .footer-top {
    gap: 24px;
  }
  .footer-bottom {
    padding-top: 16px;
    font-size: 12px;
  }

  /* Section paddings */
  .pricing-section {
    padding: 40px 20px;
  }
  .calc-section {
    padding: 40px 20px 60px;
  }
  .how-section {
    padding: 20px 20px 50px;
  }
  .mockup-section {
    padding: 40px 20px;
  }
  .about-hero {
    padding: 40px 20px;
  }
  .contact-section,
  .contact-form-section {
    padding: 40px 20px;
  }
  .case-study-main {
    padding-bottom: 40px;
  }
  .case-back-wrap {
    padding: 20px 20px 0;
  }
  .case-hero {
    padding: 24px 20px 0;
  }
  .pricing-tabs-outer {
    padding: 20px 10px 0;
  }

  /* Container */
  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Glow cards on index */
  .glow-container {
    padding: 0 16px;
  }

  /* Navbar */
  .navbar {
    padding: 20px;
  }

  /* Prevent wide elements from overflowing */
  .calc-card {
    max-width: 100%;
  }
  .monitor-mockup {
    max-width: 100%;
  }
  .case-mockup {
    max-width: 100%;
    border-radius: 8px;
  }

  /* Info bar on case study pages */
  .case-info-bar {
    margin: 30px 0 0;
  }
}

/* Project row image — always constrained */
.project-row-img {
  min-width: 0;
  overflow: hidden;
}

.project-row-img img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .project-row-img {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .browser-mockup {
    transform: none !important;
    width: 100%;
    max-width: 100%;
  }
  .project-row-img img {
    transform: none !important;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .social-links {
    display: none !important;
  }
}
