/* ============================================
   Temiz Çamaşır - Professional Laundry Service
   Custom Styles & Bubble/Water Theme
   ============================================ */

/* Base & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Inter', serif;
}

/* ============================================
   Bubble / Water Animations
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(3deg); }
    66% { transform: translateY(-6px) rotate(-2deg); }
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100%) scale(0.4);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) scale(1);
        opacity: 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-5px) translateY(-3px); }
    50% { transform: translateX(0) translateY(-6px); }
    75% { transform: translateX(5px) translateY(-3px); }
}

/* Bubble elements */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(0,180,216,0.15));
    border: 1px solid rgba(255,255,255,0.4);
    animation: bubble-rise linear infinite;
    pointer-events: none;
}

.bubble-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble-1 { width: 20px; height: 20px; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.bubble-2 { width: 14px; height: 14px; left: 25%; animation-duration: 10s; animation-delay: 1s; }
.bubble-3 { width: 24px; height: 24px; left: 40%; animation-duration: 7s; animation-delay: 2s; }
.bubble-4 { width: 10px; height: 10px; left: 55%; animation-duration: 12s; animation-delay: 0.5s; }
.bubble-5 { width: 18px; height: 18px; left: 70%; animation-duration: 9s; animation-delay: 3s; }
.bubble-6 { width: 12px; height: 12px; left: 85%; animation-duration: 11s; animation-delay: 1.5s; }
.bubble-7 { width: 16px; height: 16px; left: 15%; animation-duration: 13s; animation-delay: 4s; }
.bubble-8 { width: 22px; height: 22px; left: 60%; animation-duration: 8.5s; animation-delay: 2.5s; }

/* Water wave background */
.water-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23F0F8FF' d='M0,50 C360,100 720,0 1080,50 C1260,75 1350,25 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") repeat-x;
    animation: wave 6s ease-in-out infinite;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-gradient {
    background: linear-gradient(135deg, #023E8A 0%, #0077B6 40%, #00B4D8 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,216,0.15) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

/* ============================================
   Card Styles
   ============================================ */

.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,119,182,0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0077B6, #00B4D8);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,119,182,0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.price-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.price-card:hover {
    border-color: #0077B6;
    box-shadow: 0 15px 35px rgba(0,119,182,0.12);
}

.price-card.featured {
    border-color: #0077B6;
    box-shadow: 0 15px 35px rgba(0,119,182,0.15);
    transform: scale(1.03);
}

/* ============================================
   Testimonial Styles
   ============================================ */

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(0,119,182,0.08);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -5px;
    left: 20px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: #CAF0F8;
    line-height: 1;
}

/* ============================================
   Button Styles
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: #0077B6;
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,119,182,0.3);
}

.btn-primary:hover {
    background: #023E8A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,119,182,0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: transparent;
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ============================================
   Section Styles
   ============================================ */

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #023E8A;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6B7280;
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #0077B6, #00B4D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Form Styles
   ============================================ */

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: white;
    outline: none;
}

.form-input:focus {
    border-color: #0077B6;
    box-shadow: 0 0 0 4px rgba(0,119,182,0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* ============================================
   Pricing Table
   ============================================ */

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px dashed rgba(0,119,182,0.15);
    transition: all 0.2s ease;
}

.pricing-row:hover {
    background: rgba(0,119,182,0.03);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 8px;
}

.pricing-row:last-child {
    border-bottom: none;
}

/* ============================================
   Blog Card
   ============================================ */

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,119,182,0.08);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,119,182,0.12);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, #CAF0F8, #90E0EF);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Stats / Counter
   ============================================ */

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ============================================
   How It Works Steps
   ============================================ */

.step-connector {
    position: absolute;
    top: 2rem;
    left: calc(50% + 2rem);
    width: calc(100% - 4rem);
    height: 2px;
    background: linear-gradient(90deg, #0077B6, #00B4D8);
    opacity: 0.3;
}

/* ============================================
   Animations on scroll (simple)
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ============================================
   Washing machine animation (hero)
   ============================================ */

.washing-machine {
    width: 180px;
    height: 200px;
    background: linear-gradient(180deg, #E5E7EB 0%, #D1D5DB 100%);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.washing-machine-door {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #9CA3AF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    background: linear-gradient(135deg, #CAF0F8, #90E0EF);
    overflow: hidden;
}

.washing-machine-spin {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00B4D8, #0077B6, #CAF0F8, #00B4D8);
    animation: spin-slow 3s linear infinite;
    opacity: 0.5;
}

.washing-machine-panel {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.washing-machine-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6B7280;
}

.washing-machine-btn.active {
    background: #00B4D8;
    box-shadow: 0 0 8px rgba(0,180,216,0.5);
}

/* ============================================
   Responsive adjustments
   ============================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .hero-gradient {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ============================================
   Page header banner
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #023E8A 0%, #0077B6 60%, #00B4D8 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}

/* ============================================
   Miscellaneous
   ============================================ */

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.divider-wave {
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F0F8FF' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

/* Selection color */
::selection {
    background: #CAF0F8;
    color: #023E8A;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0077B6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #023E8A;
}

/* ============================================
   Responsive Overflow & Text Protection
   ============================================ */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Break long words/URLs to prevent overflow */
body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
table {
    max-width: 100%;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Prevent pre/code blocks from overflowing */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

