/**
 * Portfolio Widgets Premium - Styles
 * Comprehensive CSS for all 7 widgets
 */

/* ========================================
   GLOBAL STYLES
   ======================================== */

.pwp-widget {
    box-sizing: border-box;
}

.pwp-widget *,
.pwp-widget *::before,
.pwp-widget *::after {
    box-sizing: border-box;
}

/* ========================================
   1. PORTFOLIO FILTER GRID
   ======================================== */

.pwp-portfolio-grid-wrapper {
    width: 100%;
}

.pwp-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.pwp-filter-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.pwp-filter-button.active {
    font-weight: bold;
}

.pwp-portfolio-grid {
    display: grid;
    width: 100%;
}

.pwp-portfolio-grid.pwp-columns-1 { grid-template-columns: repeat(1, 1fr); }
.pwp-portfolio-grid.pwp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pwp-portfolio-grid.pwp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pwp-portfolio-grid.pwp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.pwp-portfolio-grid.pwp-columns-5 { grid-template-columns: repeat(5, 1fr); }
.pwp-portfolio-grid.pwp-columns-6 { grid-template-columns: repeat(6, 1fr); }

.pwp-portfolio-item {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pwp-portfolio-item.pwp-hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.pwp-portfolio-card {
    position: relative;
    overflow: hidden;
    display: block;
}

.pwp-portfolio-image {
    width: 100%;
    overflow: hidden;
}

.pwp-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pwp-portfolio-card:hover .pwp-portfolio-image img {
    transform: scale(1.1);
}

.pwp-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwp-portfolio-card:hover .pwp-portfolio-overlay {
    opacity: 1;
}

.pwp-portfolio-title,
.pwp-portfolio-category,
.pwp-portfolio-description {
    color: #fff;
    margin: 0;
    padding: 0 20px;
}

/* Tablet */
@media (max-width: 1024px) {
    .pwp-portfolio-grid.pwp-columns-tablet-1 { grid-template-columns: repeat(1, 1fr); }
    .pwp-portfolio-grid.pwp-columns-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .pwp-portfolio-grid.pwp-columns-tablet-3 { grid-template-columns: repeat(3, 1fr); }
    .pwp-portfolio-grid.pwp-columns-tablet-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
    .pwp-portfolio-grid.pwp-columns-mobile-1 { grid-template-columns: repeat(1, 1fr); }
    .pwp-portfolio-grid.pwp-columns-mobile-2 { grid-template-columns: repeat(2, 1fr); }
    .pwp-portfolio-grid.pwp-columns-mobile-3 { grid-template-columns: repeat(3, 1fr); }
    
    .pwp-filter-buttons {
        justify-content: center;
    }
}


/* ========================================
   1. PORTFOLIO FILTER GRID - PRODUCTION READY
   Handles 100+ items with lazy loading, masonry, mobile UX
   ======================================== */

/* Wrapper */
.pwp-portfolio-grid-wrapper {
    width: 100%;
    position: relative;
}

/* Filter Container */
.pwp-filter-container {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

/* Filter Buttons - Default visible */
.pwp-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pwp-filter-button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-size: 14px;
    border-radius: 4px;
}

.pwp-filter-button:hover,
.pwp-filter-button.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Filter Dropdown - Hidden by default */
.pwp-filter-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: none;
    margin: 0 auto;
}

/* Filter Links - Hidden by default */
.pwp-filter-links {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.pwp-filter-link {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.pwp-filter-link:hover,
.pwp-filter-link.active {
    color: #000;
    font-weight: bold;
}

/* Hamburger Menu - Hidden by default */
.pwp-filter-hamburger {
    display: none;
    position: relative;
    width: 100%;
}

.pwp-hamburger-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 100;
    position: relative;
}

.pwp-hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    display: block;
}

.pwp-hamburger-toggle.active .pwp-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.pwp-hamburger-toggle.active .pwp-hamburger-line:nth-child(2) {
    opacity: 0;
}

.pwp-hamburger-toggle.active .pwp-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.pwp-hamburger-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 99;
    margin-top: 5px;
}

.pwp-hamburger-menu.active {
    display: flex !important;
    flex-direction: column;
}

.pwp-hamburger-link {
    text-decoration: none;
    color: #333;
    padding: 12px 20px;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.pwp-hamburger-link:last-child {
    border-bottom: none;
}

.pwp-hamburger-link:hover,
.pwp-hamburger-link.active {
    background: #f5f5f5;
    font-weight: bold;
}

/* Grid Layout - Default */
.pwp-portfolio-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Masonry Layout */
.pwp-masonry .pwp-portfolio-grid {
    display: block;
    column-count: 3;
    column-gap: 20px;
}

.pwp-masonry .pwp-portfolio-item {
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

/* Portfolio Item */
.pwp-portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f9f9f9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pwp-portfolio-item.pwp-hidden {
    display: none !important;
}

.pwp-portfolio-item.pwp-filtering {
    opacity: 0.3;
    pointer-events: none;
}

.pwp-portfolio-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image Wrapper */
.pwp-portfolio-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    min-height: 200px; /* Fallback height */
}

/* When aspect ratio is set, use padding-bottom technique */
.pwp-portfolio-image-wrapper[class*="pwp-ratio-"] {
    min-height: 0;
}

/* Aspect Ratios */
.pwp-ratio-1-1 { padding-bottom: 100%; }
.pwp-ratio-4-3 { padding-bottom: 75%; }
.pwp-ratio-3-4 { padding-bottom: 133.33%; }
.pwp-ratio-16-9 { padding-bottom: 56.25%; }
.pwp-ratio-9-16 { padding-bottom: 177.78%; }

.pwp-portfolio-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Absolute positioning only when aspect ratio is set */
.pwp-portfolio-image-wrapper[class*="pwp-ratio-"] img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Lazy Loading */
.pwp-lazy {
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out;
}

.pwp-lazy.pwp-loaded,
.pwp-loaded {
    opacity: 1 !important;
}

.pwp-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pwp-loading 1.5s infinite;
}

.pwp-lazy.pwp-loaded + .pwp-image-placeholder {
    display: none;
}

@keyframes pwp-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover Effects */
.pwp-portfolio-item:hover img {
    transform: scale(1.05);
}

/* Overlay */
.pwp-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.pwp-portfolio-item:hover .pwp-portfolio-overlay {
    opacity: 1;
}

/* Content */
.pwp-portfolio-content {
    text-align: center;
    color: #fff;
}

.pwp-portfolio-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.pwp-portfolio-description {
    margin: 0;
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

/* Load More Button */
.pwp-load-more-container {
    text-align: center;
    margin-top: 30px;
}

.pwp-load-more-btn {
    padding: 12px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pwp-load-more-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.pwp-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pwp-load-more-btn.pwp-loading {
    pointer-events: none;
}

/* Pagination */
.pwp-pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pwp-pagination-btn {
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pwp-pagination-btn:hover,
.pwp-pagination-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive - Tablet (1024px and below) */
@media (max-width: 1024px) {
    .pwp-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pwp-masonry .pwp-portfolio-grid {
        column-count: 2;
    }
}

/* Responsive - Mobile (768px and below) */
@media (max-width: 768px) {
    .pwp-portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .pwp-masonry .pwp-portfolio-grid {
        column-count: 1;
    }
    
    /* Mobile filter button scroll (no wrap) */
    .pwp-buttons-no-wrap .pwp-filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    
    .pwp-buttons-no-wrap .pwp-filter-button {
        flex-shrink: 0;
    }
}

   2. PROJECT SHOWCASE SLIDER
   ======================================== */

.pwp-project-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pwp-project-slider {
    position: relative;
}

.pwp-project-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwp-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.pwp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pwp-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.pwp-slide-title,
.pwp-slide-subtitle,
.pwp-slide-description {
    margin: 0 0 15px 0;
}

.pwp-slide-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pwp-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pwp-slider-arrow.pwp-slider-prev {
    left: 20px;
}

.pwp-slider-arrow.pwp-slider-next {
    right: 20px;
}

.pwp-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.pwp-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ========================================
   3. BEFORE/AFTER SLIDER
   ======================================== */

.pwp-before-after-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
}

.pwp-before-after-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pwp-before-image,
.pwp-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pwp-before-image img,
.pwp-after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pwp-after-image {
    clip-path: inset(0 50% 0 0);
}

.pwp-ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.pwp-ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.pwp-ba-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 5;
}

.pwp-ba-label.pwp-before-label {
    left: 20px;
}

.pwp-ba-label.pwp-after-label {
    right: 20px;
}

/* ========================================
   4. CLIENT LOGOS CAROUSEL
   ======================================== */

.pwp-logos-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pwp-logos-carousel {
    display: flex;
    align-items: center;
}

.pwp-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwp-logo-item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pwp-logo-item img {
    max-width: 100%;
    display: block;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.pwp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pwp-carousel-arrow.pwp-carousel-prev {
    left: 10px;
}

.pwp-carousel-arrow.pwp-carousel-next {
    right: 10px;
}

.pwp-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pwp-carousel-dot {
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ========================================
   5. TESTIMONIALS
   ======================================== */

.pwp-testimonials-wrapper {
    width: 100%;
}

.pwp-testimonials-carousel {
    position: relative;
}

.pwp-testimonials-grid {
    display: grid;
    width: 100%;
}

.pwp-testimonials-grid.pwp-columns-1 { grid-template-columns: repeat(1, 1fr); }
.pwp-testimonials-grid.pwp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pwp-testimonials-grid.pwp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pwp-testimonials-grid.pwp-columns-4 { grid-template-columns: repeat(4, 1fr); }

.pwp-testimonial-item {
    width: 100%;
}

.pwp-testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pwp-rating {
    display: flex;
    gap: 4px;
}

.pwp-testimonial-content {
    flex-grow: 1;
}

.pwp-client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pwp-client-image {
    overflow: hidden;
}

.pwp-client-image img {
    display: block;
    object-fit: cover;
}

.pwp-client-name {
    font-weight: bold;
}

.pwp-client-position {
    font-size: 0.9em;
}

.pwp-testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pwp-testimonial-arrow.pwp-testimonial-prev {
    left: -60px;
}

.pwp-testimonial-arrow.pwp-testimonial-next {
    right: -60px;
}

.pwp-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pwp-testimonial-dot {
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Tablet */
@media (max-width: 1024px) {
    .pwp-testimonials-grid.pwp-columns-tablet-1 { grid-template-columns: repeat(1, 1fr); }
    .pwp-testimonials-grid.pwp-columns-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .pwp-testimonials-grid.pwp-columns-tablet-3 { grid-template-columns: repeat(3, 1fr); }
    
    .pwp-testimonial-arrow.pwp-testimonial-prev {
        left: 10px;
    }
    
    .pwp-testimonial-arrow.pwp-testimonial-next {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .pwp-testimonials-grid.pwp-columns-mobile-1 { grid-template-columns: repeat(1, 1fr); }
    .pwp-testimonials-grid.pwp-columns-mobile-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   6. PRICING TABLES
   ======================================== */

.pwp-pricing-tables-wrapper {
    width: 100%;
}

.pwp-pricing-tables {
    display: grid;
    width: 100%;
}

.pwp-pricing-tables.pwp-columns-1 { grid-template-columns: repeat(1, 1fr); }
.pwp-pricing-tables.pwp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pwp-pricing-tables.pwp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pwp-pricing-tables.pwp-columns-4 { grid-template-columns: repeat(4, 1fr); }

.pwp-pricing-item {
    width: 100%;
}

.pwp-pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pwp-pricing-card.pwp-featured {
    z-index: 2;
}

.pwp-pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

.pwp-plan-name {
    margin: 0;
}

.pwp-plan-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.pwp-plan-price {
    font-weight: bold;
}

.pwp-plan-period {
    font-size: 0.8em;
}

.pwp-plan-description {
    margin: 0;
}

.pwp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.pwp-plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwp-plan-features li i {
    flex-shrink: 0;
}

.pwp-plan-button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Tablet */
@media (max-width: 1024px) {
    .pwp-pricing-tables.pwp-columns-tablet-1 { grid-template-columns: repeat(1, 1fr); }
    .pwp-pricing-tables.pwp-columns-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .pwp-pricing-tables.pwp-columns-tablet-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
    .pwp-pricing-tables.pwp-columns-mobile-1 { grid-template-columns: repeat(1, 1fr); }
    .pwp-pricing-tables.pwp-columns-mobile-2 { grid-template-columns: repeat(2, 1fr); }
    
    .pwp-pricing-card.pwp-featured {
        transform: none !important;
    }
}

/* ========================================
   7. ANIMATED HERO BANNER
   ======================================== */

.pwp-hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.pwp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pwp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.pwp-hero-heading {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em;
}

.pwp-hero-prefix {
    display: inline-block;
}

.pwp-hero-animated-text {
    display: inline-block;
    min-width: 20px;
}

.pwp-typing-cursor {
    display: inline-block;
    border-right: 3px solid;
    animation: pwp-blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes pwp-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.pwp-hero-subtitle {
    margin: 0;
}

.pwp-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pwp-hero-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 767px) {
    .pwp-hero-heading {
        flex-direction: column;
        align-items: center;
        gap: 0.2em;
    }
    
    .pwp-hero-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .pwp-hero-button {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.pwp-fade-in {
    animation: pwp-fadeIn 0.5s ease;
}

@keyframes pwp-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pwp-slide-up {
    animation: pwp-slideUp 0.5s ease;
}

@keyframes pwp-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.pwp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for keyboard navigation */
.pwp-filter-button:focus,
.pwp-slider-arrow:focus,
.pwp-carousel-arrow:focus,
.pwp-testimonial-arrow:focus,
.pwp-plan-button:focus,
.pwp-hero-button:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .pwp-slider-arrow,
    .pwp-carousel-arrow,
    .pwp-testimonial-arrow,
    .pwp-slider-dots,
    .pwp-carousel-dots,
    .pwp-testimonial-dots,
    .pwp-filter-buttons {
        display: none !important;
    }
}


/* ========================================
   7. ANIMATED HERO BANNER
   ======================================== */

.pwp-hero-banner {
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
}

.pwp-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pwp-hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.pwp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.pwp-hero-boxed {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pwp-hero-headline {
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.pwp-hero-subheadline {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.pwp-hero-description {
    margin: 0 0 30px 0;
    opacity: 0.85;
}

.pwp-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.pwp-hero-btn-primary,
.pwp-hero-btn-secondary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.pwp-btn-full-width {
    width: 100%;
}

.pwp-hero-btn-secondary {
    border: 2px solid #ffffff;
}

/* Animated Word Wrapper */
.pwp-animated-word-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
}

.pwp-animated-word {
    display: inline-block;
}

/* Animation: None (Static) */
.pwp-hero-banner[data-animation="none"] .pwp-animated-word {
    opacity: 1;
}

/* Animation 1: Kinetic Word Swap */
.pwp-hero-banner[data-animation="kinetic-swap"] .pwp-animated-word {
    animation: kineticSwap 0.5s ease-in-out;
}

@keyframes kineticSwap {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation 2: Letter-by-Letter Reveal */
.pwp-hero-banner[data-animation="letter-reveal"] .pwp-animated-word {
    opacity: 0;
}

.pwp-hero-banner[data-animation="letter-reveal"] .pwp-animated-word.revealing {
    opacity: 1;
}

.pwp-hero-banner[data-animation="letter-reveal"] .pwp-animated-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
}

.pwp-hero-banner[data-animation="letter-reveal"] .pwp-animated-word span.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Animation 3: Masked Text Slide */
.pwp-hero-banner[data-animation="masked-slide"] .pwp-animated-word-wrapper {
    overflow: hidden;
}

.pwp-hero-banner[data-animation="masked-slide"] .pwp-animated-word {
    display: inline-block;
}

.pwp-hero-banner[data-animation="masked-slide"] .pwp-animated-word.slide-left {
    animation: maskSlideLeft 0.6s ease-out;
}

.pwp-hero-banner[data-animation="masked-slide"] .pwp-animated-word.slide-right {
    animation: maskSlideRight 0.6s ease-out;
}

.pwp-hero-banner[data-animation="masked-slide"] .pwp-animated-word.slide-up {
    animation: maskSlideUp 0.6s ease-out;
}

.pwp-hero-banner[data-animation="masked-slide"] .pwp-animated-word.slide-down {
    animation: maskSlideDown 0.6s ease-out;
}

@keyframes maskSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes maskSlideRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes maskSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes maskSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation 4: Variable Weight Morph */
.pwp-hero-banner[data-animation="weight-morph"] .pwp-animated-word {
    font-variation-settings: 'wght' 100;
    transition: font-variation-settings 0.8s ease;
}

.pwp-hero-banner[data-animation="weight-morph"] .pwp-animated-word.morphing {
    animation: weightMorph 1s ease-in-out;
}

@keyframes weightMorph {
    0% {
        font-variation-settings: 'wght' var(--weight-start, 100);
        transform: scale(0.95);
    }
    50% {
        font-variation-settings: 'wght' var(--weight-end, 900);
        transform: scale(1.02);
    }
    100% {
        font-variation-settings: 'wght' var(--weight-end, 900);
        transform: scale(1);
    }
}

/* Animation 5: Scroll-Synced Typography */
.pwp-hero-banner[data-animation="scroll-sync"] .pwp-animated-word {
    transition: all 0.1s linear;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pwp-hero-banner[data-reduce-motion="yes"] .pwp-animated-word,
    .pwp-hero-banner[data-reduce-motion="yes"] .pwp-animated-word span {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile Fallback */
@media (max-width: 768px) {
    .pwp-hero-banner[data-mobile-fallback="yes"] .pwp-animated-word {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .pwp-hero-banner[data-mobile-fallback="yes"] .pwp-animated-word span {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pwp-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pwp-hero-btn-primary,
    .pwp-hero-btn-secondary {
        width: 100%;
    }
}


/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.pwp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.pwp-lightbox.active {
    display: block !important;
}

.pwp-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.pwp-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwp-lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwp-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pwp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000000;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    transition: opacity 0.3s ease;
}

.pwp-lightbox-close:hover {
    opacity: 0.7;
}

.pwp-lightbox-prev,
.pwp-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000000;
    padding: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwp-lightbox-prev:hover,
.pwp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pwp-lightbox-prev {
    left: 30px;
}

.pwp-lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .pwp-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
    
    .pwp-lightbox-prev,
    .pwp-lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 30px;
        padding: 15px;
    }
    
    .pwp-lightbox-prev {
        left: 10px;
    }
    
    .pwp-lightbox-next {
        right: 10px;
    }
}

/* Lightbox Info Container - Default (Below Image) */
.pwp-lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 30px;
    z-index: 1000001;
    color: #fff;
}

.pwp-lightbox-title {
    display: inline;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.pwp-lightbox-category {
    display: inline;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0 10px;
    color: #ddd;
}

.pwp-lightbox-category::before {
    content: '•';
    margin-right: 10px;
}

.pwp-lightbox-description {
    display: inline;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 0 10px;
    color: #fff;
}

.pwp-lightbox-description::before {
    content: '•';
    margin-right: 10px;
}

.pwp-lightbox-button {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pwp-lightbox-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Layout: Right Side Panel */
.pwp-layout-right .pwp-lightbox-content {
    display: flex;
    align-items: stretch;
}

.pwp-layout-right .pwp-lightbox-image-container {
    flex: 1;
    position: relative;
}

.pwp-layout-right .pwp-lightbox-info {
    position: relative;
    width: 400px;
    max-width: 35%;
    background: #1a1a1a;
    overflow-y: auto;
    bottom: auto;
    left: auto;
}

/* Layout: Overlay on Image */
.pwp-layout-overlay .pwp-lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0) 100%);
    padding: 40px 30px 30px;
}

/* Layout: Hidden */
.pwp-layout-hidden .pwp-lightbox-info {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pwp-lightbox-info {
        padding: 15px 20px;
    }
    
    .pwp-lightbox-title {
        font-size: 20px;
    }
    
    .pwp-lightbox-category {
        font-size: 12px;
    }
    
    .pwp-lightbox-description {
        font-size: 14px;
    }
    
    /* Right panel becomes bottom on mobile */
    .pwp-layout-right .pwp-lightbox-content {
        flex-direction: column;
    }
    
    .pwp-layout-right .pwp-lightbox-info {
        width: 100%;
        max-width: 100%;
        position: relative;
    }
}
