/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Features Section */
.features-section {
    position: relative;
    overflow: hidden;
}

.feature-card {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(78, 149, 37, 0.1) !important;
    border-color: rgba(78, 149, 37, 0.2);
}

.feature-card .feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(78, 149, 37, 0.15) !important;
}

.feature-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(78, 149, 37, 0.05) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

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

.divider {
    width: 60px;
    height: 3px;
    background: var(--palmiye-primary, #4e9525) !important;
    margin: 0 auto;
}

/* Counter Animation */
.counter-number {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

/* Responsive Adjustments for Features */
@media (max-width: 768px) {
    .features-section {
        padding: 3rem 0;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .counter-item {
        margin-bottom: 30px;
    }
}

/* ========================================
   VIDEO SHOWCASE SECTION
   ======================================== */

.video-showcase-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    padding: 100px 0; /* Increased padding for wider feel */
}

.video-wrapper {
    position: relative;
    height: 400px; /* Reduced height for better mobile */
    overflow: hidden;
    background: #000;
    border-radius: 15px; /* Added rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Softer shadow */
}

.showcase-video,
.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-wrapper:hover .showcase-video,
.video-wrapper:hover .showcase-image {
    transform: scale(1.05);
}

/* Video Play Button Overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--palmiye-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--palmiye-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.video-info {
    text-align: right;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--palmiye-primary);
}

.overlay-content span {
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-content {
    height: 400px; /* Match video wrapper height */
    display: flex;
    align-items: center;
    padding: 0 60px; /* Reduced padding for more content space */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.content-wrapper {
    width: 100%;
    padding: 0; /* Removed horizontal padding for more space */
}

.video-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.25rem; /* Further reduced font-size for better fit */
    font-weight: 700;
    color: var(--palmiye-dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.section-description {
    font-size: 1rem; /* Further reduced font-size for better fit */
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.section-description h1,
.section-description h2,
.section-description h3,
.section-description h4,
.section-description h5,
.section-description h6 {
    color: var(--palmiye-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-description p {
    margin-bottom: 1rem;
}

.section-description ul,
.section-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.section-description li {
    margin-bottom: 0.5rem;
}

.feature-list {
    margin-bottom: 1.5rem; /* Reduced margin */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem; /* Further reduced gap */
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--palmiye-dark);
    padding: 0.5rem; /* Further reduced padding */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px; /* Smaller border radius */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-item i {
    color: var(--palmiye-primary);
    margin-right: 0.75rem; /* Reduced margin */
    font-size: 1.25rem; /* Smaller icon */
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem; /* Smaller text */
    font-weight: 500;
    line-height: 1.3; /* Tighter line height */
}

.action-buttons {
    display: flex;
    gap: 0.75rem; /* Further reduced gap */
    flex-wrap: wrap;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--palmiye-primary);
    color: var(--palmiye-primary);
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: var(--palmiye-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Video Section Button Styles */
.video-showcase-section .btn-modern {
    padding: 0.75rem 1.5rem; /* Smaller padding */
    font-size: 0.9rem; /* Smaller font */
    border-radius: 8px; /* Smaller border radius */
}

.video-showcase-section .btn-modern i {
    font-size: 0.9rem; /* Smaller icon */
    margin-left: 0.5rem; /* Reduced margin */
}

/* Responsive Video Section */
@media (max-width: 1199px) {
    .video-wrapper,
    .video-content {
        height: 350px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .video-wrapper,
    .video-content {
        height: 300px;
    }
    
    .video-content {
        padding: 40px 40px; /* Optimized padding for better content fit */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
        gap: 0.75rem; /* Consistent with desktop */
    }
    
    /* Responsive column adjustment */
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .video-wrapper {
        height: 400px;
    }
    
    .video-content {
        height: auto;
        padding: 60px 30px; /* Optimized padding for mobile */
    }
    
    .section-title {
        font-size: 1.75rem; /* Smaller title */
    }
    
    .play-pause-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .video-controls-overlay {
        padding: 30px 20px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem; /* Consistent gap */
    }
    
    .feature-list {
        gap: 0.5rem; /* Even smaller gap on mobile */
    }
    
    .feature-item {
        padding: 0.4rem; /* Smaller padding on mobile */
    }
}

@media (max-width: 575px) {
    .video-wrapper {
        height: 350px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
}

/* ========================================
   BLOG SECTION STYLES
   ======================================== */

/* Modern Blog Section Styles */
.blog-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23cbd5e1" opacity="0.05"/><circle cx="10" cy="50" r="0.5" fill="%23cbd5e1" opacity="0.05"/><circle cx="90" cy="30" r="0.5" fill="%23cbd5e1" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Modern Blog Card */
.blog-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(78, 149, 37, 0.2);
}

/* Modern Blog Image */
.blog-image-modern {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.blog-card-modern:hover .blog-img-modern {
    transform: scale(1.08);
}

/* Modern Blog Content */
.blog-content-modern {
    padding: 2.5rem;
    position: relative;
    background: white;
}

/* Category Tags */
.blog-categories-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-tag {
    background: rgba(78, 149, 37, 0.1);
    color: var(--palmiye-primary, #4E9525);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(78, 149, 37, 0.2);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--palmiye-primary, #4E9525);
    color: white;
    transform: translateY(-2px);
}

/* Modern Blog Title */
.blog-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: var(--palmiye-dark, #1a202c);
    text-align: left;
}

/* Modern Discover Button */
.blog-action-modern {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.discover-btn-modern {
    background: white;
    color: var(--palmiye-primary, #4E9525);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(78, 149, 37, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.discover-btn-modern:hover {
    background: var(--palmiye-primary, #4E9525);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 149, 37, 0.3);
    border-color: var(--palmiye-primary, #4E9525);
}

.discover-btn-modern i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.discover-btn-modern:hover i {
    transform: translateX(3px);
}

/* Blog CTA Button */
.blog-section .btn-modern {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(78, 149, 37, 0.3);
}

.blog-section .btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 149, 37, 0.4);
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-image-modern {
        height: 250px;
    }

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

    .blog-title-modern {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .blog-categories-modern {
        margin-bottom: 1rem;
    }

    .category-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .discover-btn-modern {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .blog-section .btn-modern {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .blog-image-modern {
        height: 220px;
    }

    .blog-content-modern {
        padding: 1.5rem;
    }

    .blog-title-modern {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .blog-categories-modern {
        gap: 0.4rem;
    }

    .category-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .discover-btn-modern {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Animation for modern blog cards */
.blog-card-modern {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpModern 0.8s ease-out forwards;
}

.blog-card-modern:nth-child(1) { animation-delay: 0.2s; }
.blog-card-modern:nth-child(2) { animation-delay: 0.4s; }

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

/* Admin Panel Integration - No color picker needed */

/* ========================================
   CTA SECTION ADVANCED ANIMATIONS
   ======================================== */

/* Home CTA Card with Advanced Animation */
.cta-card-home {
    background: 
        var(--palmiye-primary, #4E9525),
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 0%, transparent 40%);
    background-size: 100%, 200% 200%, 150% 150%;
    position: relative;
    overflow: hidden;
    color: var(--primary-text, #ffffff) !important;
    margin: 2rem 0;
    animation: backgroundShift 25s ease-in-out infinite;
}

.cta-card-home * {
    color: var(--primary-text, #ffffff) !important;
    position: relative;
    z-index: 5;
}

/* Animated Background Layers */
.cta-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        conic-gradient(from 0deg at 20% 20%, rgba(255,255,255,0.12) 0%, transparent 30%, rgba(255,255,255,0.08) 60%, transparent 100%),
        conic-gradient(from 180deg at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 40%, rgba(255,255,255,0.15) 70%, transparent 100%),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(255,255,255,0.03) 20px,
            transparent 40px,
            rgba(255,255,255,0.05) 60px,
            transparent 80px
        ),
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 25%, rgba(255,255,255,0.04) 50%, transparent 75%, rgba(255,255,255,0.08) 100%);
    animation: homeRotate 20s linear infinite;
    z-index: 1;
}

.cta-card-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 35%);
    animation: homePulse 12s ease-in-out infinite;
    z-index: 1;
}

/* Enhanced Floating Particles */
.cta-home-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: homeFloat 25s infinite ease-in-out;
    z-index: 3;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
}

.cta-home-particle:nth-child(1) { 
    width: 24px; height: 24px; top: 10%; left: 5%; 
    animation: homeFloat1 22s infinite ease-in-out, homeRotate1 8s linear infinite;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}
.cta-home-particle:nth-child(2) { 
    width: 32px; height: 32px; top: 80%; left: 90%; 
    animation: homeFloat2 28s infinite ease-in-out, homePulse1 6s ease-in-out infinite;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}
.cta-home-particle:nth-child(3) { 
    width: 18px; height: 18px; top: 30%; left: 15%; 
    animation: homeFloat3 20s infinite ease-in-out, homeRotate2 12s linear infinite reverse;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
}
.cta-home-particle:nth-child(4) { 
    width: 36px; height: 36px; top: 70%; left: 70%; 
    animation: homeFloat4 26s infinite ease-in-out, homePulse2 10s ease-in-out infinite;
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}
.cta-home-particle:nth-child(5) { 
    width: 28px; height: 28px; top: 20%; left: 80%; 
    animation: homeFloat5 24s infinite ease-in-out, homeRotate3 15s linear infinite;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 70% 30% 30% 70% / 30% 70% 30% 70%;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
}
.cta-home-particle:nth-child(6) { 
    width: 30px; height: 30px; top: 60%; left: 10%; 
    animation: homeFloat6 30s infinite ease-in-out, homePulse3 7s ease-in-out infinite;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}
.cta-home-particle:nth-child(7) { 
    width: 20px; height: 20px; top: 90%; left: 25%; 
    animation: homeFloat7 18s infinite ease-in-out, homeRotate4 9s linear infinite reverse;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.25) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}
.cta-home-particle:nth-child(8) { 
    width: 42px; height: 42px; top: 5%; left: 60%; 
    animation: homeFloat8 32s infinite ease-in-out, homePulse4 11s ease-in-out infinite;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
}
.cta-home-particle:nth-child(9) { 
    width: 26px; height: 26px; top: 45%; left: 85%; 
    animation: homeFloat9 21s infinite ease-in-out, homeRotate5 13s linear infinite;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 100%);
    border-radius: 70% 30% 30% 70% / 30% 70% 30% 70%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}
.cta-home-particle:nth-child(10) { 
    width: 34px; height: 34px; top: 85%; left: 50%; 
    animation: homeFloat10 27s infinite ease-in-out, homePulse5 8s ease-in-out infinite;
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Geometric Shapes */
.cta-geometric-shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.cta-shape-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 8%;
    background: linear-gradient(45deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: geometricFloat1 20s infinite ease-in-out, geometricRotate1 8s linear infinite;
}

.cta-shape-2 {
    width: 40px;
    height: 40px;
    top: 75%;
    right: 12%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 100%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: geometricFloat2 25s infinite ease-in-out, geometricRotate2 12s linear infinite reverse;
}

.cta-shape-3 {
    width: 35px;
    height: 35px;
    top: 25%;
    right: 20%;
    background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: geometricFloat3 18s infinite ease-in-out, geometricRotate3 10s linear infinite;
}

.cta-shape-4 {
    width: 50px;
    height: 50px;
    top: 65%;
    left: 15%;
    background: linear-gradient(225deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: geometricFloat4 22s infinite ease-in-out, geometricRotate4 15s linear infinite reverse;
}

.cta-shape-5 {
    width: 45px;
    height: 45px;
    top: 10%;
    right: 35%;
    background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.07) 100%);
    border-radius: 50% 0 50% 0;
    animation: geometricFloat5 24s infinite ease-in-out, geometricRotate5 18s linear infinite;
}

/* Wave Pattern Overlay */
.cta-wave-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 2px,
            transparent 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 2px,
            transparent 25px
        );
    animation: wavePattern 30s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Advanced Animation Keyframes */
@keyframes backgroundShift {
    0% { 
        background-position: 0% 0%, 0% 0%, 0% 0%; 
    }
    25% { 
        background-position: 100% 50%, 50% 100%, 25% 75%; 
    }
    50% { 
        background-position: 200% 100%, 100% 200%, 50% 150%; 
    }
    75% { 
        background-position: 150% 150%, 75% 25%, 75% 25%; 
    }
    100% { 
        background-position: 0% 0%, 0% 0%, 0% 0%; 
    }
}

@keyframes homeRotate {
    0% { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.4; 
    }
    25% { 
        transform: rotate(90deg) scale(1.15); 
        opacity: 0.6; 
    }
    50% { 
        transform: rotate(180deg) scale(0.9); 
        opacity: 0.5; 
    }
    75% { 
        transform: rotate(270deg) scale(1.08); 
        opacity: 0.7; 
    }
    100% { 
        transform: rotate(360deg) scale(1); 
        opacity: 0.4; 
    }
}

@keyframes homePulse {
    0% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.3; 
    }
    33% { 
        transform: scale(1.2) rotate(120deg); 
        opacity: 0.5; 
    }
    66% { 
        transform: scale(0.95) rotate(240deg); 
        opacity: 0.4; 
    }
    100% { 
        transform: scale(1) rotate(360deg); 
        opacity: 0.3; 
    }
}

/* Individual Particle Animations */
@keyframes homeFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(15px, -20px) scale(1.2); opacity: 0.7; }
    50% { transform: translate(-10px, -35px) scale(0.8); opacity: 0.5; }
    75% { transform: translate(25px, -15px) scale(1.1); opacity: 0.6; }
}

@keyframes homeFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    20% { transform: translate(-20px, -25px) scale(1.3); opacity: 0.6; }
    40% { transform: translate(10px, -40px) scale(0.9); opacity: 0.4; }
    60% { transform: translate(-15px, -20px) scale(1.15); opacity: 0.5; }
    80% { transform: translate(20px, -30px) scale(0.85); opacity: 0.45; }
}

@keyframes homeFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    30% { transform: translate(12px, -18px) scale(1.25); opacity: 0.8; }
    60% { transform: translate(-18px, -32px) scale(0.75); opacity: 0.6; }
    90% { transform: translate(8px, -12px) scale(1.1); opacity: 0.7; }
}

@keyframes homeFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(-25px, -20px) scale(1.2); opacity: 0.6; }
    50% { transform: translate(15px, -45px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(-10px, -25px) scale(1.15); opacity: 0.55; }
}

@keyframes homeFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    20% { transform: translate(18px, -22px) scale(1.3); opacity: 0.7; }
    40% { transform: translate(-12px, -38px) scale(0.85); opacity: 0.5; }
    60% { transform: translate(22px, -16px) scale(1.1); opacity: 0.6; }
    80% { transform: translate(-8px, -28px) scale(0.95); opacity: 0.45; }
}

@keyframes homeFloat6 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    33% { transform: translate(-20px, -30px) scale(1.25); opacity: 0.65; }
    66% { transform: translate(25px, -20px) scale(0.8); opacity: 0.5; }
}

@keyframes homeFloat7 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    40% { transform: translate(15px, -25px) scale(1.3); opacity: 0.8; }
    80% { transform: translate(-20px, -15px) scale(0.9); opacity: 0.6; }
}

@keyframes homeFloat8 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    25% { transform: translate(-30px, -25px) scale(1.2); opacity: 0.5; }
    50% { transform: translate(20px, -50px) scale(0.75); opacity: 0.35; }
    75% { transform: translate(-15px, -30px) scale(1.1); opacity: 0.45; }
}

@keyframes homeFloat9 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    30% { transform: translate(22px, -28px) scale(1.35); opacity: 0.75; }
    70% { transform: translate(-18px, -18px) scale(0.85); opacity: 0.55; }
}

@keyframes homeFloat10 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    20% { transform: translate(-25px, -35px) scale(1.25); opacity: 0.6; }
    40% { transform: translate(30px, -20px) scale(0.8); opacity: 0.45; }
    60% { transform: translate(-10px, -40px) scale(1.15); opacity: 0.5; }
    80% { transform: translate(15px, -25px) scale(0.9); opacity: 0.4; }
}

/* Rotation Animations */
@keyframes homeRotate1 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes homeRotate2 { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes homeRotate3 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes homeRotate4 { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes homeRotate5 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Pulse Animations */
@keyframes homePulse1 {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes homePulse2 {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes homePulse3 {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.25); opacity: 0.65; }
}

@keyframes homePulse4 {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes homePulse5 {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

/* Geometric Shape Animations */
@keyframes geometricFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(20px, -30px) scale(1.2) rotate(45deg); }
    50% { transform: translate(-15px, -45px) scale(0.8) rotate(90deg); }
    75% { transform: translate(30px, -20px) scale(1.1) rotate(135deg); }
}

@keyframes geometricFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    20% { transform: translate(-25px, -35px) scale(1.3) rotate(60deg); }
    40% { transform: translate(15px, -50px) scale(0.9) rotate(120deg); }
    60% { transform: translate(-10px, -25px) scale(1.15) rotate(180deg); }
    80% { transform: translate(20px, -40px) scale(0.85) rotate(240deg); }
}

@keyframes geometricFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(18px, -28px) scale(1.25) rotate(120deg); }
    66% { transform: translate(-22px, -35px) scale(0.75) rotate(240deg); }
}

@keyframes geometricFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(-30px, -25px) scale(1.2) rotate(90deg); }
    50% { transform: translate(25px, -55px) scale(0.8) rotate(180deg); }
    75% { transform: translate(-15px, -35px) scale(1.15) rotate(270deg); }
}

@keyframes geometricFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    20% { transform: translate(22px, -32px) scale(1.3) rotate(72deg); }
    40% { transform: translate(-18px, -48px) scale(0.85) rotate(144deg); }
    60% { transform: translate(28px, -22px) scale(1.1) rotate(216deg); }
    80% { transform: translate(-12px, -38px) scale(0.95) rotate(288deg); }
}

/* Rotation Animations for Shapes */
@keyframes geometricRotate1 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes geometricRotate2 { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes geometricRotate3 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes geometricRotate4 { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes geometricRotate5 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Wave Pattern Animation */
@keyframes wavePattern {
    0% { 
        background-position: 0% 0%, 0% 0%; 
        opacity: 0.3; 
    }
    25% { 
        background-position: 50% 50%, -50% 50%; 
        opacity: 0.6; 
    }
    50% { 
        background-position: 100% 100%, -100% 100%; 
        opacity: 0.4; 
    }
    75% { 
        background-position: 150% 50%, -150% 50%; 
        opacity: 0.7; 
    }
    100% { 
        background-position: 200% 0%, -200% 0%; 
        opacity: 0.3; 
    }
}

/* Responsive Design for CTA Section */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile for better performance */
    .cta-card-home {
        animation: backgroundShift 30s ease-in-out infinite;
    }
    
    .cta-home-particle {
        opacity: 0.8;
        backdrop-filter: none; /* Remove blur on mobile for performance */
    }
    
    /* Hide some geometric shapes on smaller screens */
    .cta-shape-4,
    .cta-shape-5 {
        display: none;
    }
    
    /* Reduce wave pattern complexity */
    .cta-wave-pattern {
        opacity: 0.4;
        animation: wavePattern 40s linear infinite;
    }
    
    /* Adjust title and text sizes */
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Further reduce animations on very small screens */
    .cta-home-particle:nth-child(n+6) {
        display: none; /* Hide some particles */
    }
    
    .cta-shape-2,
    .cta-shape-3 {
        opacity: 0.6;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
}

/* Performance optimization for low-end devices */
@media (prefers-reduced-motion: reduce) {
    .cta-card-home,
    .cta-card-home::before,
    .cta-card-home::after,
    .cta-home-particle,
    .cta-geometric-shape,
    .cta-wave-pattern {
        animation: none !important;
    }
    
    .cta-home-particle {
        opacity: 0.3;
    }
    
    .cta-geometric-shape {
        opacity: 0.2;
    }
}