/* ===== Starry CTA Component ===== */
.starry-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: #000000;
}

/* Stars Background */
.starry-cta .stars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    pointer-events: none; /* 클릭 이벤트 방지 */
}

/* Star layers for depth effect */
.starry-cta .stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* 클릭 이벤트 방지 */
}

/* Additional random stars */
.starry-cta .stars-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 25% 85%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 40% 25%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 65% 45%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 85% 70%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 95% 20%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 5% 60%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 55% 95%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 75% 5%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 35% 65%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Small stars - far away */
.starry-cta .stars-small {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 130px 40px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 80px 10px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 110px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 170px 120px, rgba(255, 255, 255, 0.8), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.9;
}

/* Medium stars */
.starry-cta .stars-medium {
    background-image: 
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 90px 40px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 15px 105px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 195px 25px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 250px 250px;
    background-repeat: repeat;
    opacity: 0.8;
}

/* Large stars - closer */
.starry-cta .stars-large {
    background-image: 
        radial-gradient(2.5px 2.5px at 80px 100px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 150px 50px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2.5px 2.5px at 30px 180px, rgba(255, 255, 255, 0.4), transparent);
    background-size: 300px 300px;
    background-repeat: repeat;
    opacity: 0.7;
}

/* Twinkling stars */
.starry-cta .star-twinkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none; /* 클릭 이벤트 방지 */
}

.starry-cta .star-twinkle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; width: 1px; height: 1px; }
.starry-cta .star-twinkle:nth-child(2) { top: 30%; left: 60%; animation-delay: 1s; }
.starry-cta .star-twinkle:nth-child(3) { top: 60%; left: 30%; animation-delay: 2s; width: 1.5px; height: 1.5px; }
.starry-cta .star-twinkle:nth-child(4) { top: 80%; left: 80%; animation-delay: 0.5s; }
.starry-cta .star-twinkle:nth-child(5) { top: 20%; left: 90%; animation-delay: 1.5s; width: 1px; height: 1px; }
.starry-cta .star-twinkle:nth-child(6) { top: 70%; left: 10%; animation-delay: 2.5s; }
.starry-cta .star-twinkle:nth-child(7) { top: 40%; left: 40%; animation-delay: 0.8s; width: 1.5px; height: 1.5px; }
.starry-cta .star-twinkle:nth-child(8) { top: 90%; left: 50%; animation-delay: 1.8s; }
.starry-cta .star-twinkle:nth-child(9) { top: 15%; left: 45%; animation-delay: 3s; width: 1px; height: 1px; }
.starry-cta .star-twinkle:nth-child(10) { top: 55%; left: 75%; animation-delay: 3.5s; }
.starry-cta .star-twinkle:nth-child(11) { top: 35%; left: 15%; animation-delay: 1.3s; width: 1.5px; height: 1.5px; }
.starry-cta .star-twinkle:nth-child(12) { top: 85%; left: 35%; animation-delay: 2.8s; }

/* Remove shooting stars - commented out for cleaner look */
/* .shooting-star { display: none; } */

/* Animations */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Content Area */
.starry-cta .container {
    position: relative;
    z-index: 2;
}

.starry-cta .cta-wrapper {
    text-align: center;
    position: relative;
}

.starry-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Text Styles */
.starry-cta .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.starry-cta .cta-title span {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #007BFF, #0056E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Removed underline animation for cleaner look */

.starry-cta .cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.starry-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.starry-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.starry-cta .btn-primary {
    background: linear-gradient(135deg, #007BFF, #0056E0);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

.starry-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
}

.starry-cta .btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.starry-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.starry-cta .btn i {
    font-size: 1rem;
    animation: arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Removed glow effect for cleaner look */

/* Responsive */
@media (max-width: 768px) {
    .starry-cta {
        padding: 60px 0;
    }
    
    .starry-cta .cta-title {
        font-size: 1.8rem;
    }
    
    .starry-cta .cta-description {
        font-size: 1rem;
    }
    
    .starry-cta .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .starry-cta .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}
