/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 70px;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    z-index: 1050;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.75rem 0 !important;
    min-height: 70px;
    height: auto;
}

.navbar-brand {
    font-size: 1.3rem;
    color: var(--primary-color) !important;
    padding: 0 1.5rem !important;
    margin: 0 !important;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    height: auto;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar .container {
    padding: 0 1.5rem !important;
}

.navbar-collapse {
    padding: 0 !important;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.95rem;
    height: auto;
    display: flex;
    align-items: center;
}

.navbar .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    height: auto;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.dropdown-item {
    padding: 0.4rem 1rem;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Genel hero (diğer sayfalar için küçük başlık alanı) */
.hero-section {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    padding: 60px 0;   /* Daha küçük yükseklik */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Ana sayfa için özel hero */
.hero-home {
    padding: 120px 0;   /* Daha geniş yükseklik */
    min-height: 450px;
    text-align: left;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--light-color);
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-image {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--light-color);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Blog */
.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Footer */
footer {
    background: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-section {
        min-height: 300px;
        padding: 80px 0;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Blog Detail Page */
.blog-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.3;
    border-left: 6px solid var(--primary-color);
    padding-left: 15px;
}

.blog-meta {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 25px;
}

.blog-body h2, 
.blog-body h3, 
.blog-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.blog-body p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.blog-body ul, 
.blog-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.related-title {
    margin-top: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    color: var(--dark-color);
}

.related-posts {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
}

.related-posts li {
    margin-bottom: 8px;
}

.related-posts a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts a:hover {
    color: var(--secondary-color);
}

/* Tüm görseller responsive ve taşma yapmasın */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Özellikle about ve ana sayfa görselleri için */
.about-image, .hero-image {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Hero section ek ayarlar */

/* Hizmetler kutuları */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card .card-body {
    text-align: center;
}

.card .card-body i {
    margin-bottom: 15px;
}

/* Hero görseli */
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Hero section sabit boyut — sadece ana sayfa hero-home büyük olur */