/* Temel Stil Dosyası */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Daha modern bir font */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* Daha soft bir beyaz */
    color: #333;
}

/* Header ve Navigasyon İyileştirmeleri */
header {
    background: #f0f0f0; /* Base background color */
    background-image: repeating-linear-gradient(45deg, transparent 0 4.5px, #e0e0e0 4.5px 5px), repeating-linear-gradient(-45deg, transparent 0 4.5px, #e0e0e0 4.5px 5px); /* Fine diamond grid pattern */
    background-size: 5px 5px; /* Size of the grid cells */
    color: #555; /* Yazı rengi */
    padding: 1.8rem 0; /* Yüksekliği artırıldı */
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Daha hafif gölge */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold; /* Logo yazısı da kalın olsun */
    color: #333; /* Logo rengi */
    text-decoration: none;
    transition: color 0.3s ease;
}

header .logo img {
    height: 75px; /* Logo büyütüldü */
    width: auto;
    vertical-align: middle;
}

header .logo:hover {
    color: #981e24; /* Yeni renk */
}

.nav-links ul {
    display: flex;
    margin: 0;
    padding: 0; /* Padding'i sıfırla */
}

.nav-links ul li {
    margin: 0 20px;
    position: relative; /* Hover efekti için */
}

.nav-links ul li a {
    font-weight: 600; /* Daha kalın menü yazısı */
    color: #555; /* Menü link rengi */
    text-decoration: none;
    padding-bottom: 5px; /* Alt çizgi için boşluk */
    transition: color 0.3s ease;
    font-size: 1.2rem; /* Punto büyütüldü */
}

/* Menü üzerine gelme efekti */
.nav-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: #981e24; /* Yeni renk */
    transition: width 0.3s ease;
}

.nav-links ul li a:hover::after {
    width: 100%;
}

.nav-links ul li a:hover {
    color: #981e24; /* Yeni renk */
}

/* Hero Section */
.hero {
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Daha hafif karartma */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: slideInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: slideInUp 1.2s ease-out;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #981e24, #b33e44); /* Yeni renk gradyanı */
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeIn 1.5s ease-out 0.5s backwards;
}

.btn:hover {
    background: #981e24; /* Yeni renk */
    transform: translateY(-3px);
}

/* Stats Section */
.stats {
    background: linear-gradient(45deg, #981e24, #b33e44); /* Yeni renk gradyanı */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* Added horizontal padding */
}

.stat-item {
    padding: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    margin: 0;
}

.stat-item p {
    font-size: 1.2rem;
    margin: 5px 0 0;
}

/* About Section */
.about, .services {
    padding: 10px 0 50px 0; /* Increased padding-bottom by 40px */
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 0; /* Reverted space below */
}

.about p {
    font-size: 1.5rem; /* Reduced font size to 2/3 of previous */
}

.about h2, .services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.about .container {
    padding: 0 20px; /* Added horizontal padding */
}

.services h2::after {
    content: '';
    display: block;
    width: 100px; /* Reduced width */
    height: 2px;
    background-color: #f0f0f0; /* Very light gray */
    margin: 10px auto 0; /* Center the bar */
}

/* Services Section */
.services {
    background-color: #f7f7f7; /* Base background color */
    background-image: repeating-linear-gradient(45deg, transparent 0 4.5px, #e0e0e0 4.5px 5px), repeating-linear-gradient(-45deg, transparent 0 4.5px, #e0e0e0 4.5px 5px); /* Fine diamond grid pattern */
    background-size: 5px 5px; /* Size of the grid cells */
}

.services .container {
    padding: 0 20px; /* Added horizontal padding */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);
    height: 250px; /* Same height as flip-card */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.service-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    background-color: #fff;
    color: #333;
    box-sizing: border-box; /* Ensure padding is included in width/height */
}

.service-title h3 {
    font-size: 1.625rem;
    margin: 0;
    text-align: center; /* Ensure text is centered */
}

.service-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #981e24; /* Same as flip-card-back */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transform: translateY(100%); /* Start hidden below */
    transition: transform 0.3s ease-in-out;
    opacity: 0; /* Start invisible */
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.service-description p {
    margin: 0;
    font-size: 1.2rem; /* Increased font size */
    text-align: center; /* Centered text */
    word-wrap: break-word; /* Ensures long words break and wrap */
    overflow-wrap: break-word; /* Ensures long words break and wrap (modern alternative) */
    line-height: 1.5; /* Increased line height for better readability */
}

.service-item:hover .service-title {
    transform: translateY(-100%); /* Slide title up and out */
    opacity: 0;
}

.service-item:hover .service-description {
    transform: translateY(0); /* Slide description up */
    opacity: 1;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding-top: 40px; /* Increased padding for a thicker band */
    position: relative;
    width: 100%;
    margin-top: 0; /* Removed space above */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* Distribute space between left and right sections */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-contact {
    text-align: left; /* Align text inside the contact box to the left */
}

.footer-contact h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-contact p {
    margin: 10px 0;
    font-size: 1rem;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-left {
    flex: 1;
    max-width: 45%; /* Adjust as needed */
    text-align: left;
}

.footer-logo {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px;
}

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #444;
}

.copyright-text {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Müşterilerimiz Sayfası */
.musteri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Further enlarged */
    gap: 30px; /* Increased gap */
    padding: 40px;
}

.musteri-item {
    border: 1px solid #ddd;
    padding: 50px; /* Further enlarged */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.musteri-item img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
}

/* Page Header */
.page-header {
    background: #f0f0f0;
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid #981e24; /* Thin red line at transition point */
}

.page-header h1 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Projelerimiz Sayfası */
.proje-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Genişletildi */
    gap: 30px;
    padding: 40px 20px; /* Added horizontal padding */
}

.proje-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.proje-item:hover {
    transform: translateY(-5px);
}

.proje-logo-container {
    position: relative;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    height: 300px; /* Büyütüldü */
    display: flex;
    justify-content: center;
    align-items: center;
}

.proje-logo-container img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
}

.proje-cost {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(152, 30, 36, 0.9); /* Yeni renk */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.5rem;
    font-weight: bold;
}

.proje-logo-container:hover .proje-cost {
    opacity: 1;
}

.proje-name {
    padding: 15px;
    background: #f8f8f8;
    text-align: center;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* İletişim Sayfası */
.iletisim-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 20px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 400px;
}

.contact-details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.contact-details a {
    color: #981e24; /* Yeni renk */
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

/* Responsive Ayarlamalar */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        text-align: center;
        order: 3; /* Ensure it comes after logo and toggle */
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
        order: 2; /* Comes after the logo */
    }

    header nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .stats .container {
        flex-direction: column;
    }

    .iletisim-container {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        justify-content: center; /* Center contact info on mobile */
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }
}

/* Kurumsal Sayfası */
.kurumsal-container {
    padding: 40px 20px; /* Added horizontal padding */
}

.mission-vision-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    flex: 1; /* Allow it to take available space */
    margin-bottom: 40px; /* Add space below this wrapper */
}

.kurumsal-section {
    flex: 1;
    margin-bottom: 0; /* Remove margin when in flex container */
}

.kurumsal-section h2 {
    font-size: 2rem;
    color: #981e24; /* Yeni renk */
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.kurumsal-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Değerlerimiz Section */
.degerler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.deger-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.deger-item:hover {
    transform: translateY(-5px);
}

.deger-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #333; /* Change to black/grey */
    filter: grayscale(100%); /* Make it black and white */
}

.deger-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Logo Carousel */
.logo-carousel {
    padding: 20px 0 40px;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.logo-carousel h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.logo-carousel .logos {
    display: flex;
    width: fit-content;
    animation: scroll 60s linear infinite;
}

.logo-carousel .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 100px; /* Adjust as needed */
}

.logo-carousel .logo-item img {
    max-width: 150px; /* Adjust as needed */
    max-height: 80px; /* Adjust as needed */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-carousel .logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Filter Menu */
.filter-menu {
    padding: 20px 0;
    background-color: #981e24; /* Red background */
    text-align: center;
    border-bottom: 1px solid #ddd; /* Keep border for separation */
}

.filter-menu .container {
    display: grid; /* Use grid for better control over columns */
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    max-width: 900px; /* Make the container wider */
    margin: 0 auto; /* Center the container */
    gap: 15px;
    padding: 0 20px; /* Add some horizontal padding */
}

.filter-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #981e24; /* Red background */
    color: #fff; /* White text */
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #fff; /* White border */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: #b33e44; /* Slightly lighter red on hover */
    color: #fff;
    transform: translateY(-2px);
    border-color: #eee; /* Lighter border on hover */
}

/* Müşteri Kategori */
.musteri-kategori {
    padding-top: 60px; /* Add padding to create space for the sticky menu */
    margin-top: -40px; /* Adjust for the padding */
}

.musteri-kategori h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #981e24;
    padding-bottom: 10px;
    padding-left: 20px; /* Added left padding */
    text-align: left; /* Ensure text aligns left with padding */
}

/* Adjust filter button width to fit grid */
.filter-btn {
    width: 100%; /* Make buttons fill their grid column */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .filter-menu .container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .filter-menu .container {
        grid-template-columns: 1fr; /* 1 column on very small screens */
        max-width: 300px;
    }
}

/* Specific logo resizing for smaller looking logos */
.proje-logo-container img[src*="Nurol Mak.png"],
.proje-logo-container img[src*="kazakistan elcilik.png"],
.proje-logo-container img[src*="demirexp.png"] {
    max-height: 160px; /* Increased from default 100px */
    transform: scale(1.1); /* Slight additional scaling */
}

/* Language Switcher */
.lang-switch {
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background-color: #981e24;
    color: #fff !important;
    border-color: #981e24;
}

.lang-switch::after {
    display: none !important; /* Remove underline effect */
}
