/* ===== VITA BESLENME & DIYET MERKEZI ===== */

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.9) 0%, rgba(5, 150, 105, 0.85) 50%, rgba(234, 88, 12, 0.7) 100%);
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.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, #16a34a, #ea580c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Program Card */
.program-card {
    position: relative;
    transition: all 0.4s ease;
}
.program-card:hover {
    transform: translateY(-10px);
}
.program-popular {
    border: 3px solid #ea580c;
}
.program-popular::after {
    content: 'En Populer';
    position: absolute;
    top: -1px;
    right: 20px;
    background: #ea580c;
    color: white;
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
}

/* Story Card */
.story-card {
    transition: all 0.3s ease;
}
.story-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Blog Card */
.blog-card {
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.blog-card:hover .blog-img {
    transform: scale(1.05);
}
.blog-img {
    transition: transform 0.4s ease;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
}
.form-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;
}
.form-select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Stats Counter */
.stat-item {
    text-align: center;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #16a34a, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Divider */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #ea580c);
    border-radius: 2px;
    margin: 0 auto;
}

/* Pulse Animation */
@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.pulse-gentle {
    animation: gentle-pulse 2s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Before/After slider */
.before-after-container {
    position: relative;
    display: flex;
    gap: 1rem;
}

/* Testimonial */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: #16a34a;
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection */
::selection {
    background-color: rgba(22, 163, 74, 0.2);
    color: #1e293b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(180deg, rgba(22, 163, 74, 0.92) 0%, rgba(5, 150, 105, 0.88) 100%);
    }
}

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

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

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