body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.navbar {
    background: linear-gradient(90deg, #343a40, #495057);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-overlay {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.stat-item {
    padding: 10px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.1);
}

footer {
    background: #343a40;
    color: white;
}

/* WhatsApp Butonu */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

.whatsapp-float i {
    margin: 0;
}

/* Mobil için ayar */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .hero .display-4 {
        font-size: 2rem;
    }
    .hero h1 {
        font-size: 1.8rem !important;
        letter-spacing: 1px;
    }
    .hero-overlay {
        padding: 20px;
    }
    .hero {
        height: 60vh;
    }
    .stats-overlay {
        padding: 15px;
        margin: 10px;
        border-radius: 8px;
    }
    .stat-item h2 {
        font-size: 2.2rem !important;
    }
    .stat-item p {
        font-size: 1rem !important;
    }
    .stat-item {
        margin-bottom: 15px;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .navbar-brand img {
        width: 40px;
        height: 40px;
    }
    .card {
        margin-bottom: 20px;
    }
    .chat-widget {
        width: 90vw;
        height: 80vh;
        bottom: 75px;
        right: 5vw;
    }
    .chat-toggle {
        bottom: 75px;
        right: 10px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    .language-dropdown-content {
        right: -10px;
    }
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .navbar-controls {
        gap: 8px;
        margin-left: 10px;
    }
}

/* Tablet uyumluluk */
@media (max-width: 992px) and (min-width: 769px) {
    .hero .display-4 {
        font-size: 2.5rem;
    }
    .chat-widget {
        width: 320px;
        height: 450px;
    }
}

/* Küçük mobil cihazlar */
@media (max-width: 480px) {
    .hero .display-4 {
        font-size: 1.8rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .hero h1 {
        font-size: 1.5rem !important;
        letter-spacing: 0.5px;
    }
    .hero-overlay {
        padding: 15px;
    }
    .stats-overlay {
        padding: 10px;
        margin: 5px;
    }
    .stat-item h2 {
        font-size: 1.8rem !important;
    }
    .stat-item p {
        font-size: 0.9rem !important;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 0.9rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    .chat-widget {
        width: 95vw;
        height: 85vh;
        bottom: 70px;
        right: 2.5vw;
    }
    .chat-toggle {
        bottom: 70px;
        right: 5px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    .whatsapp-float {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .language-dropdown-content {
        min-width: 100px;
        right: -5px;
    }
    .language-option {
        padding: 8px 12px;
        font-size: 13px;
    }
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .modal-dialog {
        margin: 10px;
    }
    #modalImage {
        max-height: 60vh;
    }
}

/* Galeri Stilleri */
.gallery-item {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.gallery-item .card-img-top {
    transition: transform 0.3s ease;
}

.gallery-item:hover .card-img-top {
    transform: scale(1.05);
}

.gallery-item .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-item .card-title {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Video Play Icon */
.play-icon {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .play-icon {
    opacity: 1;
}

/* Modal İyileştirmeleri */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    justify-content: space-between !important;
}

#imageCounter {
    font-weight: 600;
    color: #495057;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(33,37,41,0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content .spinner-border {
    margin-bottom: 1rem;
}

.loading-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.loading-overlay.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
    .navbar-nav {
        text-align: center;
    }
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    .card-deck .card {
        margin-bottom: 15px;
    }
}

/* Dokunmatik cihazlar için */
@media (hover: none) and (pointer: coarse) {
    .control-btn:hover,
    .chat-toggle:hover,
    .whatsapp-float:hover,
    .gallery-item:hover {
        transform: none;
    }
    .gallery-item:active {
        transform: scale(0.98);
    }
}

/* Yüksek çözünürlüklü ekranlar */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-video {
        transform: scale(1.1);
    }
}

/* Yatay mobil */
@media (max-height: 500px) and (orientation: landscape) {
    .chat-widget {
        height: 70vh;
    }
    .hero {
        height: 100vh;
        min-height: 400px;
    }
}

/* Chatbot Widget */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.bot {
    background: #007bff;
    color: white;
    align-self: flex-start;
}

.message.user {
    background: #e9ecef;
    color: #333;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-area {
    border-top: 1px solid #dee2e6;
    padding: 15px;
    background: white;
}

.chat-input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

.chat-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.quick-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #007bff;
    color: white;
}

/* Mobil için chat widget */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px;
        right: 10px;
        width: calc(100vw - 20px);
        height: 400px;
    }
    .chat-toggle {
        bottom: 75px;
        right: 10px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

/* Dark Mode ve Dil Butonları */
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn.active {
    background: #007bff;
    border-color: #007bff;
}

/* Dil Dropdown Menü */
.language-dropdown {
    position: relative;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown-content.show {
    display: block;
}

.language-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background: #007bff;
    color: white;
}

.language-option i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .navbar {
    background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
}

body.dark-mode .card {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: #404040;
}

body.dark-mode .btn-outline-primary {
    color: #ffffff;
    border-color: #007bff;
}

body.dark-mode .btn-outline-primary:hover {
    background-color: #007bff;
    color: #ffffff;
}

body.dark-mode .text-muted {
    color: #cccccc !important;
}

body.dark-mode .bg-light {
    background-color: #2d2d2d !important;
}

body.dark-mode .text-dark {
    color: #ffffff !important;
}

/* Galeri Stilleri */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal Stilleri */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-body {
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

.modal-footer {
    padding: 1rem 2rem;
}

#imageCounter {
    font-weight: bold;
    user-select: none;
}

/* Dark mode için modal */
body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: white;
}

body.dark-mode .modal-footer {
    border-top: 1px solid #404040;
}