/* ============================================================================
   CTA Section - Professional Enhanced Styles
   ============================================================================ */

/* --------------------------------------------------------------------------
   Base Section Styles
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, #003459 0%, #004d7a 50%, #005b8e 100%);
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(13, 110, 253, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   CTA Card Container
   -------------------------------------------------------------------------- */
.cta-card {
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.cta-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 40px 80px rgba(0, 52, 89, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* --------------------------------------------------------------------------
   Background Layer & Decorative Elements
   -------------------------------------------------------------------------- */
.cta-bg-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.cta-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 107, 53, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(13, 110, 253, 0.12) 0%, transparent 60%);
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 52, 89, 0.15) 0%,
            rgba(0, 77, 122, 0.1) 50%,
            rgba(0, 91, 142, 0.15) 100%);
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Floating Shapes Animation
   -------------------------------------------------------------------------- */
.cta-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.shape-circle {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 80px rgba(255, 255, 255, 0.08),
        inset 0 0 40px rgba(255, 255, 255, 0.03);
}

.shape-1 {
    width: 450px;
    height: 450px;
    top: -20%;
    left: -12%;
    animation: floatShape1 20s infinite ease-in-out;
}

.shape-2 {
    width: 350px;
    height: 350px;
    bottom: -15%;
    right: -8%;
    background: rgba(255, 107, 53, 0.06);
    animation: floatShape2 24s infinite ease-in-out;
}

.shape-blob {
    background: rgba(13, 110, 253, 0.04);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-3 {
    width: 550px;
    height: 550px;
    top: 30%;
    right: -18%;
    animation: floatBlob 28s infinite ease-in-out;
}

.shape-ring {
    width: 300px;
    height: 300px;
    top: -10%;
    right: 15%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.08);
    animation: floatRing 22s infinite ease-in-out;
}

/* Shape Animations */
@keyframes floatShape1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(60px, -50px) scale(1.1) rotate(120deg);
    }

    66% {
        transform: translate(-40px, 30px) scale(0.95) rotate(240deg);
    }
}

@keyframes floatShape2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-70px, 60px) scale(1.15) rotate(180deg);
    }
}

@keyframes floatBlob {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        transform: translate(80px, -80px) rotate(180deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes floatRing {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-50px, 50px) scale(1.2) rotate(180deg);
    }
}

/* --------------------------------------------------------------------------
   Content Styles
   -------------------------------------------------------------------------- */
.cta-content {
    z-index: 10;
}

/* Pre-heading Badge */
.cta-badge .badge {
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-badge .badge:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

/* Main Heading */
.cta-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1.5px;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.15);
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #ffa94d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Subtitle */
.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Decorative Divider */
.cta-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.8), transparent);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Button Styles
   -------------------------------------------------------------------------- */
.btn-primary-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #f94144 100%);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 30px rgba(255, 107, 53, 0.35),
        0 0 0 0 rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f94144 0%, #d62828 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #f94144 0%, #d62828 100%);
    transform: translateY(-4px);
    box-shadow:
        0 15px 40px rgba(255, 107, 53, 0.45),
        0 0 0 6px rgba(255, 107, 53, 0.15);
}

.btn-primary-gradient:active {
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   Host Information
   -------------------------------------------------------------------------- */
.cta-host-info {
    opacity: 0.95;
}

.cta-host-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(8px);
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --------------------------------------------------------------------------
   Trust Badges
   -------------------------------------------------------------------------- */
.trust-badge {
    font-size: 0.95rem;
}

.trust-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

.bg-white-30 {
    background-color: rgba(255, 255, 255, 0.3);
}

.bg-opacity-15 {
    --bs-bg-opacity: 0.15;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

.letter-spacing-wide {
    letter-spacing: 1.5px;
}

.shadow-2xl {
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Decorative Wave
   -------------------------------------------------------------------------- */
.cta-wave {
    height: 120px;
    opacity: 0.3;
    pointer-events: none;
}

.cta-wave svg {
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .py-lg-7 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .py-lg-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991px) {
    .cta-card {
        margin: 0 1rem;
    }

    .cta-heading {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .cta-subtitle {
        font-size: 1.25rem;
    }

    .shape-1,
    .shape-2,
    .shape-3,
    .shape-4 {
        opacity: 0.3;
    }

    .cta-buttons {
        flex-direction: column !important;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Small Devices (Phones, 576px to 767px) */
@media (max-width: 767px) {
    .cta-section {
        min-height: 500px;
        padding: 3rem 0;
    }

    .cta-card {
        margin: 0 0.75rem;
    }

    .cta-content .px-3 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .cta-heading {
        font-size: 2rem;
        margin-bottom: 1.25rem !important;
    }

    .cta-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem !important;
    }

    .btn-lg {
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }

    .cta-host-info {
        margin-top: 2rem !important;
    }
}

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575px) {
    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-card {
        border-radius: 1.5rem !important;
    }

    .cta-badge .badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem !important;
    }

    .cta-heading {
        font-size: 1.75rem;
        letter-spacing: -0.5px;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-divider {
        width: 60px;
        height: 3px;
    }

    .cta-host-info .fs-5 {
        font-size: 1rem !important;
    }

    .shape-1 {
        width: 300px;
        height: 300px;
    }

    .shape-2 {
        width: 250px;
        height: 250px;
    }

    .shape-3 {
        width: 350px;
        height: 350px;
    }
}

/* --------------------------------------------------------------------------
   Animation & Accessibility
   -------------------------------------------------------------------------- */

/* Fade-in animation for elements */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* 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;
    }

    .shape {
        animation: none !important;
    }

    .cta-card:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.btn:focus-visible,
.click-scroll:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .btn-primary-gradient {
        border: 2px solid #ff6b35;
    }

    .btn-outline-light {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .cta-section {
        background: white !important;
        color: black !important;
    }

    .shape,
    .cta-bg-gradient,
    .cta-overlay,
    .cta-wave {
        display: none !important;
    }

    .cta-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}