/**
 * Özel Stiller
 * Dr. Pınar Esra Turan Psikolojik Danışmanlık Sitesi
 */

/* ===== Genel Stiller ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg,
            rgba(108, 99, 255, 0.95) 0%,
            rgba(139, 92, 246, 0.9) 50%,
            rgba(255, 101, 132, 0.85) 100%);
}

/* ===== Card Hover Effects ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(108, 99, 255, 0.25);
}

/* ===== Button Styles ===== */
.btn-primary {
    background: linear-gradient(135deg, #6C63FF 0%, #8B5CF6 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5B52E5 0%, #7C3AED 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #FF6584 0%, #FF8E9E 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #E5546E 0%, #FF7085 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 101, 132, 0.4);
}

/* ===== Glassmorphism ===== */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== Section Decorations ===== */
.section-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(108, 99, 255, 0.03) 0%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* ===== Animated Border ===== */
.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C63FF, #FF6584);
    transition: width 0.3s ease;
}

.animated-border:hover::after {
    width: 100%;
}

/* ===== Icon Box ===== */
.icon-box {
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-box:hover::before {
    opacity: 1;
}

.icon-box svg {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.icon-box:hover svg {
    color: white !important;
}

/* ===== Floating Animation ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* ===== Pulse Animation ===== */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(108, 99, 255, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* ===== Shimmer Effect ===== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6C63FF, #FF6584);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5B52E5, #E5546E);
}

/* ===== Form Styles ===== */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-family: 'Georgia', serif;
    color: rgba(108, 99, 255, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* ===== Blog Card ===== */
.blog-card img {
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
}

/* ===== Service Card ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6C63FF, #FF6584);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Stats Counter ===== */
.stat-number {
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== WhatsApp Button Pulse ===== */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.fixed.bottom-6.right-6 {
    animation: whatsapp-pulse 2s infinite;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 80vh;
    }

    .floating {
        animation: none;
    }
}

/* ===== Loading Spinner ===== */
.spinner {
    border: 4px solid rgba(108, 99, 255, 0.1);
    border-left-color: #6C63FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Overlay ===== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(108, 99, 255, 0.8) 0%,
            rgba(255, 101, 132, 0.6) 100%);
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background: rgba(108, 99, 255, 0.1);
    color: #6C63FF;
}

.badge-secondary {
    background: rgba(255, 101, 132, 0.1);
    color: #FF6584;
}

/* ===== Divider ===== */
.divider {
    position: relative;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}