/* ===================================
   İç Dünya Psikoloji Merkezi
   Custom Styles & Animations
   =================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #5B4A8A;
    color: white;
}

/* --- Gradient Backgrounds --- */
.gradient-hero {
    background: linear-gradient(135deg, #5B4A8A 0%, #7B6AAA 40%, #E8D5B7 100%);
}

.gradient-calm {
    background: linear-gradient(180deg, #f3f1f9 0%, #ffffff 100%);
}

.gradient-warm {
    background: linear-gradient(135deg, #fdfaf5 0%, #f3f1f9 100%);
}

.gradient-purple-soft {
    background: linear-gradient(180deg, #e7e3f3 0%, #ffffff 50%);
}

.gradient-card {
    background: linear-gradient(145deg, #ffffff 0%, #fdfaf5 100%);
}

.gradient-accent-bar {
    background: linear-gradient(90deg, #5B4A8A, #E8D5B7);
    height: 4px;
}

/* --- Fade In Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up:nth-child(2) { transition-delay: 0.15s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.45s; }
.fade-in-up:nth-child(5) { transition-delay: 0.6s; }

/* --- Float Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 2s infinite;
}

/* --- Pulse Glow --- */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(91, 74, 138, 0.2); }
    50% { box-shadow: 0 0 40px rgba(91, 74, 138, 0.4); }
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* --- Gentle Breathe Animation --- */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

.animate-breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* --- Slide In Animations --- */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.slide-in-left { animation: slideInLeft 0.8s ease-out forwards; }
.slide-in-right { animation: slideInRight 0.8s ease-out forwards; }

/* --- Card Hover Effects --- */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(91, 74, 138, 0.15);
}

.card-hover-subtle {
    transition: all 0.3s ease;
}

.card-hover-subtle:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(91, 74, 138, 0.1);
}

/* --- Image Hover Effects --- */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* --- Button Effects --- */
.btn-primary {
    background: linear-gradient(135deg, #5B4A8A 0%, #7B6AAA 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(91, 74, 138, 0.4);
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
}

.btn-outline {
    border: 2px solid #5B4A8A;
    color: #5B4A8A;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #5B4A8A;
    color: white;
    box-shadow: 0 8px 30px rgba(91, 74, 138, 0.3);
}

/* --- Decorative Elements --- */
.blob-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.blob-shape-2 {
    border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%;
}

/* --- Section Divider Wave --- */
.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39 56.44c58-10.79 114.16-30.13 172-41.86 82.39-16.72 168.19-17.73 250.45-.39C823.78 31 906.67 72 985.66 92.83c70.05 18.48 146.53 26.09 214.34 3V0H0v27.35a600.21 600.21 0 00321.39 29.09z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: cover;
}

/* --- Testimonial Card --- */
.testimonial-card {
    position: relative;
    padding-left: 2rem;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 4rem;
    color: #E8D5B7;
    font-family: Georgia, serif;
    line-height: 1;
}

/* --- Service Icon Container --- */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f1f9 0%, #e7e3f3 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-icon:hover,
.group:hover .service-icon {
    background: linear-gradient(135deg, #5B4A8A 0%, #7B6AAA 100%);
    transform: rotate(-5deg) scale(1.1);
}

.service-icon svg {
    transition: all 0.4s ease;
}

.group:hover .service-icon svg {
    color: white;
}

/* --- Form Styles --- */
.form-input {
    border: 2px solid #e7e3f3;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #5B4A8A;
    box-shadow: 0 0 0 4px rgba(91, 74, 138, 0.1);
}

.form-input::placeholder {
    color: #b7abdb;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3a2f58;
    margin-bottom: 6px;
}

/* --- FAQ Accordion --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}

.faq-answer.open {
    max-height: 500px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-chevron.open {
    transform: rotate(180deg);
}

/* --- Team Photo Placeholder --- */
.team-photo-placeholder {
    background: linear-gradient(135deg, #cfc7e7 0%, #E8D5B7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Horizontal Scroll Badge --- */
.badge-purple {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f1f9;
    color: #5B4A8A;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
}

/* --- Loading Skeleton --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f3f1f9 25%, #e7e3f3 50%, #f3f1f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* --- Map Placeholder --- */
.map-placeholder {
    background: linear-gradient(135deg, #e7e3f3, #f3f1f9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    min-height: 300px;
}

/* --- Blog Card Image Placeholder --- */
.blog-img-placeholder {
    background: linear-gradient(135deg, #cfc7e7 0%, #b7abdb 50%, #E8D5B7 100%);
    min-height: 200px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f1f9;
}

::-webkit-scrollbar-thumb {
    background: #b7abdb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5B4A8A;
}

/* --- Print Styles --- */
@media print {
    nav, footer, .no-print, #scrollTopBtn { display: none !important; }
    body { font-size: 12pt; color: #000; }
}


/* ===== Overflow / Tasma Korumasi ===== */
body {
    overflow-x: hidden;
}

*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

p, li, td, th, a, span, h1, h2, h3, h4, h5, h6, label, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
