
/* SECTION A — Resets & Variables (existing) */
/* =====================================================
 COMPLETE PORTFOLIO STYLES CSS - NO CONFLICTS
 Regenerated from scratch with all features included
 ===================================================== */

/* IMPORTS & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Sugar+Snow&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* COLOR VARIABLES */
:root {
    --primary-bg-color: #000000;
    --secondary-bg-color: #1a1a1a;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --accent-color-primary: #6e45e2;
    --link-hover-color: #9b7de2;
    --border-color: #333333;
}

/* GENERAL PAGE LAYOUT */
body.portfolio-page {
    background-color: var(--primary-bg-color);
    color: var(--text-color-light);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}



/* NAVBAR STYLES - PORTFOLIO SPECIFIC */
body.portfolio-page #navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

body.portfolio-page #navbar .logo {
    font-family: 'Sugar Snow', cursive !important;
    color: white !important;
    font-size: 1.8em !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.portfolio-page #navbar nav ul li a {
    color: white !important;
    text-decoration: none;      /* no underline */
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
    border: none;               /* no border underline */
    background: none;           /* no background highlight */
}

body.portfolio-page #navbar .hamburger .line {
    background: white !important;
    width: 100%;
    height: 3px;
    transition: all 0.3s ease;
}

body.portfolio-page #navbar .logo-icon-white { 
    display: block !important; 
}

body.portfolio-page #navbar .logo-icon-black { 
    display: none !important; 
}

/* Scrolled state */
body.portfolio-page #navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.portfolio-page #navbar.scrolled .logo {
    font-family: 'Sugar Snow', cursive !important;
    color: white !important;
}

body.portfolio-page #navbar.scrolled nav ul li a {
    color: white !important;
}


body.portfolio-page #navbar.scrolled nav ul li a:hover {
    color: var(--accent-color-primary) !important;
}


body.portfolio-page #navbar.scrolled .hamburger .line {
    background: white !important;
}


/* =====================================================
   PORTFOLIO PAGE NAVBAR - SMOOTH BACKGROUND TRANSITIONS
   ===================================================== */

/* Portfolio page navbar - BEFORE scrolling */
body.portfolio-page #navbar:not(.scrolled) .nav-links a {
    color: white !important;
    transition: all 0.3s ease !important; /* Smooth transitions */
}

body.portfolio-page #navbar:not(.scrolled) .nav-links a::after {
    background-color: white !important;
    width: 0;
    transition: width 0.3s ease !important; /* Smooth underline transition */
}

body.portfolio-page #navbar:not(.scrolled) .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

body.portfolio-page #navbar:not(.scrolled) .nav-links a:hover::after {
    background-color: white !important;
    width: 100%;
}

body.portfolio-page #navbar:not(.scrolled) .nav-links a.active::after {
    background-color: white !important;
    width: 100%;
}

/* Portfolio page navbar - AFTER scrolling */
body.portfolio-page #navbar.scrolled .nav-links a,
body.portfolio-page #navbar.scrolled-black .nav-links a {
    color: white !important;
    transition: all 0.3s ease !important; /* Smooth transitions */
}

body.portfolio-page #navbar.scrolled .nav-links a::after,
body.portfolio-page #navbar.scrolled-black .nav-links a::after {
    background-color: var(--accent-color-primary) !important;
    width: 0;
    transition: width 0.3s ease !important; /* Smooth underline transition */
}

body.portfolio-page #navbar.scrolled .nav-links a:hover,
body.portfolio-page #navbar.scrolled-black .nav-links a:hover {
    background-color: transparent !important;
    color: var(--accent-color-primary) !important;
}

body.portfolio-page #navbar.scrolled .nav-links a:hover::after,
body.portfolio-page #navbar.scrolled-black .nav-links a:hover::after {
    background-color: var(--accent-color-primary) !important;
    width: 100%;
}

body.portfolio-page #navbar.scrolled .nav-links a.active::after,
body.portfolio-page #navbar.scrolled-black .nav-links a.active::after {
    background-color: var(--accent-color-primary) !important;
    width: 100%;
}


/* HERO SECTION STYLES */
body.portfolio-page .portfolio-hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

body.portfolio-page .hero-media-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.portfolio-page .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    display: block;
    opacity: 1;
    transition: none;
}

body.portfolio-page .hero-image-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    display: none;
}

body.portfolio-page .hero-video.error {
    display: none;
}

body.portfolio-page .hero-video.error + .hero-image-fallback {
    display: block;
}

body.portfolio-page .hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 20px;
}

body.portfolio-page .hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-media-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.portfolio-page .hero-title {
    font-family: 'Sugar Snow', cursive !important;
    font-size: 7em !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white !important;
}

body.portfolio-page .hero-description {
    font-family: 'Roboto', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 1.5px;
    color: white !important;
}

/* SCROLL INDICATOR STYLES */
/* Scroll Indicator - Exact copy from homepage */
.scroll-indicator {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10; /* Ensure it's above other elements */
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .scroll-indicator-link {
    text-decoration: none;
    cursor: pointer;
    display: block; /* Ensure it's a block element for easier clicking */
}

.scroll-indicator-link:hover .scroll-indicator {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator-link:focus {
    outline: none;
}

.scroll-indicator-link:focus .scroll-indicator {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
}
  
  .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
  }
  
  .wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
  }
  
  .arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }
  
  .arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
  }
  
  .arrows span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .scroll-indicator-link:hover .scroll-indicator,
.scroll-indicator-link:focus .scroll-indicator {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
}
  
  @keyframes scroll {
    0% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
    50% {
      opacity: 1;
      transform: translate(-50%, 10px);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, 20px);
    }
  }
  
  @keyframes arrow {
    0% {
      opacity: 0;
      transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: rotate(45deg) translate(5px, 5px);
    }
  }

/* FILTER BAR STYLES */
body.portfolio-page .filter-bar {
    background-color: var(--secondary-bg-color);
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.portfolio-page .filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* PORTFOLIO GRID STYLES */
body.portfolio-page .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

body.portfolio-page .portfolio-item {
    background-color: var(--secondary-bg-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

body.portfolio-page .portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color-primary);
}

body.portfolio-page .portfolio-item.hidden {
    display: none;
}

body.portfolio-page .portfolio-item img,
body.portfolio-page .portfolio-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body.portfolio-page .portfolio-item:hover img,
body.portfolio-page .portfolio-item:hover video {
    transform: scale(1.05);
}

body.portfolio-page .portfolio-item-info {
    padding: 20px;
}

body.portfolio-page .portfolio-item h3 {
    color: var(--text-color-light);
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 600;
}

body.portfolio-page .portfolio-item p {
    color: #cccccc;
    margin: 0 0 15px 0;
    font-size: 0.95em;
    line-height: 1.5;
}

body.portfolio-page .portfolio-item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

body.portfolio-page .portfolio-item .tag {
    background: rgba(110, 69, 226, 0.2);
    color: var(--accent-color-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    border: 1px solid var(--accent-color-primary);
}



/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.portfolio-page .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.portfolio-page .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE NAVIGATION STYLES */
@media (max-width: 768px) {
    body.portfolio-page #navbar nav ul {
        background: #000 !important;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        padding-top: 20px !important;
        z-index: 10000 !important;
        display: none !important;
    }
    
    body.portfolio-page #navbar nav ul.open,
    body.portfolio-page #navbar nav .nav-container.nav-active ul {
        display: flex !important;
    }
    
    body.portfolio-page #navbar nav ul li {
        border-bottom: 1px solid #333 !important;
        text-align: center !important;
    }
    
    body.portfolio-page #navbar nav ul li a {
    color: white !important;
    text-decoration: none;      /* no underline */
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
    border: none;               /* no border underline */
    background: none;           /* no background highlight */
}
    
    body.portfolio-page #navbar .hamburger {
        display: flex !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10001 !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        width: 30px !important;
        height: 20px !important;
    }

    /* Quick Navigation Mobile */
    body.portfolio-page .quick-navigation {
        width: 50px;
        padding: 8px;
        right: 15px;
        flex-direction: row;
        border-radius: 25px;
        min-width: unset;
    }
    
    body.portfolio-page .quick-navigation.expanded {
        width: auto;
        min-width: 200px;
        flex-direction: column;
        padding: 15px;
    }
    
    body.portfolio-page .nav-toggle {
        display: flex;
        order: -1;
    }
    
    body.portfolio-page .quick-nav-items {
        display: none;
        width: 100%;
    }
    
    body.portfolio-page .quick-navigation.expanded .quick-nav-items {
        display: flex;
    }
    
    body.portfolio-page .nav-text {
        position: static;
        opacity: 1;
        visibility: visible;
        background: none;
        color: var(--accent-color-primary);
        padding: 0;
        margin-left: 10px;
        font-size: 12px;
        transform: none;
    }
    
    body.portfolio-page .quick-nav-item {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 8px 12px;
    }
    
    body.portfolio-page .nav-indicator {
        width: 8px;
        height: 8px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    /* Scroll to top mobile */
    body.portfolio-page .scroll-to-top-btn {
        width: 55px;
        height: 55px;
        bottom: 100px;
        right: 25px;
    }
    
    body.portfolio-page .arrow-icon {
        width: 22px;
        height: 22px;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    body.portfolio-page .portfolio-hero-section {
        height: 65vh;
        min-height: 450px;
        max-height: 650px;
    }
    
    body.portfolio-page .hero-media-container {
        margin: 15px;
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        border-radius: 15px;
    }
    
    body.portfolio-page .hero-video,
    body.portfolio-page .hero-image-fallback,
    body.portfolio-page .hero-content-overlay {
        border-radius: 15px;
    }
    
    body.portfolio-page .hero-title {
        font-size: 4.5rem !important;
    }
    
    body.portfolio-page .hero-description {
        font-size: 1.8rem !important;
    }
    
    body.portfolio-page .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
        padding: 35px 15px;
    }
}

@media (max-width: 768px) {
    body.portfolio-page .portfolio-hero-section {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    body.portfolio-page .hero-media-container {
        margin: 15px;
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        border-radius: 12px;
    }
    
    body.portfolio-page .hero-video,
    body.portfolio-page .hero-image-fallback,
    body.portfolio-page .hero-content-overlay {
        border-radius: 12px;
    }
    
    body.portfolio-page .hero-content {
        padding: 0 15px;
    }
    
    body.portfolio-page .hero-title {
        font-size: 3.5rem !important;
        letter-spacing: 1.5px;
        margin-bottom: 20px;
    }
    
    body.portfolio-page .hero-description {
        font-size: 1.4rem !important;
        letter-spacing: 1px;
        margin-bottom: 25px;
    }
    
    body.portfolio-page .scroll-indicator {
        bottom: 20px;
    }
    
    body.portfolio-page .filter-list {
        gap: 15px;
        padding: 0 10px;
    }
    
    body.portfolio-page .filter-item {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    body.portfolio-page .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }
    
    body.portfolio-page .portfolio-item img,
    body.portfolio-page .portfolio-item video {
        height: 200px;
    }
}

@media (max-width: 480px) {
    body.portfolio-page .portfolio-hero-section {
        margin-top: 60px;
        height: 45vh;
        min-height: 280px;
        max-height: 350px;
    }
    
    body.portfolio-page .hero-media-container {
        margin: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        border-radius: 10px;
    }
    
    body.portfolio-page .hero-video,
    body.portfolio-page .hero-image-fallback,
    body.portfolio-page .hero-content-overlay {
        border-radius: 10px;
    }
    
    body.portfolio-page .hero-title {
        font-size: 2.5rem !important;
        letter-spacing: 0.5px;
    }
    
    body.portfolio-page .hero-description {
        font-size: 1rem !important;
    }
    
    body.portfolio-page .filter-list {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    body.portfolio-page .filter-item {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 320px) {
    body.portfolio-page .hero-title {
        font-size: 2rem !important;
        letter-spacing: 0px;
    }
    
    body.portfolio-page .hero-description {
        font-size: 0.85rem !important;
        letter-spacing: 0.5px;
    }
}




/* =====================================================
 UPDATED PORTFOLIO STYLES CSS - NEW SECTIONS WITH MODIFICATIONS
 Enhanced modals with image support, grid+carousel gallery, video popups
 ===================================================== */

/* IMPORTS & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Sugar+Snow&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* COLOR VARIABLES */
:root {
    --primary-bg-color: #000000;
    --secondary-bg-color: #1a1a1a;
    --card-bg-color: #2d2d2d;
    --text-color-light: #ffffff;
    --text-color-gray: #cccccc;
    --text-color-muted: #888888;
    --accent-color-primary: #6e45e2;
    --accent-color-secondary: #8b5cf6;
    --link-hover-color: #9b7de2;
    --border-color: #333333;
    --border-color-light: #444444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
}

/* GENERAL SECTION STYLING */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Sugar Snow', cursive;
    font-size: 3.5rem;
    color: var(--accent-color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =====================================================
 FEATURED PROJECTS SECTION
 ===================================================== */

.featured-projects-section {
    padding: 100px 0;
    background: var(--primary-bg-color);
}

/* Project Filters */
.project-filters {
    margin-bottom: 60px;
}

.filter-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item:focus {
    outline: 3px solid var(--accent-color-primary);
    outline-offset: 2px;
}

.filter-item:hover {
    border-color: var(--accent-color-primary);
    background: rgba(110, 69, 226, 0.1);
    color: var(--text-color-light);
}

.filter-item.active {
    background: var(--accent-color-primary);
    border-color: var(--accent-color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Project Cards */
.project-card {
    background: var(--card-bg-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color-primary);
}

.project-card.hidden {
    display: none;
}

/* Hero Projects - Larger cards */
.hero-project {
    grid-column: span 1;
}

.hero-project .project-media {
    height: 320px;
}

/* Regular project cards */
.project-card .project-media {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content .project-type {
    display: inline-block;
    background: var(--accent-color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.overlay-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.overlay-content p {
    color: var(--text-color-gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Project Info */
.project-info {
    padding: 30px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status.in-development {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.status.live {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.duration {
    color: var(--text-color-muted);
    font-size: 0.85rem;
}

.project-info h3 {
    color: var(--text-color-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-info p {
    color: var(--text-color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(110, 69, 226, 0.15);
    color: var(--accent-color-primary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(110, 69, 226, 0.3);
}

/* Client Work Subsection */
.client-work-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.subsection-title {
    color: var(--text-color-light);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

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

.client-project {
    opacity: 0.9;
}

.client-project:hover {
    opacity: 1;
}

/* =====================================================
 ENHANCED PROJECT MODAL WITH IMAGE SUPPORT
 ===================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10001; /* INCREASED - Above navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg-color);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-color-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002; /* INCREASED - Above modal */
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 2px solid transparent;
}

.close-modal:hover {
    color: var(--accent-color-primary);
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--accent-color-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: 95vh;
}

/* Modal Project Content */
.modal-project-content {
    display: flex;
    flex-direction: column;
}

.modal-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
}

.modal-header {
    margin-bottom: 40px;
}

.project-type-badge {
    display: inline-block;
    background: var(--accent-color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: var(--text-color-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.project-subtitle {
    color: var(--text-color-gray);
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.project-tags-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.project-tags-modal .tag {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Content Sections with Mixed Media */
.content-section {
    margin-bottom: 50px;
}

.content-section h3 {
    color: var(--text-color-light);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color-primary);
    padding-bottom: 10px;
}

.content-section p {
    color: var(--text-color-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Process Images Grid */
.process-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.process-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.process-image:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.process-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Before/After Comparison */
.before-after-container {
    position: relative;
    margin: 40px 0; /* INCREASED margins */
    border-radius: 20px; /* INCREASED border radius */
    overflow: hidden;
    border: 3px solid var(--accent-color-primary); /* ENHANCED border */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); /* Added dramatic shadow */
}

.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 700px; /* Slightly smaller width */
    aspect-ratio: 2/3; /* Taller ratio for portraits */
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* CHANGED from cover to contain */
    object-position: center center;
    z-index: 1;
    background: #000; /* Dark background for any gaps */
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* CHANGED from cover to contain */
    object-position: center center;
    z-index: 2;
    background: #000; /* Dark background for any gaps */
}

/* Ensure slider handle has higher z-index */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color-primary);
    border-radius: 50%;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    z-index: 25; /* Higher than magnifying glass */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 4px solid white;
    transition: transform 0.2s ease;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: var(--accent-color-secondary);
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.slider-handle:hover::after {
    border-color: rgba(255, 255, 255, 0.5);
}

.comparison-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
}

.label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Magnifying Glass - Bigger and Better */
.magnifying-glass {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 6px solid var(--accent-color-primary);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 15;
    background-color: #000;
    background-repeat: no-repeat;
    background-size: cover; /* MAINTAINS ASPECT RATIO */
    transform: scale(0.8);
}

.magnifying-glass.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}



.magnifying-glass::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Add cursor indicator when magnifying is available */
.before-after-slider:hover {
    cursor: none; /* Hide default cursor */
}

.before-after-slider .before-image,
.before-after-slider .after-image {
    cursor: none;
}

/* Project Details Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 30px;
    background: var(--secondary-bg-color);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.detail-item h4 {
    color: var(--accent-color-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Timeline for Process Documentation */
.process-timeline {
    position: relative;
    margin: 40px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    bottom: -20px;
    width: 2px;
    background: var(--accent-color-primary);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: var(--accent-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 30px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.timeline-content {
    flex: 1;
    background: var(--secondary-bg-color);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.timeline-content h4 {
    color: var(--text-color-light);
    font-size: 1.3rem;
    font-weight: none !important;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-color-gray);
    margin-bottom: 15px;
}

/* Modal Loading State */
.modal-loading {
    text-align: center;
    padding: 80px 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-loading p {
    color: var(--text-color-gray);
    font-size: 1.1rem;
}

/* =====================================================
 VISUAL GALLERY SECTION - UNIFORM MICROSOFT COPILOT STYLE
 ===================================================== */

.visual-gallery-section {
    padding: 100px 0;
    background: var(--primary-bg-color);
}

.visual-gallery-section .section-title {
    color: var(--accent-color-primary);
    text-align: center;
    margin-bottom: 20px;
}

.visual-gallery-section .section-subtitle {
    color: var(--text-color-gray);
    text-align: center;
    margin-bottom: 60px;
}

/* Uniform Grid - All Cards Same Size */
.visual-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Uniform Gallery Cards */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    
    /* FIXED: Uniform size for all cards */
    width: 100%;
    height: 280px; /* Fixed height for uniformity */
    
    /* Random tilt effects */
    transform: rotate(var(--rotate-angle, 0deg));
}

/* Individual card rotations */
.gallery-item:nth-child(1) { --rotate-angle: -2deg; }
.gallery-item:nth-child(2) { --rotate-angle: 1deg; }
.gallery-item:nth-child(3) { --rotate-angle: -1deg; }
.gallery-item:nth-child(4) { --rotate-angle: 2deg; }
.gallery-item:nth-child(5) { --rotate-angle: 1deg; }
.gallery-item:nth-child(6) { --rotate-angle: -3deg; }
.gallery-item:nth-child(7) { --rotate-angle: 2deg; }
.gallery-item:nth-child(8) { --rotate-angle: -1deg; }
.gallery-item:nth-child(9) { --rotate-angle: 3deg; }
.gallery-item:nth-child(10) { --rotate-angle: -2deg; }
.gallery-item:nth-child(11) { --rotate-angle: 1deg; }
.gallery-item:nth-child(12) { --rotate-angle: -1deg; }
.gallery-item:nth-child(13) { --rotate-angle: 2deg; }
.gallery-item:nth-child(14) { --rotate-angle: -3deg; }
.gallery-item:nth-child(15) { --rotate-angle: 1deg; }
.gallery-item:nth-child(16) { --rotate-angle: -2deg; }
.gallery-item:nth-child(17) { --rotate-angle: 3deg; }
.gallery-item:nth-child(18) { --rotate-angle: -1deg; }
.gallery-item:nth-child(19) { --rotate-angle: 2deg; }
.gallery-item:nth-child(20) { --rotate-angle: -2deg; }

/* Hover Effects */
.gallery-item:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color-primary);
    z-index: 10;
}



/* FIXED: Uniform Image Sizing */
.gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for image area */
    object-fit: cover; /* Crop to fit uniformly */
    border-radius: 16px 16px 0 0;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Card Content Area - Fixed Size */
.gallery-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px; /* Fixed height for text area */
    background: var(--card-bg-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.gallery-card-title {
    color: var(--text-color-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card-category {
    color: var(--accent-color-primary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform i {
    margin-right: 5px;
    font-size: 0.9em;
}

.fa-youtube {
    color: #ff0000;
}

.fa-vimeo-v {
    color: #1ab7ea;
}

.fa-desktop,
.fa-play-circle {
    color: #6e45e2;
}

/* Responsive - Maintain Uniformity */
@media (max-width: 1024px) {
    .visual-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    
    .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .visual-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .gallery-item {
        height: 240px;
        transform: rotate(0deg); /* Remove rotation on mobile */
    }
    
    .gallery-item img {
        height: 160px;
    }
    
    .gallery-item:hover {
        transform: translateY(-8px) scale(1.03);
    }
}

@media (max-width: 480px) {
    .visual-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}



/* =====================================================
   ANIMATED GRADIENT LINES - VISUAL GALLERY SECTION
   ===================================================== */

/* Add animated gradient borders to visual gallery section */
.visual-gallery-section {
    position: relative; /* Ensure pseudo-elements are positioned correctly */
}

.visual-gallery-section::before,
.visual-gallery-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px; /* Same thickness as homepage */
    background: linear-gradient(to right, #2196F3, #24FF72, #2196F3); /* Same blue-green gradient */
    background-size: 300% 100%; /* Larger background for smoother animation */
    animation: animateGradient 6s linear infinite; /* Continuous animation */
    z-index: 10; /* Ensure lines appear above background */
}

.visual-gallery-section::before {
    top: 0; /* Top gradient line */
}

.visual-gallery-section::after {
    bottom: 0; /* Bottom gradient line */
}

/* Keyframes for continuous looping gradient animation */
@keyframes animateGradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Optional: Add subtle glow effect for enhanced visibility */
.visual-gallery-section::before,
.visual-gallery-section::after {
    box-shadow: 0 0 10px rgba(36, 255, 114, 0.3), 0 0 20px rgba(33, 150, 243, 0.2);
}






/* =====================================================
 VIDEO GALLERY SECTION WITH POPUP FUNCTIONALITY
 ===================================================== */

.video-gallery-section {
    padding: 100px 0;
    background: var(--primary-bg-color);
}

/* Video Categories */
.video-categories {
    margin-bottom: 60px;
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-item:hover {
    border-color: var(--accent-color-primary);
    background: rgba(110, 69, 226, 0.1);
    color: var(--text-color-light);
}

.category-item.active {
    background: var(--accent-color-primary);
    border-color: var(--accent-color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.3);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.video-item {
    background: var(--card-bg-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color-primary);
}

.video-item.hidden {
    display: none;
}

/* Video Thumbnail with Play Button */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--accent-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--accent-color-secondary);
}

/* Video Info */
.video-info {
    padding: 25px;
}

.video-info h3 {
    color: var(--text-color-light);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.video-info p {
    color: var(--text-color-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color-muted);
    font-size: 0.85rem;
}

.duration {
    background: rgba(110, 69, 226, 0.2);
    color: var(--accent-color-primary);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.platform {
    color: var(--text-color-muted);
}

/* =====================================================
 VIDEO POPUP MODAL
 ===================================================== */

.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(3px);
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--card-bg-color);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    animation: videoModalSlideIn 0.4s ease;
}

@keyframes videoModalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
        scale: 0.9;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
        scale: 1;
    }
}

.video-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-title {
    color: var(--text-color-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.close-video-modal {
    color: var(--text-color-light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.close-video-modal:hover {
    color: var(--accent-color-primary);
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-modal-body {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-modal-body iframe,
.video-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =====================================================
 GALLERY LIGHTBOX - ENHANCED
 ===================================================== */

/* =====================================================
 ENHANCED GALLERY LIGHTBOX WITH SMOOTH TRANSITIONS
 ===================================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
}

.lightbox.show {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(3px);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.8);
}

.lightbox.show .lightbox-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color-primary);
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 85%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    border: 3px solid var(--border-color);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.show .lightbox-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition-delay: 0.1s;
}

.gallery-nav-next {
    transform: translateY(-50%) translateX(30px);
}

.lightbox.show .gallery-nav-btn {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    transition-delay: 0.4s;
}

.lightbox-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    border: 2px solid var(--accent-color-primary);
    opacity: 0;
    transition: all 0.4s ease;
}

.lightbox.show .lightbox-caption {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.4s;
}

/* Image change transition */
.lightbox-content.changing {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.3;
    transition: all 0.2s ease;
}

/* =====================================================
 GALLERY NAVIGATION BUTTONS
 ===================================================== */

.gallery-nav-btn {
    position: absolute;
    top: 56%;
    transform: translateY(-50%) translateX(-30px);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #6e45e2;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.4s ease;
    z-index: 10003;
    opacity: 0;
}

.gallery-nav-btn:hover {
    background: #6e45e2;
    border-color: white;
    transform: translateY(-50%) scale(1.1);
    top: 56%; /* Keep consistent positioning on hover */
}

.gallery-nav-prev {
    left: 80px;
    top: 56%; /* Add explicit top position */
}

.gallery-nav-next {
    right: 80px;
    top: 56%; /* Add explicit top position */
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(0, 0, 0, 0.8);
    color: #6e45e2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #6e45e2;
    z-index: 10003;
    opacity: 0;
    transition: all 0.4s ease;
}

.lightbox.show .gallery-counter {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.5s;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .gallery-nav-prev {
        left: 20px;
    }
    
    .gallery-nav-next {
        right: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 70%;
    }
    
    .lightbox-caption {
        bottom: 60px;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .gallery-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .lightbox-caption {
        max-width: 90%;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .gallery-nav-prev {
        left: 60px; /* Moved inward from 20px */
    }
    
    .gallery-nav-next {
        right: 60px; /* Moved inward from 20px */
    }
}

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

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .gallery-main-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .process-images {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .carousel-item {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .featured-projects-section,
    .visual-gallery-section,
    .video-gallery-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .projects-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-main-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }
    
    .filter-list,
    .category-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-item,
    .category-item {
        width: 200px;
        text-align: center;
    }
    
    .project-info,
    .video-info {
        padding: 20px;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .modal-info {
        padding: 25px;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .process-images {
        grid-template-columns: 1fr;
    }
    
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-item::before {
        left: 15px;
        top: 60px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        margin-bottom: 15px;
    }
    
    .carousel-item {
        min-width: 280px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .video-modal-content {
        width: 95%;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        gap: 20px;
    }
    
    .project-card .project-media,
    .hero-project .project-media {
        height: 220px;
    }
    
    .gallery-main-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .videos-grid {
        gap: 20px;
    }
    
    .video-item .video-thumbnail {
        height: 200px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .carousel-item {
        min-width: 250px;
        height: 250px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
    }
    
    .before-after-slider {
        height: 300px;
    }
    
    .slider-handle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =====================================================
 ACCESSIBILITY IMPROVEMENTS
 ===================================================== */

.project-card:focus,
.gallery-item:focus,
.video-item:focus,
.carousel-item:focus {
    outline: 3px solid var(--accent-color-primary);
    outline-offset: 2px;
}

.filter-item:focus,
.category-item:focus {
    outline: 3px solid var(--accent-color-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}






/* =====================================================
 FIXES FOR KNOWN ISSUES
 ===================================================== */
 
 /* Fix for navbar disappearing in modals */
.modal {
    z-index: 9999; /* Lower than navbar */
}

#navbar {
    z-index: 10000 !important; /* Keep navbar on top */
}

.video-modal {
    z-index: 9998; /* Lower than navbar */
}



.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--accent-color-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav:hover {
    background: var(--accent-color-primary);
    transform: translateY(-50%) scale(1.1);
}
/* SECTION C — Visual Gallery (scope & positioning) */
.gallery-carousel-section { position: relative; }
.gallery-carousel-section .carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.gallery-carousel-section .carousel-prev { left: 20px; }
.gallery-carousel-section .carousel-next { right: 20px; }

/* Ensure hero has no stray nav arrows layered in */
.hero-section .carousel-nav { display: none !important; }

/* Lightbox arrows above everything; ensure both sides visible */
.lightbox-prev, .lightbox-next { z-index: 10002; }
.lightbox-nav { left: 0; right: 0; }


/* --- appended gallery patch --- */

/* === GALLERY MOODBOARD (minimal patch) ===
   ONLY affects .visual-gallery-section / .visual-gallery-grid and .gallery-item
   Added by assistant as a minimal change — does NOT touch navbar or global link styles.
*/

/* Overlay for click indication */
.visual-gallery-section .gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 0%, 
        transparent 70%, 
        rgba(0,0,0,0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    border-radius: 12px;
}

.visual-gallery-section .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.visual-gallery-section .gallery-overlay .gallery-caption {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Loading state for images */
.visual-gallery-section .gallery-item img[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* End of gallery-only patch */


/* =====================================================
 AUTO-SIZING GALLERY - FRAMES WRAP TO IMAGE DIMENSIONS
 ===================================================== */

/* =====================================================
 SIMPLE CLEAN GALLERY - 4 PER ROW, NO GAPS
 ===================================================== */

/* =====================================================
 SQUARE GALLERY WITH SIZE VARIATION - SIMPLE & CLEAN
 ===================================================== */

/* =====================================================
 VISUAL GALLERY SECTION - RECTANGLE CARDS WITH TIGHT MARGINS
 ===================================================== */

.visual-gallery-section .visual-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.visual-gallery-section .gallery-item {
    background: rgba(50, 63, 96, 0.25); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Glassmorphism blur */
    border: 1px solid rgba(255, 255, 255, 0.18); /* Subtle light border */
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 380px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* Important for sweep effect */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Glassmorphism shadows */
}

/* Light sweep effect */
.visual-gallery-section .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.visual-gallery-section .gallery-item:hover::before {
    left: 100%; /* Sweep across the card */
}

.visual-gallery-section .gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #6e45e2;
    backdrop-filter: blur(15px); /* Stronger blur on hover */
}

.visual-gallery-section .gallery-item img {
    width: calc(100% - 0px);
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
    margin: 0;
}

.visual-gallery-section .gallery-item:hover img {
    transform: scale(1.025);
    border-radius: 10px;
}

.visual-gallery-section .gallery-card-content {
    text-align: center;
    padding: 0;
    background: transparent;
    margin-top: 8px; /* Minimal gap */
    height: 60px; /* Fixed compact height for title area */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure image and content stay above the sweep */
.visual-gallery-section .gallery-item img,
.visual-gallery-section .gallery-card-content {
    position: relative;
    z-index: 2;
}

.visual-gallery-section .gallery-card-title {
    color: #888888;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.visual-gallery-section .gallery-card-category {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .visual-gallery-section .visual-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .visual-gallery-section .gallery-item {
        height: 350px;
        padding: 10px;
    }
    

    .visual-gallery-section .gallery-card-content {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .visual-gallery-section .visual-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .visual-gallery-section .gallery-item {
        height: 320px;
        padding: 10px;
    }
    
    .visual-gallery-section .gallery-item img {
        height: 220px;
    }
    
    .visual-gallery-section .gallery-card-content {
        height: 45px;
    }
    
    .visual-gallery-section .gallery-card-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .visual-gallery-section .visual-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .visual-gallery-section .gallery-item {
        height: 350px;
        padding: 12px;
    }
    
    .visual-gallery-section .gallery-item img {
        height: 250px;
    }
}

/* Overlay styling */
.visual-gallery-section .gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 0%, 
        transparent 70%, 
        rgba(0,0,0,0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    border-radius: 12px;
}

.visual-gallery-section .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.visual-gallery-section .gallery-overlay .gallery-caption {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .visual-gallery-section .visual-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .visual-gallery-section .visual-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}





/* =====================================================
 SECTION BACKGROUND COLORS - VISUAL DISTINCTION
 ===================================================== */

/* Featured Projects Section */
.featured-projects-section {
    background: #0a0a0a; /* Very dark gray - almost black */
    padding: 100px 0;
}

/* Visual Gallery Section */
.visual-gallery-section {
    background: #0c101a; /* Dark navy blue */
    padding: 100px 0;
}

/* Video Gallery Section */
.video-gallery-section {
    background: #0a0a0a; /* Darker blue-gray */
    padding: 100px 0;
}

/* Client Work Section */
.client-work-section {
    background: #0a0a0a; /* Deep purple */
    margin-top: 80px;
    padding: 80px 0 100px 0;
    border-top: 2px solid var(--border-color);
}

/* Alternative option - More subtle variations */
/*
.featured-projects-section {
    background: #111111;
}

.visual-gallery-section {
    background: #1a1a1a;
}

.video-gallery-section {
    background: #222222;
}

.client-work-section {
    background: #2a2a2a;
}
*/

/* Ensure section transitions are smooth */
.featured-projects-section,
.visual-gallery-section,
.video-gallery-section,
.client-work-section {
    transition: background-color 0.3s ease;
}





