main {
    padding-top: var(--header-height);
    color: var(--title-color);
    background-color: var(--section-color);
}

/* HERO PORTFOLIO */
#hero-portfolio {
    padding: 2rem 2%;
    /*margin-right: 2rem;*/
    /* previously: margin-right: 20px; */
}


/* Mobile fix */
@media (max-width: 768px) {
    main {
        padding-top: calc(var(--header-height) - 1rem);
    }
}


.section-title {
    text-align: center;
    margin: 60px 0 20px;
}

.section-title h1 {
    /* font-family: cursive; 
    font-size: 38px;
    color: var(--title-color); */

    color: var(--title-color);
    font-size: 2.5rem;
    font-weight: var(--font-semi-bold);
    

}

.section-title p {
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    line-height: 1.7;
}

.slider-wrapper {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.curved-slider {
    position: relative;
    width: 250px;
    height: 350px;
}

.slider-card {
    position: absolute;
    width: 220px;
    height: 320px;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.6s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.slider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    text-align: center;
    margin-top: 15px;
}

.card-title h6 {
    font-weight: 600;
}

.card-title span {
    font-size: 13px;
    color: var(--text-color);
}

.dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background: var(--title-color);
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background: #1DC9A9; 
}

/* ===============================
   Responsive CSS for Small Screens
================================= */

/* Small laptops / tablets */
@media screen and (max-width: 1024px) {
    .section-title {
        margin: 50px 0 15px;
    }

    .section-title h1 {
        font-size: 32px;
    }

    .slider-wrapper {
        height: 400px;
    }

    .curved-slider {
        width: 220px;
        height: 300px;
    }

    .slider-card {
        width: 200px;
        height: 290px;
        border-radius: 20px;
    }

    .card-title h6 {
        font-size: 16px;
    }

    .card-title span {
        font-size: 12px;
    }
}

/* ================= TABLETS (≤ 991px) ================= */
@media (max-width: 991px) {

  .section-title h1 {
    font-size: 2rem;
  }

  .slider-wrapper {
    height: 400px;
  }

  .curved-slider {
    width: 220px;
    height: 320px;
  }

  .slider-card {
    width: 200px;
    height: 280px;
  }
}

/* Large mobiles / small tablets */
@media screen and (max-width: 768px) {
  #hero-portfolio {
    padding: 2rem 3%;
  }

    .section-title {
        margin: 40px 0 10px;
    }

    .section-title h1 {
        font-size: 28px;
    }

    .slider-wrapper {
        height: 350px;
    }

    .curved-slider {
        width: 180px;
        height: 250px;
    }

    .slider-card {
        width: 160px;
        height: 230px;
        border-radius: 15px;
    }

    .card-title h6 {
        font-size: 14px;
    }

    .card-title span {
        font-size: 11px;
    }

    .dots {
        margin-top: 15px;
    }

    .dot {
        height: 8px;
        width: 8px;
    }
}

/* ================= TABLETS (≤ 991px) ================= */
@media (max-width: 991px) {

  .section-title h1 {
    font-size: 2rem;
  }

  .slider-wrapper {
    height: 400px;
  }

  .curved-slider {
    width: 220px;
    height: 320px;
  }

  .slider-card {
    width: 200px;
    height: 280px;
  }
}


/* ================= MOBILE (≤ 768px) ================= */
@media (max-width: 768px) {

  #hero-portfolio {
    padding: 2rem 3%;
  }

  .section-title {
    margin: 40px 0 20px;
  }

  .section-title h1 {
    font-size: 1.6rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .slider-wrapper {
    height: 320px;
  }

  .curved-slider {
    width: 180px;
    height: 260px;
  }

  .slider-card {
    width: 160px;
    height: 240px;
    border-radius: 15px;
  }
}


/* ================= SMALL MOBILE (≤ 576px) ================= */
@media (max-width: 576px) {

  .section-title h1 {
    font-size: 1.4rem;
  }

  .slider-wrapper {
    height: 280px;
  }

  .curved-slider {
    width: 150px;
    height: 220px;
  }

  .slider-card {
    width: 140px;
    height: 200px;
  }
}


/* Small mobiles */
@media screen and (max-width: 480px) {
    .section-title {
        margin: 30px 0 5px;
    }

    .section-title h1 {
        font-size: 24px;
    }

    .slider-wrapper {
        height: 300px;
    }

    .curved-slider {
        width: 150px;
        height: 210px;
    }

    .slider-card {
        width: 130px;
        height: 190px;
        border-radius: 12px;
    }

    .card-title h6 {
        font-size: 13px;
    }

    .card-title span {
        font-size: 10px;
    }

    .dots {
        margin-top: 10px;
    }

    .dot {
        height: 6px;
        width: 6px;
    }
}


/* ============  SECTION FILTER ============ */

#portfolio-filter{

    padding: 1rem 2%;
   /* margin-right: 2rem;*/
}

.section-title {
    text-align: center;
    margin: 60px 0 20px;
}

.section-title h2 {
   /* font-family: cursive;
    font-size: 36px;
    color: var(--title-color); */

    color: var(--title-color);
    font-size: 2.5rem;
    font-weight: var(--font-semi-bold);

}
/*
.services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    /* accent teal 
}  */

.paragraph {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-color);
}


.portfolio-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1DC9A9; 
    color: var(--title-color)
}

/* ==============================
   PORTFOLIO FILTER - RESPONSIVE
============================== */

/* Medium screens / tablets */
@media (max-width: 1024px) {
    #portfolio-filter {
        padding: 1rem 3%;
    }

    .section-title {
        margin: 50px 0 15px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .paragraph {
        font-size: 0.95rem;
        max-width: 700px;
    }

    .filter-btn {
        padding: 9px 18px;
        margin: 4px;
        font-size: 0.95rem;
    }
}

/* Small tablets / large mobiles */
@media (max-width: 768px) {
    #portfolio-filter {
        padding: 1rem 2.5%;
    }

    .section-title {
        margin: 40px 0 10px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .paragraph {
        font-size: 0.9rem;
        max-width: 600px;
    }

    .filter-btn {
        padding: 8px 16px;
        margin: 3px;
        font-size: 0.9rem;
    }
}

/* Small mobiles */
@media (max-width: 480px) {
    #portfolio-filter {
        padding: 1rem 2%;
    }

    .section-title {
        margin: 30px 0 8px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .paragraph {
        font-size: 0.85rem;
        max-width: 90%;
    }

    .filter-btn {
        padding: 7px 14px;
        margin: 2px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    #portfolio-filter {
        padding: 0.8rem 2%;
    }

    .section-title {
        margin: 25px 0 5px;
    }

    .section-title h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .paragraph {
        font-size: 0.8rem;
        max-width: 95%;
        line-height: 1.5;
    }

    .filter-btn {
        padding: 6px 12px;
        margin: 2px;
        font-size: 0.8rem;
    }
}


/* ==============================
       PORTFOLIO GRID
============================== */

/* GRID */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
}

/* CARD */
.portfolio-card {
    perspective: 1000px;
}

/* INNER */
.card-inner {
    position: relative;
    width: 100%;
    height: 350px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.portfolio-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* FRONT & BACK */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backdrop-filter: blur(15px);
  /*  background: rgba(255, 255, 255, 0.05); */
    background: var(card-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backface-visibility: hidden;
    overflow: hidden;
}

/* FRONT: IMAGE */
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-front .custom-h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--text-color);
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
  
}

/* BACK */
.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.card-back .custom-h4 {
    margin-bottom: 0.5rem;
    color: var(--title-color);
    font-size: 2rem;
    font-weight: 700;
}

.card-back p {
    margin-bottom: 1rem;
    color: var(--text-color);
    padding: 8px 20px;
}

.card-back a {
    padding: 8px 20px;
    border-radius: 25px;
    background: #1DC9A9;
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.card-back a:hover {
    background: #15b297;
    color: var(--title-color);
}


/* NEON GLOW */
.portfolio-card:hover {
    box-shadow: 0 0 20px #1DC9A9; ;
}

/* ==============================
   PORTFOLIO  & CARD BACK RESPONSIVE
============================== */

/* Small laptops / tablets */
@media (max-width: 1024px) {
    .card-back .custom-h4 {
        font-size: 1.8rem;
    }

    .card-back p {
        font-size: 0.95rem;
        padding: 6px 15px;
    }

    .card-back a {
        padding: 6px 15px;
        font-size: 0.95rem;
    }
}


/* Large mobiles / small tablets */
@media (max-width: 768px) {
    .card-back .custom-h4 {
        font-size: 1.6rem;
    }

    .card-back p {
        font-size: 0.9rem;
        padding: 5px 12px;
    }

    .card-back a {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
}


/* Extra small mobiles */
@media (max-width: 480px) {
    .card-back .custom-h4 {
        font-size: 1.3rem;
    }

    .card-back p {
        font-size: 0.85rem;
        padding: 4px 10px;
    }

    .card-back a {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-inner {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
    .card-inner {
        height: 250px;
    }
}

/* Extra small devices (<360px) */
@media (max-width: 360px) {
    .card-inner {
        height: 220px;
    }

    .card-back p {
        font-size: 0.8rem;
    }

    .card-back a {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}


/* ================= CONTACT CTA ================= */
.portfolio-contact-cta {
  /*  padding: 1.5rem 5%; */
  padding: 3rem 5% 5% 5%;
  margin-top: 0%;
  text-align: center;
  border-radius: 20px;
  margin: 0.5rem auto;
  max-width: 1000px;
}

/* TITLE */
.portfolio-contact-cta h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* TEXT */
.portfolio-contact-cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

/* BUTTON */
.portfolio-contact-cta .btn {
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 30px;
  transition: 0.3s ease;
  background: #1DC9A9;
  color: var(--text-color);
}


/* HOVER */
.portfolio-contact-cta .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 20px rgba(29, 201, 169, 0.5);
  color: var(--title-color);
}

/* ================= RESPONSIVE: CONTACT CTA ================= */

/* Large tablets / small laptops */
@media (max-width: 991px) {
  .portfolio-contact-cta {
    padding: 2.5rem 4%;
    max-width: 90%;
  }
  .portfolio-contact-cta h3 {
    font-size: 1.8rem;
  }
  .portfolio-contact-cta p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .portfolio-contact-cta .btn {
    padding: 11px 28px;
    font-size: 0.95rem;
  }
}

/* Medium tablets / large phones */
@media (max-width: 768px) {
  .portfolio-contact-cta {
    padding: 2rem 3%;
    max-width: 95%;
  }
  .portfolio-contact-cta h3 {
    font-size: 1.6rem;
  }
  .portfolio-contact-cta p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  .portfolio-contact-cta .btn {
    padding: 10px 26px;
    font-size: 0.9rem;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .portfolio-contact-cta {
    padding: 1.5rem 2%;
    border-radius: 15px;
  }
  .portfolio-contact-cta h3 {
    font-size: 1.4rem;
  }
  .portfolio-contact-cta p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .portfolio-contact-cta .btn {
    padding: 8px 22px;
    font-size: 0.85rem;
  }
}

/* Extra small phones / tiny screens */
@media (max-width: 375px) {
  .portfolio-contact-cta {
    padding: 1rem 1.5%;
    border-radius: 12px;
  }
  .portfolio-contact-cta h3 {
    font-size: 1.2rem;
  }
  .portfolio-contact-cta p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }
  .portfolio-contact-cta .btn {
    padding: 7px 18px;
    font-size: 0.8rem;
  }
}


/* ===================== Chat Button ========================== */

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1DC9A9;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
}

/* Chat Box */
#chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Header */
.chat-header {
  background: #1DC9A9;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

.chat-header button {

  border: none;
  background: none;

  color: white;
}

/* Body */
.chat-body {
  padding: 10px;
  height: 250px;
  overflow-y: auto;
}

.bot-message {
  background: #f1f1f1;
  padding: 8px;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 5px;
}

.user-message {
  background: #1DC9A9;
  color: #fff;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  margin-bottom: 5px;
  text-align: right;
}

/* Footer */
.chat-footer {
  display: flex;
}

.chat-footer input {
  flex: 1;
  border: none;
  padding: 10px;
}

.chat-footer button {
  background: #1DC9A9;
  color: #fff;
  border: none;
  padding: 10px;
}