/* ================================================
   Popular Categories Section - Modern Design
   Custom styles with animations and gradients
   ================================================ */

/* Theme Color Variables */
:root {
    --pc-primary-blue: #002359;
    --pc-primary-yellow: #FAD000;
    --pc-accent-blue: #0597D3;
    --pc-text-dark: #2c3e50;
    --pc-text-light: #6f6f6f;
    --pc-white: #ffffff;
    --pc-gray-light: #f8f9fa;
}

/* Main Section Container */
.popular-categories-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Background Decorative Elements */
.popular-categories-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5, 151, 211, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pc-float-bg 20s ease-in-out infinite;
}

.popular-categories-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(250, 208, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pc-float-bg 25s ease-in-out infinite reverse;
}

@keyframes pc-float-bg {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Section Header */
.pc-section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.pc-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--pc-accent-blue);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.pc-main-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--pc-primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.pc-highlight {
    color: #26c976;
    position: relative;
}


.pc-description {
    font-size: 16px;
    color: var(--pc-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Categories Grid */
.pc-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Category Card */
.pc-category-card {
    position: relative;
    height: 100%;
    min-height: 320px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pc-card-inner {
    position: relative;
    height: 100%;
    background: var(--pc-white);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 10px 40px rgba(0, 35, 89, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

/* Card Gradient Backgrounds */
.pc-card-1 .pc-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.pc-card-2 .pc-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.pc-card-3 .pc-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f0faff 100%);
}

.pc-card-4 .pc-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
}

.pc-card-5 .pc-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
}

.pc-card-6 .pc-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff5 100%);
}

/* Glow Effect */
.pc-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.pc-card-1 .pc-card-glow {
    box-shadow: 0 20px 60px rgba(0, 35, 89, 0.25);
}

.pc-card-2 .pc-card-glow {
    box-shadow: 0 20px 60px rgba(250, 208, 0, 0.25);
}

.pc-card-3 .pc-card-glow {
    box-shadow: 0 20px 60px rgba(5, 151, 211, 0.25);
}

.pc-card-4 .pc-card-glow {
    box-shadow: 0 20px 60px rgba(156, 39, 176, 0.25);
}

.pc-card-5 .pc-card-glow {
    box-shadow: 0 20px 60px rgba(255, 87, 34, 0.25);
}

.pc-card-6 .pc-card-glow {
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.25);
}

/* Hover Effects */
.pc-category-card:hover {
    transform: translateY(-15px);
}

.pc-category-card:hover .pc-card-inner {
    box-shadow: 0 20px 60px rgba(0, 35, 89, 0.15);
}

.pc-category-card:hover .pc-card-glow {
    opacity: 1;
}

/* Icon Wrapper */
.pc-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Individual Icon Background Colors */
.pc-card-1 .pc-icon-bg {
    background: linear-gradient(135deg, var(--pc-primary-blue) 0%, var(--pc-accent-blue) 100%);
}

.pc-card-2 .pc-icon-bg {
    background: linear-gradient(135deg, #FFD700 0%, var(--pc-primary-yellow) 100%);
}

.pc-card-3 .pc-icon-bg {
    background: linear-gradient(135deg, var(--pc-accent-blue) 0%, #4FC3F7 100%);
}

.pc-card-4 .pc-icon-bg {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
}

.pc-card-5 .pc-icon-bg {
    background: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
}

.pc-card-6 .pc-icon-bg {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
}

/* Icon */
.pc-icon {
    font-size: 40px;
    color: var(--pc-white);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon Animations */
.pc-category-card:hover .pc-icon-bg {
    transform: rotate(180deg) scale(1.1);
}

.pc-category-card:hover .pc-icon {
    transform: scale(1.2) rotate(-180deg);
}

/* Floating Animation for Icons */
@keyframes pc-icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pc-icon-wrapper {
    animation: pc-icon-float 3s ease-in-out infinite;
}

.pc-card-1 .pc-icon-wrapper {
    animation-delay: 0s;
}

.pc-card-2 .pc-icon-wrapper {
    animation-delay: 0.2s;
}

.pc-card-3 .pc-icon-wrapper {
    animation-delay: 0.4s;
}

.pc-card-4 .pc-icon-wrapper {
    animation-delay: 0.6s;
}

.pc-card-5 .pc-icon-wrapper {
    animation-delay: 0.8s;
}

.pc-card-6 .pc-icon-wrapper {
    animation-delay: 1s;
}

.pc-category-card:hover .pc-icon-wrapper {
    animation: none;
}

/* Content */
.pc-content {
    text-align: center;
}

.pc-category-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--pc-primary-blue);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.pc-category-desc {
    font-size: 14px;
    color: var(--pc-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.pc-category-card:hover .pc-category-name {
    color: var(--pc-accent-blue);
}

.pc-category-card:hover .pc-category-desc {
    opacity: 1;
}

/* Arrow */
.pc-arrow {
    width: 45px;
    height: 45px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--pc-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateX(-20px);
}

.pc-arrow i {
    font-size: 18px;
    color: var(--pc-primary-blue);
    transition: all 0.3s ease;
}

.pc-category-card:hover .pc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Different Arrow Colors on Hover */
.pc-card-1:hover .pc-arrow {
    background: var(--pc-primary-blue);
}

.pc-card-2:hover .pc-arrow {
    background: var(--pc-primary-yellow);
}

.pc-card-3:hover .pc-arrow {
    background: var(--pc-accent-blue);
}

.pc-card-4:hover .pc-arrow {
    background: #9C27B0;
}

.pc-card-5:hover .pc-arrow {
    background: #FF5722;
}

.pc-card-6:hover .pc-arrow {
    background: #4CAF50;
}

.pc-category-card:hover .pc-arrow i {
    color: var(--pc-white);
    transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .popular-categories-section {
        padding: 80px 0;
    }

    .pc-main-title {
        font-size: 38px;
    }

    .pc-category-card {
        min-height: 300px;
    }

    .pc-card-inner {
        padding: 30px 20px;
    }

    .pc-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .pc-icon {
        font-size: 36px;
    }

    .pc-category-name {
        font-size: 20px;
    }

    .pc-category-desc {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .popular-categories-section {
        padding: 70px 0;
    }

    .pc-main-title {
        font-size: 34px;
    }

    .pc-section-header {
        margin-bottom: 50px;
    }

    .pc-categories-grid {
        gap: 25px;
    }

    .pc-category-card {
        min-height: 240px;
    }

    .pc-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .pc-icon {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .popular-categories-section {
        padding: 60px 0;
    }

    .pc-main-title {
        font-size: 30px;
    }

    .pc-subtitle {
        font-size: 12px;
    }

    .pc-description {
        font-size: 15px;
    }

    .pc-categories-grid {
        gap: 20px;
    }

    .pc-category-card {
        min-height: 220px;
    }

    .pc-card-inner {
        padding: 30px 20px;
    }

    .pc-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .pc-icon {
        font-size: 32px;
    }

    .pc-category-name {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .pc-category-desc {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .popular-categories-section {
        padding: 50px 0;
    }

    .pc-main-title {
        font-size: 26px;
    }

    .pc-section-header {
        margin-bottom: 40px;
    }

    .pc-categories-grid {
        gap: 15px;
    }

    .pc-category-card {
        min-height: 200px;
    }

    .pc-card-inner {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .pc-icon-wrapper {
        width: 65px;
        height: 65px;
    }

    .pc-icon {
        font-size: 28px;
    }

    .pc-category-name {
        font-size: 18px;
    }

    .pc-category-desc {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .pc-arrow {
        width: 40px;
        height: 40px;
    }

    .pc-arrow i {
        font-size: 16px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .pc-category-card,
    .pc-card-inner,
    .pc-icon-bg,
    .pc-icon,
    .pc-arrow,
    .pc-icon-wrapper {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .popular-categories-section {
        padding: 20px 0;
        background: white;
    }

    .popular-categories-section::before,
    .popular-categories-section::after {
        display: none;
    }

    .pc-card-inner {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .pc-card-glow {
        display: none;
    }
}