/**
 * Customize blocks
 * 
 * @version v2.0.0
 * @author Onepower (amir Bassir)
 */

.creative-header {
    position: relative;
    width: 96%;
    margin: 2rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 249, 250, 0.98) 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.geometric-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.1) 0%,
        rgba(108, 117, 125, 0.05) 100%);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: -40px;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    right: 15%;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%,
        rgba(255, 152, 0, 0.05) 100%);
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: -20px;
    animation-delay: 3s;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1) 0%,
        rgba(56, 142, 60, 0.05) 100%);
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: -40px;
    animation-delay: 4.5s;
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.1) 0%,
        rgba(200, 35, 51, 0.05) 100%);
}

.geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 123, 255, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(108, 117, 125, 0.03) 2px, transparent 2px);
    background-size: 40px 40px;
    animation: patternMove 20s linear infinite;
    opacity: 0.6;
}

.creative-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.creative-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, 
        #2c3e50 0%,
        #3498db 50%,
        #2c3e50 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    display: inline-block;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--bs-primary) 50%,
        transparent 100%);
    border-radius: 2px;
}

.creative-tagline {
    font-size: 1.4rem;
    color: var(--bs-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.tagline-text {
    display: inline-block;
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #495057;
}

.decorative-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-1 { background: var(--bs-primary); animation-delay: 0s; }
.dot-2 { background: var(--bs-warning); animation-delay: 0.3s; }
.dot-3 { background: var(--bs-success); animation-delay: 0.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .creative-header {
        width: 94%;
        margin: 1rem auto;
        padding: 3rem 1.5rem;
        min-height: 250px;
        border-radius: 20px;
    }
    
    .creative-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .creative-tagline {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .shape-1 { width: 80px; height: 80px; top: -20px; left: 5%; }
    .shape-2 { width: 60px; height: 60px; bottom: -15px; right: 8%; }
    .shape-3, .shape-4 { display: none; }
    .title-underline { width: 60px; height: 3px; }
}

@media (max-width: 576px) {
    .creative-header {
        width: 92%;
        padding: 2.5rem 1rem;
        min-height: 220px;
        border-radius: 16px;
    }
    
    .creative-title { font-size: 2rem; }
    .creative-tagline { font-size: 1.1rem; }
    .shape-1, .shape-2 { opacity: 0.7; }
    .decorative-dots { gap: 0.7rem; }
    .dot { width: 10px; height: 10px; }
}

/* Fallback for older browsers */
@supports not (background-clip: text) {
    .creative-title {
        color: #2c3e50;
        background: none;
        animation: none;
    }
}

/* Two Columns Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Beautiful 3D Cards with Borders */
.blog-card, .portfolio-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Enhanced Hover Effects */
.blog-card:hover, .portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--bs-primary);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.15),
        0 8px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px var(--bs-primary);
}

/* Card Image Container */
.card-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.blog-image, .portfolio-image {
    transition: all 0.5s ease;
    height: 220px;
    object-fit: cover;
    width: 100%;
}

/* Image Zoom Effect on Hover */
.card-image-link:hover .blog-image,
.card-image-link:hover .portfolio-image {
    transform: scale(1.08);
}

/* Image Overlay with Arrow Icon */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.85) 0%, 
        rgba(108, 117, 125, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.card-image-link:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 2.2rem;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.card-image-link:hover .overlay-icon {
    transform: scale(1);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

/* Card Body Styling */
.card-body {
    padding: 1.5rem;
}

.blog-title, .portfolio-title {
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-excerpt, .portfolio-excerpt {
    color: var(--bs-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Technology Badges */
.tech-badge {
    display: inline-block;
    background: var(--bs-light);
    color: var(--bs-dark);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin: 2px;
    border: 1px solid var(--bs-border-color);
}

/* Buttons */
.btn-outline-primary {
    border: 2px solid;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Section Separator */
.section-separator {
    display: flex;
    align-items: center;
    margin: 3rem 0;
}

.separator-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
    border-radius: 2px;
}

.separator-title {
    padding: 0 2rem;
    text-align: center;
}

.section-title {
    color: var(--bs-primary);
    font-weight: 600;
    margin: 0;
    font-size: 1.4rem;
    white-space: nowrap;
}

.section-spacer {
    margin: 2.5rem 0;
}

.spacer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-lg-6 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-separator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .separator-line {
        width: 100%;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .blog-image, .portfolio-image {
        height: 200px;
    }
}

/* Animation for page load */
.col-lg-6 {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.col-lg-6:nth-child(1) { animation-delay: 0.1s; }
.col-lg-6:nth-child(2) { animation-delay: 0.2s; }
.col-lg-6:nth-child(3) { animation-delay: 0.3s; }
.col-lg-6:nth-child(4) { animation-delay: 0.4s; }

/* Ensure proper spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.h-100 {
    height: 100% !important;
}

/* Featured Blog Card Styles */
.featured-blog-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Enhanced Hover Effects for Featured Card */
.featured-blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--bs-primary);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 12px 25px rgba(0, 0, 0, 0.1),
        0 0 0 2px var(--bs-primary);
}

/* Featured Blog Image Container */
.featured-blog-card .card-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    height: 400px;
}

.featured-blog-image {
    transition: all 0.6s ease;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Image Zoom Effect on Hover */
.featured-blog-card .card-image-link:hover .featured-blog-image {
    transform: scale(1.05);
}

/* Image Overlay with Arrow Icon */
.featured-blog-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.9) 0%, 
        rgba(108, 117, 125, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.featured-blog-card .card-image-link:hover .image-overlay {
    opacity: 1;
}

.featured-blog-card .overlay-icon {
    color: white;
    font-size: 3rem;
    transform: scale(0.8) rotate(-10deg);
    transition: all 0.4s ease;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.featured-blog-card .card-image-link:hover .overlay-icon {
    transform: scale(1) rotate(0deg);
}

/* Special Featured Badge for Featured Blog */
.featured-blog-card .featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: featuredPulse 3s infinite;
}

@keyframes featuredPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 6px 20px rgba(255, 107, 53, 0.4),
            0 3px 8px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.6),
            0 4px 12px rgba(0, 0, 0, 0.25);
    }
}

/* Featured Blog Card Body */
.featured-blog-card .card-body {
    padding: 2.5rem;
}

.featured-blog-meta {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.featured-blog-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--bs-dark);
}

.featured-blog-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.featured-blog-title a:hover {
    color: var(--bs-primary);
}

.featured-blog-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bs-secondary);
    margin-bottom: 2rem;
}

/* Featured Blog Button */
.featured-blog-actions .btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), #0056b3);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.featured-blog-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.4),
        0 4px 15px rgba(0, 123, 255, 0.2);
    background: linear-gradient(135deg, #0056b3, var(--bs-primary));
}

/* Section Separator for Featured Section */
.featured-blog-section .section-separator {
    margin: 2rem 0 3rem;
}

.featured-blog-section .section-title {
    color: #ff6b35;
    font-size: 1.6rem;
}

.featured-blog-section .separator-line {
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
}

/* Responsive Design for Featured Blog */
@media (max-width: 768px) {
    .featured-blog-card .card-image-container {
        height: 300px;
    }
    
    .featured-blog-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .featured-blog-title {
        font-size: 1.8rem;
    }
    
    .featured-blog-excerpt {
        font-size: 1.1rem;
    }
    
    .featured-blog-card .featured-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .featured-blog-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .featured-blog-card .card-image-container {
        height: 250px;
    }
    
    .featured-blog-title {
        font-size: 1.5rem;
    }
    
    .featured-blog-excerpt {
        font-size: 1rem;
    }
    
    .featured-blog-actions .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Animation for Featured Blog */
.featured-blog-card {
    animation: featuredEntrance 0.8s ease forwards;
    opacity: 0;
}

@keyframes featuredEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure proper spacing */
.featured-blog-section {
    margin-bottom: 3rem;
}
