/* ==========================================================================
   FULL CSS – POLIFORM-INSPIRED HERO WITH LUXURIOUS STARRY/NIGHT AESTHETIC
   Images resize perfectly on phones, keep original design proportions
   ========================================================================== */
:root {
--contact-text: #000000;  /* black */
--contact-text: #111827; /* dark slate */
--contact-text: #671e9c86; /* white */
   /* softer text */
}



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

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
 
body {
  font-family: 'Georgia', serif;
  background: #000;
  color: #131212;
  line-height: 1.6;
}


/* Images fit phones perfectly */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* Extra safety: block any default long-press behavior */


/* Starry background – same as main site (add divs in HTML if needed) */
.stars, .stars2, .stars3 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  z-index: -10;
  filter: blur(0.5px);
}

.stars {
  background-image: radial-gradient(circle at 20px 30px, #fff 1px, transparent 1px),
                    radial-gradient(circle at 80px 70px, #ddd 1px, transparent 1px);
  background-size: 150px 150px;
  opacity: 0.4;
  animation: drift 120s linear infinite;
}

.stars2 {
  background-image: radial-gradient(circle at 150px 100px, #fff 1.2px, transparent 1.2px),
                    radial-gradient(circle at 250px 180px, #eee 1.2px, transparent 1.2px);
  background-size: 220px 220px;
  opacity: 0.3;
  animation: drift 180s linear infinite reverse;
}

.stars3 {
  background-image: radial-gradient(circle at 300px 200px, #fff 1.5px, transparent 1.5px);
  background-size: 350px 350px;
  opacity: 0.2;
  animation: drift 240s linear infinite;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(100px, 100px); }
}


/* Hero Header – Poliform-inspired, reduced image size */
/* Hero header – make sure background is behind overlays/content */
.hero-header {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;

  /* Hero background image – fills full screen */
  background-image: url("images/entire_home_renovation_a.png");
  background-repeat: no-repeat;
  background-attachment: fixed;     /* Optional: subtle parallax feel on scroll */
  animation: subtleShift 80s ease-in-out infinite;
}
/* Gentle position shift – makes edges feel less "cut off" */
@keyframes subtleShift {
  0%, 100% { background-position: center 100%; background-size: 105%; }
  20%      { background-position: center 10%; background-size: 108%; }
}

/* === Curtain / framing effect: dark soft sides like draped curtains === */
.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;                           /* above bg, below content/nav */
  pointer-events: none;

  background-image:
    /* Horizontal curtains: dark fade from sides toward center */
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.75) 0%,           /* strong left "curtain" */
      transparent 25%,                   /* fade to center */
      transparent 75%,
      rgba(0, 0, 0, 0.75) 100%          /* strong right "curtain" */
    ),
    /* Optional extra center focus (soft vignette) */
    radial-gradient(
      ellipse at 50% 50%,
      transparent 40%,
      rgba(0, 0, 0, 0.4) 80%
    );
}

.hero-header::before {

  z-index: 1;                           /* above bg, below content/nav */


}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.65));
  z-index: 2;
  pointer-events: none;
}

.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 3%;
  z-index: 10;
  background: transparent;
  white-space: nowrap;

}


/* Logo – Image on left, smaller on large screens */
.logo {
  flex-shrink: 0;
}

.logo-img {
  
  height: 10vh;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
  transform: scale(1.08);
  opacity: 0.95;
}
/* Nav Menu – Always on right, no cutoff on mobile */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-menu a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a:hover {
  color: #fff;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}



.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 5% 10% 5%;
  color: white;
  text-align: center;
  pointer-events: auto;
}




/* Hero title stays fixed in place — never moves */
.hero-title {
  position: relative;           /* or absolute if needed */
  z-index: 5;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: clamp(3rem, 10vw, 6rem);
  pointer-events: auto;
}

/* Wrapper for description box and video thumbnail */
.description-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 60%;
  align-self: flex-start;
  position: relative;
}

/* Description box */
.description-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(px);
  padding: 2rem;
  border-radius: 20px;
  flex: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
}

.description-box p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #eee;
}

.view-more-btn {
  display: inline-block;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.view-more-btn:hover {
  background: rgba(208, 73, 236, 0.7);
}


/* Video thumbnail */
.video-thumbnail {
  width: 200px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  position: relative;
  flex-shrink: 0;
  margin-top: 2rem; /* Slight offset for visual interest */
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
}
/* The video itself – key fixes here */
/* Video container – appears fixed/absolute on large screens */
#inline-video {
  display: none;
  width: 90%;
  max-width: 1100px;
  height: auto;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.9);
  background: #000;
  position: relative;
  z-index: 1000;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Close button – created by JS, positioned top-right of screen */
/* Close button – positioned top-right of the VIDEO itself */
/* Close button – top-right of the VIDEO frame */
.video-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 25px;
  height: 30px;
  background: rgb(53, 63, 69);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1010;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
/* When video is visible – show close button */
/* Show close button only when video is visible */
#inline-video[style*="display: block"] + .video-close-btn,
.video-container.video-open .video-close-btn {
  display: flex;
}

.video-close-btn:hover {
  background: rgb(170, 0, 204);
  transform: scale(1.1);
}
/* Show close button when video is visible */
.video-container.video-open .video-close-btn {
  display: flex;
}
.video-container.video-open::after { /* use ::after instead of ::before if you want */
  content: "";
  position: relative;              /* ← key: fixed to viewport, not relative */
  inset: 0;                     /* full screen */
  background: rgba(0, 0, 0, 0.88);
  z-index: 900;                 /* behind video & close button */
  pointer-events: auto;         /* clicks are detected here */
}

/* Circular text on right */
.circular-text {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 150px;
  height: 150px;
  animation: rotate-text 20s linear infinite; /* Optimized animation: Added slow rotation for visual interest */
  will-change: transform; /* Optimization: Hint to browser for hardware acceleration */
  transform-origin: center center;
}

.circular-text svg {
  width: 100%;
  height: 100%;
  fill: none;
}

.circular-text text {
  fill: #ddd;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

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

/* Container & Titles */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 6%;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(4.5rem, 10vw, 11rem);
  font-weight: 300;
  color: #c00;
  text-align: center;
  margin-bottom: 4.5rem;
  letter-spacing: -0.02em;
}

/* About Us – Large image left + text right */
.about-us {
  padding: 120px 0;
  background: transparent !important;
  position: relative;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.about-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 80px;
  background: transparent !important;
  background-color: transparent !important;
}

.about-image {
  flex: 1;
  max-width: 55%;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.5);
  position: relative; /* For absolute positioning of circular text */
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}
.about-image img {
  transition: transform 2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 2s ease;
}

.about-image:hover .about-image img {
  transform: scale(1.05);
  filter: brightness(1.06) contrast(1.1);
}


/* Optional: slight zoom on hover for premium feel */
.about-image:hover .about-image img {
  transform: scale(1.05);
  transition: transform 4.8s ease;
}


/* About-specific circular text: On image for large, next to for small */
.about-image .about-circular-text {
  position: absolute;
  bottom: 10%;
  right: 5%;
  z-index: 1;
  width: 150px;
  height: 150px;
  animation: rotate-text 20s linear infinite; /* Optimized animation: Added slow rotation for visual interest */
  will-change: transform; /* Optimization: Hint to browser for hardware acceleration */
  transform-origin: center center;
}

.about-image .about-circular-text svg {
  width: 100%;
  height: 100%;
  fill: none;
}

.about-image .about-circular-text text {
  fill: #ddd;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.about-text h2 {
  font-size: clamp(5rem, 8vw, 9rem);
  font-weight: 300;
  color: #c00;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.about-text p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Portfolio Before/After Slider – UNCHANGED */
 
/* Main Gallery Grid – Transparent + subtle dark shadow */
.gallery-section {
  backdrop-filter: blur(10px);      /* premium blur effect – makes stars slightly visible */
  padding: 80px 0 120px;
  background: transparent !important;     /* No color – stars visible */
  backdrop-filter: none;                  /* No blur if you want sharp stars */
  margin-top: 60px;
  z-index: 2;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.7); /* Dark, soft shadow around whole section */
}
.featured-slider-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.55);
  height: 80vh; /* Full height for slider – unchanged */
}

.featured-slider {
  position: relative;
  width: 100%;
  height: 100%; /* Full height, removing fixed aspect-ratio for flexibility */ background: #111;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.slide-item.active {
  opacity: 1;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Featured Slider – Smooth transition on hover */
.featured-slider-wrapper {
  position: relative;
  overflow: hidden;
  transition: all 1.8s ease; /* Optional: subtle wrapper effect */
}

.featured-slider-wrapper:hover {
  /* Optional: slight lift or shadow on whole slider */
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Smooth zoom + brightness/contrast on the active slide image */
.slide-item.active img {
  transition: transform 0.8s ease, filter 0.8s ease; /* Smooth in & out */
  transform: scale(1);
  filter: brightness(1) contrast(1);
}

.featured-slider-wrapper:hover .slide-item.active img {
  transform: scale(1.05);
  filter: brightness(1.06) contrast(1.1); /* Gentle enhancement */
}


.slide-label {
  position: absolute;
  bottom: 25px;
  padding: 10px 24px;
  background: rgba(0,0,0,0.75);
  color: white;
  border-radius: 40px;
  font-size: 1.25rem;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.slide-label.before { left: 30px; }
.slide-label.after  { right: 30px; }


/* Category Filters – Top-left toggle style */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 4rem 0 3rem; /* Increased top margin – clear space from slider */
  justify-content: flex-start; /* Top-left alignment */
}

.filter-btn {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.75);
  filter: brightness(1.06);
  color: #fff;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(48,15,101,0.85), rgba(90,2,10,0.75));
  color: #fff;
  
}
/* ================================================
   FORCE FULL HEIGHT VISIBILITY FOR TALL DOOR IMAGES
   (no top/bottom crop in modal, compare, gallery)
   ================================================ */
/* ==========================================================================
   FIX COMPARE VIEW – SIDE-BY-SIDE, FIT CONTAINER, NO CROPPING / SPACE ISSUES
   ========================================================================== */

/* Container for compare split – side-by-side layout */
.compare-split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  gap: 12px;                  /* space between left & right images */
  padding: 10px 0;
  box-sizing: border-box;
}

/* Each side (Before / After) */
.compare-before,
.compare-after {
  flex: 1 1 0;                /* grow equally, but never stretch images */
  min-width: 0;               /* prevent overflow */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compare-before img,
.compare-after img {
  width: 100% !important;
  height: auto !important;
  max-height: 70vh !important;      /* ← still tall on large screens, fits screen */
  object-fit: contain !important;   /* full image visible – no crop / stretch */
  object-position: top center !important;
  display: block !important;
  margin: 0 auto 12px !important;   /* small bottom margin – buttons closer */
}

/* Labels (Before / After) – place them nicely */
.compare-before span,
.compare-after span {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 5;
}

/* Mobile: keep side-by-side but shrink more aggressively + closer buttons */
@media (max-width: 767px) {
  .compare-split {
    gap: 8px;
    padding: 8px 0 50px 0 !important;   /* reduced bottom padding – no huge empty space */
  }

  .compare-before img,
  .compare-after img {
    max-height: 55vh !important;        /* fits phone height, still shows full tall image */
    margin-bottom: 20px !important;     /* tighter bottom margin */
  }

  /* Toggle buttons – closer to images */
  .modal-toggle {
    margin-top: 30px !important;        /* much less space above buttons */
    padding: 12px 0 !important;
  }
}

/* Very small phones – maximum fit */
@media (max-width: 479px) {
  .compare-split {
    gap: 6px;
    padding-bottom: 60px !important;
  }

  .compare-before img,
  .compare-after img {
    max-height: 50vh !important;
    margin-bottom: 15px !important;
  }

  .modal-toggle {
    margin-top: 40px !important;
  }
}
/* All images in modal/carousel – full height priority */
.carousel-images img,
.modal-carousel img,
.modal-content img {
    width: auto !important;               /* narrow doors keep natural slim width */
    max-width: 100% !important;           /* never wider than screen */
    height: auto !important;              /* preserves full original height/length */
    max-height: 85vh !important;          /* fits screen height, leaves room for UI */
    object-fit: contain !important;       /* shows EVERY part of the tall door */
    object-position: center top;          /* starts from top – important for doors */
    display: block;
    margin: 10px auto;                    /* centered with breathing room */
}

/* Mobile: more generous space for tall images */
@media (max-width: 768px) {
    .carousel-images img,
    .modal-carousel img {
        max-height: 80vh !important;      /* try 85vh or 90vh if buttons overlap */
        width: auto !important;
        max-width: 95vw;                  /* tiny side margins on very narrow phones */
    }

    /* If Compare mode is side-by-side → better to stack vertically on mobile for tall doors */
    .carousel-images.compare-view img,
    .carousel-images [data-view="compare"] img {
        width: 100% !important;           /* stack one above the other */
        max-width: 100%;
        max-height: 45vh !important;      /* each gets half-ish screen height */
        margin: 15px 0;
        object-fit: contain !important;
    }

    /* Single/toggle view (Before or After alone) */
    .carousel-images:not(.compare-view) img {
        max-height: 82vh !important;
    }
}


/* Remove any cropping/overflow from parents */
.modal-content,
.modal-carousel,
.carousel-images,
.gallery-image-wrapper, 
.gallery-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;         /* allow tall images to breathe */
    padding: 10px 0;
    box-sizing: border-box;
}

/* Gallery preview card (main page) – make thumbnail taller too */
.gallery-image-wrapper {
    height: auto !important;
    min-height: 200px;                    /* adjust if cards look too short */
    padding-bottom: 10px;  
    margin-bottom: 8px !important; /* ← key: reduce space below image */               /* taller ratio for portrait doors – try 140% if needed */
}

.gallery-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;  
    /* The magic for buttery smoothness */
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);  /* natural ease-in-out feel */
    will-change: transform;            /* tells browser to optimize this animation */
    backface-visibility: hidden;       /* reduces sub-pixel flickering on some devices */
    transform: scale(1);            /* keeps full image visible */
}

/* Main Gallery Grid – UPDATED FOR SPACING ONLY */
.gallery-section {
  padding: 80px 0 120px;
  background: transparent !important;  /* ← remove any dark color */
  backdrop-filter: none;               /* ← remove blur if you want stars sharper */
  margin-top: 60px;
  z-index: 2;
}

.gallery-grid.other-project,
.gallery-card {
  background: transparent !important;   /* no dark fill */
}
.gallery-grid.other-project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; /* Increased gap for better separation and look */
}

.gallery-card {
  position: relative;                /* positioning context */
  border-radius: 8px;
  overflow: hidden;
  
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Natural smooth curve */
  box-shadow: 0 12px 30px rgba(63, 66, 53, 0.5);
  
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: scale(1);
  margin-bottom: 20px;          /* space between whole cards */
}
.gallery-card.hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
}

.gallery-card:hover {
  transform: translateY(-10px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 4 / 4;
}
/* Info section – title only */
.gallery-info {
  position: absolute;
  padding: 1rem;
  background: rgba(88, 51, 51, 0.2) !important; /* very light tint – stars still show */  color: #eee;
  flex-grow: 0;
  backdrop-filter: blur(4px); /* optional light glass effect */
  background: transparent !important;
  background-color: transparent !important;
  margin-top: 5PX !important;     /* remove any top margin */
  padding: 16px;
  text-align: center;
}

.gallery-info h3 {
  font-size: 1rem;
  padding: 0;
  margin: 0;
  color:  rgba(225, 199, 241, 0.35);       ;
  font-weight: 500;
  text-align: center;
  color: rgba(225, 199, 241, 0.9); /* your current color with better opacity */
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  transition: font-size 0.3s ease;
}
.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.08);            /* keep your zoom level */
}
/* Mobile: even tighter if needed */
@media (max-width: 768px) {
  .gallery-image-wrapper {
    margin-bottom: 8px !important;
    margin-top: 25px !important;
    border: 1px solid;

        
  }
  .gallery-card img {
    width: 100%;                   
    height: auto;
    object-fit: contain;
    aspect-ratio: 3/ 4;
  }
}
    
@media (min-width: 768px) {
  .gallery-info h3 {
    font-size: 0.9rem !important;        /* ≈22–24px – looks premium */
    line-height: 1.3;
    letter-spacing: 0.5px;
  }
}

/* Modal / Lightbox – Professional Dark Theme */
/* Modal – Full-screen overlay, centered content */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 19, 0.85);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;           /* Vertical center */
  justify-content: center;       /* Horizontal center */
  padding: 5px;
  box-sizing: border-box;
}

.modal.show {
  display: flex;
}

/* Modal content – side-by-side layout on large screens */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 1400px;             /* Wide enough for left/right layout */
  max-height: 90vh;
  background: rgba(20,20,20,0.98);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 25px 90px rgba(0,0,0,0.9);
  overflow: hidden;
  display: flex;
  flex-direction: row;           /* Left: carousel, Right: info */
}

/* Left side: Carousel / Images */
.modal-carousel {
  flex: 1;
  min-width: 50%;
  background: #000;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right side: Title + Controls */
.modal-info {
  flex: 1;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

/* Title */
#modal-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 2rem;
  color: #c00;
  font-weight: 300;
}

/* Toggle buttons */
/* Modal toggle buttons container */
.modal-toggle {
    display: flex;
    flex-wrap: nowrap;              /* prevent wrapping on small screens */
    justify-content: center;
    align-items: center;
    gap: 8px;                       /* space between buttons */
    padding: 12px 0;
    background: rgba(0,0,0,0.6);    /* optional dark bg for better contrast */
    border-radius: 0 0 12px 12px;
}

.toggle-btn {
  /* Core styles – keep your aesthetic */
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  font-size: clamp(0.9rem, 3.5vw, 1rem);     /* responsive font size */
  font-weight: 500;
  transition: all 0.3s ease;

  /* Flexible sizing */
  padding: 0.7rem 1.4rem;                     /* smaller base padding */
  min-width: 90px;                            /* never too narrow */
  max-width: 180px;                           /* prevent stretching too wide */
  width: auto;                                /* let content decide width */
  min-height: 42px;                           /* good tap target on mobile */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;                        /* prevent text wrapping */
}

/* Active / hover states – keep them visible */
.toggle-btn:hover,
.toggle-btn:focus,
.toggle-btn.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Make container flexible too (important!) */
.modal-toggle {
  display: flex;
  flex-wrap: wrap;               /* allow wrapping on very small screens */
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);    /* responsive gap */
  padding: 10px 0;
}


/* Very small screens – stack vertically if needed */

.toggle-btn.active {
  background: rgba(0,0,0,0.45);
  border-color: 1px solid rgba(255,255,255,0.10);
}

.toggle-btn:hover {
  background: rgba(116,0,170,0.28);
}
/* Mobile: even more compact if needed */
@media (max-width: 768px) {
  .toggle-btn {
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    min-width: 80px !important;
    margin: 0 4px !important;
  }
    
  .modal-toggle {
    margin-top: 20px !important;         /* reduced from 40–90px → very close now */
    padding: 10px 0 !important;
    background: rgba(0,0,0,0.85) !important;
    border-top: 1px solid rgba(255,255,255,0.12);
    min-height: 50px;
  }
    
  .carousel-images {
    margin-bottom: 40px !important;
    margin-top: 100px;


  }
  .carousel-images.compare-view img {
      max-height: 40vh !important;      /* shorter on phones */
      }
      
  .modal-carousel {
      max-height: 55vh !important;
  }
      

  .toggle-btn:hover,
  .toggle-btn:focus,
  .toggle-btn.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }   
  
    
}
/* Extra strong push-down for toggle buttons on small phones */
@media (max-width: 600px) {  /* covers most phones, including smaller ones */
  .modal-toggle {
    margin-top: 5px !important;          /* ← bigger push: more space above buttons */
    padding-top: 5px !important;         /* extra internal top space */
    padding-bottom: 10px !important;
    min-height: 70px;                     /* ensures buttons have enough height area */
  }

    /* Force more bottom space on the image/carousel area */
  .carousel-images,
  .modal-carousel,
  .modal-content .carousel-images {
      margin-bottom: 10px !important;      /* ← key: large bottom margin so images don't crowd the buttons */
      padding-bottom: 10px !important;
  }

    /* Make sure the buttons stay visible and don't get scrolled off */
  .modal-toggle {
      position: relative;
      z-index: 20;
      border-top: 2px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 -8px 25px rgba(0,0,0,0.6);
  }

  .toggle-btn {
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    min-width: 80px !important;
    margin: 0 4px !important;
  }

  .toggle-btn:hover,
  .toggle-btn:focus,
  .toggle-btn.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
}
/* Even smaller screens (e.g. older iPhones, small Androids) */
@media (max-width: 380px) {
    .modal-toggle {
        margin-top: 70px !important;
    }
    
    .carousel-images {
        margin-bottom: 120px !important;
    }
}
/* Carousel images */
.carousel-images {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
  height: 100%;
}


.carousel-image {
  min-width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: scale(0.95);
}

.carousel-image.active {
  opacity: 1;
  transform: scale(1);
}

/* Carousel arrows */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(0,0,0,0.8);
}

/* Close button – top-right of modal */
.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.modal-close:hover {
  background: #c00;
  transform: scale(1.1);
}

/* Responsive – stack vertically on mobile */
@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
    max-height: 95vh;
  }

  .modal-carousel {
    min-width: 100%;
    max-height: 50vh;
  }

  .modal-info {
    padding: 2rem 1.5rem;
  }

  .modal-toggle {
    justify-content: center;
  }
}
/* Responsive */
@media (min-width: 1200px) {
  .gallery-grid.other-project {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Luxurious spacing on large screens */
  }

  .portfolio-filters {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 1199px) {
  .gallery-grid.other-project {
    grid-template-columns: repeat(3, 1fr); /* 3 per row on medium/small */
    gap: 25px;
  }

    .portfolio-filters {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 900px) {
  /* Keep top-nav in row, reduce sizes to prevent overflow, allow horizontal scroll if needed */
  .top-nav {
    padding: 15px 3%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .logo {
    font-size: 1.2rem;
    margin-right: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    flex-shrink: 0;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    text-align: center;
  }

  .description-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    max-width: 100%;
    align-self: center;
    padding: 0 1rem;
    transition: flex-direction 0.3s ease, gap 0.3s ease;
  }

  .description-box {
    flex: 1;
    padding: 1rem;
    font-size: 0.9rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s ease;
  }

  .description-box p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .view-more-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }

  .video-thumbnail {
    width: 120px;
    height: 72px;
    margin-top: 1rem;
    flex-shrink: 0;
    transition: display 0.3s ease;
  }

  .play-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .description-wrapper.video-open {
    flex-direction: column;
    gap: 0.5rem;
  }

  .description-wrapper.video-open .description-box {
    transform: translateY(-15px);
    margin-bottom: 0.5rem;
  }

  .description-wrapper.video-open #inline-video {
    display: block !important;
    width: 100%;
    transition: opacity 0.3s ease;
    opacity: 1;
  }

  .circular-text {
    display: none;
  }

  .about-us {
    padding: 80px 0;
  }

  .about-layout {
    flex-direction: column;
    gap: 40px;
  }

  .about-image {
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .about-image .about-circular-text {
    position: absolute;
    top: 60%;
    right: 5%;
    margin: 0;
    display: block;
  }

  .about-text {
    text-align: center;
    padding: 0 15px;
  }

  .about-text h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
  }

  .about-text p {
    font-size: 1.2rem;
    max-width: 100%;
  }

  .featured-slider-wrapper {
    height: 60vh; /* Unchanged – your original mobile height */
    margin-bottom: 40px; /* Reduced for mobile */
  }

  .gallery-section {
    margin-top: 50px; /* Ensures clear gap from slider on small screens */
    padding: 60px 0 80px;
    margin-top: 60px; /* Slightly less on mobile to avoid too much empty space */
    padding-top: 60px;
    padding-bottom: 80px;
    
  }

  .gallery-grid.other-project {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .portfolio-filters {
    gap: 0.8rem;
    justify-content: flex-start; /* Still top-left, wraps if needed */
    margin-top: 8rem; /* Extra space from slider on mobile */
    margin-bottom: 8rem;
  }

  .filter-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

  .gallery-info {
    padding: 1.2rem;
  }

  .gallery-info h3 {
    font-size: 1.25rem;
  }
}
/* TEXT COLOR CONTROL */
.contact-section,
.home-contact-card {
  color: var(--contact-text);
}

.info-label,
.form-hint,
.contact-info p {
  color: var(--contact-muted);
}

a,
label,
input,
textarea {
  color: var(--contact-text);
}

.home-contact-card {
 
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  margin: 4rem auto;
  max-width: 1100px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home-contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}

.home-contact-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .home-contact-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }

  .home-contact-text {
    max-width: 55%;
  }

  .home-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 220px;
  }
}

.home-contact-text h3 {
  font-size: 2.2rem;
  font-weight: 300;
  color: rgb(135, 117, 117);
  margin-bottom: 1.2rem;
}

.home-contact-text p {
  font-size: 1.15rem;  
  color: #ddd;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.mini-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eee;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.mini-link:hover {
  color: #c00;
}

.mini-link .icon {
  font-size: 1.4rem;
  opacity: 0.8;
}

/* Buttons */
.home-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.btn-primary {
  margin-top: 0.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(48,15,101,0.85), rgba(90,2,10,0.75));
  color:#fff;
  font-size: 1.12rem;
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}


.btn-primary:hover {
  background: rgb(45, 18, 69);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(204,0,0,0.5);
}





/* WhatsApp-specific button */
/* ✅ WhatsApp section styled like a luxury CTA */
.whatsapp-section{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 1.4rem 1.8rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

.whatsapp-text{
  margin: 0 0 0.9rem;
  color:#bdbdbd;
  font-size: 1.05rem;
}

.whatsapp-btn{
  display:inline-flex;
  align-items:center;
  gap: 12px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  color:#eee;
  text-decoration:none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.whatsapp-btn img{
  width: 28px;
  height: 28px;
}

.whatsapp-btn:hover{
  background: rgba(116,0,170,0.28);
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.65);
}

/* Responsive – Clean on mobile */
@media (max-width: 768px) {
  .home-contact-card {
    padding: 2.5rem 1.8rem;
    margin: 3rem 1rem;
  }

  .home-contact-text h3 {
    font-size: 1.9rem;
  }

  .home-contact-text p {
    font-size: 1.05rem;
  }

}
/* Other sections */
.services-bar h2 {
  color: #00ff7f;           /* fallback green for the whole heading if needed */
  font-size: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  margin: 0;
  font-weight: 300;
}

/* Purple for "Our" */
.services-bar .our {
  color: purple;            /* classic purple */
  /* or use a nicer shade: #9b59b6 (amethyst) or #8e44ad (wisteria) */
}

/* Green for "Services" */
.services-bar .services {
  color: #00ff7f;           /* bright spring green */
  /* alternatives: #39ff14 (neon), #32cd32 (lime), #00c853 (vibrant green) */
}

/* Optional: hover effect on the whole heading */
.services-bar h2:hover {
  text-shadow: 0 0 20px rgba(155, 89, 182, 0.8); /* purple glow */
}


footer {
  background: transparent !important;
  position: relative;
  z-index: 2;
}
/* Block long-press context menu on all images (prevents "Save Image" popup on mobile) */
img {
    -webkit-touch-callout: none !important;   /* iOS Safari: disables long-press menu */
    touch-action: manipulation !important;    /* Improves touch, blocks unwanted drag/long-press tricks */
    user-select: none !important;             /* Prevents selection/copy (extra safety) */
}