 
/* ---------- CLIENT VIDEO SECTION (Updated White Theme) ---------- */
.client-video-section {
  background: #ffffff;
  color: #0f172a;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.client-video-section .section-tag {
  color: #00a84f; /* brand green */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

.video-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.video-box {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
}

.video-box iframe {
  width: 100%;
  max-width: 600px;
  height: 340px;
  border-radius: 16px;
  border: 4px solid #e2e8f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-box iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.content-box {
  flex: 1 1 420px;
}

.content-box h2 {
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.content-box p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1rem;
}

.content-box .btn {
  background: #00a84f;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-box .btn:hover {
  background: #0f172a;
  color: #00a84f;
  transform: translateY(-2px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .content-box h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .video-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .video-box iframe {
    height: 280px;
  }

  .content-box h2 {
    font-size: 1.8rem;
  }

  .content-box p {
    font-size: 0.95rem;
  }

  .content-box .btn {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .client-video-section {
    padding: 70px 15px;
  }

  .content-box h2 {
    font-size: 1.6rem;
  }

  .video-box iframe {
    height: 240px;
  }
}
/* ===== PORTFOLIO INTRODUCTION SECTION ===== */
.portfolio-intro-section {
  background: #ffffff;
  padding: 100px 20px;
  color: #0f172a;
}

.portfolio-intro-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  color: #00a84f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: inline-block;
}

.intro-heading {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 520px;
  color: #0f172a;
}

.intro-right {
  flex: 1 1 500px;
  max-width: 600px;
}

.intro-right p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
}

.btn-green {
  background: #00a84f;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 168, 79, 0.2);
}

.btn-green:hover {
  background: #0f172a;
  color: #00a84f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 79, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .portfolio-intro-container {
    flex-direction: column;
    text-align: center;
  }

  .intro-heading {
    font-size: 2rem;
    margin: 0 auto;
  }

  .intro-right {
    max-width: 100%;
  }

  .btn-green {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .portfolio-intro-section {
    padding: 70px 15px;
  }

  .intro-heading {
    font-size: 1.8rem;
  }

  .intro-right p {
    font-size: 0.95rem;
  }
}


/* ---------- CATEGORY TABS ---------- */
.portfolio-categories {
  padding: 5rem 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-tag {
  color: #22c55e;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 2px solid #22c55e;
  padding-bottom: 3px;
  margin-bottom: 10px;
  display: inline-block;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab {
  background: #f1f5f9;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tab.active, .tab:hover {
  background: #22c55e;
  color: #fff;
}

/* ---------- PORTFOLIO GRID ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-content p {
  color: #555;
  font-size: 0.95rem;
  margin: 0.6rem 0 1rem;
}

.view-more {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more:hover {
  color: #16a34a;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .video-content {
    flex-direction: column;
  }

  .video-box iframe {
    height: 220px;
  }

  .portfolio-hero h1 {
    font-size: 2rem;
  }
}

/* Reset and Variables (Matching previous Light Mode) */
:root {
    --color-light-bg: #ffffff; 
    --color-off-white: #f1f5f9; 
    --color-dark-text: #1e293b; 
    --color-green: #22c55e; 
    --color-light-border: #e2e8f0; 
    --color-mid-grey: #64748b; 
    --transition-speed: 0.35s;
}

/* Base Styles */
.portfolio-categories {
    padding: 5rem 0;
    background-color: var(--color-off-white);
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

/* --- Section Header Styling --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}


.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-dark-text);
    margin: 0;
}

/* --- Category Tabs Styling (Pill Menu) --- */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.tab {
    background: var(--color-light-bg);
    border: 1px solid var(--color-light-border);
    color: var(--color-mid-grey);
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: capitalize;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03); 
}

.tab:hover:not(.active) {
    border-color: var(--color-green);
    color: var(--color-dark-text);
    transform: translateY(-1px);
}

.tab.active {
    background-color: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-light-bg);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* --- Portfolio Grid and Card Styling --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    transition: all 0.5s ease;
}

.portfolio-card {
    background: var(--color-light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft, premium shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    border: 1px solid var(--color-light-border);
    cursor: pointer;
}

/* Filtering transition */
.portfolio-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    height: 0; /* Collapse height */
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
    width: 100%;
    height: 250px; /* Fixed height for visual consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    color: var(--color-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-text);
    margin: 0 0 0.5rem 0;
}

.card-content p {
    color: var(--color-mid-grey);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 48px; /* Ensures consistent card height */
    overflow: hidden;
}

.view-more {
    display: inline-block;
    color: var(--color-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-more:hover {
    color: #15803d; /* Darker green on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .category-tabs {
        padding: 0;
        gap: 0.5rem;
    }
}

/* for last part maintain (Light Mode) */
:root {
    --color-light-bg: #ffffff; 
    --color-off-white: #f1f5f9; 
    --color-dark-text: #1e293b; 
    --color-green: #22c55e; 
    --color-light-border: #e2e8f0; 
    --color-mid-grey: #64748b; 
    --transition-speed: 0.35s;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-light-bg);
    color: var(--color-dark-text);
    margin: 0;
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

/* Section Heading */
.gallery-section {
    padding: 6rem 0;
    background-color: var(--color-light-bg);
}
.section-heading {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-dark-text);
}
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-mid-grey);
    margin-bottom: 4rem; 
}

/* --- PREMIUM FILTER MENU ENHANCEMENT --- */
.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.filter-btn {
    background: var(--color-light-bg);
    border: 1px solid var(--color-light-border);
    color: var(--color-dark-text);
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); 
}
.filter-btn:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}
.filter-btn.active {
    background-color: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-light-bg);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    transition: all 0.5s ease;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--color-light-bg);
    border: 1px solid var(--color-off-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease; 
}
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    max-height: 0; 
    margin: 0 !important;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
}

/* Overlay for Premium Hover Effect */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.85); 
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    display: flex;
    align-items: flex-end; 
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9); 
}

.overlay-content {
    color: var(--color-light-bg);
    transform: translateY(15px);
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}
.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-green); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================================== */
/* Lightbox Modal */
/* ========================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 80%; /* Adjusted for navigation buttons */
    max-height: 90%;
    background: var(--color-light-bg); 
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease; /* For smooth image transition */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--color-light-bg); 
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
    font-size: 2.5rem;
    font-weight: 100;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 20; /* Above nav buttons */
}
.close-btn:hover {
    color: var(--color-green);
}

.lightbox-info {
    padding: 1rem 2rem;
    background: var(--color-off-white);
    color: var(--color-dark-text);
    border-top: 1px solid var(--color-light-border);
}
.lightbox-info h3 {
    margin: 0;
    font-size: 1.5rem;
}
.lightbox-info p {
    margin: 0;
    color: var(--color-green);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- NAVIGATION BUTTON STYLES --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: var(--color-light-bg);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 15; /* Above lightbox content but below close button */
    transition: background 0.2s ease;
    border-radius: 4px;
    user-select: none;
    line-height: 1;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circular button */
}

.nav-btn:hover {
    background: var(--color-green); /* Accent color hover */
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

@media (max-width: 640px) {
    .nav-btn {
        padding: 0.5rem;
        font-size: 1.5rem;
        height: 40px;
        width: 40px;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .lightbox-content { max-width: 95%; }
}

/* ========================================================== */
/* RESPONSIVENESS (Retained) */
/* ========================================================== */
@media (max-width: 768px) {
    .filter-menu {
        gap: 0.75rem;
    }
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr; 
    }
    .section-heading {
        font-size: 2rem;
    }
}
@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr; 
    }
    .filter-menu {
        gap: 0.5rem;
    }
}