* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0056b3;
    --primary-dark: #003d7a;
    --primary-light: #4a90e2;
    --accent: #00a8ff;
    --accent-dark: #d4006a;
    --text-light: #7f8c8d;
    --bg-light: #f0f7ff;
    --bg-white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 150, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 150, 0.15);
    --gradient-blue: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%);
    --gradient-purple: linear-gradient(135deg, #4d8eff 0%, #00a8ff 100%);
}

body {
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Innovative Hero Section with 3D Perspective */
.pg-hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* 3D Perspective Container */
.pg-hero-perspective {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Unique Morphing Background */
.pg-morphing-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    overflow: hidden;
}

.morph-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    mix-blend-mode: screen;
    transition: all 2s ease-in-out;
}

.morph1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -20%;
    left: -10%;
    animation: morphMove1 20s infinite alternate ease-in-out;
}

.morph2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    bottom: -20%;
    right: -10%;
    animation: morphMove2 25s infinite alternate-reverse ease-in-out;
}

.morph3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: 40%;
    left: 30%;
    animation: morphMove3 30s infinite alternate ease-in-out;
}

@keyframes morphMove1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(10%, 15%) scale(1.1); opacity: 0.7; }
    100% { transform: translate(-10%, 5%) scale(0.9); opacity: 0.5; }
}

@keyframes morphMove2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-15%, -10%) scale(1.1); opacity: 0.7; }
    100% { transform: translate(10%, -5%) scale(0.9); opacity: 0.5; }
}

@keyframes morphMove3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(-10%, 10%) scale(1.2); opacity: 0.6; }
    100% { transform: translate(15%, -10%) scale(0.8); opacity: 0.4; }
}

/* Dynamic Image Slider */
.pg-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 6s ease-in-out;
    z-index: -1;
    filter: brightness(0.4) saturate(1.2) contrast(1.1);
}

.pg-slide.active {
    opacity: 1;
    animation: subtleZoom 20s infinite alternate ease-in-out;
}

@keyframes subtleZoom {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.05) translate(-0.5%, -0.5%); }
    100% { transform: scale(1.1) translate(0.5%, 0.5%); }
}

/* Interactive Floating Elements */
.pg-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.el1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float1 15s infinite ease-in-out;
    background: linear-gradient(45deg, rgba(124, 77, 255, 0.05), rgba(0, 168, 255, 0.05));
    transform: rotate(15deg);
}

.el2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 12%;
    border-radius: 50% 50% 50% 20% / 50% 20% 50% 50%;
    animation: float2 18s infinite ease-in-out;
    transform: rotate(-25deg);
}

.el3 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 15%;
    border-radius: 80% 20% 50% 50% / 50% 80% 20% 50%;
    animation: float3 20s infinite ease-in-out;
    transform: rotate(45deg);
}

.el4 {
    width: 200px;
    height: 100px;
    top: 25%;
    right: 15%;
    border-radius: 30% 70% 20% 80% / 60% 30% 70% 40%;
    animation: float4 25s infinite ease-in-out;
    background: linear-gradient(45deg, rgba(0, 86, 179, 0.05), rgba(0, 168, 255, 0.05));
    transform: rotate(-10deg);
}

.el5 {
    width: 100px;
    height: 200px;
    bottom: 35%;
    left: 5%;
    border-radius: 70% 30% 50% 50% / 40% 60% 30% 70%;
    animation: float5 22s infinite ease-in-out;
    background: linear-gradient(45deg, rgba(124, 77, 255, 0.05), rgba(255, 51, 102, 0.05));
    transform: rotate(25deg);
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    25% { transform: translate(15px, -15px) rotate(25deg); }
    50% { transform: translate(30px, 10px) rotate(15deg); }
    75% { transform: translate(-15px, 15px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(-25deg); }
    20% { transform: translate(-20px, 20px) rotate(-15deg); }
    40% { transform: translate(15px, 25px) rotate(-35deg); }
    80% { transform: translate(25px, -15px) rotate(-45deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    30% { transform: translate(-20px, -15px) rotate(35deg); }
    60% { transform: translate(25px, 15px) rotate(55deg); }
    80% { transform: translate(10px, -25px) rotate(45deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(-10deg); }
    25% { transform: translate(25px, 15px) rotate(0deg); }
    50% { transform: translate(-15px, -20px) rotate(-20deg); }
    75% { transform: translate(-25px, 10px) rotate(-5deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) rotate(25deg); }
    20% { transform: translate(15px, 25px) rotate(15deg); }
    50% { transform: translate(-20px, -20px) rotate(35deg); }
    80% { transform: translate(10px, -15px) rotate(20deg); }
}

/* Content Wrapper with Centered Positioning */
.pg-hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Enhanced Content Styling */
.pg-hero-content {
    max-width: 900px;
    width: 90%;
    position: relative;
    z-index: 10;
    padding: 60px 40px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: contentAppear 1s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.pg-hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0) 50%);
    z-index: -1;
    transform: translateX(-100%);
    animation: contentShine 5s infinite 2s;
    pointer-events: none;
}

@keyframes contentAppear {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes contentShine {
    0% { transform: translateX(-100%); }
    20%, 100% { transform: translateX(100%); }
}

/* Innovative Text Reveal Animation */
.pg-text-reveal {
    margin-bottom: 20px;
    height: 30px;
    overflow: hidden;
}

.reveal-line {
    display: inline-block;
    margin: 0 5px;
    overflow: hidden;
    position: relative;
}

.reveal-line span {
    display: inline-block;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transform: translateY(100%);
    opacity: 0;
    animation: revealText 1s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-line:nth-child(1) span { animation-delay: 0.1s; }
.reveal-line:nth-child(2) span { animation-delay: 0.3s; }
.reveal-line:nth-child(3) span { animation-delay: 0.5s; }

@keyframes revealText {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.reveal-line span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    transform: translateX(5px) translateY(5px);
    z-index: -1;
    opacity: 0.5;
}

/* Enhanced Hero Title */
.pg-hero-title {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    position: relative;
    font-family: 'Playfair Display', serif;
}

.pg-hero-title .title-top {
    display: block;
    font-size: 0.5em;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeSlideUp 0.8s forwards 0.7s;
    font-family: 'Montserrat', sans-serif;
}

.pg-hero-title .gradient-text {
    background: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5em;
    font-weight: 900;
    display: block;
    letter-spacing: -2px;
    opacity: 0;
    transform: scale(0.9);
    animation: titleScale 1s forwards 1s;
    position: relative;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    z-index: -1;
    filter: blur(5px);
    animation: titleGlow 3s infinite alternate;
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes titleScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes titleGlow {
    0% { filter: blur(5px); opacity: 0.5; }
    100% { filter: blur(8px); opacity: 0.8; }
}

/* Enhanced Subtitle */
.pg-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0 auto 40px;
    max-width: 700px;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Creative CTA Buttons */
.pg-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.pg-hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50px;
    min-width: 200px;
    height: 56px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-text {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 0.95rem;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.btn-icon {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
}

.pg-hero-btn:hover .btn-icon {
    opacity: 1;
    transform: translateX(0);
}

.pg-hero-btn.primary {
    background: var(--gradient-purple);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.8s ease;
    opacity: 0;
}

.pg-hero-btn.primary .btn-background {
    background: var(--gradient-purple);
}

.pg-hero-btn.primary:hover .btn-background {
    opacity: 1;
}

.pg-hero-btn.primary:hover {
    box-shadow: 0 15px 35px rgba(255, 51, 102, 0.4);
    transform: translateY(-3px);
}

.pg-hero-btn.secondary {
    background: transparent;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.pg-hero-btn.secondary:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.pg-hero-btn.secondary .btn-icon {
    margin-right: 0;
    margin-left: 15px;
}

.pg-hero-btn.secondary:hover .btn-text {
    transform: translateX(-10px);
}

/* Enhanced Scroll Indicator */
.pg-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
    z-index: 10;
}

.pg-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.mouse-wheel {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

.pg-scroll-indicator:hover .pg-mouse {
    border-color: white;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg-scroll-indicator:hover .scroll-text {
    opacity: 1;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Decorative Ribbon */
.pg-decorative-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.ribbon-segment {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0.3;
    transform-origin: center;
}

.ribbon-segment:nth-child(1) {
    width: 70%;
    top: 30%;
    left: -20%;
    animation: ribbonFloat1 12s infinite alternate ease-in-out;
}

.ribbon-segment:nth-child(2) {
    width: 60%;
    top: 45%;
    right: -20%;
    animation: ribbonFloat2 15s infinite alternate ease-in-out;
}

.ribbon-segment:nth-child(3) {
    width: 80%;
    top: 60%;
    left: -30%;
    animation: ribbonFloat3 18s infinite alternate ease-in-out;
}

@keyframes ribbonFloat1 {
    0% { transform: translateX(0) rotate(2deg); }
    100% { transform: translateX(40%) rotate(-2deg); }
}

@keyframes ribbonFloat2 {
    0% { transform: translateX(0) rotate(-1deg); }
    100% { transform: translateX(-50%) rotate(3deg); }
}

@keyframes ribbonFloat3 {
    0% { transform: translateX(0) rotate(1deg); }
    100% { transform: translateX(30%) rotate(-1deg); }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .pg-hero-title {
        font-size: 4rem;
    }
    
    .pg-hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .pg-hero-content {
        padding: 40px 30px;
    }
    
    .pg-hero-title {
        font-size: 3.2rem;
    }
    
    .pg-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .pg-hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .pg-text-reveal {
        height: auto;
        margin-bottom: 15px;
    }
    
    .reveal-line {
        display: block;
        margin-bottom: 10px;
    }
    
    .floating-element {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .pg-hero-title {
        font-size: 2.8rem;
    }
    
    .pg-hero-content {
        padding: 30px 20px;
    }
    
    .pg-text-reveal {
        display: none;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .morph-shape, .floating-element, .pg-slide, .pg-hero-content::before,
    .ribbon-segment, .mouse-wheel, .btn-icon, .btn-background {
        animation-duration: 0.1s;
        transition-duration: 0.1s;
    }
    
    .pg-text-reveal span, .pg-hero-title .title-top, .pg-hero-title .gradient-text {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* NEW INNOVATIVE GALLERY DESIGN */
.pg-gallery-section {
    position: relative;
    background: linear-gradient(180deg, #f9f9ff 0%, #e8f4ff 100%);
    padding: 80px 0;
    overflow: hidden;
}

/* Cool background glow effect */
.gallery-glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Feature blocks styling - modern, clean presentation */
.feature-blocks {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-blocks.second-row {
    margin-top: -15px;
    margin-bottom: 80px;
}

.feature-block {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.feature-block::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 80%);
    transform: rotate(45deg);
    transition: all 0.8s ease;
}

.feature-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
}

.feature-block:hover::before {
    top: 100%;
    left: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 21, 212, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-block:hover .feature-icon {
    transform: rotateY(180deg);
    background: rgba(25, 0, 212, 0.2);
}

.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.feature-block:hover .feature-icon img {
    transform: scale(1.1);
}

.feature-block h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.feature-block p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

/* Features header specific styling */
.features-header {
    margin-bottom: 50px;
    padding-top: 20px;
}

.features-header .section-title {
    color: var(--primary-dark);
    font-weight: 800;
}

.features-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
    color: var(--text-light);
}

/* Main gallery container */
.gallery-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Section heading with animated underline */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-dark);
    border-radius: 2px;
    animation: expand-line 3s infinite alternate ease-in-out;
}

@keyframes expand-line {
    0% { width: 70px; }
    100% { width: 150px; }
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Category filtering system */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-light);
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
}

/* 3D Icon Styles */
.icon-3d {
    perspective: 1000px;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    cursor: pointer;
}

.icon-3d-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-block:hover .icon-3d-wrapper {
    transform: rotateY(180deg);
}

.icon-3d-front,
.icon-3d-back,
.icon-3d-left,
.icon-3d-right,
.icon-3d-top,
.icon-3d-bottom {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.icon-3d-front {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-3d-back {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: rotateY(180deg) translateZ(10px);
}

.icon-3d-left {
    background: rgba(0, 0, 0, 0.05);
    width: 20px;
    transform: rotateY(-90deg) translateZ(40px);
}

.icon-3d-right {
    background: rgba(0, 0, 0, 0.05);
    width: 20px;
    transform: rotateY(90deg) translateZ(40px);
}

.icon-3d-top {
    background: rgba(0, 0, 0, 0.05);
    height: 20px;
    transform: rotateX(90deg) translateZ(40px);
}

.icon-3d-bottom {
    background: rgba(0, 0, 0, 0.05);
    height: 20px;
    transform: rotateX(-90deg) translateZ(40px);
}

.icon-3d img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.feature-block:hover .icon-3d img {
    transform: scale(1.2);
}

/* Bento Grid Styles */
.bento-grid-container {
    position: relative;
    max-width: 1200px; /* Reduced from 1400px */
    margin: 0 auto;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 80px; /* Reduced from 100px */
    gap: 10px; /* Reduced from 15px */
    margin: 0 auto;
}

/* Card variants with exact sizing for perfect fit */
.bento-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    transform-origin: center;
    height: 100%;
    width: 100%;
}

/* Card size definitions */
.bento-item.featured {
    grid-column: span 8;
    grid-row: span 4;
}

.bento-item.vertical {
    grid-column: span 4;
    grid-row: span 4;
}

.bento-item.horizontal {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-item.square {
    grid-column: span 4;
    grid-row: span 2;
}

/* Specific placement for each item */
.bento-grid .bento-item:nth-child(1) {
    grid-area: 1 / 1 / 5 / 9; /* row-start/col-start/row-end/col-end */
}

.bento-grid .bento-item:nth-child(2) {
    grid-area: 1 / 9 / 5 / 13;
}

.bento-grid .bento-item:nth-child(3) {
    grid-area: 5 / 1 / 7 / 9;
}

.bento-grid .bento-item:nth-child(4) {
    grid-area: 7 / 1 / 9 / 5;
}

.bento-grid .bento-item:nth-child(5) {
    grid-area: 7 / 5 / 9 / 9;
}

.bento-grid .bento-item:nth-child(6) {
    grid-area: 5 / 9 / 9 / 13;
}

/* Hover effects and styling */
.bento-item:hover {
    transform: translateY(-3px); /* Reduced from -5px */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.bento-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item:hover .bento-card img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px; /* Reduced from 20px */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
    transform: translateY(55px); /* Reduced from 70px */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    font-size: 1.2rem; /* Reduced from 1.4rem */
    margin: 3px 0 8px; /* Reduced from 5px 0 10px */
    font-weight: 600;
}

.overlay p {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    margin-bottom: 12px; /* Reduced from 15px */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.bento-item:hover .overlay p {
    opacity: 1;
    transform: translateY(0);
}

.view-details {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 6px 14px; /* Reduced from 8px 16px */
    border-radius: 30px;
    font-size: 0.8rem; /* Reduced from 0.9rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.bento-item:hover .view-details {
    opacity: 1;
    transform: translateY(0);
}

.view-details:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Update responsive behavior for Bento Grid */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    /* Keep same layout but slightly adjust sizes */
    .bento-grid .bento-item:nth-child(1) {
        grid-area: 1 / 1 / 5 / 9;
    }

    .bento-grid .bento-item:nth-child(2) {
        grid-area: 1 / 9 / 5 / 13;
    }

    .bento-grid .bento-item:nth-child(3) {
        grid-area: 5 / 1 / 7 / 9;
    }

    .bento-grid .bento-item:nth-child(4) {
        grid-area: 7 / 1 / 9 / 5;
    }

    .bento-grid .bento-item:nth-child(5) {
        grid-area: 7 / 5 / 9 / 9;
    }

    .bento-grid .bento-item:nth-child(6) {
        grid-area: 5 / 9 / 9 / 13;
    }
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px; /* Reduced from 10px */
    }
    
    /* Tablet layout with fewer columns but maintaining bento style */
    .bento-grid .bento-item:nth-child(1) {
        grid-area: 1 / 1 / 5 / 5;
    }

    .bento-grid .bento-item:nth-child(2) {
        grid-area: 1 / 5 / 5 / 7;
    }

    .bento-grid .bento-item:nth-child(3) {
        grid-area: 5 / 1 / 7 / 7;
    }

    .bento-grid .bento-item:nth-child(4) {
        grid-area: 7 / 1 / 9 / 4;
    }

    .bento-grid .bento-item:nth-child(5) {
        grid-area: 7 / 4 / 9 / 7;
    }

    .bento-grid .bento-item:nth-child(6) {
        grid-area: 9 / 1 / 13 / 7;
    }
}

@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px; /* Reduced from 8px */
    }
    
    /* Mobile layout - simplified but still maintaining some variation */
    .bento-grid .bento-item:nth-child(1) {
        grid-area: 1 / 1 / 5 / 5;
    }

    .bento-grid .bento-item:nth-child(2) {
        grid-area: 5 / 1 / 9 / 3;
    }

    .bento-grid .bento-item:nth-child(3) {
        grid-area: 5 / 3 / 7 / 5;
    }

    .bento-grid .bento-item:nth-child(4) {
        grid-area: 7 / 3 / 9 / 5;
    }

    .bento-grid .bento-item:nth-child(5) {
        grid-area: 9 / 1 / 11 / 3;
    }

    .bento-grid .bento-item:nth-child(6) {
        grid-area: 9 / 3 / 11 / 5;
    }
    
    .overlay {
        transform: translateY(0);
        padding: 12px; /* Reduced from 15px */
    }
    
    .overlay h3 {
        font-size: 1.1rem; /* Reduced from 1.2rem */
        margin-bottom: 4px; /* Reduced from 5px */
    }
    
    .overlay p {
        display: none;
    }
    
    .view-details {
        opacity: 1;
        transform: translateY(0);
        padding: 4px 10px; /* Reduced from 5px 12px */
        font-size: 0.75rem; /* Reduced from 0.8rem */
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* Very small screens - 2-column layout */
    .bento-grid .bento-item:nth-child(1) {
        grid-area: 1 / 1 / 3 / 3;
    }

    .bento-grid .bento-item:nth-child(2) {
        grid-area: 3 / 1 / 5 / 2;
    }

    .bento-grid .bento-item:nth-child(3) {
        grid-area: 3 / 2 / 5 / 3;
    }

    .bento-grid .bento-item:nth-child(4) {
        grid-area: 5 / 1 / 6 / 2;
    }

    .bento-grid .bento-item:nth-child(5) {
        grid-area: 5 / 2 / 6 / 3;
    }

    .bento-grid .bento-item:nth-child(6) {
        grid-area: 6 / 1 / 8 / 3;
    }
}

@media (max-width: 400px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Single column layout for very small screens */
    .bento-grid .bento-item:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
        height: 250px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-block, .gallery-card, .carousel-nav, .filter-btn::before, 
    .lightbox-close, .title-underline, .feature-icon, .feature-icon img {
        transition-duration: 0.1s;
        animation-duration: 0.1s;
    }
}
