/* ========== BASE ========== */
main {
  padding-top: 100px;
}

.motion-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  gap: 28px;
}

.motion-wrapper h1 {
  text-align: center;
  font-weight: 700;
  color: var(--main-black);
  line-height: 1.2;
  font-size: clamp(1.8rem, 2vw + 1rem, 3rem);
}

.motion-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: var(--main-gray);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ========== MINIMAL ICON STYLING ========== */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.02);
    border: 1px solid rgba(10, 10, 10, 0.08);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--main-black);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: rgba(230, 183, 116, 0.05);
    border-color: rgba(230, 183, 116, 0.3);
    transform: scale(1.05);
}

.service-item:hover .service-icon svg {
    stroke: var(--main-gold);
}

/* ========== CARD CONTAINER ========== */
.motion-card {
  background: #fff;
  border: 1px solid var(--secondary-gray);
  border-radius: 20px;
  box-shadow: rgba(5, 46, 22, 0.06) 0 8px 24px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

/* ========== CAROUSEL ========== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

/* ========== UPDATED SLIDE LAYOUT - VERTICAL STACK ========== */
.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

/* Video container */
.slide video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  display: block;
}

/* ========== UPDATED VIDEO CAPTIONS - BENEATH VIDEO ========== */
.video-info {
  padding: 20px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--secondary-gray);
}

.video-info h4 {
  font-size: 1.3rem;
  color: var(--main-black);
  margin-bottom: 8px;
  font-weight: 600;
}

.video-info p {
  color: var(--main-gray);
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.project-tag {
  display: inline-block;
  background: var(--main-gold);
  color: var(--main-black);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========== NAVIGATION ========== */
.carousel-nav {
  position: absolute;
  top: 50%; 
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex; 
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.5rem;
  color: var(--main-black);
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
  line-height: 1; 
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.prev { left: 14px; }
.next { right: 14px; }

/* ========== DOTS / PAGINATION ========== */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  flex-wrap: wrap;
}

.dot {
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: #dfe7ee;
  transition: width 0.3s ease, background 0.3s ease;
}

.dot.active {
  width: 42px;
  background: var(--main-button-colour);
}

/* ========== HERO SECTION ========== */
.motion-hero {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(230, 183, 116, 0.05) 0%, rgba(216, 162, 79, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 60px;
}

.motion-hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--main-black) 0%, var(--main-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio-section {
    margin-bottom: 80px;
}

.portfolio-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--main-black);
}

.section-subtitle {
    text-align: center;
    color: var(--main-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== CAROUSEL HEADER ========== */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.carousel-header h3 {
    font-size: 1.4rem;
    color: var(--main-black);
    margin: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slide-counter {
    font-weight: 600;
    color: var(--main-gray);
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    margin-bottom: 80px;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--main-black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--secondary-gray);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--main-gold);
}

.service-item h4 {
    font-size: 1.3rem;
    color: var(--main-black);
    margin-bottom: 16px;
    font-weight: 600;
}

.service-item p {
    color: var(--main-gray);
    line-height: 1.6;
}

/* ========== PROCESS SECTION ========== */
.process-section {
    margin-bottom: 80px;
    text-align: center;
}

.process-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--main-black);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--secondary-gray);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--main-gold);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(230, 183, 116, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.process-step h4 {
    font-size: 1.3rem;
    color: var(--main-black);
    margin-bottom: 16px;
    font-weight: 600;
    text-align: left;
}

.process-step p {
    color: var(--main-gray);
    line-height: 1.6;
    text-align: left;
}

/* ========== FINAL CTA ========== */
.final-cta-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(230, 183, 116, 0.08) 0%, rgba(216, 162, 79, 0.08) 100%);
    border-radius: 20px;
    margin-top: 40px;
}

.final-cta-section h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--main-black);
    font-weight: 700;
}

.final-cta-section p {
    font-size: 1.2rem;
    color: var(--main-gray);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    background: var(--main-gold);
    color: var(--main-black);
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--main-gold);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 183, 116, 0.4);
    color: var(--main-black);
}

.cta-secondary {
    background: transparent;
    color: var(--main-black);
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--main-gold);
}

.cta-secondary:hover {
    background: var(--main-gold);
    transform: translateY(-2px);
    color: var(--main-black);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--main-gold);
    color: var(--main-black);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(230, 183, 116, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 183, 116, 0.4);
}

/* ========== ANIMATIONS ========== */
.title-pop-animation {
    animation: pop-in 0.8s ease-out forwards;
}

@keyframes pop-in {
    0% { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}



/* ========== RESPONSIVE DESIGN ========== */

/* Tablets */
@media (max-width: 1024px) {
    .motion-wrapper {
        padding: 40px 40px 70px;
    }

    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }

    .dot {
        width: 22px;
    }

    .dot.active {
        width: 32px;
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .motion-wrapper {
        padding: 30px 20px 60px;
    }

    .motion-wrapper h1 {
        font-size: 2rem;
    }

    .motion-intro {
        font-size: 1rem;
        padding: 0 10px;
    }

    .carousel-nav {
        width: 34px;
        height: 34px;
    }

    .motion-card {
        padding: 16px;
    }

    .motion-hero {
        padding: 60px 20px;
    }

    .carousel-header {
        flex-direction: column;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .final-cta-section {
        padding: 60px 20px;
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    /* Mobile caption adjustments */
    .video-info {
        padding: 16px;
    }

    .video-info h4 {
        font-size: 1.2rem;
    }

    .video-info p {
        font-size: 0.95rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .motion-wrapper {
        gap: 20px;
    }

    .motion-wrapper h1 {
        font-size: 1.65rem;
    }

    .motion-intro {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .dot {
        width: 18px;
        height: 5px;
    }

    .dot.active {
        width: 24px;
    }

    .motion-card {
        border-radius: 16px;
        padding: 12px;
    }

    .carousel-nav {
        width: 34px;
        height: 34px;
    }

    .dot {
        width: 22px;
    }

    .dot.active {
        width: 32px;
    }

    .prev { left: 8px; }
    .next { right: 8px; }

    /* Small mobile caption adjustments */
    .video-info {
        padding: 12px 15px;
    }

    .video-info h4 {
        font-size: 1.1rem;
    }

    .video-info p {
        font-size: 0.9rem;
    }

    .project-tag {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

