/**
 * Advanced Blog System Styles - PREMIUM VERSION
 * Professional styling with glassmorphism and modern animations
 */

/* Blog Filter Styles - PREMIUM */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    background: #FF7A00;
    border-color: #FF7A00;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}

/* Blog Grid Styles - PREMIUM */
#blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(14, 165, 233, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

.blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(14, 165, 233, 0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-card:hover .blog-card-image::after {
    opacity: 1;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #FF7A00 0%, #ff9500 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.blog-card-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0B1F3A;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #FF7A00;
}

.blog-card-excerpt {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    color: #9ca3af;
}

.blog-card-date {
    font-weight: 600;
    color: #6b7280;
}

.blog-card-read-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

.blog-tag {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 122, 0, 0.1);
    color: #FF7A00;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 122, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(255, 122, 0, 0.2);
    border-color: rgba(255, 122, 0, 0.4);
    transform: translateY(-2px);
}

/* Blog Loading State */
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6b7280;
}

/* Blog Error State */
.blog-error {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
}

/* Pagination Styles - PREMIUM */
#blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(255, 122, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #6b7280;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 48px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #FF7A00;
    color: #FF7A00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FF7A00 0%, #ff9500 100%);
    border-color: #FF7A00;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Portfolio Styles - PREMIUM */
#portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.portfolio-category {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.portfolio-category::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(14, 165, 233, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-category:hover::before {
    opacity: 1;
}

.category-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(14, 165, 233, 0.1));
    border: 2px solid rgba(255, 122, 0, 0.2);
    transition: all 0.3s ease;
}

.portfolio-category:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.3);
}

.category-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0B1F3A;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.portfolio-category:hover .category-title {
    color: #FF7A00;
}

.category-description {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.project-count {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(14, 165, 233, 0.1));
    color: #FF7A00;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    border: 2px solid rgba(255, 122, 0, 0.2);
}

.category-projects {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-preview {
    padding: 1.5rem;
    border: 2px solid rgba(255, 122, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.project-preview::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #FF7A00, #0EA5E9);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.project-preview:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 122, 0, 0.4);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.15);
}

.project-preview:hover::before {
    transform: scaleY(1);
}

.project-preview h4 {
    font-weight: 700;
    color: #0B1F3A;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.project-preview:hover h4 {
    color: #FF7A00;
}

.project-preview p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #FF7A00, #ff9500);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
}

/* Contact Cards Styles - PREMIUM */
.contact-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(14, 165, 233, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contact-icon.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-icon.email {
    background: linear-gradient(135deg, #ea4335, #c5221f);
}

.contact-icon.location {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.contact-card-title {
    font-weight: 700;
    color: #0B1F3A;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-card-title {
    color: #FF7A00;
}

.contact-card-subtitle {
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
}

.contact-card-action {
    margin-top: 1.25rem;
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF7A00;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.contact-card-link:hover {
    color: #e56500;
    gap: 0.75rem;
}

.contact-card-text {
    color: #6b7280;
    font-weight: 600;
}

.contact-time-badge {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Responsive Design - PREMIUM */
@media (max-width: 768px) {
    #blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #portfolio-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        gap: 0.375rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .contact-cards-container {
        grid-template-columns: 1fr;
    }

    .blog-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .stats-card {
        padding: 1rem;
    }

    .blog-card-title {
        font-size: 1.125rem;
    }

    .pagination-btn {
        padding: 0.5rem 1rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .blog-card-content {
        padding: 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .blog-card-category {
        padding: 0.25rem 0.75rem;
        font-size: 0.6875rem;
    }
}

/* Animation Classes - PREMIUM */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-up {
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Card reveal animation */
.blog-card {
    animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover glow effect */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hover-glow:hover::after {
    width: 300px;
    height: 300px;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FF7A00, #ff9500);
    z-index: 999;
    transition: width 0.1s ease-out;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #FF7A00 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}