<style media="screen">
  .banner-bg{
      padding-top: 4rem;
  }
  .fontstyle{
    font-weight: bold;
  }

  .banner-bg .col-xl-12{
    padding-top: 50px;
  }

  .banner-bg {
      background-image: linear-gradient(90deg, #000000f5 30%, rgba(8, 15, 44, 0)),
                        url(<?php echo $site_url; ?>assets/img/ssd-vds.webp) !important;
      background-size: cover !important;
      background-position: center !important;
  }

.text-custom{
    color: black;
}
.banner-bg.soldark{
  background: linear-gradient(90deg, #000000f5 30%, rgba(8, 15, 44, 0));
}
/* Mobilde arka plan resmini kaldır ve beyaz yap */
@media (max-width: 768px) {
    .banner-bg {
      background-image: linear-gradient(90deg, #000000f5 30%, rgba(8, 15, 44, 0)),
                        url(<?php echo $site_url; ?>assets/img/ssd-vds.webp) !important;
        background-position: 85% !important;
    }
    .banner-bg .col-xl-12{
      padding-top: 0px;
    }

    .text-custom{
        color: white;
    }
}
</style>
<?php
$urunler = $whmcs->ProGet(4);

$spec = [
    '28' => [
        "css" => "ss-table-item-inner FsTipLeft FsTipAlways FsTipGreen",
        "tfd" => true,
        "showdrm" => "ss-table-item-detail collapse show",
        "bildiri" => "EN İYİ FİYAT",
        "CPU" => 1,
        "Ram" => 1,
        "Disk" => 20,
        "Traffic" => 1,
        "IP" => 1
    ],
    '29' => [
        "css" => "ss-table-item-inner collapsed",
        "tfd" => false,
        "showdrm" => "ss-table-item-detail collapse",
        "CPU" => 2,
        "Ram" => 2,
        "Disk" => 30,
        "Traffic" => 3,
        "IP" => 1,
        "populer" => "pricing_popular"
    ],
    '30' => [
        "css" => "ss-table-item-inner collapsed",
        "tfd" => false,
        "showdrm" => "ss-table-item-detail collapse",
        "CPU" => 3,
        "Ram" => 8,
        "Disk" => 100,
        "Traffic" => 5,
        "IP" => 1
    ],
    '31' => [
        "css" => "ss-table-item-inner collapsed",
        "tfd" => false,
        "showdrm" => "ss-table-item-detail collapse",
        "CPU" => 4,
        "Ram" => 16,
        "Disk" => 200,
        "Traffic" => 10,
        "IP" => 1
    ],
];

$uniqueProducts = [];

foreach ($urunler as $urun) {
    $urunName = $urun['name'];
    $urunPid = $urun['pid'];
    $tryPrice = $urun['pricing']['TRY']['monthly'];
    $usdPrice = $urun['pricing']['USD']['monthly'];

    // Ürün ismi kontrolü
    if (!isset($uniqueProducts[$urunName])) {
        $uniqueProducts[$urunName] = [
            'name' => $urunName,
            'pid' => [],
            'specs' => [],
            'min_price_try' => $tryPrice,
            'min_price_usd' => $usdPrice,
        ];
    }

    // PID ekle
    $uniqueProducts[$urunName]['pid'][] = $urunPid;

    // Özellikleri ekle
    if (isset($spec[$urunPid])) {
        $uniqueProducts[$urunName]['specs'][$urunPid] = $spec[$urunPid];
    }

    // En düşük TRY fiyatını bul
    if ($tryPrice < $uniqueProducts[$urunName]['min_price_try']) {
        $uniqueProducts[$urunName]['min_price_try'] = $tryPrice;
    }

    // En düşük USD fiyatını bul
    if ($usdPrice < $uniqueProducts[$urunName]['min_price_usd']) {
        $uniqueProducts[$urunName]['min_price_usd'] = $usdPrice;
    }
}
?>

<section class="banner-bg soldark bg-dark ssl-banner">
        <div class="container">
            <div class="row align-items-center g-4">
                <div class="col-xl-12">
                    <div class="pb-40">
                        <h1 class="text-white mb-3 sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">SSD Bulut Sunucular</h1>
                        <p class="text-white mb-8 max-text-60 text-opacity-75 sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                          Türk Telekom altyapıları ile yedekli olarak sağlanan 10 Gbps bağlantı sayesinde, %99.99 ağ erişim garantisi sunmaktayız. Ayrıca, kullanıcı dostu ve pratik yönetim panelimiz üzerinden tüm trafik istatistiklerinizi anlık olarak takip etme imkânına da sahip olabilirsiniz.
                        </p>
                    </div>
                </div>

            </div>
        </div>
    </section>
    <div class="pb-60">
        <div class="container">
            <div class="row">
                <div class="col-12 sal-animate" data-sal="fade" data-sal-duration="1000" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                  <?php  $sayac = 0; ?>
                  <?php foreach ($uniqueProducts as $product): ?>
                    <?php  $sayac = $sayac + 1; ?>
                    <div class="accordion cloud-package" id="cloudHostingPackage">
                        <div class="accordion-item mb-4">
                            <h2 class="accordion-header">
                                <button type="button" class="accordion-button collapsed <?php if ($sayac == 1): ?> show<?php endif; ?>" data-bs-toggle="collapse" data-bs-target="#cloudPackages<?php echo $product['pid'][0]; ?>" aria-expanded="false">
                                    <span class="d-flex gap-4 flex-wrap justify-content-between align-items-center w-100">
                                        <span class="d-block text-heading fs-18 fw-bolder flex-shrink-0">
                                          <?php echo str_replace('-', ' ', $product['name']); ?>
                                        </span>
                                        <span class="d-block text-heading fw-bold flex-shrink-0">
                                            <?php echo $product['specs'][$product['pid'][0]]['CPU']; ?> CPU
                                        </span>
                                        <span class="d-block text-heading fw-bold flex-shrink-0"> <?php echo $product['specs'][$product['pid'][0]]['Ram']; ?>GB <span class="fw-normal">RAM</span> </span>
                                        <span class="d-block text-heading fw-bold flex-shrink-0"> <?php echo $product['specs'][$product['pid'][0]]['Disk']; ?> GB <span class="fw-normal">NVMe</span> </span>
                                        <span class="d-block flex-shrink-0">
                                          <span class="d-block fw-normal">
                                            <span class="h6 mb-0 text-primary fw-bold"><usd>$<?php echo $product['min_price_usd']; ?></usd><try>₺<?php echo $product['min_price_try']; ?></try>/ay</span>
                                          </span>
                                        </span>
                                        <form action="server-kurulum" method="post">
                                          <input type="hidden" name="productId" value="<?php echo $product['pid'][0]; ?>">
                                          <input type="hidden" name="productType" value="ssd-bulut-sunucu">
                                            <label for="submit-btn-<?php echo $product['pid'][0]; ?>" class="btn btn-dark hover:bg-primary hover:border-primary rounded-1" style="cursor: pointer; display: inline-flex; align-items: center;">
                                                <i class="fa-solid fa-basket-shopping" style="margin-right: 8px;"></i> Yapılandır
                                                <input type="submit" id="submit-btn-<?php echo $product['pid'][0]; ?>" style="display: none;">
                                            </label>
                                        </form>
                                    </span>
                                </button>
                            </h2>
                            <div id="cloudPackages<?php echo $product['pid'][0]; ?>" class="accordion-collapse collapse <?php if ($sayac == 1): ?> show<?php endif; ?>" data-bs-parent="#cloudHostingPackage" style="">
                                <div class="accordion-body">
                                    <div class="row g-3">
                                        <div class="col-xl-12">
                                            <div class="cloud-package__box h-100">
                                                <div class="row g-3">
                                                    <div class="col-md-4">
                                                        <div class="vstack gap-2">
                                                            <div class="d-flex align-items-center gap-2">
                                                                <div class="w-5 h-5 bg-success rounded-circle fs-10 text-white d-flex align-items-center justify-content-center">
                                                                    <i class="las la-check"></i>
                                                                </div>
                                                                <span class="d-inline-block fs-14">
                                                                    <span class="fw-bold">
                                                                        <?php echo $product['specs'][$product['pid'][0]]['Traffic']; ?> TB
                                                                    </span>
                                                                    &nbsp; Trafik
                                                                </span>
                                                            </div>
                                                            <div class="d-flex align-items-center gap-2">
                                                                <div class="w-5 h-5 bg-success rounded-circle fs-10 text-white d-flex align-items-center justify-content-center">
                                                                    <i class="las la-check"></i>
                                                                </div>
                                                                <span class="d-inline-block fs-14">
                                                                    <span class="fw-bold">
                                                                        Kolay
                                                                    </span>
                                                                    &nbsp; Transfer
                                                                </span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-4">
                                                        <div class="vstack gap-2">
                                                            <div class="d-flex align-items-center gap-2">
                                                                <div class="w-5 h-5 bg-success rounded-circle fs-10 text-white d-flex align-items-center justify-content-center">
                                                                    <i class="las la-check"></i>
                                                                </div>
                                                                <span class="d-inline-block fs-14">
                                                                    <span class="fw-bold">
                                                                        99%
                                                                    </span>
                                                                    Kesintisiz Çalışma Garantisi
                                                                </span>
                                                            </div>
                                                            <div class="d-flex align-items-center gap-2">
                                                                <div class="w-5 h-5 bg-success rounded-circle fs-10 text-white d-flex align-items-center justify-content-center">
                                                                    <i class="las la-check"></i>
                                                                </div>
                                                                <span class="d-inline-block fs-14">
                                                                    <span class="fw-bold">
                                                                        24/7
                                                                    </span>
                                                                    Canlı Destek
                                                                </span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-4">
                                                        <div class="vstack gap-2">
                                                            <div class="d-flex align-items-center gap-2">
                                                                <div class="w-5 h-5 bg-success rounded-circle fs-10 text-white d-flex align-items-center justify-content-center">
                                                                    <i class="las la-check"></i>
                                                                </div>
                                                                <span class="d-inline-block fs-14">
                                                                    <span class="fw-bold">
                                                                        Hızlı
                                                                    </span>
                                                                    Kurulum
                                                                </span>
                                                            </div>
                                                            <div class="d-flex align-items-center gap-2">
                                                                <div class="w-5 h-5 bg-success rounded-circle fs-10 text-white d-flex align-items-center justify-content-center">
                                                                    <i class="las la-check"></i>
                                                                </div>
                                                                <span class="d-inline-block fs-14">
                                                                    <span class="fw-bold">
                                                                       <?php echo $product['specs'][$product['pid'][0]]['IP']; ?>
                                                                    </span>
                                                                    IP Adresi
                                                                </span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                  <?php endforeach; ?>

                </div>
            </div>
        </div>
        <div class="pt-40">
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <p class="mb-0 fw-semibold text-center">Yardıma mı ihtiyacınız var? <a target="_blank" href="https://wa.me/904443717" class="text-decoration-none text-success">Uzmanlarımızla İletişime Geçin</a>.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <section class="partner-section-3 position-relative z-1 bg-dark overflow-hidden">
        <div class="container">
            <div class="row g-4">
                <div class="col-12">
                    <div class="partner-section-3__container position-relative z-1 pt-80 pb-80">
                        <div class="row g-4">
                            <div class="col-xl-10">
                                <small class="d-block mb-2 fw-semibold text-white sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                                    2004 Yılından Beri Güvenilir Ortağınız!
                                </small>
                                <h3 class="text-white max-text-24 mb-8 sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                                    Profesyonel Cloud VDS!
                                </h3>
                                <div class="row g-4">
                                    <div class="col-lg-4 sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                                        <div class="why-service-item position-relative">
                                            <h5 class="text-white mb-3"><span class="counter">99.9</span>% Çalışma Süresi</h5>
                                            <div class="w-12 h-1 bg-primary mb-4"></div>
                                            <p class="text-white fw-medium text-opacity-75">
                                                Performans Garantisi ile!
                                            </p>
                                        </div>
                                    </div>
                                    <div class="col-lg-4 sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="400" data-sal-easing="ease-in-out-sine">
                                        <div class="why-service-item position-relative">
                                            <h5 class="text-white mb-3"><span class="counter">3</span> Veri Merkezi</h5>
                                            <div class="w-12 h-1 bg-primary mb-4"></div>
                                            <p class="text-white fw-medium text-opacity-75">
                                              Kocaeli / Çanakkale ve Ankara
                                            </p>
                                        </div>
                                    </div>
                                    <div class="col-lg-4 sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="500" data-sal-easing="ease-in-out-sine">
                                        <div class="why-service-item last position-relative">
                                            <h5 class="text-white mb-3"><span class="counter">250</span>k Sanal Makine</h5>
                                            <div class="w-12 h-1 bg-primary mb-4"></div>
                                            <p class="text-white fw-medium text-opacity-75">
                                                Müşterilerimizin Tercihiyle
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-2">
                                <p class="mb-0 text-white fw-semibold partner-section-3__vertical-text">
                                    Yirmi Yılı Aşkın Deneyimimizle <br />
                                    Yanınızdayız
                                </p>
                            </div>
                        </div>
                        <img src="<?php echo $site_url; ?>assets/img/shape/round-arrow.png" alt="Şekil" class="img-fluid partner-section-3__shape" />
                    </div>
                </div>
            </div>
        </div>
    </section>
    <section class="pt-120 pb-120">
    <div class="pb-40">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-md-10 col-lg-8 col-xxl-7">
                    <div class="text-center sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                        <h2 class="mb-2">Çalıştığımız Teknolojiler!</h2>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="d-flex justify-content-center border-bottom sal-animate" data-sal="fade" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                    <div class="pricing-nav-pills d-inline-block mx-auto border-bottom">
                        <ul class="nav nav-pills" role="tablist">
                            <li class="nav-item" role="presentation">
                                <a class="partner-tab-nev d-inline-block text-decoration-none text-body fw-bold px-3 pb-2 active" href="#" data-bs-toggle="pill" data-bs-target="#partner-1" aria-selected="true" role="tab">
                                    İşletim Sistemleri
                                </a>
                            </li>
                            <li class="nav-item" role="presentation">
                                <a class="partner-tab-nev d-inline-block text-decoration-none text-body fw-bold px-3 pb-2" href="#" data-bs-toggle="pill" data-bs-target="#partner-2" aria-selected="false" role="tab" tabindex="-1">
                                    Paneller ve Uygulamalar
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="tab-content mt-6 sal-animate" data-sal="fade" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                    <div class="tab-pane fade show active" id="partner-1" role="tabpanel">
                        <div class="row g-4 row-cols-1 row-cols-sm-2 row-cols-lg-3 row-cols-xl-4 row-cols-xxl-5 justify-content-center">
                            <div class="col">
                                <div class="card shadow-sm h-100">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/ubuntu.svg" alt="Ubuntu" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">Ubuntu</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm h-100">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/windows.svg" alt="Ubuntu" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">Windows</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/debian.svg" alt="Debian" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">Debian</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/almalinux.svg" alt="AlmaLinux" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">Alma Linux</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/centos.svg" alt="RockyLinux" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">Centos</h6>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane fade" id="partner-2" role="tabpanel">
                        <div class="row g-4 row-cols-1 row-cols-sm-2 row-cols-lg-3 row-cols-xl-4 row-cols-xxl-5 justify-content-center">
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/cpanel.svg" alt="cPanel" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">cPanel</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/plesk.svg" alt="Proxmox" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">Plesk</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/proxmox.svg" alt="Proxmox" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">Proxmox</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/directadmin.svg" alt="Docker" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">DirectAdmin</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="col">
                                <div class="card shadow-sm">
                                    <div class="card-body d-flex align-items-center gap-3">
                                        <div class="w-12 h-12 d-flex justify-content-center align-items-center flex-shirnk-0">
                                            <img src="<?php echo $site_url; ?>assets/img/isp.svg" alt="Webmin" class="w-100 h-100 object-fit-contain" />
                                        </div>
                                        <h6 class="m-0 flex-grow-1 fs-16 fw-bold">ISP Manager</h6>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<style media="screen">
    .col-sm-6.col-md-4.feature-list__item.sal-animate:hover {
      background: white;
      border-radius: 25px;
    }
    </style>
    <div class="container">
        <div class="row g-4 g-md-0 feature-list">
            <div class="col-sm-6 col-md-4 feature-list__item sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                <div class="feature-list__card border text-center">
                    <div class="mb-8">
                        <i style="font-size: 75px;" class="ssicon-cloud-server1"></i>
                    </div>
                    <h6 class="mb-5">Cloud Server</h6>
                    <p class="mb-0">
                        Gelişmiş Cloud Server sistemimiz, sınırsız erişim ve kolay yönetim olanakları sunar. İşletim sistemi kurulumundan anlık kaynak artırımlarına kadar tüm işlemleri kullanıcı panelinizden zahmetsizce gerçekleştirebilirsiniz.
                    </p>
                </div>
            </div>
            <div class="col-sm-6 col-md-4 feature-list__item sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                <div class="feature-list__card border text-center">
                    <div class="mb-8">
                        <i style="font-size: 75px;" class="ssicon-server-eco"></i>
                    </div>
                    <h6 class="mb-5">Güçlü Cloud Paneli</h6>
                    <p class="mb-0">
                        SS-Panel, Cloud Server’ınızı tek tıkla kurmanızı ve yönetmenizi sağlayan kullanıcı dostu bir kontrol panelidir. Zahmetsiz ve hızlı çözümler sunar.
                    </p>
                </div>
            </div>
            <div class="col-sm-6 col-md-4 feature-list__item sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                <div class="feature-list__card border text-center">
                    <div class="mb-8">
                        <i style="font-size: 75px;" class="ssicon-linux"></i>
                    </div>
                    <h6 class="mb-5">Özelleştirilebilir Linux Çekirdeği</h6>
                    <p class="mb-0">
                        Linux VPS’inizde tam kontrol sahibi olun. Çekirdeğinizi optimize edin, kaynakları verimli yönetin ve ihtiyaçlarınıza özel çözümler geliştirin.
                    </p>
                </div>
            </div>
            <div class="col-sm-6 col-md-4 feature-list__item sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                <div class="feature-list__card border text-center">
                    <div class="mb-8">
                        <i style="font-size: 75px;" class="ssicon-ftp"></i>
                    </div>
                    <h6 class="mb-5">Tam Kök Erişimi</h6>
                    <p class="mb-0">
                        VPS’inizde tam yetkiyle çalışın. Uygulamalar yükleyin, projelerinizi özgürce yönetin ve barındırma ortamınızı ihtiyaçlarınıza göre şekillendirin.
                    </p>
                </div>
            </div>
            <div class="col-sm-6 col-md-4 feature-list__item sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                <div class="feature-list__card border text-center">
                    <div class="mb-8">
                        <i style="font-size: 75px;" class="ssicon-handshake"></i>
                    </div>
                    <h6 class="mb-5">Esnek Faturalandırma</h6>
                    <p class="mb-0">
                        Kısa süreli projeleriniz için esnek çözümler sunuyoruz. Dilediğiniz zaman planınızı iptal edebilir ve paranızı iade alabilirsiniz.
                    </p>
                </div>
            </div>
            <div class="col-sm-6 col-md-4 feature-list__item sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                <div class="feature-list__card border text-center">
                    <div class="mb-8">
                        <i style="font-size: 75px;" class="ssicon-dns"></i>
                    </div>
                    <h6 class="mb-5">KVM Tabanlı Sanallaştırma</h6>
                    <p class="mb-0">
                        KVM altyapısı ile izole edilmiş, yüksek performanslı sanal sunucular oluşturun. Maksimum donanım gücünü optimize ederek üstün bir deneyim yaşayın.
                    </p>
                </div>
            </div>
        </div>
    </div>

    <?php
    $faq = [
        [
            "question" => "Herhangi bir gizli ücret mevcut mudur?",
            "answer" => "Cloud Web Hosting paketlerimize sitemizde görmüş olduğunuz ücretler ile sadece kanunen zorunlu resmi vergiler eklenerek sahip olursunuz, herhangi bir operasyonel ücret mevcut değildir."
        ],
        [
            "question" => "Uptime oranınız nedir?",
            "answer" => "Tüm Cloud Web Hosting paketlerimize çok noktadan yedekli donanım altyapımız ve birden fazla operatörden sağlanan network bağlantılarımız ile %99,99 uptime garantisi sunulmaktadır."
        ],
        [
            "question" => "Network Altyapınızda Hangi Donanımı Kullanıyorsunuz?",
            "answer" => "Fiziksel sunucular için tasarlanan altyapımızda Juniper EX serisi yönlendiriciler kullanılmakta ve sıfır paket kaybı (zero-packet-loss) prensibi ile hizmet verilmektedir."
        ],
        [
            "question" => "Cloud sunucularınız hangi işletim sistemini destekliyor?",
            "answer" => "Windows, Linux, BSD işletim sistemleri farklı sürümleri ile birlikte cloud sunucu çözümlerimizde desteklenmektedir."
        ],
        [
            "question" => "Cloud sunucularınız hangi sanallaştırma yazılımını kullanıyor?",
            "answer" => "Cloud sunucularımız Türkiye ve Almanya lokasyonlarında, sektörün lider sanallaştırma ortamı olan VMware Enterprise Plus sistemi üzerinde çalışmaktadır."
        ],
        [
            "question" => "Cloud sunucularınızı nasıl yönetebilirsiniz?",
            "answer" => "Yönetim panelinizden gerçek zamanlı olarak trafik kullanımını görebilir, gerektiğinde yeniden başlatma, sunucu kapatma gibi işlemleri kendiniz yapabilirsiniz."
        ],
        [
            "question" => "Sunucularınızda kesintiler veya performans düşüşleri yaşanabilir mi?",
            "answer" => "Sunucular anlık olarak takip edilmektedir ve beklenmedik yoğunlukların oluşması durumunda kaynak aktarımı yapılarak sitelerinizin ve e-maillerinizin kesintisiz şekilde çalışması sağlanır."
        ],
        [
            "question" => "Yedekleme hizmetiniz var mı?",
            "answer" => "Evet, tüm sunucularımız için günlük, haftalık veya isteğe bağlı periyodlarla yedekleme hizmeti sunmaktayız. Verileriniz güvenle saklanır ve ihtiyaç duyduğunuzda geri yükleme yapılabilir."
        ]
    ];

     ?>

     <div class="pt-60 pb-120">
       <div class="pb-40">
           <div class="container">
               <div class="row justify-content-center">
                   <div class="col-md-10 col-lg-8 col-xl-7">
                       <div class="text-center sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                           <h2>
                               Sıkça Sorulan Sorular
                           </h2>
                       </div>
                   </div>
               </div>
           </div>
       </div>
       <div class="container">
           <div class="row g-4 justify-content-center">
               <div class="col-12">
                   <?php $faq_sira = 0; ?>
                   <div class="accordion border-0 vps-hosting-accordion" id="accordionFaq2">
                     <div class="row">
                       <?php foreach ($faq as $key): ?>
                           <?php $faq_sira = $faq_sira + 1; ?>
                         <div class="col-sm-6">
                           <div class="accordion-item border rounded-3 mb-4 sal-animate" data-sal="slide-up" data-sal-duration="500" data-sal-delay="300" data-sal-easing="ease-in-out-sine">
                               <h2 class="accordion-header">
                                   <button class="accordion-button bg-transparent collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faq-<?php echo $faq_sira; ?>" aria-expanded="false" aria-controls="faq-<?php echo $faq_sira; ?>">
                                       <span class="text-body fs-16 fw-bold"><?php echo $key['question']; ?></span>
                                   </button>
                               </h2>
                               <div id="faq-<?php echo $faq_sira; ?>" class="accordion-collapse collapse" data-bs-parent="#faq-<?php echo $faq_sira; ?>" style="">
                                   <div class="accordion-body pt-0">
                                       <?php echo $key['answer']; ?>
                                   </div>
                               </div>
                           </div>
                         </div>
                       <?php endforeach; ?>
                     </div>
                   </div>
               </div>
           </div>
       </div>
    </div>

    <script>
      function setServerId(productId) {
        console.log("Ürün ID: " + productId);

        var formData = new FormData();
        formData.append('selectedProductId', productId);
        formData.append('selectedProductType', 'ssd-bulut-sunucu');

        fetch('server-kurulum', {
          method: 'POST',
          body: formData
        })
        .then(response => response.text())
        .then(data => {
          console.log("Sunucu yanıtı:", data);
          console.log(productId);
        window.location.href = 'server-kurulum';
        })
        .catch(error => {
          console.error('Hata:', error);
        });
      }
    </script>


    <script type="text/javascript">
    function addToServer(serverId, element) {
        if (!serverId) {
            alert('Lütfen server ID giriniz.');
            return;
        }
        const product = {
            productId: serverId,
            domain: generateUUID(),
            action: "cloudserver",
            itemName: "Cloud Server",
            type: "cloudserver",
            price: 0,
        };


        addToCart(product);

        sendCartToServer(product, element);
    }

    function addToCart(product) {
        let cart = JSON.parse(localStorage.getItem('cart')) || [];

        cart.push(product);

        localStorage.setItem('cart', JSON.stringify(cart));

        console.log('Ürün sepete eklendi:', product);
    }

    function sendCartToServer(product, element) {
        fetch('/require/pages/add-to-cart.php', {
            method: 'POST',
            headers: {
                'Content-Type': 'application/json'
            },
            body: JSON.stringify([product])
        })
        .then(response => {
            if (!response.ok) {
                throw new Error(`HTTP error! status: ${response.status}`);
            }
            return response.json();
        })
        .then(data => {
            if (data.status === 'success') {
                console.log('Sepet sunucuya başarıyla kaydedildi:', data.cart);
                element.href = './sepet';
                element.onclick = '';
                element.innerHTML = '<span class="fa-solid fa-basket-shopping"></span> Ödeme Yap';
            } else {
                console.error('Sepet kaydedilemedi:', data.message);
            }
        })
        .catch(error => {
            console.error('Sunucuya gönderim sırasında bir hata oluştu:', error);
            element.innerHTML = 'Hata oluştu. Tekrar deneyiniz.';
        });
    }

    function generateUUID() {
        return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
            var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
            return v.toString(16);
        });
    }
    </script>
