/* General Reset and Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Yatay kaymayı engelle */
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    padding-top: 40px; /* Sayfa başında padding */
    margin: 0;
}
/* Intro Banner */
#intro-banner {
    position: relative;
    height: 70vh;
    background: linear-gradient(135deg, #2E3A8C, #6A0DAD);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 120px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}

.intro-text {
    max-width: 90%;
    padding: 10px;
    overflow: hidden;
    font-size: 2.0rem;
    text-align: center;
    line-height: 1.3; /* Adjust line height for better spacing */
}

/* Adjustments for mobile view */
@media (max-width: 768px) {
    #intro-banner {
        height: 170vh; /* Full screen height on mobile */
        margin-top: 0; /* Remove top margin on mobile */
    }

    /* Resize header to prevent overflow */
    .intro-text h1 {
        font-size: 1.5rem; /* Resize header */
        word-wrap: break-word; /* Allow long words to break and fit inside */
        letter-spacing: 1px; /* Adjust letter spacing for better readability */
        line-height: 1.2; /* Tighten line height for better fitting */
    }

    .intro-text p {
        font-size: 1.2rem; /* Resize paragraph for readability */
    }
}


/* Video Modal */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-container {
    position: relative;
}

.video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
}

/* Fade In and Out Animation for Video */
@keyframes videoFadeInOut {
    0%, 100% {
        opacity: 1;
    }
    10%, 90% {
        opacity: 0;
    }
}

/* Navbar Genel Ayarları */
header {
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  .logo {
    display: flex;
    align-items: center; /* Dikey hizalama */
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    height: 50px; /* Logo yüksekliği */
}

.brand-text {
    font-size: 20px; /* Yazı boyutu */
    font-weight: bold; /* Kalın font */
    color: #333; /* Yazı rengi */
    margin-top: -15px;
}

  /* Navbar içindeki elemanların hizalaması */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Sağ Menü (Desktop için) */
  .right-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
  }

  .right-menu ul li {
    display: inline-block;
  }

  .right-menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
  }

  .right-menu ul li a:hover {
    background-color: #3498db;
    color: #fff;
  }

  /* 🔹 Hamburger Menü (Mobilde Görünecek) */
  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
}

.menu-text {
    font-size: 16px;
    font-weight: bold;
    color: #333; /* Menü yazısının rengi */
    margin-bottom: 5px; /* Çizgilerle arasına boşluk bırak */
}

.line {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    border-radius: 2px;
}

  /* 🔹 Mobilde Açılır Menü */
  @media (max-width: 768px) {
    .right-menu {
      display: none;
      position: absolute;
      top: 70px;
      right: 0;
      width: 250px;
      background-color: #fff;
      box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
      padding: 15px;
      border-radius: 8px;
    }

    .right-menu ul {
      flex-direction: column;
      text-align: right;
    }

    .right-menu ul li {
      margin: 10px 0;
    }

    .right-menu.show {
      display: flex;
    }

    .hamburger {
      display: flex;
    }
  }

#how-we-protect {
    padding: 40px 20px;
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

#how-we-protect h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

#how-we-protect p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

.threats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.threat-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 250px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.threat-card:hover {
    transform: scale(1.05);
}

.threat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.more-info {
    background-color: #1cc88a;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.more-info:hover {
    background-color: #18b16d;
}

.threat-detail {
    display: none;
    font-size: 1rem;
    color: #444;
    margin-top: 10px;
}

.threat-card.active .threat-detail {
    display: block;
}

/* Mobile view */
@media (max-width: 768px) {
    .threats-container {
        flex-direction: column;
        align-items: center;
    }

    .threat-card {
        width: 100%;
        max-width: 300px;
    }
}

#cyber-intro {
    position: relative;
    height: 90vh;
    background: linear-gradient(135deg, #2E3A8C, #6A0DAD);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Intro Banner */
#intro-banner {
    position: relative;
    background: linear-gradient(135deg, #2E3A8C, #6A0DAD);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin: 0; /* Üst ve alt boşlukları sıfırladım */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    height: 100vh; /* Tam ekran yüksekliği */
}

/* İçerik Yazısı */
.intro-text {
    max-width: 80%;
    padding: 10px;
    overflow: hidden;
    font-size: 1.8rem; /* Yazı boyutunu biraz küçülttüm */
    text-align: center;
    line-height: 1.6; /* Satırlar arası boşluk */
    margin: 0; /* Üst ve alt marjinleri sıfırla */
}

/* Başlık için stil */
.intro-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeInUp 2s ease-out;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Paragraf için stil */
.intro-text p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
    font-family: 'VT323', monospace;
    animation: fadeInUp 3s ease-out;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Mobil Uyum */
@media (max-width: 768px) {
    #intro-banner {
        height: auto; /* Mobilde yükseklik otomatik ayarlanır */
        padding: 30px 10px; /* Kenar boşluklarını artır */
    }

    .intro-text {
        font-size: 1.4rem;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 1rem;
    }
}
#ascii-display {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    max-height: 50vh;
    margin-top: 50px;
    background: #1e1e1e; /* Hafif gri arka plan */
    border: 2px solid #444; /* Kenarlık efekti */
    border-radius: 10px; /* Köşeler yuvarlatıldı */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Hafif gölge */
}


/* Fade In Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hack-msg {
    font-size: 4rem; /* Increase the font size */
    color: red;
    animation: fadeIn 2s ease-out;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    display: none; /* Initially hidden */
    
    /* Merkezi hizalama */
    position: absolute;
    top: 50%; /* Sayfanın ortasına al */
    left: 50%;
    transform: translate(-50%, -50%); /* Tam ortalamak için */

    /* Üstten boşluk bırakmak istersen */
    margin-top: 50px; /* 50px boşluk bırak */

    /* Yazıyı ortalamak */
    text-align: center;
    width: 100%;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Kırmızı renk ile tehdit mesajları */
.malware {
    color: red;
}

/* Yeşil renk ile tehdit mesajları */
.phishing {
    color: green;
}

/* Diğer tehdit mesajları */
/* Ransomware için pembe renk */
.ransomware {
    color: purple;
}


.mitm {
    color: orange;
}

.proxy {
    color: blue;
}
/* Genel Footer Stili */
#footer {
    background-color: #3f0f3d;
    color: #fff;
    padding: 40px 0;
    font-family: Arial, sans-serif;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-logo h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-left p, .footer-left h3 {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

.footer-left a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-left a:hover {
    color: #007bff;
}

.footer-social a {
    color: #fff;
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #007bff;
}

footer h5 {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: #aaa;
}

/* Footer deodeo Alanı */
#footer-video {
    position: relative;
    width: 100%;
    height: 70vh;
    background: #000;
    margin-bottom: 40px;
}

#footer-video .video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#footer-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Üzerindeki Yazılar */
#footer-video .video-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    width: 90%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#footer-video .video-caption h2 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#footer-video .video-caption p {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #footer-video {
        height: 40vh;
    }

    #footer-video .video-caption h2 {
        font-size: 1.5rem;
    }

    #footer-video .video-caption p {
        font-size: 1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 20px;
    }
}

/* 🔹 Sidebar Genel Stili */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* Varsayılan olarak gizli */
    width: 260px;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e); /* Daha şık degrade */
    color: white;
    transition: left 0.4s ease-in-out;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto; /* İçerik fazla olursa kaydırma */
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
}

/* 🔹 Sidebar Açılınca */
#sidebar-left.open {
    left: 0; /* Açılınca ekranın soluna gelir */
}

/* 🔹 Sidebar İçerik */
.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin-top: 50px;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    transition: background 0.3s ease-in-out;
    border-radius: 5px;
}

.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 🔹 Sidebar Kapat Butonu */
.close-btn {
    font-size: 30px;
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* 🔹 Sidebar Açma Butonu */
      .sidebar-toggle {
        position: fixed;
        top: 80px;
        left: 20px;
        z-index: 1001;
      }

.sidebar-toggle button {
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.sidebar-toggle button:hover {
    background-color: #2bd033;
}

/* 🔹 Mobil Uyum */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 220px;
    }

    .sidebar-toggle button {
        font-size: 16px;
        padding: 10px 15px;
    }
}

/* Ensure the sidebar opens correctly */
body {
    padding-top: 60px; /* Adjust this value based on the height of the sticky buttons */
}
