/* ============================================
   CTA Section Enhancements
   ============================================ */

.subscribe-wrap {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(240, 253, 244, 0.5) 50%,
        rgba(255, 255, 255, 1) 100%);
}

/* Decorative gradient circles */
.subscribe-wrap::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(76, 175, 80, 0.15) 0%, 
        rgba(144, 238, 144, 0.1) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

.subscribe-wrap::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(129, 199, 132, 0.15) 0%, 
        rgba(102, 187, 106, 0.1) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: float 18s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.9;
    }
}

.subscribe-div {
    background: linear-gradient(135deg, 
        rgba(144, 238, 144, 0.15) 0%, 
        rgba(76, 175, 80, 0.1) 25%,
        rgba(102, 187, 106, 0.15) 50%,
        rgba(129, 199, 132, 0.1) 75%,
        rgba(144, 238, 144, 0.15) 100%) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.2);
    border: 3px solid rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.subscribe-div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 253, 244, 0.9) 25%,
        rgba(232, 245, 233, 0.92) 50%,
        rgba(237, 247, 237, 0.9) 75%,
        rgba(255, 255, 255, 0.93) 100%);
    z-index: -1;
    animation: gradientShift 8s ease infinite;
}

/* Animated gradient background effect */
.subscribe-div::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(76, 175, 80, 0.08) 0%, 
        transparent 50%,
        rgba(144, 238, 144, 0.06) 70%,
        transparent 100%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced CTA Heading with Gradient Text */
.subscribe-div h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, 
        #2e7d32 0%, 
        #43a047 25%,
        #4caf50 50%,
        #66bb6a 75%,
        #81c784 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInDown 0.8s ease-out, gradientMove 5s ease infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.subscribe-div p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #495057 !important;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Enhanced Call Now Button */
.subscribe-div .btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4), 
                0 0 0 0 rgba(76, 175, 80, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4), 
                    0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4), 
                    0 0 0 15px rgba(76, 175, 80, 0);
    }
}

.subscribe-div .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.subscribe-div .btn:hover::before {
    width: 300px;
    height: 300px;
}

.subscribe-div .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #45a049 0%, #4caf50 100%) !important;
}

.subscribe-div .btn:active {
    transform: translateY(-1px) scale(1.02);
}

.subscribe-div .btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.subscribe-div .btn:hover svg {
    transform: rotate(15deg) scale(1.1);
    animation: ring 0.5s ease-in-out;
}

@keyframes ring {
    0%, 100% { transform: rotate(15deg) scale(1.1); }
    25% { transform: rotate(-10deg) scale(1.15); }
    50% { transform: rotate(20deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.15); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscribe-wrap {
        padding: 2rem 0;
    }

    .subscribe-div {
        border-width: 2px;
    }

    .subscribe-div .btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.875rem 2rem !important;
    }
}

@media (max-width: 576px) {
    .subscribe-div {
        padding: 2rem 1rem !important;
        border-radius: 1.5rem !important;
    }

    .subscribe-div h2 {
        margin-bottom: 1rem !important;
    }

    .subscribe-div p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Animation keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .subscribe-wrap::before,
    .subscribe-wrap::after,
    .subscribe-div::before,
    .subscribe-div::after,
    .subscribe-div h2,
    .subscribe-div p,
    .subscribe-div .btn {
        animation: none !important;
    }
    
    .subscribe-div .btn:hover {
        transform: none;
    }
    
    .subscribe-div h2 {
        background-position: 0% 50% !important;
    }
}

