/**
 * Modern CTA Section Styles
 * Tema renklerine uygun profesyonel tasarım
 */

/* Ana CTA Bölümü */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Ana overlay efekti */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(42, 95, 66, 0.9) 0%, 
        rgba(26, 67, 46, 0.85) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Animated gradient overlay */
.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    animation: ctaShimmer 4s infinite;
    z-index: 2;
}

@keyframes ctaShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Container z-index */
.cta .container {
    position: relative;
    z-index: 3;
}

/* CTA İçerik */
.cta__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Başlık Stilleri */
.cta .sec-title h2 {
    font-size: 55px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 30px !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: -0.02em !important;
}

.cta .sec-title h2 span {
    color: #84D8A8 !important;
    position: relative;
    display: inline-block;
}

/* Span altına dekoratif çizgi */
.cta .sec-title h2 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #84D8A8 20%, 
        #84D8A8 80%, 
        transparent 100%);
    border-radius: 2px;
    animation: underlineGlow 2s infinite alternate;
}

@keyframes underlineGlow {
    from {
        box-shadow: 0 0 5px rgba(132, 216, 168, 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(132, 216, 168, 0.6);
    }
}

/* Açıklama Metni */
.cta .sec-title p {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
    margin-bottom: 40px !important;
    font-weight: 400 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Modern Button Tasarımı */
.cta .thm-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, #2a5f42 0%, #3d7c5a 50%, #4a9068 100%) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 18px 35px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 25px rgba(42, 95, 66, 0.4) !important;
    border: 2px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 200px !important;
    justify-content: center !important;
}

/* Button hover efekti */
.cta .thm-btn:hover {
    background: linear-gradient(135deg, #3d7c5a 0%, #2a5f42 50%, #1a432e 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(42, 95, 66, 0.6) !important;
    border-color: rgba(132, 216, 168, 0.5) !important;
}

/* Button active state */
.cta .thm-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(42, 95, 66, 0.4) !important;
}

/* Button ripple efekti */
.cta .thm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.cta .thm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta .thm-btn span {
    position: relative !important;
    z-index: 1 !important;
}

/* Icon Box Stilleri */
.cta .thm-btn .icon__box {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
}

.cta .thm-btn:hover .icon__box {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(360deg) !important;
}

.cta .thm-btn .icon__first,
.cta .thm-btn .icon__second {
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    filter: brightness(0) invert(1) !important;
    transition: all 0.3s ease !important;
}

.cta .thm-btn .icon__first {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.cta .thm-btn .icon__second {
    opacity: 0 !important;
    transform: translateX(-5px) !important;
}

.cta .thm-btn:hover .icon__first {
    opacity: 0 !important;
    transform: translateX(5px) !important;
}

.cta .thm-btn:hover .icon__second {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Dekoratif Elementler */
.cta-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.cta-decoration::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(132, 216, 168, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: ctaFloat 8s ease-in-out infinite;
}

.cta-decoration::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    animation: ctaFloat 6s ease-in-out infinite reverse;
}

@keyframes ctaFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 1;
    }
}

/* Particles efekt */
.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.cta-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(132, 216, 168, 0.6);
    border-radius: 50%;
    animation: particleFloat 4s infinite;
}

.cta-particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.4);
    animation-duration: 6s;
    animation-delay: -2s;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0);
    }
}

/* Responsive Tasarım */
@media (max-width: 1199px) {
    .cta {
        padding: 80px 0;
        min-height: 500px;
    }
    
    .cta .sec-title h2 {
        font-size: 45px !important;
    }
}

@media (max-width: 991px) {
    .cta {
        padding: 70px 0;
        min-height: 450px;
    }
    
    .cta .sec-title h2 {
        font-size: 38px !important;
    }
    
    .cta .sec-title p {
        font-size: 16px !important;
    }
    
    .cta .thm-btn {
        font-size: 16px !important;
        padding: 16px 30px !important;
    }
}

@media (max-width: 767px) {
    .cta {
        padding: 60px 0;
        min-height: 400px;
        background-attachment: scroll !important;
    }
    
    .cta .sec-title h2 {
        font-size: 32px !important;
        margin-bottom: 25px !important;
    }
    
    .cta .sec-title h2 br {
        display: none;
    }
    
    .cta .sec-title p {
        font-size: 15px !important;
        margin-bottom: 35px !important;
    }
    
    .cta .sec-title p br {
        display: none;
    }
    
    .cta .thm-btn {
        font-size: 15px !important;
        padding: 14px 25px !important;
        min-width: 180px !important;
    }
    
    .cta-decoration::before,
    .cta-decoration::after {
        display: none;
    }
    
    .cta::after {
        animation: none;
    }
}

@media (max-width: 575px) {
    .cta {
        padding: 50px 0;
        min-height: 350px;
    }
    
    .cta .sec-title h2 {
        font-size: 28px !important;
    }
    
    .cta__content {
        padding: 0 20px;
    }
    
    .cta .thm-btn {
        font-size: 14px !important;
        padding: 12px 20px !important;
        min-width: 160px !important;
        gap: 8px !important;
    }
    
    .cta .thm-btn .icon__box {
        width: 20px !important;
        height: 20px !important;
    }
    
    .cta .thm-btn .icon__first,
    .cta .thm-btn .icon__second {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Dark mode support (opsiyonel) */
@media (prefers-color-scheme: dark) {
    .cta::before {
        background: linear-gradient(135deg, 
            rgba(42, 95, 66, 0.95) 0%, 
            rgba(26, 67, 46, 0.9) 50%, 
            rgba(0, 0, 0, 0.8) 100%);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cta::after,
    .cta__content,
    .cta .sec-title h2 span::after,
    .cta-decoration::before,
    .cta-decoration::after,
    .cta-particle {
        animation: none !important;
    }
    
    .cta .thm-btn:hover {
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cta::before {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .cta .sec-title h2 {
        color: #ffffff !important;
        text-shadow: 2px 2px 4px #000000 !important;
    }
    
    .cta .thm-btn {
        background: #2a5f42 !important;
        border: 2px solid #ffffff !important;
    }
}