/**
 * Main Styles for TDService Premium
 *
 * @package TDService_Premium
 * @since 2.0.0
 */

/* ==========================================================================
   Banner Carousel Section
   ========================================================================== */

.banner-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #1a1a1a 50%, #2d2d2d 75%, #1a1a1a 100%);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
}

/* Simple elegant shine effect */
.banner-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Minimal gold accent */
.banner-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.03) 100%);
    z-index: 0;
    pointer-events: none;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    /* Remove background image, use pure gradient */
    background-image: none !important;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.banner-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 700px;
    color: white;
    animation: fadeInUp 1s ease-out;
}

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

.banner-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 50%, #2563EB 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
    animation: gradientShift 5s ease infinite;
    filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.3));
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.banner-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #2563EB 0%, #DC2626 50%, transparent 100%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
    animation: lineExpand 3s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% {
        width: 120px;
        opacity: 1;
    }
    50% {
        width: 180px;
        opacity: 0.8;
    }
}

.banner-description {
    font-size: clamp(17px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

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

/* Banner Navigation Controls */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    border: 2px solid rgba(37, 99, 235, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #2563EB;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.banner-prev:hover,
.banner-next:hover {
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    border-color: #2563EB;
    color: #000;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

.banner-prev svg,
.banner-next svg {
    flex-shrink: 0;
}

/* Banner Dots Indicator */
.banner-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0;
}

.banner-dot:hover {
    background: rgba(37, 99, 235, 0.6);
    transform: scale(1.3);
}

.banner-dot.active {
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    border-color: #2563EB;
    width: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-section {
    background-color: white;
}

.blog-grid {
    gap: 20px;
    margin-bottom: 30px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--color-gray);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: var(--color-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.blog-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.blog-date .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

.blog-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta svg {
    flex-shrink: 0;
    color: #2563EB;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #2563EB;
}

.blog-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563EB;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-readmore:hover {
    gap: 12px;
    color: #2563EB;
}

.blog-readmore svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.blog-readmore:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Hero Section (for fallback pages)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M50 50m-40 0a40 40 0 1 0 80 0a40 40 0 1 0-80 0" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="1"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    color: var(--color-secondary);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-section {
    background-color: var(--color-gray);
}

.services-grid {
    gap: 20px;
}

.service-card {
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-secondary);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.service-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ==========================================================================
   Product Group Section
   ========================================================================== */

.product-group-section {
    padding: 60px 0;
}

.product-group-section.bg-white {
    background-color: white;
}

.product-group-section.bg-gray {
    background-color: var(--color-gray);
}

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

.section-subtitle {
    color: #666;
    font-size: 18px;
    margin-top: 10px;
}

/* ==========================================================================
   Featured Products Section
   ========================================================================== */

.featured-products-section {
    background-color: white;
}

.products-grid {
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25), 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.3);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--color-gray);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.badge-sale {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-featured {
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    color: #000;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.quick-view-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--color-secondary);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: #2563EB;
    color: var(--color-secondary);
    transform: scale(1.1);
}

.product-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.5;
    min-height: 51px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-title a:hover {
    color: #2563EB;
}

.product-rating {
    margin-bottom: 0;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating .star {
    color: #2563EB;
    font-size: 14px;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .price {
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.product-price del {
    font-size: 16px;
    color: #999;
    background: none;
    -webkit-text-fill-color: #999;
    text-decoration: line-through;
}

.product-actions {
    margin-top: auto;
    padding-top: 5px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.categories-section {
    background-color: var(--color-gray);
}

.categories-grid {
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.category-card:hover {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2), 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.3);
}

.category-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.category-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    border-radius: 50%;
    opacity: 0.15;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover .category-image img {
    transform: scale(1.12) rotate(2deg);
}

.category-info {
    padding: 18px;
    background: white;
    text-align: center;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #2563EB;
}

.category-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

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

.category-button {
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    color: #000;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-button {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   Call to Action Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-large svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.content-area,
.content-wrapper {
    padding: 60px 0;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-meta svg {
    flex-shrink: 0;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-content,
.entry-excerpt {
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.tags-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-links a {
    background: var(--color-gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.tags-links a:hover {
    background: #2563EB;
    color: var(--color-secondary);
}

/* ==========================================================================
   Archive / Blog
   ========================================================================== */

.page-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 15px 0;
    background: var(--color-gray);
    border-radius: 10px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-secondary);
}

.archive-description {
    margin-top: 15px;
    color: #666;
}

.posts-grid {
    margin-bottom: 35px;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.post-card .post-thumbnail {
    margin-bottom: 0;
    border-radius: 0;
}

.post-card .post-content {
    padding: 18px;
}

.post-card .entry-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.post-card .entry-meta {
    font-size: 13px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563EB;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-text);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.pagination .page-numbers:hover,
.nav-links a:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: var(--color-secondary);
}

.pagination .page-numbers.current {
    background: #2563EB;
    border-color: #2563EB;
    color: var(--color-secondary);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-secondary);
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
    color: var(--color-secondary);
}

.back-to-top:hover svg {
    color: #2563EB;
}

/* ==========================================================================
   Performance & Smoothness Enhancements
   ========================================================================== */

/* Page Load Fade In */
body {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.page-loaded {
    opacity: 1;
}

/* Scroll Reveal Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Image Optimization */
img {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

img.img-optimized {
    opacity: 1;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Will-change hints for smooth animations */
.btn,
.product-card,
.service-card,
.blog-card {
    will-change: transform;
}

.btn:hover,
.product-card:hover,
.service-card:hover,
.blog-card:hover {
    will-change: auto;
}

/* GPU Acceleration for Transforms */
.service-card,
.product-card,
.blog-card,
.btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize Text Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth Transitions for All Interactive Elements */
a,
button,
input,
select,
textarea {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Loading State for Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Skeleton Loading for Cards (Optional) */
.service-card:empty,
.product-card:empty,
.blog-card:empty {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

/* Smooth Page Transitions */
.page-transition {
    transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body {
        opacity: 1;
    }

    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
}

/* Enhance Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
    transition: outline-offset 0.2s ease;
}

/* Smooth Opacity Transitions */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for lists */
.service-card:nth-child(1),
.product-card:nth-child(1),
.blog-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2),
.product-card:nth-child(2),
.blog-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3),
.product-card:nth-child(3),
.blog-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4),
.product-card:nth-child(4),
.blog-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Optimize Hover Performance */
.btn,
.product-card,
.service-card,
.blog-card {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                background 0.3s ease;
}

/* Content Loading Optimization */
.content-loading {
    pointer-events: none;
    opacity: 0.6;
    filter: grayscale(0.3);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.content-loaded {
    pointer-events: auto;
    opacity: 1;
    filter: grayscale(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .banner-carousel {
        height: 500px;
    }

    .banner-prev,
    .banner-next {
        width: 45px;
        height: 45px;
    }

    .banner-prev {
        left: 20px;
    }

    .banner-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .banner-carousel {
        height: 400px;
    }

    .banner-content {
        max-width: 100%;
    }

    .banner-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .banner-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
    }

    .banner-prev {
        left: 10px;
    }

    .banner-next {
        right: 10px;
    }

    .banner-dots {
        bottom: 20px;
    }

    .hero-section {
        padding: 35px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 15px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 15px 20px;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-title {
        font-size: 18px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-description {
        font-size: 16px;
    }

    .entry-title {
        font-size: 28px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .banner-carousel {
        height: 350px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-description {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }

    .blog-date {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
    }

    .blog-date .day {
        font-size: 20px;
    }

    .blog-date .month {
        font-size: 11px;
    }

    /* Mobile-specific touch improvements */
    .btn,
    .banner-buttons a,
    .service-card .btn,
    .product-card .btn {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 15px;
        touch-action: manipulation;
    }

    /* Better mobile banner spacing */
    .banner-content {
        padding: 0 20px;
    }

    /* Mobile-friendly input sizes (prevent iOS zoom) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"] {
        font-size: 16px;
    }
}
