@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poly:ital@0;1&display=swap');

:root{

    --primary-text-color: #000;
    --bg-color: #ffffff;

    --btn-color: #fdfdfd;/* button color*/
    --btn-bg: #000;/* button bg color*/

    
    --header-link-hover: #000000;
    --header-link-hover-bg: #bababa36;

    --input-hover-bd-color: #232323;
    
    --dropdown-bg: #f3f4f6;
    --dropdown-hover-bg: #dddddd84;

    --faq-h-text: #0e0e0e;
    --faq-content-text: #1e1e1e;

    --hr-color: #e5e7eb;

    --footer-link: #282828;
    --footer-link-hover: #000;

    --header-bg: #edececa5;
    /* color: #312f2f; */
    --hero-gradient: #fcfcfc;
    --hero-bg-img: url("../assets/images/background/dots-dark.svg");

}

.tw-dark {
    --primary-text-color: #fff;
    --bg-color: #000000;

    --btn-color: #000000;/* button color*/
    --btn-bg: #ffffff;/* button bg color*/

    --header-link-hover: #ffffff;
    --header-link-hover-bg: #8a8a8a5e;

    --input-hover-bd-color: #f8f8f8;

    --dropdown-bg: #171717;
    --dropdown-hover-bg: #2d2d2ddb;

    --faq-h-text: #efefef;
    --faq-content-text: #d4d4d4;

    --hr-color: #e1e1e195;

    --footer-link: #cfcfcf;
    --footer-link-hover: #ffffff;

    --header-bg: #232323a5;

    --hero-gradient: #000;
    --hero-bg-img: url("../assets/images/background/dots.svg");

  }





  

html {
    scroll-behavior: smooth;
    /* font-family: "Ubuntu", sans-serif; */
}
body.bg-img {
    background-image: url("../assets/images/background/dots-dark.svg");
}
body.modal-open {
    overflow: hidden;
}

header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

hr{
    border-color:var(--hr-color); 
    border-style: solid;
}

.animated-collapse{
    transition: width 0.3s ease;
}


.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2; 
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; 
    width: 100%;
    height: 100%;
    /* color: var(--header-link-hover); */
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

.header-links:hover{
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.hero-section{
    background-image: var(--hero-bg-img);
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

.hero-bg-gradient{
    /* background: linear-gradient(180deg, var(--hero-gradient) 13%, rgba(0,0,0,0.258140756302521) 87%); */
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(0,0,0,0) 87%, var(--hero-gradient) 97%);
}


.gradient-text{
    background: rgb(215,215,215);
    background: linear-gradient(90deg, rgba(215,215,215,1) 18%, rgba(136,136,136,1) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.purple-bg-grad{
    filter: blur(50px);
    opacity: 0.0;
}

#dashboard {
    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
        rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 10px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 1px solid var(--input-hover-bd-color) !important;
}

/* ------------------- scrollbar ------------- */
.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
/* background: #f7f4ed; */
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}


/* ---------------- dropdown --------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
    /* background-color: #000; */
    /* border: 1px solid #ccc; */
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* -------------- carousel ------------------*/
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
}
  
.carousel {
    display: inline-block;
    animation: scroll 10s linear infinite;
}
  
.carousel-img {
    display: inline-block;
    margin: 0 20px;
}
  
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ------ animated border ------- */

.animated-border {
    position: relative;
    overflow: visible;
}


.animated-border::after{
    content: '';
    position: absolute;
    top: 0px; 
    left: -100%; 
    width: 30%;
    height: 100%;
    border-radius: inherit; 
    /* background: linear-gradient(#6366f1 23%, rgba(124,190,255,0) 87%); */
    background-color: #6366f1;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #6366f1;
    /* transform: rotate(90deg); */
    z-index: -2;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;
   
}

.animated-border::before{
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide{
    0% {
        left: -100%; /* Start completely outside the left edge */
        right: 100%; /* End completely outside the right edge */
    }
   
    100% {
        left: 100%; /* Move completely outside the right edge */
        right: -100%; /* End completely outside the left edge */
    }
}

.footer-link{
    width: -moz-fit-content;
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--footer-link-hover);
}


/* Style for the collapsible content such as faq commonly known as: accordion */

.faq-accordion {
    background-color: inherit;
    color: var(--faq-h-text);
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: var(--faq-content-text);
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}


@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0px;
        flex-direction: column;
        opacity: 0;
        height: 0vh;
        min-height: 0vh;
        /* height: 100dvh; */
        width: 100vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: center;
        text-align: center;
        background-color: var(--header-bg);
        /* color: #373636; */
        overflow-y: auto;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0px 2px 3px 2px #9f9f9f7c;
    }

    /* .header-links{
        color: var(--he);
    } */
    
}
#vigu-diagram-section > div.reveal-up { /* Doğrudan section altındaki div */
    position: relative; /* Absolute konumlandırılmış çocukları içermek için */
    width: 100%;
    max-width: 36rem; /* max-w-4xl yerine daha küçük bir değer deneyelim */
    display: flex; /* Ortalama için */
    justify-content: center;
    align-items: center;
    min-height: 600px; /* Sabit yükseklik verelim */
    margin-top: 4rem; /* tw-mt-16 */
    margin-bottom: 4rem; /* tw-mb-16 */
}

/* Temel Kutu Stili */
#vigu-diagram-section .diagram-box {
    position: absolute; /* MUTLAKA GEREKLİ */
    border-width: 2px;
    border-radius: theme('borderRadius.lg');
    padding: 1rem; /* tw-p-4 */
    text-align: center;
    width: 10rem; /* tw-w-40 */
    min-height: 100px; /* tw-min-h-[100px] */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: theme('fontSize.sm');
    cursor: pointer;
    backdrop-filter: blur(5px);
}
/* Dark mode için border rengi (Tailwind'in dark prefix'i burada çalışmayabilir) */
html.tw-dark #vigu-diagram-section .diagram-box {
    border-color: theme('colors.gray.500');
    background-color: rgba(31, 41, 55, 0.6); /* tw-bg-gray-800/60 */
}
#vigu-diagram-section .diagram-box:hover {
     background-color: rgba(55, 65, 81, 0.6); /* tw-bg-gray-700/60 */
}

/* Özel Vigu Kutusu */
#vigu-diagram-section #diagram-vigu {
    z-index: 10;
    padding: 1.5rem; /* tw-p-6 */
    position: relative; /* Diğerleri absolute olduğu için bu relative kalmalı */
}
/* Konumlandırma (Merkezdeki Vigu kutusuna göre) */
#vigu-diagram-section .diagram-top {
    bottom: calc(50% + 120px + 40px); /* Kutu yarısı + boşluk */
    left: 50%;
    transform: translateX(-50%);
}
#vigu-diagram-section .diagram-right {
    left: calc(50% + 150px + 40px); /* Kutu yarısı + boşluk */
    top: 50%;
    transform: translateY(-50%);
}
#vigu-diagram-section .diagram-bottom {
    top: calc(50% + 120px + 40px); /* Kutu yarısı + boşluk */
    left: 50%;
    transform: translateX(-50%);
}
#vigu-diagram-section .diagram-left-top {
     right: calc(50% + 150px + 40px); /* Kutu yarısı + boşluk */
     top: 25%; /* Dikey konumu yüzdelerle ayarlayalım */
     /* transform: translateY(0); */
}
#vigu-diagram-section .diagram-left-bottom {
     right: calc(50% + 150px + 40px); /* Kutu yarısı + boşluk */
     top: 75%; /* Dikey konumu yüzdelerle ayarlayalım */
     transform: translateY(-100%); /* Kendi yüksekliği kadar yukarı çek */
}

/* Çizgiler (Doğrudan CSS) */
#vigu-diagram-section .line {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5;
}
html.tw-dark #vigu-diagram-section .line {
    background-color: rgb(255, 255, 255);
}
#vigu-diagram-section .line-vigu-hmi {
    height: 110px; width: 2px; bottom: calc(50% + 50px); left: 50%; transform: translateX(-50%);
}
#vigu-diagram-section .line-vigu-sensors {
    width: 110px; height: 2px; left: calc(50% + 80px); top: 50%; transform: translateY(-50%);
}
#vigu-diagram-section .line-vigu-cloud {
    height: 110px; width: 2px; top: calc(50% + 50px); left: 50%; transform: translateX(-50%);
}
#vigu-diagram-section .line-vigu-robotics {
    width: 190px; height: 2px; right: calc(50%); top: calc(25% + 50px); transform: translateY(-50%);
}
#vigu-diagram-section .line-vigu-agv {
     width: 190px; height: 2px; right: calc(50%); top: calc(75% - 50px); transform: translateY(-50%);
}

/* Modal Stilleri (Aynı kalabilir) */
.modal-container {
     transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
     visibility: hidden;
}
.modal-container.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
     transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-close { line-height: 1; }
body.modal-open { overflow: hidden; }

/* === DÜZELTME BURADA BAŞLIYOR === */

/* 'video-hero-section' seçicisine . (nokta) eklendi */
.video-hero-section {
    /* Konumlandırma için 'relative' şart. 
       İçindeki videoyu buna göre 'absolute' yapacağız. */
    position: relative; 
    
    /* Bölümün en az ekran yüksekliği kadar olmasını sağlar */
    min-height: 80vh; 
  
    /* Video taşarsa gizler */
    overflow: hidden; 
  
    /* İçeriği (hero-content) dikey ve yatayda ortalamak için flex kullanıyoruz */
    display: flex;
    justify-content: center;
    align-items: center;
}
  
/* Arka plan videosu için stil */
.background-video {
    /* Konumlandırmayı 'absolute' yaparak bölümün arkasına atıyoruz */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Bu en önemli kısım: Videoyu en-boy oranını koruyarak 
       tüm alanı kaplayacak şekilde büyütür/küçültür (kenarlarda boşluk kalmaz). */
    object-fit: cover; 
    
    /* Videoyu diğer tüm içeriklerin en arkasına gönderir */
    z-index: -1; 
    
    opacity: 0; 
    /* Opaklık değiştiğinde bunu 1 saniyede, yumuşatarak yap */
    transition: opacity 1.0s ease-in-out;
}
#video1 {
    opacity: 1;
}
  
/* Videonun üzerinde duran içerik için stil */
.hero-content {
    /* İçeriğin 'z-index'i videodan (-1) yüksek olmalı */
    position: relative; /* z-index'in çalışması için 'static' olmamalı */
    z-index: 1;
    
    /* Üzerindeki yazıların rengi (genelde beyaz) */
    color: white; 
    text-align: center;
    padding: 20px;
}
  
/* (Opsiyonel) İçerikteki başlık ve butonlar için basit stiller */
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}
  
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}
  
.btn {
    display: inline-block;
    padding: 12px 24px;

    
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
  
.btn:hover {
    background-color: #f0f0f0;
}

/* MODEL-VIEWER STİLİ (BURASI ÇALIŞMIYORDU) */
model-viewer {
    width: 100%; /* Kapsayıcısını doldurması için eklendi */
    height: 100%; /* Kapsayıcısını doldurması için eklendi */
    
    display:block;
    cursor: grab;
}
model-viewer:active {
    cursor: grabbing;
}
.tw-dark .swiper-pagination-bullet {
    /* Dark modda inaktif noktaların rengi (Tailwind gray-500) */
    background-color: #6b7280;
    opacity: 0.7;
}
.tw-dark .swiper-pagination-bullet-active {
    /* Dark modda aktif noktanın rengi (Tailwind white) */
    background-color: #ffffff;
    opacity: 1;
}

/* YENİ EKLENEN BÖLÜM: Hizmetler Akışı */
.process-step,
#hizmetler-akisi .process-step,
section#hizmetler-akisi .process-step {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 1px !important;
    height: 380px !important; /* Çember radius'u ile eşit (800px / 2 - 20px margin) */ 
    transform-origin: top !important; 
    transform: rotate(var(--step-rotate)) !important;
    z-index: 10 !important;
}
.process-step-icon,
#hizmetler-akisi .process-step-icon,
section#hizmetler-akisi .process-step-icon {
    position: absolute !important;
    bottom: 0 !important; 
    left: 50% !important;
    transform: translateX(-50%) translateY(50%) rotate(var(--step-counter-rotate)) !important;
}
.process-circle-container,
#hizmetler-akisi .process-circle-container,
section#hizmetler-akisi .process-circle-container {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Process kartları eşit yükseklik */
.process-card,
.process-step .process-card,
#hizmetler-akisi .process-card,
section#hizmetler-akisi .process-card {
    height: 65px !important;
    min-height: 65px !important;
    max-height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* SVG çizgileri için dark mode desteği */
.tw-dark .process-circle-container svg path {
    stroke: #6b7280 !important; /* gray-500 */
}
.tw-dark .process-circle-container svg polygon {
    fill: #6b7280 !important;
}
/* === Sosyal Medya Swiper düzenlemeleri === */
.socialSwiper{
    padding-bottom: 32px; /* Pagination için ek boşluk */
}
.socialSwiper .swiper-wrapper{
    align-items: stretch !important; /* Tüm slaytları aynı yükseklikte hizala */
    display: flex !important; /* Flexbox'ın çalışması için */
}
.socialSwiper .swiper-slide{
    height: auto !important; /* Swiper'ın inline style'ını override et */
    display: flex !important; /* İç kartın tam yüksekliğe uzaması için */
    align-items: stretch !important; /* Tüm slide içindeki içerikleri eşitle */
}
.socialSwiper .swiper-slide > div{
    display: flex !important;
    flex-direction: column;
    height: 100% !important; /* Kartları eşit boyda yap */
    min-height: 560px !important; /* Eşit yükseklik için taban değer - Swiper override'ını engelle */
    width: 100%; /* Genişlik tam olsun */
}
/* Pagination'ı kartlardan uzaklaştır */
.socialSwiper .swiper-pagination.social-pagination{
    position: static !important; /* Swiper'ın absolute konumunu geçersiz kıl */
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px){
    .socialSwiper .swiper-slide > div{ min-height: 520px !important; }
}
@media (max-width: 768px){
    .socialSwiper .swiper-slide > div{ min-height: 480px !important; }
}

/* --- YENİ: Ürün Sayfası Sekme Stilleri --- */
.tabs-container {
    border-top: 1px solid #e5e7eb; /* tw-border-gray-200 */
}
.dark .tabs-container {
    border-top-color: #374151; /* dark:tw-border-gray-700 */
}
.tab-buttons {
    display: flex;
    gap: 1.5rem; /* tw-gap-6 */
    border-bottom: 1px solid #e5e7eb;
}
.dark .tab-buttons {
    border-bottom-color: #374151;
}
.tab-button {
    padding: 1rem 0.5rem;
    font-size: 1.125rem; /* tw-text-lg */
    font-weight: 600; /* tw-font-semibold */
    color: #6b7280; /* tw-text-gray-500 */
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px; /* Border için hizalama */
}
.dark .tab-button {
    color: #9ca3af; /* tw-text-gray-400 */
}
.tab-button:hover {
    color: #111827; /* tw-text-black */
}
.dark .tab-button:hover {
    color: #ffffff; /* tw-text-white */
}
.tab-button.active {
    color: #06b6d4; /* tw-text-cyan-600 */
    border-bottom-color: #06b6d4;
}
.dark .tab-button.active {
    color: #22d3ee; /* tw-text-cyan-400 */
    border-bottom-color: #22d3ee;
}

.tab-content {
    padding-top: 2rem; /* tw-pt-8 */
    display: none; /* Varsayılan olarak gizli */
}
.tab-content.active {
    display: block; /* Aktif olanı göster */
}
/* İçerik stilleri */
.tab-content h3 {
    font-size: 1.25rem; /* tw-text-xl */
    font-weight: 600; /* tw-font-semibold */
    color: #1f2937; /* tw-text-gray-800 */
    margin-bottom: 1rem;
}
.dark .tab-content h3 {
    color: #f3f4f6; /* tw-text-gray-100 */
}
.tab-content p, .tab-content li {
    font-size: 1rem; /* tw-text-base */
    line-height: 1.6; /* tw-leading-relaxed */
    color: #4b5563; /* tw-text-gray-600 */
    margin-bottom: 1rem;
}
.dark .tab-content p, .dark .tab-content li {
    color: #d1d5db; /* tw-text-gray-300 */
}
.tab-content ul {
    list-style: disc;
    padding-left: 1.5rem; /* tw-pl-6 */
}
/* --- Sekme Stilleri Sonu --- */