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

body {
    font-family: Arial, sans-serif;
}

/* === TOP BAR === */
.top-bar {
    background: #ffffff;
    padding: 5px 0;
}

.top-bar .lang {
    text-align: right;
}

.top-bar a {
    color: #000000;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
}

/* TOP BAR DİL İKONLARI */
.lang a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

/* === CONTAINER === */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 0 15px;
}

/* === HEADER === */
.header {
    background: rgba(15, 23, 42, 1);
    transition: all 0.4s ease;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 120px;
    transition: all 0.3s ease;
}

/* LOGO */
.logo img {
    max-height: 90px;
    transition: 0.3s;
}

/* MENU */
.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    display: block;
}

.menu a.active {
    color: #38bdf8;
    border-bottom: 2px solid #38bdf8;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #1e293b;
    display: flex;
    flex-direction: column;   /* ALT ALTA */
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    padding: 10px 15px;
    width: 100%;
    display: block;
}


.dropdown:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background: white;
    height: 3px;
    width: 25px;
    margin-bottom: 5px;
}

/* === SCROLL EFFECT === */
.header.shrink {
    background: rgba(15, 23, 42, 0.85);
}

.header.shrink .header-container {
    min-height: 70px;
}

.header.shrink .logo img {
    max-height: 50px;
}

/* Sectionlar arası geçiş efekti */

section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* === MOBIL === */
@media(max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0f172a;
        display: none;
        flex-direction: column;
    }

    .menu ul {
        flex-direction: column;
    }

    .menu.active {
        display: flex;
    }

     /* ALT MENÜ BAŞLANGIÇ HALİ */
    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    /* AÇILDIĞI ZAMAN */
    .dropdown.active .submenu {
        max-height: 500px; /* alt menü yüksekliğinden büyük bir değer */
    }

    /* OK İKONU */
    .dropdown > a::after {
        content: "▼";
        float: right;
        transition: 0.3s ease;
    }

    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
}

/* === SLIDER === */
.slider {
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 80vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    z-index: 2;
}

.slide-content h1 {
    font-size: 3rem;
}

.slide-content p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* OKLAR */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 26px;
    padding: 10px 15px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* DOTS */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: #38bdf8;
}

/* MOBİL */
@media (max-width:768px){
    .slider-container { height: 60vh; }

    .slide-content h1 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }

    .slide-content {
        left: 5%;
        bottom: 15%;
    }
}

/* === SLIDER YAZI ANİMASYON === */
.slide-content h1,
.slide-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    
}

/* Aktif slide içindeyken yazılar animasyonla gelsin */
.slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.slide.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* === 3'LÜ SECTION === */
.info-section {
    padding: 80px 0;
    background: #0f172ade;
}

.info-container {
    display: flex;
    gap: 30px;
}

.info-box {
    flex: 1;
    background: #1e293bd2;
    color: white;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.highlight {
    border: 2px solid #38bdf8;
}

/* MOBİL */
@media(max-width:768px){
    .info-container {
        flex-direction: column;
    }
}

/* === KART İKONLARI === */
/* === İKONU ORTALAMA === */
.icon {
    width: 70px;
    height: 70px;
    background: rgba(56,189,248,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;   /* YATAY ORTALAMA */
    transition: 0.3s ease;
}


.icon img {
    width: 32px;
}

/* Hover efekti */
.info-box:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(56,189,248,0.3);
}

/* === ABOUT SECTION === */
.about-section {
    padding: 100px 0;
    background: #ffffff;
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    color: rgb(0, 0, 0);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #134257;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #000000;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* MOBİL */
@media(max-width:768px){
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

/* === ABOUT SECTION 2 === */
.about-section2 {
    padding: 100px 0;
    background: #0f172ade;
}

.about-container2 {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text2 {
    flex: 1;
    color: rgb(255, 255, 255);
}

.about-text2 h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #00adfd;
}

.about-text2 b {
    color: white;
}

.about-text2 p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #ffffff;
}

.about-img2 {
    flex: 1;
}

.about-img2 img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* MOBİL */
@media(max-width:768px){
    .about-container2 {
        flex-direction: column;
        text-align: center;
    }
}

/* === GALERİ === */
.gallery-section {
    padding: 80px 0;
    background: #d4d3d3;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #134257;
    margin-bottom: 40px;
}

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

.gallery-grid img {
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* === LIGHTBOX === */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
}

#close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* MOBİL */
@media(max-width:768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* LIGHTBOX NAV OKLARI */
.nav {
    color: white;
    font-size: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.nav.prev { left: 30px; }
.nav.next { right: 30px; }

.nav:hover {
    color: #38bdf8;
}


/* === CONTACT FORM === */
.contact-section {
    background: #ffffff;
    padding: 100px 0;
}

.contact-container {
    max-width: 1000px;
    margin: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    background: #f5f5f5;
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 6px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form button {
    background: #134257;
    color: rgb(255, 255, 255);
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    width: 150px;
    border-radius: 6px;
}

.contact-form button:hover {
    background: #0ea5e9;
}

/* MOBİL */
@media(max-width:768px) {
    .contact-container {
        padding: 0 15px;
    }
}


/* POPUP */
#popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.popup-box {
    background: #020617;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.popup-box button {
    margin-top: 15px;
    background: #38bdf8;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* === HARİTA === */
.map-wrapper {
    margin-top: 40px;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* MOBİL */
@media(max-width:768px) {
    .map-wrapper {
        height: 250px;
    }
}

/* FORM + HARİTA YAN YANA */
/* FORM (%40) – HARİTA (%60) */
.contact-grid {
    display: grid;
    grid-template-columns: 100% ;
    gap: 30px;
    align-items: stretch;
}

/* HARİTA TAM BOY */
.map-wrapper {
    height: 100%;
    min-height: 450px;
}

/* MOBİLDE ALT ALTA */
@media(max-width:768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        min-height: 250px;
    }
}

/* === FOOTER === */
.footer {
    background: #020617;
    color: white;
}

/* üst alan */
.footer-top {
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* iletişim alanı */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}

.footer-item img {
    width: 22px;
}

/* logo */
.footer-logo img {
    max-width: 200px;
}

/* ALT BAR */
.footer-bottom {
    background: #000;
    padding: 12px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #94a3b8;
}

/* MOBİL */
@media(max-width:768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

/* SOSYAL MEDYA */
.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-icons img {
    width: 26px;
    transition: 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

/* MOBİLDE ORTALA */
@media(max-width:768px){
    .social-icons {
        justify-content: center;
    }
}


/* ---------------------------------------------------------
   ÜRÜN KARTI (PRODUCT CARD) STİLLERİ
--------------------------------------------------------- */
/* --- MEVCUT KODLAR AYNI KALIYOR --- */
.product-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

/* --- BURADA DEĞİŞİKLİK YAPTIK --- */
/* Kartın Yüksekliğini Sabitledik */
.product-card-single {
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #eee;
    
    /* YENİ: Kart yüksekliği sabitlendi. */
    /* İçerik taşarsa gizlenecek veya sıkışacak */
    height: 675px; 
}

/* --- SOL PANEL DÜZENLEMESİ (Resim ve Metin) --- */
.product-left-panel {
    flex: 0 0 60%;
    padding: 30px;
    border-right: 1px solid #f0f0f0;
    
    /* Flex yapısı dikey olacak */
    display: flex;
    flex-direction: column;
    /* Yükseklik %100 olsun ki içindeki öğeleri yayabilelim */
    height: 100%; 
}

/* --- GÖRSEL ALANI (ESNEK OLAN KISIM) --- */
.product-img-box {
    /* YENİ: Esnek alan ayarları */
    flex-grow: 1; /* Boş kalan tüm alanı kapla */
    flex-shrink: 1; /* Gerektiğinde küçül */
    min-height: 0; /* İçeriğin taşmasını engellemek için kritik */
    
    /* Görseli ortalamak için */
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin-bottom: 20px; /* Metinle arasına mesafe */
    overflow: hidden; /* Resim taşarsa gizle */
}

.product-img-box img {
    /* Resim kutuya sığsın ama orantısı bozulmasın */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Teknik parça olduğu için kesilmesin, tamamı görünsün */
}

/* --- METİN ALANI (SABİT OLAN KISIM) --- */
.product-info-box {
    /* YENİ: Metin alanı asla sıkışmasın, öncelikli olsun */
    flex-shrink: 0; 
}

.product-info-box h1 {
    font-size: 26px;
    color: #222;
    margin-bottom: 10px;
    /* Başlık çok uzarsa 2 satırla sınırla */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px; /* Buton varsa diye boşluk */
    
    /* Açıklama çok uzarsa 3 satırla sınırla ve ... koy */
    /* Böylece resim tamamen yok olmaz */
    display: -webkit-box;
     
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- SAĞ PANEL (Teknik Tablo) --- */
.product-right-panel {
    flex: 0 0 40%;
    padding: 30px;
    background-color: #fcfcfc;
    
    /* Tablo çok uzunsa scroll çıksın, kartı patlatmasın */
    overflow-y: auto; 
    height: 100%;
}

/* ... Diğer tablo stilleri aynı kalabilir ... */
.product-right-panel h3 { font-size: 20px; margin-bottom: 20px; color: #134257; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
.tech-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tech-table td { padding: 4px 8px; border: 1px solid #e2e8f0; }
.tech-table tr:nth-child(odd) { background-color: #fff; }
.tech-table tr:nth-child(even) { background-color: #f1f5f9; }
.tech-table td:first-child { font-weight: 600; color: #334155; width: 45%; }
.tech-table tr:first-child td { background-color: #134257; color: #ffffff; }
.btn-offer { display: inline-block; background-color: #d32f2f; color: #fff; padding: 12px 30px; font-weight: bold; text-decoration: none; border-radius: 4px; transition: 0.3s; }
.btn-offer:hover { background-color: #b71c1c; transform: translateY(-2px); }


/* --- MOBİL UYUMLULUK GÜNCELLEMESİ --- */
@media (max-width: 991px) {
    .product-card-single {
        flex-direction: column;
        /* YENİ: Mobilde sabit yüksekliği iptal et, içeriğe göre uzasın */
        height: auto !important; 
    }

    .product-left-panel,
    .product-right-panel {
        flex: 1 1 auto;
        height: auto; /* Mobilde yükseklik serbest */
        width: 100%;
    }

    .product-left-panel {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Mobilde resim belli bir yükseklikte sabit kalsın */
    .product-img-box {
        height: 250px; 
        flex-grow: 0;
    }
}
