/* Global Styles */
html {
    scroll-behavior: smooth;
}

/* Navigation Bar Enhanced */
nav.bg-white {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(139, 38, 53, 0.1);
    transition: all 0.3s ease;
}

nav.bg-white:hover {
    box-shadow: 0 6px 30px rgba(139, 38, 53, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Logo Styles */
.logo-primary {
    filter: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    background: transparent !important;
    padding: 0;
}

.logo-primary:hover {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
    filter: drop-shadow(0 10px 20px rgba(139, 38, 53, 0.3));
}

/* Floating animation for logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-primary {
    animation: float 3s ease-in-out infinite;
}

.logo-white {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b2635 0%, #c41e3a 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #8b2635 !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation for cards */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Card Hover Effects */
.card-hover {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: subtleFloat 6s ease-in-out infinite;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 38, 53, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    /* Kart üzerindeki linklerin tıklanmasını engellememesi için */
    pointer-events: none;
}

.card-hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 38, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover::after {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.05) rotate(1deg);
    box-shadow: 0 25px 50px rgba(139, 38, 53, 0.25);
    border-color: #8b2635;
    animation: none;
    z-index: 10;
}
.plus {
    margin-left: 2px;
}

/* Image Styles */
.img-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #8b2635 0%, #a83247 50%, #c41e3a 100%);
    color: white;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 3s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a83247 0%, #c41e3a 50%, #d63384 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 38, 53, 0.5);
    animation: none;
}

.btn-secondary {
    background: white;
    color: #8b2635;
    border: 2px solid #8b2635;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: subtleFloat 4s ease-in-out infinite;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b2635 0%, #a83247 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 38, 53, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 38, 53, 0.4);
    animation: none;
}

.btn-secondary:hover::before {
    left: 0;
}

/* Section Spacing */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #8b2635 0%, #a83247 50%, #c41e3a 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.bg-gradient-card {
    background: linear-gradient(135deg, #8b2635 0%, #a83247 100%);
    transition: all 0.3s ease;
}

.bg-gradient-card:hover {
    background: linear-gradient(135deg, #a83247 0%, #c41e3a 100%);
    transform: scale(1.05);
}

/* Text Colors */
.text-primary {
    color: #8b2635;
}

.text-secondary {
    color: #a83247;
}

.text-accent {
    color: #c41e3a;
}

/* Border Accents */
.border-accent {
    border-left: 4px solid #8b2635;
    transition: border-color 0.3s ease;
}

.border-accent:hover {
    border-left-color: #c41e3a;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-gallery img:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 38, 53, 0.3);
    border: 3px solid rgba(139, 38, 53, 0.3);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8b2635;
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Stats Counter */
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b2635 0%, #a83247 50%, #c41e3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Service Card */
.service-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b2635 0%, #a83247 50%, #c41e3a 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: #8b2635;
    box-shadow: 0 20px 45px rgba(139, 38, 53, 0.3);
    transform: translateY(-8px) scale(1.03);
    animation: pulseGlow 2s ease-in-out infinite;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 3rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e5e7eb;
}

.process-step-number {
    position: absolute;
    left: -15px;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b2635 0%, #a83247 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 38, 53, 0.3);
}

.process-step:hover .process-step-number {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 6px 15px rgba(139, 38, 53, 0.5);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(139, 38, 53, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 38, 53, 0.2);
    border: 2px solid rgba(139, 38, 53, 0.2);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 2px 2px 8px #666;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
    
    /* Logo in nav: 2x larger on mobile, navbar height stays fixed */
    nav .logo-primary {
        max-height: 224px;
        height: 224px;
        width: auto;
        object-fit: contain;
    }
    
    /* Navigation height on mobile - fixed, does not grow with logo */
    nav .flex.justify-between.items-center {
        min-height: 72px;
        height: 72px;
        padding: 0.5rem 0;
        overflow: visible;
    }
    
    /* Text sizes on mobile */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Button sizes */
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* Card padding */
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Image gallery */
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Process steps */
    .process-step {
        padding-left: 2rem;
    }
    
    .process-step-number {
        left: -12px;
        width: 24px;
        height: 24px;
        font-size: 0.875rem;
    }
    
    /* Footer */
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    /* Extra small devices - nav logo 2x larger, navbar stays 72px */
    nav .logo-primary {
        max-height: 192px;
        height: 192px;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Hero section */
    .bg-gradient-primary {
        padding: 3rem 0 !important;
    }
    
    /* Grid columns */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Keep all animations on small screens */
    .card-hover,
    .service-card,
    .btn-primary,
    .btn-secondary {
        animation-duration: 4s;
    }
}

