/* Reset & Base */
:root {
    --primary-color: #e65100; /* Daha koyu turuncu (Contrast Fix) */
    --secondary-color: #333;
    --text-color: #444; /* Biraz daha koyu gri */
    --light-bg: #f4f4f4;
    --white: #fff;
    --whatsapp-color: #25d366;
    --call-color: #0056b3; /* Daha koyu mavi */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Performance Optimizations */
.hero {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

img[loading="lazy"] {
    background: #f0f0f0;
}

h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .contact-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    font-weight: bold;
}

.top-bar .separator {
    margin: 0 10px;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.logo span {
    color: #d84315; /* Logo için özel koyu turuncu */
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav ul li {
    margin-left: 20px;
}

.desktop-nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: var(--white);
    border-top: 1px solid #eee;
}

.mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 97, 0, 0.3);
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Districts Section */
.districts {
    padding: 60px 0;
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.district-link {
    display: block;
    background-color: var(--light-bg);
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s;
}

.district-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Content Section (Article) */
.content-section {
    padding: 60px 0;
    background-color: var(--white);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Sticky Buttons */
.sticky-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none; /* Varsayılan olarak gizli */
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.sticky-btn:active {
    opacity: 0.8;
}

.call-btn {
    background-color: var(--call-color);
}

.whatsapp-btn {
    background-color: var(--whatsapp-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        padding: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .districts-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .district-link {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .sticky-buttons {
        display: flex !important;
    }
    
    .main-footer {
        padding-bottom: 80px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Mobilde floating butonları gizle */
    .floating-whatsapp,
    .floating-call {
        display: none !important;
    }
    
    .article-content {
        padding: 0 10px;
    }
    
    .article-content h2,
    .article-content h3 {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) {
    .sticky-buttons {
        display: none !important; /* Masaüstünde gizle */
    }
}

/* Floating WhatsApp Button (Masaüstü Sol Alt) */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Sağ yerine sol */
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    display: none; /* Varsayılan gizli */
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Floating Call Button (Masaüstü Sol Alt, WhatsApp'ın üstünde) */
.floating-call {
    position: fixed;
    bottom: 100px; /* WhatsApp butonunun üstünde */
    left: 30px; /* Sağ yerine sol */
    background-color: var(--call-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s;
    display: none; /* Varsayılan gizli */
}

.floating-call:hover {
    transform: scale(1.1);
    background-color: #003d82;
}

/* Masaüstünde floating butonları göster */
@media (min-width: 769px) {
    .floating-whatsapp,
    .floating-call {
        display: block !important;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #ccc;
}

/* External Links Box */
.external-links-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.external-links-box h4 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.external-links-box ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 5px;
}

.external-links-box ul li a {
    color: #555;
    display: flex;
    align-items: center;
}

.external-links-box ul li a i {
    margin-right: 10px;
    color: var(--primary-color);
}

.external-links-box ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    transition: all 0.3s;
}

/* Ek Responsive Düzeltmeler - Küçük Ekranlar */
@media (max-width: 480px) {
    .top-bar {
        font-size: 0.8rem;
    }
    
    .top-bar .contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar .separator {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .sticky-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Tablet Görünümü */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .districts-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Geniş Ekranlar */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
