/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Navigation Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile Menu Link Hover Effect */
.mobile-menu nav a {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.mobile-menu nav a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Mobile Products Grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

/* Mobile Hero Section */
@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
}

.language-options {
    visibility: hidden;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s ease-in-out;
    min-width: 180px;
    pointer-events: none;
}

.language-options.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hover alan genişletme */
.language-options::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 1rem;
}

/* Active state for current language */
.language-options a.active {
    background-color: rgba(59, 130, 246, 0.08);
    font-weight: 600;
}

/* Language Option Divider */
.language-options a:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

/* Current Language Indicator */
.language-options a[href*="lang=tr"] {
    background-color: rgba(59, 130, 246, 0.04);
}

/* Mobile Language Switcher */
@media (max-width: 1024px) {
    .mobile-menu .language-options {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 1rem;
    }
    
    .mobile-menu .language-switcher {
        margin: 1.5rem 0;
    }
}

/* Form Validation Styles */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

input:invalid:not(:placeholder-shown) + .error-message,
textarea:invalid:not(:placeholder-shown) + .error-message {
    display: block;
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Mobile Menu Language Switcher */
.mobile-menu .language-switcher {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.mobile-menu .language-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 1rem 0;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Z-index hierarchy */
.swiper-container,
.swiper-wrapper,
.swiper-slide {
    z-index: 1;
}

header {
    z-index: 999;
}

/* Remove blur effects for mobile */
@media (max-width: 1024px) {
    .backdrop-blur-sm {
        backdrop-filter: none;
    }
    
    .mobile-menu,
    #mobile-menu-overlay {
        backdrop-filter: none;
    }
}

/* Logo Animation */
@keyframes subtle-pulse {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.1;
    }
}

.animate-pulse {
    animation: subtle-pulse 3s infinite;
}

/* Logo Icon Positioning */
.fa-star-of-life {
    transform: scale(0.8);
    margin-left: -4px;
    margin-top: 1px;
}

/* Mobil Dil Seçici Stilleri */
@media (max-width: 1024px) {
    #mobile-lang-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.25rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        padding-right: 2rem;
    }

    #mobile-lang-select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 1px #3b82f6;
    }
}

/* Neden Bizi Tercih Etmelisiniz bölümü için hizalama düzeltmesi */
.bg-gradient-to-r.from-blue-600.to-blue-800 .flex.items-center.space-x-4 {
    align-items: center;
}

.bg-gradient-to-r.from-blue-600.to-blue-800 .flex.items-center.space-x-4 i {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

.bg-gradient-to-r.from-blue-600.to-blue-800 .flex.items-center.space-x-4 div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-gradient-to-r.from-blue-600.to-blue-800 .flex.items-center.space-x-4 h4,
.bg-gradient-to-r.from-blue-600.to-blue-800 .flex.items-center.space-x-4 p {
    margin: 0;
    line-height: 1.5;
}

/* Mobil görünüm için ek düzeltmeler */
@media (max-width: 768px) {
    .bg-gradient-to-r.from-blue-600.to-blue-800 .flex.items-center.space-x-4 i {
        margin-top: 0.25rem;
    }
}

/* Bölüm başlıklarının altındaki çizgilerin genişliğini ayarlama */
section h2.text-3xl + div.w-24,
section h2.text-4xl + div.w-24 {
    width: auto; /* Metin genişliğine göre ayarlanacak */
    min-width: 80%; /* Başlık metninin en az %80'i kadar genişlik */
    height: 4px;
    margin: 0.75rem auto 1.5rem;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
}

/* Başlık container'ı için özel stil */
.section-title-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 2rem;
}

.section-title-wrapper h2 {
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%; /* Başlık metni kadar genişlik */
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
}

/* Metin merkezli başlıklar için */
.text-center .section-title-wrapper {
    text-align: center;
}

.text-center .section-title-wrapper::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Animasyonlu çizgi - hover olmadan sabit genişlik */
.animated-underline {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
    width: 120px;
    margin: 0.75rem auto 1.5rem;
} 