/* Lenis Smooth Scroll Base CSS */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Page Transition (Preloader) */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.7s ease;
}

.page-transition.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Kırmızı Dönen Yuvarlak CSS'i - Temaya uygun "fresh" animasyon */
.transition-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(211, 47, 47, 0.1);
    border-top-color: var(--primary-red);
    border-radius: 50%; /* Daire olması istendiği için (yuvarlak dönsün), kurallardaki köşeli hat kuralını burada istisna olarak yorumluyoruz. Fakat dilenirse bu da kare yapılabilir. Kullanıcı yuvarlak istiyor: "kırmızı yuvarlak dönsün" */
    animation: spin-pulse 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
}

/* Spinner'in etrafında hafif bir glow/yayılma efekti */
.transition-spinner::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    opacity: 0;
    animation: ripple 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin-pulse {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); border-top-color: #b71c1c; } /* Biraz daha koyu kırmızıya geçiş */
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #d32f2f; /* Matching the red from EAE / Hanmer */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --font-family: 'Volte', 'Jost', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

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

ul {
    list-style: none;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 10px 20px;
}

.logo {
    height: 32px;
    object-fit: contain;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu > ul {
    display: flex;
    gap: 30px;
}

.nav-menu > ul > li {
    position: relative;
    padding: 30px 0;
}

/* Hover alanı: menü ile tetikleyici arasında boşluk kalmasın */
.nav-menu > ul > li.has-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.nav-menu > ul > li > a {
    font-size: 14px;
    font-weight: 500;
    color: #cccccc;
}

.nav-menu > ul > li > a:hover,
.nav-menu > ul > li:hover > a {
    color: var(--text-light);
}

.nav-menu > ul > li > a i,
.nav-menu > ul > li > a .nav-chevron {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Ana başlıklar: tıklanınca, hover veya focus-within'de açılır */
.nav-menu > ul > li.has-dropdown.open > a .nav-chevron,
.nav-menu > ul > li.has-dropdown:hover > a .nav-chevron,
.nav-menu > ul > li.has-dropdown:focus-within > a .nav-chevron {
    transform: rotate(180deg);
}

.nav-menu > ul > li.has-dropdown.open > a,
.nav-menu > ul > li.has-dropdown:hover > a,
.nav-menu > ul > li.has-dropdown:focus-within > a {
    color: var(--text-light);
}

/* Mega Menu - ortak stil; kapalıyken tamamen gizli (küçülmez, kaybolur) */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 1001;
    border-radius: 0;
}

/* Açıkken göster: tıklayınca (.open) veya hover; focus içerideyken de açık kalsın */
.nav-menu > ul > li.has-dropdown.open .mega-menu,
.nav-menu > ul > li.has-dropdown:hover .mega-menu,
.nav-menu > ul > li.has-dropdown:focus-within .mega-menu {
    max-height: 85vh;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu--wide {
    width: 650px;
    max-width: calc(100vw - 40px);
}

.mega-menu--services {
    width: 380px;
    max-width: calc(100vw - 40px);
    padding: 20px;
}

.mega-menu--products {
    width: 320px;
    max-width: calc(100vw - 40px);
    padding: 20px;
}

.mega-menu--catalog {
    width: 220px;
    padding: 16px;
}

.mega-menu-content {
    display: flex;
    padding: 40px;
    color: var(--text-dark);
}

.mega-menu--services .menu-column--stack,
.mega-menu--products .menu-column--stack,
.mega-menu--catalog .menu-column--stack {
    padding: 4px 0;
}

.menu-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.menu-column--stack {
    padding: 0;
    gap: 10px;
}

.menu-column-link--all {
    color: var(--primary-red) !important;
    font-weight: 600 !important;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 14px !important;
}

.menu-column-link--all i {
    font-size: 10px;
    margin-left: 6px;
}

.border-left {
    border-left: 1px solid var(--border-color);
}

.menu-column a {
    color: #555;
    font-size: 14px;
}

.menu-column a:hover {
    color: var(--primary-red);
}

/* Nested Dropdown in Mega Menu */
.nested-dropdown-container {
    position: relative;
    width: 100%;
}

.nested-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    font-size: 14px !important;
    color: #333 !important;
}

.nested-dropdown-toggle i {
    font-size: 10px;
    margin-left: 6px;
    color: #999;
}

.nested-dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    padding: 15px 0;
    border-left: 2px solid var(--primary-red);
}

.nested-dropdown-container:hover .nested-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: calc(100% + 15px); /* small gap */
}

/* Bridge for gap */
.nested-dropdown-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
    height: 100%;
}

.nested-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 13px !important;
    color: #555;
}

.nested-dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

.column-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.small-icon {
    font-size: 6px;
    color: var(--primary-red);
    margin-right: 5px;
    vertical-align: middle;
}

.menu-image {
    flex: 0.8;
    padding-left: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    min-height: 180px;
}

.menu-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: transform 0.5s ease;
    transform: scale(1.12); /* Biraz büyük ölçek, resim kutuya tam dolsun */
}

.menu-image:hover img {
    transform: scale(1.22);
}

.menu-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(211, 47, 47, 0.55) 0%, rgba(211, 47, 47, 0.15) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    border-radius: 0;
    pointer-events: none;
}

.menu-image:hover::after {
    opacity: 1;
}

.image-text {
    position: absolute;
    bottom: 20px;
    left: 40px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: white;
}

.login-btn {
    background-color: var(--primary-red);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #b71c1c;
}

/* Login Modal (fake / demo) */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: #fff;
    padding: 32px;
    max-width: 400px;
    width: calc(100% - 32px);
    position: relative;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    font-family: var(--font-family);
}

.login-modal-overlay.is-open .login-modal {
    transform: scale(1);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.login-modal-close:hover {
    background: var(--primary-red);
    color: #fff;
}

.login-modal-title {
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-family);
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-modal-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-family);
}

.login-modal-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-family: var(--font-family);
    border-radius: 0;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.login-modal-field input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.login-modal-error {
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #c62828;
    background: rgba(198, 40, 40, 0.08);
    border-left: 3px solid var(--primary-red);
    font-family: var(--font-family);
}

.login-modal-submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 0;
    font-family: var(--font-family);
}

@media (max-width: 480px) {
    .login-modal {
        padding: 24px;
    }
}

/* Hero Slider */
.hero-slider {
    margin-top: 0;
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease;
}

/* --- New Sections (About, Values, Cert&RD) --- */

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.about-text .lead {
    font-size: 20px;
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-red);
    color: white;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0; /* Square corners per guidelines */
}

.btn-primary:hover {
    background-color: #b71c1c;
    color: white;
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.mt-4 {
    margin-top: 30px;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background-color: #eee;
    z-index: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    min-width: 160px;
    min-height: 160px;
    box-shadow: 10px -10px 30px rgba(0,0,0,0.15);
}

.experience-badge .number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

/* Core Values (Mission, Vision, Why Us) */
.core-values {
    padding: 80px 0;
    background-color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background-color: var(--bg-light);
    padding: 50px 40px;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    border-radius: 0; /* Square corners */
}

.value-card:hover {
    background-color: white;
    border-color: var(--primary-red);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 25px;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    border-radius: 0; /* Square corners */
}

.value-card:hover .value-icon {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.value-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.value-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Certificates and R&D Section */
.cert-rd-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.cert-rd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.cert-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cert-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cert-list i {
    font-size: 24px;
    color: var(--primary-red);
    margin-top: 3px;
}

.cert-list strong {
    display: block;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cert-list p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cert-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.cert-logos img {
    height: 36px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: grayscale(0.2);
}

@media (max-width: 768px) {
    .cert-logos img {
        height: 28px;
        max-width: 60px;
    }
}

.rd-card {
    height: 100%;
    min-height: 400px;
    position: relative;
    border-radius: 0; /* Square corners */
}

.rd-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.rd-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rd-card:hover .rd-bg-image {
    transform: scale(1.1);
}

.rd-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(211,47,47,0.4) 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    transition: background 0.4s ease;
}

.rd-card:hover .rd-overlay {
    background: linear-gradient(to top, rgba(211,47,47,0.9) 0%, rgba(0,0,0,0.4) 100%);
}

.rd-icon {
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
    opacity: 0.9;
}

.rd-overlay h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.rd-overlay p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-rd {
    align-self: flex-start;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    position: relative;
}

.btn-rd::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn-rd:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-rd i {
    transition: transform 0.3s ease;
}

.btn-rd:hover i {
    transform: translateX(5px);
}

/* Animations Trigger Classes */
.run-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.run-animation.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

@media (max-width: 992px) {
    .about-grid, .values-grid, .cert-rd-grid {
        grid-template-columns: 1fr;
    }
    .rd-card {
        min-height: 350px;
    }
}
/* --- End New Sections --- */

.slide.active {
    opacity: 1;
    z-index: 2;
    transition: opacity 0.8s ease;
}

.slide.leaving {
    opacity: 1;
    z-index: 3;
    transition: none;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

/* First slide: no background image before video loads */
.hero-slider .slide:first-child .slide-bg {
    opacity: 0;
}

.slide.active .slide-bg {
    transform: scale(1);
}

/* Hero background video (first slide only) */
.slide-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* Prevent interaction and play button */
}

/* Hide video controls forcefully */
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
video::-webkit-media-controls-play-button { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none !important; }

.slide .slide-bg-video {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Video stays visible during outro so old photo doesn't flash */
.slide.active .slide-bg-video,
.slide.leaving .slide-bg-video {
    opacity: 1;
}

/* Dark Triangle Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
    clip-path: polygon(0 0, 0 0, 0 0);
    transition: clip-path 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide.active .slide-overlay {
    clip-path: polygon(0 0, 250% 0, 0 250%);
}

.slide-content {
    position: absolute;
    top: 38%;
    left: 10%;
    color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title-wrapper {
    display: inline-flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 10px; /* Prevents top of title from being clipped */
}

.slide-title {
    font-size: 85px;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 5px;
    margin-top: 0;
    line-height: 1.05;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.slide.active .slide-title {
    transform: translateY(0);
}

.text-bold {
    font-weight: 800;
}

.title-line {
    height: 4px;
    width: 0;
    background-color: var(--primary-red);
    transition: width 1s cubic-bezier(0.77, 0, 0.175, 1) 1s;
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.5);
}

.slide.active .title-line {
    width: 100%;
}

.slide-subtitle-box {
    margin-top: 15px;
    background-color: white;
    display: block;
    padding: 10px 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1s ease 1.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide.active .slide-subtitle-box {
    opacity: 1;
    transform: translateX(0);
}

.slide-subtitle {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin: 0;
    text-shadow: none;
}

.slide-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-red);
    color: white;
    padding: 50px 40px 50px 80px; /* Left padding for arrows */
    width: 480px;
    display: flex;
    flex-direction: row;
    min-height: 350px;
    z-index: 10;
    transform: translateY(100%);
    opacity: 0;
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1) 0.8s;
    box-shadow: -10px -10px 30px rgba(0,0,0,0.2);
}

.slide.active .slide-card {
    transform: translateY(0);
    opacity: 1;
}

.slider-arrows-hero {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.arrow-btn-hero {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-btn-hero:hover {
    color: white;
    transform: scale(1.1);
}

.slide-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

@media (max-width: 992px) {
    .slide-card-content {
        gap: 10px;
    }
}

.card-badge {
    background-color: white;
    color: var(--primary-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    align-self: flex-start;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-radius: 0; /* Changed from 20px to 0 for square corners */
}

.slide-card h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.slide-card p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-link {
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding-bottom: 5px;
    margin-top: 15px;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

.slider-dots-container {
    margin-top: 30px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    border-radius: 0; /* Square dots */
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

.dot.active {
    background-color: white;
}

/* Group Companies */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header {
    margin-bottom: 50px;
}

.subtitle {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-dark);
}

.text-red {
    color: var(--primary-red);
    font-weight: 700;
}

.group-companies {
    overflow: visible;
}

.companies-grid {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 30px 20px 30px;
}

.company-card {
    min-width: 250px;
    height: 250px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    transform-style: preserve-3d;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 0, 0, 0.05); /* Very light dark red */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.company-card:hover {
    border-color: #8b0000; /* Dark red/bordeaux border */
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.15), 0 10px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.company-card:hover::before {
    opacity: 1;
}

.card-icon, .company-card h3 {
    position: relative;
    z-index: 1;
}

.card-icon i {
    font-size: 40px;
    color: #ccc;
    transition: color 0.5s ease;
}

.company-card:hover .card-icon i {
    color: #8b0000; /* Dark red/bordeaux */
}

.company-card h3 {
    font-size: 16px;
    color: var(--text-dark);
}

.slider-arrows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: auto;
}

.arrow-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.arrow-btn:hover {
    color: var(--primary-red);
}

/* Solutions - gri (gri-beyaz-gri-beyaz sırası) */
.solutions {
    background-color: var(--bg-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.solution-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0; /* Square corners */
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-card:hover img {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    transition: all 0.5s ease;
}

.solution-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(211, 47, 47, 0.9), rgba(211, 47, 47, 0.2));
    padding-bottom: 40px; /* Slight lift effect for text */
}

.card-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.solution-card:hover .card-overlay h3 {
    color: white; /* Force white text when hover bg is red */
    transform: translateY(-5px);
}

/* Force red text on non-hover if explicitly set, but make white on hover */
.card-overlay.text-red h3 {
    color: var(--primary-red);
}

.solution-card:hover .card-overlay.text-red h3 {
    color: white;
}

.solutions-links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 0;
}

.solutions-links-container a {
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.solutions-links-container a:hover {
    opacity: 0.85;
}

.solutions-links-container a .fa-arrow-right {
    margin-left: 6px;
    font-size: 0.85em;
}

.solutions-links-container a .fa-arrow-left {
    margin-right: 6px;
    font-size: 0.85em;
}

.solution-card-link {
    display: block;
    text-decoration: none;
}

/* Global Reach & Stats Section - beyaz */
.global-reach {
    padding: 50px 0;
    background-color: #ffffff;
}

.reach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.reach-description {
    color: #555555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Global Network - beyaz (gri-beyaz-gri-beyaz-gri-beyaz sırasının sonu) */
.global-network {
    padding: 60px 0;
    background-color: var(--bg-light);
}

/* Stats / Animated Chart */
.chart-container {
    background-color: transparent;
    padding: 0;
    position: relative;
    box-shadow: none;
    overflow: visible;
}

.animated-chart {
    width: 100%;
    height: auto;
    max-height: 250px;
    display: block;
    margin-bottom: 30px;
}

.chart-grid {
    stroke: #ddd;
    stroke-width: 1;
    stroke-dasharray: 5,5;
}

.chart-line {
    fill: none;
    stroke: var(--primary-red);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.run-animation .chart-line {
    animation: drawLine 3s ease forwards;
}

.chart-fill {
    fill: url(#chartGradient);
    opacity: 0;
}

.run-animation .chart-fill {
    animation: fadeInFill 1.5s ease 1s forwards;
}

.chart-dot {
    fill: white;
    stroke: var(--primary-red);
    stroke-width: 3;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.run-animation .chart-dot {
    animation: popDot 0.5s ease forwards;
}

.active-dot {
    stroke-width: 4;
}

.run-animation .active-dot {
    animation: popDot 0.5s ease forwards, pulseDot 2s infinite 2.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInFill {
    to { opacity: 1; }
}

@keyframes popDot {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseDot {
    0% { filter: drop-shadow(0 0 0 rgba(211,47,47,0.6)); }
    50% { filter: drop-shadow(0 0 10px rgba(211,47,47,0.8)); }
    100% { filter: drop-shadow(0 0 0 rgba(211,47,47,0.6)); }
}

.stats-counters {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.stat-item h3 {
    font-size: 32px;
    color: var(--primary-red);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.stat-item span {
    font-size: 24px;
    font-weight: 600;
    margin-left: 2px;
}

.stat-item p {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

/* Operational Insight Area */
.insight-panel {
    background: transparent;
    padding: 0;
    position: relative;
    border: none;
    box-shadow: none;
}

.insight-lead {
    color: #555555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
}

.insight-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.insight-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #eaeaea;
    background-color: #ffffff;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.insight-item i {
    color: var(--primary-red);
    font-size: 32px;
    margin-bottom: 20px;
}

.insight-item h3 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.insight-item p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.insight-item:hover {
    transform: translateY(-5px);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.insight-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 12px 24px;
    border: 1px solid var(--primary-red);
    background-color: transparent;
    transition: all 0.3s ease;
}

.insight-link:hover {
    background-color: var(--primary-red);
    color: #ffffff;
}

/* Site Footer */
.site-footer {
    position: relative;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    font-family: var(--font-family);
    color: #666;
}

.site-footer .container {
    padding: 0 20px;
}

.footer-main {
    padding: 30px 0;
    border-bottom: 1px solid #eeeeee;
}

.footer-main-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-social-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-red);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 0;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-social a:hover {
    color: white;
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding-right: 200px; /* Space for the logo */
}

.footer-links-left a, .footer-links-center a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links-left a:hover, .footer-links-center a:hover {
    color: var(--primary-red);
}

.footer-links-center {
    display: flex;
    gap: 30px;
}

/* This container is purely to position the logo */
.relative-container {
    position: relative;
    height: 0;
}

.footer-logo-box {
    position: absolute;
    right: 0;
    bottom: 20px; /* Aligned slightly above copyright */
    width: 160px;
    height: 160px;
    border: 1px solid #eeeeee;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    z-index: 10;
}

        .footer-logo-box img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

.footer-copyright {
    background-color: #f5f5f5;
    padding: 15px 0;
    border-top: 1px solid #eeeeee;
}

.copyright-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.web-design span {
    font-weight: 600;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: white;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 2px solid var(--border-color);
    z-index: 9999;
    padding: 25px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s ease;
    border-radius: 0; /* Square corners */
}

.cookie-modal.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-icon {
    font-size: 32px;
    margin-bottom: -5px;
}

.cookie-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.cookie-buttons button {
    flex: 1;
    padding: 10px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0; /* Square buttons */
    transition: all 0.3s ease;
}

.btn-accept {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
}

.btn-accept:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

.btn-reject {
    background-color: transparent;
    color: #666;
    border: 1px solid #ccc;
}

/* Responsive */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 1002;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 80px 20px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-sidebar.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-nav-close:hover {
    color: var(--primary-red);
}

.mobile-nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-menu ul li a {
    color: white;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-menu ul li a:hover {
    color: var(--primary-red);
}

.mobile-nav-menu ul li .mobile-nav-label {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    padding: 10px 0 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Mobile: Hizmetlerimiz / Ürünlerimiz açılır kapanır bölümler */
.mobile-dropdown-section {
    list-style: none;
}

.mobile-section-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.mobile-section-trigger:hover {
    color: white;
}

.section-chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-dropdown-section.open .section-chevron {
    transform: rotate(180deg);
}

/* Açık olan bölüm başlığı kırmızı olsun */
.mobile-dropdown-section.open .mobile-section-trigger {
    color: var(--primary-red);
}

.mobile-section-content {
    display: none !important;
    max-height: 0;
    overflow: hidden;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.mobile-dropdown-section.open .mobile-section-content {
    display: block !important;
    max-height: none;
    overflow: visible;
}

.mobile-section-content > li {
    margin: 0;
}

/* Ürünlerimiz alt elemanları da Hizmetlerimiz gibi küçük açılsın (aynı font/padding) */
.mobile-section-content > li > a {
    font-size: 15px !important;
    color: #ccc !important;
    padding: 8px 0 !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-section-content > li > a:hover {
    color: var(--primary-red) !important;
}

/* Mobile Accordion (kategori satırları: sadece açılır, sayfaya gitmez) */
.mobile-accordion-item {
    display: flex;
    flex-direction: column;
}

.mobile-accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-family);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.mobile-accordion-header:hover {
    color: var(--primary-red);
}

.accordion-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    display: none !important;
    max-height: 0;
    overflow: hidden;
    padding-left: 15px;
    margin: 0;
    list-style: none;
    gap: 0;
}

.mobile-accordion-item.open .mobile-accordion-content {
    display: block !important;
    max-height: none;
    overflow: visible;
}

.mobile-accordion-content li a {
    font-size: 15px !important;
    color: #ccc !important;
    border-bottom: none !important;
    padding: 8px 0 !important;
    display: block;
}

.mobile-accordion-content li a:hover {
    color: var(--primary-red) !important;
}

    @media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    .nav-menu { display: none; }
    .header { padding: 0 15px; height: 70px; }
    body { padding-top: 70px; }
    
    .login-btn .login-text { display: none; }
    .login-btn { 
        padding: 8px 12px; 
        font-size: 16px; 
        border-radius: 0; 
        gap: 0;
    }
    .header-right { gap: 10px; }
    
    .slide-title { font-size: 42px; }
    .slide-subtitle { font-size: 14px; }
    .slide-subtitle-box { padding: 8px 12px; margin-top: 10px; }
    .slide-content {
        top: 15%;
        left: 20px;
        right: 20px;
    }
    
    .slide-card { 
        width: 100%; 
        right: 0; 
        left: 0; 
        bottom: 0;
        padding: 35px 25px; 
        min-height: auto; 
        display: flex;
        flex-direction: column;
        border-radius: 0; 
    }
    .slider-arrows-hero { 
        position: relative; 
        left: 0; 
        top: 0;
        transform: none; 
        flex-direction: row; 
        margin-bottom: 15px; 
        gap: 20px;
        order: -1;
        margin-top: 0;
    }
    .arrow-btn-hero {
        font-size: 26px;
    }
    .slide-card-content h2 { font-size: 22px; margin-bottom: 8px; line-height: 1.2; margin-top: 0;}
    .slide-card-content p { font-size: 15px; margin-bottom: 10px; line-height: 1.4;}
    .card-badge { margin-bottom: 10px; padding: 6px 10px; font-size: 11px; display: inline-block;}
    .btn-link { font-size: 15px; margin-top: 8px; padding-bottom: 3px;}
    .slider-dots-container { margin-top: 15px; }
    .dot { width: 12px; height: 12px; }
    
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    @media (max-width: 576px) {
        .products-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
    }
    
    .solutions-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .cookie-modal { width: calc(100% - 40px); }
    
    .footer-main-container {
            flex-direction: column;
            justify-content: center;
        }
        .footer-social-wrapper {
            flex-direction: column;
            gap: 15px;
        }
        .footer-logo-box {
            position: static;
            margin: 20px auto 0 auto;
            width: auto;
            height: auto;
            max-width: 160px;
            max-height: 120px;
            border: none;
            padding: 0;
            background-color: transparent;
            display: flex;
            justify-content: center;
        }
        .footer-bottom-container {
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding-right: 0;
            gap: 30px;
        }
        .footer-logo-box img {
            max-width: 100%;
            height: auto;
            max-height: 120px;
            object-fit: contain;
            display: block; /* Ensures no extra space below image */
            margin: 0 auto;
        }

        .copyright-container {
            flex-direction: column;
            gap: 15px;
            text-align: center;
            padding-top: 20px;
        }
    }

/* Inner Page Banner */
.page-banner {
    margin-top: 0; /* offset header */
    height: 350px;
    background-color: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.page-banner--no-bg {
    background-color: #000000;
}

.page-banner-bg {
    display: none;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #ccc;
    font-weight: 400;
}

.page-subtitle .text-red {
    color: var(--primary-red);
}

/* Services Split Layout (hizmetler.php) */
.services-layout-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.services-split-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Sidebar */
.services-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* Offset below fixed header */
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 0; /* Square corners */
}

.service-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    padding: 15px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.category-item i {
    font-size: 12px;
    color: #999;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.category-item.active {
    background-color: white;
    border-left-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-item.active i {
    color: var(--primary-red);
    transform: translateX(5px);
}

/* Main Content Area */
.services-content-area {
    flex-grow: 1;
    position: relative;
    min-height: 500px;
}

.service-category-content {
    display: none;
    animation: fadeInCategory 0.5s ease-out forwards;
}

.service-category-content.active {
    display: block;
}

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

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Responsive for Split Layout */
@media (max-width: 992px) {
    .services-split-layout {
        flex-direction: column;
    }
    
    .services-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-new {
        grid-template-columns: 1fr;
    }
}

.service-item {
    background: white;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}

.service-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover .service-img img {
    transform: scale(1.15);
}

.service-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    transition: color 0.3s ease;
    font-weight: 600;
}

.service-item:hover .service-info h3 {
    color: var(--primary-red);
}

.service-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 15px;
}

.service-btn {
    align-self: flex-start;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-btn i {
    transition: transform 0.3s ease;
}

.service-item:hover .service-btn i {
    transform: translateX(5px);
}

/* Service Detail Page */
.service-detail-section {
    padding: 80px 20px;
    background-color: white;
}

.service-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.service-detail-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    margin-top: 40px;
    background-color: var(--bg-light);
    padding: 30px;
    border-left: 4px solid var(--primary-red);
}

.service-features h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #444;
    font-weight: 500;
}

.service-features ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-red);
    font-size: 14px;
}

.service-detail-sidebar {
    width: 450px;
    flex-shrink: 0;
}

.service-detail-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contact-box {
    background-color: var(--bg-dark);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 4px;
}

.contact-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-box p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 25px;
}

.contact-box .btn-link {
    color: white;
    border-color: white;
    margin: 0 auto;
    justify-content: center;
}

/* Responsive Service Detail */
@media (max-width: 992px) {
    .service-detail-container {
        flex-direction: column;
    }
    .service-detail-sidebar {
        width: 100%;
    }
    
    .reach-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-counters {
        flex-wrap: wrap;
    }
}

/* Language Dropdown */
.language-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

#language-btn {
    cursor: pointer;
    height: 100%;
    padding: 0 10px; /* Make hit area larger */
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: -20px;
    margin-top: 15px;
    background-color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
    padding: 10px 0;
    border-radius: 0; /* Changed to 0 per rules */
    display: flex;
    flex-direction: column;
}

/* Pseudo element for bridging the gap between button and dropdown */
.language-dropdown-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    width: 60px;
    height: 20px; /* Bridge the gap */
}

.language-dropdown-container:hover .language-dropdown,
.language-dropdown-container.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.lang-option:hover {
    background-color: var(--primary-red);
    color: white;
}

.lang-flag {
    width: 20px;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Changed to 0 per rules */
}

/* Products Grid (Minik Kartlar) */
.products-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.product-item {
    background: white;
    border: 1px solid #eaeaea;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-red);
}

.product-img {
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    border-bottom: 1px solid #eaeaea;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 200px;
}

/* Content area grows; footer stays at bottom */
.product-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.product-info-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.product-info-content h3 {
    font-size: 16px;
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-item:hover .product-info-content h3 {
    color: var(--primary-red);
}

.product-info-content p.product-short-desc {
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 12px;
    flex-grow: 0;
    font-size: 13px;
    text-align: center;
}

/* Full description: hidden by default, expandable */
.product-desc-full {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    text-align: left;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.product-desc-full p,
.product-desc-full ul {
    margin-bottom: 0.75em;
}

.product-desc-full p:last-child,
.product-desc-full ul:last-child {
    margin-bottom: 0;
}

.product-item.expanded .product-desc-full {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 12px;
}

.product-toggle-btn {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.product-toggle-btn .product-toggle-icon {
    transition: transform 0.3s ease;
}

.product-item.expanded .product-toggle-btn .product-toggle-icon {
    transform: rotate(180deg);
}

.product-info-footer .product-toggle-btn.btn-link {
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 3px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-item .btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.product-item .btn-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.product-item .btn-link i {
    transition: transform 0.3s ease;
}

.product-item:hover .btn-link i {
    transform: translateX(5px);
}

/* Detail Gallery Slider */
.detail-gallery-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #000;
}
.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}
.gallery-prev:hover, .gallery-next:hover {
    background: var(--primary-red);
}
.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.g-dot {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}
.g-dot.active, .g-dot:hover {
    background: var(--primary-red);
}

@media (max-width: 768px) {
    .detail-gallery-slider {
        height: 250px;
    }
}
