/* ========================================
   ENDLEZ INTERIORS - CUSTOM STYLES & ANIMATIONS
   ======================================== */

/* Color Tokens */
:root {
  --color-bg: #F4E6D7;
  --color-text-dark: #45403D;
  --color-text-black: #100E0E;
  --color-accent-brown: #fc703c;
  --color-accent-light: #CABEB6;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-primary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background-color: var(--color-accent-brown);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-text-black);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(161, 137, 119, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background-color: transparent;
  color: var(--color-accent-brown);
  border: 2px solid var(--color-accent-brown);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--color-accent-brown);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(161, 137, 119, 0.3);
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.nav-bar {
  position: sticky;
  height: 5rem; /* 20 * 0.25rem */
  top: 0;
  z-index: 50;
  background-color: #F5EBDD;
  border-bottom: 1px solid rgba(202, 190, 182, 0.3);
  backdrop-filter: blur(4px);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-dark);
  transition: var(--transition-smooth);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link.active {
  color: var(--color-text-black);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  background: var(--color-accent-brown);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-brown);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent-brown);
}

/* ========================================
   WHY-CARDS
   ======================================== */

/* CARD 8: BORDER ANIMATION */
.why-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fc703c, #d95728);
  transition: width 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: #fc703c;
}

.why-card:hover::after {
  width: 100%;
}

/* ========================================
   SERVICE CARDS
   ======================================== */


/* CARD 1: SOFT LIFT WITH SHADOW */
.service-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   PORTFOLIO ITEMS
   ======================================== */

.portfolio-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

/* Hover overlay (shows on image only) */
.portfolio-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 2;
}

.portfolio-image:hover .portfolio-hover-overlay,
.portfolio-image:focus-visible .portfolio-hover-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}

.portfolio-view-btn {
  background: var(--color-accent-brown);
  color: white;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.portfolio-image:hover .portfolio-view-btn,
.portfolio-image:focus-visible .portfolio-view-btn {
  transform: translateY(0px);
}

/* Shared lightbox */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.portfolio-lightbox[aria-hidden="false"] {
  display: block;
}

.portfolio-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.portfolio-lightbox__panel {
  position: relative;
  width: min(1100px, calc(100vw - 32px));
  margin: 40px auto;
  top: 0;
  background: transparent;
}

.portfolio-lightbox__close {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.portfolio-lightbox__imageWrap {
  display: flex;
  justify-content: center;
}

.portfolio-lightbox__img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.portfolio-lightbox__video {
  width: 100%;
  max-height: 75vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: none;
  object-fit: contain;
  background: #000;
}


.portfolio-lightbox__controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 200px;


  display: flex;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
  z-index: 2010;
  padding: 0 16px;
}


.portfolio-lightbox__btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
}

.portfolio-lightbox__btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* ========================================
   PORTFOLIO ITEMS (existing) 
   ======================================== */

.portfolio-item {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(3, 3, 3, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  will-change: transform;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent-brown) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.portfolio-item:hover::before {
  opacity: 0.08;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 10px 20px rgba(0, 0, 0, 0);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
  border: 2px solid white;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   PROCESS STEPS
   ======================================== */

.process-step {
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(161, 137, 119, 0.15);
}

.process-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: #fc703c;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

/* ========================================
   CONTACT CARD
   ======================================== */

.contact-card {
  background: linear-gradient(135deg, rgba(244, 230, 215, 0.7) 0%, rgba(202, 190, 182, 0.3) 100%);
  border: 1px solid var(--color-accent-light);
  border-radius: 1rem;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.contact-card input,
.contact-card textarea {
  font-family: 'Poppins', sans-serif;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: var(--color-text-black);
  opacity: 0.6;
}


/* ========================================
   ANIMATIONS
   ======================================== */

/* Fade in animations for hero section */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 0.6s ease 0.2s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.6s ease 0.4s forwards;
  opacity: 0;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 0.6s ease 0.6s forwards;
  opacity: 0;
}

/* Scroll animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Float animation for about image */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

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

/* Mobile menu toggle (hidden by default) */
#mobile-menu {
  transition: var(--transition-smooth);
  max-height: 500px;
}

#mobile-menu.hidden {
  max-height: 0;
  overflow: hidden;
}

/* Tablet and below */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .service-card {
    padding: 2rem;
  }

  .process-number {
    font-size: 2.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .portfolio-image {
    height: 200px;
  }
}

/* Mobile specific */
@media (max-width: 640px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 1rem 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .service-card,
  .process-step {
    padding: 1.5rem;
  }

  .portfolio-item {
    flex-direction: column;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  .portfolio-image {
    height: 180px;
  }

  .portfolio-content {
    padding: 1.5rem;
  }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-brown);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-black);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
   
/* Text animations */
.fade-up {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent-brown) 0%, var(--color-text-black) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
    SECTION A
    ======================================== */
.section-a {
  padding: 5rem 1.25rem;
  background-color: #2A2529;
}

.section-a .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-a .section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: #fc703c;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-a .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.section-a .section-description {
  font-size: 1.125rem;
  color: #9CA3AF;
  max-width: 42rem;
  margin: 0 auto;
}

.section-a .social-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #9CA3AF;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
  font-weight: 500;
  font-size: 0.95rem;
}

.section-a .social-link:hover {
  border-bottom-color: var(--color-accent-brown);
  color: #9CA3AF;
}

/* ========================================
    SECTION B
    ======================================== */
.section-b {
  padding: 5rem 1.25rem;
  background-color: #F3F0E7;
}

.section-b .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-b .section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: #fc703c;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-b .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #100E0E;
  margin-bottom: 1rem;
}

.section-b .section-description {
  font-size: 1.125rem;
  color: #45403D;
  max-width: 42rem;
  margin: 0 auto;
}

.section-b .social-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #45403D;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
  font-weight: 500;
  font-size: 0.95rem;
}

.section-b .social-link:hover {
  border-bottom-color: var(--color-accent-brown);
  color: #45403D;
}

/* ========================================
    DOUBLE BORDER CONTAINER
    ======================================== */
    
    .card-double-border {
      background: #ffffff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid #e5e7eb;
      position: relative;
      display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card-double-border::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid #fc703c;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-double-border:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-double-border:hover::before {
  opacity: 1;
}

/* ========================================
    SOCIAL ICON LINK
    ======================================== */
    
    .social-icon-link {
      color: #9CA3AF;
  transition: color 0.3s;
}

.social-icon-link:hover {
  color: #fc703c;
}

.social-icon-link svg {
  transition: transform 0.3s;
}

.social-icon-link svg:hover {
  transform: scale(1.25);
}

/* ========================================
    FAQ ITEM
    ======================================== */
    
    .faq-item {
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .faq-item:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .faq-toggle {
      cursor: pointer;
      user-select: none;
    }
    
    .faq-content {
      transition: max-height 0.3s ease-out;
    }
    
    .faq-icon {
      flex-shrink: 0;
      transition: transform 0.3s ease-out;
    }
    
    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .faq-item {
        border-radius: 8px;
      }
      
      .faq-toggle {
        padding: 16px;
      }
      
      .faq-toggle h3 {
        font-size: 16px;
      }
    }

/* ========================================
    TESTIMONIALS CAROUSEL
    ======================================== */

.carousel-wrapper {
  position: relative;
  padding: 40px 60px;
}

.carousel-container {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.carousel-track.animating {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 0 20px;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

@media (max-width: 1023px) {
  .testimonial-card {
    height: 650px;
  }

  .testimonial-text {
    flex-grow: 1;
  }
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--text-accent);
}

.stars-container {
  margin-bottom: 24px;
}

.stars {
  font-size: 28px;
  color: #FFC107;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.author-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-dark);
  margin: 0 0 6px 0;
}

.author-role {
  font-size: 14px;
  color: var(--text-accent);
  margin: 0;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

@media (max-width: 768px) {

  .carousel-wrapper {
    padding: 20px 20px;
  }

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

  .testimonial-card {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    padding: 15px 15px;
  }

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

  .testimonial-card {
    padding: 24px;
  }
}