/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
:root {
  --color-primary: #32e06a;
  --color-green-dark: #1da94a;
  --color-text: #0d0d0d;
  --color-online: #32e06a;
  --color-offline: #ee6352;
  --color-white: #f1f1f1;
   --cell-size: 150px;
  --cell-gap: 25px;
  --border-color: #32e06a;
  --hover-color: rgba(50,224,106,0.2);
  --shadow-color: rgba(0,0,0,0.3);
}

body {
  display: flex;
  background: linear-gradient(to right top, #850c0c, #670a16, #470d17, #270d12, #000000);
  flex-direction: column;
  align-items: center;       
  justify-content: flex-start; 
  min-height: 100vh;
  margin: 0;            
   min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
    transition: opacity 0.5s ease;
}
body.fade-out {
  opacity: 0;
}
#bg-video {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  
  z-index: -1;       
}
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  max-width: 500px;
  width: 80%;
  border-radius: 20px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.popup-image {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

.logo { 
  position: relative;
  font-size: 3.5rem;
  margin-top: 100px;
  font-weight: 700;
  color: #a4161a;
  text-transform: uppercase;
  display: inline-block;
  z-index: 1;
  text-shadow: 0 0 5px rgba(0,0,0,0.2), 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, text-shadow 0.4s ease;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}


.top-header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 10;
}

.top-header .logo {
  font-size: 24px;
  font-weight: 800;
  color: #ffcc00;
  text-decoration: none;
}


.status-btn {
  margin-bottom: 20px;      
  font-size: 1.5rem;
  padding: 8px 24px;
  border-radius: 20px;
  border: 0.5px solid currentColor;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px; 
  justify-content: center; 
  position: relative;
  transition: transform 0.3s, color 0.3s, box-shadow 0.3s;
}


.status-btn::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: box-shadow 0.3s, background-color 0.3s;
}


.status-btn.online {
  color: #fff;
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.3);
}
.status-btn.online::before {
  background-color: #28a745; 
}


.status-btn.offline {
  color: #fff;
  border-color: #ba181b;
  background: rgba(186, 24, 27, 0.3);
}
.status-btn.offline::before {
  background-color: #ba181b; 
}


.status-btn.online:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #28a745, 0 0 30px rgba(40,167,69,0.5);
}
.status-btn.online:hover::before {
  box-shadow: 0 0 8px #28a745, 0 0 15px rgba(40,167,69,0.7);
}

.status-btn.offline:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ba181b, 0 0 30px rgba(186,24,27,0.5);
}
.status-btn.offline:hover::before {
  box-shadow: 0 0 8px #ba181b, 0 0 15px rgba(186,24,27,0.7);
}



.status-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

/* Hover için arka ışık efekti */
.logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(50,224,106,0.3);
  filter: blur(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: -1;
}

/* Hover büyüme ve ışık parlaması */
.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(186, 24, 27, 0.6))
          drop-shadow(0 0 20px rgba(186, 24, 27, 0.4))
          drop-shadow(0 0 30px rgba(186, 24, 27, 0.3));
}


/* Küçük R */
.logo::after {
  content: "R";
  position: absolute;
  top: 5px;
  right: -20px;
  width: 20px;
  height: 20px;
  color: #a4161a;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Hover küçük R için hafif parıltı */
.logo:hover::after {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(186, 24, 27, 0.6))
          drop-shadow(0 0 20px rgba(186, 24, 27, 0.4))
          drop-shadow(0 0 30px rgba(186, 24, 27, 0.3));
}

/* Typewriter */
.cursor {
  position: relative;
  max-width: 90vw;  /* ekran genişliğinin %90’ını geçmesin */
  margin: 25px auto 0 auto;
  border-right: 2px solid rgba(255,255,255,.75);
  font-size: 2rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  color: var(--color-white); 
  font-family: 'Fira Mono', monospace;
}

.typewriter-animation {
  animation: typewriter 5s steps(50) 1s 1 normal both, blinkingCursor 500ms steps(50) infinite normal;
}

@keyframes typewriter { from { width: 0; } to { width: 99%; } }
@keyframes blinkingCursor { from { border-right-color: rgba(255,255,255,.75); } to { border-right-color: transparent; } }
.grid-button {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, var(--cell-size));
  grid-template-rows: repeat(3, var(--cell-size));
  gap: var(--cell-gap);
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 23, 23, 0.75);
  border: 0.5px solid #a4161a;
  border-radius: 10px;
  transition: all 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 0;
}

.grid-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-cell:hover {
  transform: scale(1.1); /* Hover büyümesi */
  z-index: 1; /* Hoverdaki kare önde olsun */
}

.grid-cell:hover::before {
  background: rgba(186, 24, 27, 0.6); /* Hover ışık efekti */
  transform: scale(1.2);
  box-shadow: 0 5px 15px rgba(186, 24, 27, 0.6);
}

.grid-cell a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.grid-cell img.icon {
  width: 40%;
  height: 40%;
  filter: brightness(0) invert(1); 
}
.footer{
   margin-top: auto;   
  padding: 10px 0;
  text-align: center;
  font-size: 1rem;
  color: var(--color-white);
  font-family: Arial, Helvetica, sans-serif;
}


@media (max-width: 375px) {
  .logo { font-size: 2rem; }
   body {
    background: linear-gradientlinear-gradient(to right top, #850c0c, #670a16, #470d17, #270d12, #000000); /* video yoksa siyah arka plan */
  }
  .logo::after { width: 10px; height: 10px; font-size: 0.5rem; top: 0px; right: -15px; }
     .cursor {
      color: var(--color-white);
    font-size: 0.8rem;
    max-width: 90vw;
    white-space: normal;  
    line-height: 1.4;     
  }
  #bg-video {
    display: none;
  }
  .status-btn { font-size: 0.8rem;  padding: 10px 20px; }
   :root {
    --cell-size: 70px;   /* Daha küçük ekran */
    --cell-gap: 10px;
  }
  .grid-cell img.icon {
    width: 30%;
    height: 30%;
  }
  .status-btn::before{
    width: 7px;
    height: 7px;
    right: 2px;
  }
  .grid-button {
    margin-top: 100px;}
 
  .footer {
    font-size: 0.5rem;
  }
  .desktop-side-dots { display:none;
}
}

@media (min-width:375px) and (max-width: 767px) {
  .logo { font-size: 3rem; }
  .logo::after { width: 10px; height: 10px; font-size: 0.5rem; top: 0px; right: -15px; }
  .cursor {
    font-size: 1.5rem;
    max-width: 90vw;
    white-space: normal;   
    line-height: 1.5;
  }
  .status-btn { font-size: 0.9rem;  padding: 8px 15px; }
   :root {
    --cell-size: 120px;   
    --cell-gap: 8px;      
  }
  .grid-cell img.icon {
    width: 35%;
    height: 35%;
  }
  
   .grid-button {
    margin-top: 100px;
  }
   #bg-video {
    object-fit: cover;
  }
   .footer {
    font-size: 0.9rem;
   }
   .desktop-side-dots { display:none;
}
}
@media (min-width: 767px) and (max-width: 1024px) {
  .cursor {
    font-size: 1.5rem;
    max-width: 90vw;
    white-space: normal;   /* tablet ve küçük cihazlarda da alt satır */
    line-height: 1.5;
  }
}
