@import url('https://fonts.cdnfonts.com/css/minecraft-4');

@font-face{
  font-family:"Minecraft";
  src:url("Minecraft.otf") format("truetype");
  font-display:swap;
}

:root{
  --bg:#0b0b0b;
  --inner-dark:#2a2a2a;
  --discord-fill:#a89bd8;
  --discord-top:#d7cff6;
  --discord-bot:#6f62b3;
  --shop-fill:#a9d88e;
  --shop-top:#cfe9bf;
  --shop-bot:#6c9456;
}

*{box-sizing:border-box;}

html{
  overflow-x:hidden;
  width:100%;
}

body{
  margin:0;
  background:#000;
  color:#fff;
  font-family:"Minecraft", Arial, sans-serif;
  overflow-x:hidden;
  width:100%;
  position:relative;
}

/* LOADING SCREEN */
.loading-screen{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  transition:opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out{
  opacity:0;
  visibility:hidden;
}

.loading-content{
  text-align:center;
}

/* MINECRAFT CUBE */
.minecraft-cube{
  width:80px;
  height:80px;
  position:relative;
  margin:0 auto 40px;
  transform-style:preserve-3d;
  animation:rotateCube 3s infinite linear;
}

@keyframes rotateCube{
  0%{transform:rotateX(0deg) rotateY(0deg);}
  100%{transform:rotateX(360deg) rotateY(360deg);}
}

.cube-face{
  position:absolute;
  width:80px;
  height:80px;
  background:linear-gradient(135deg, #8B4513 0%, #654321 100%);
  border:3px solid #000;
  box-shadow:
    inset 4px 4px 0 rgba(139,90,43,0.3),
    inset -4px -4px 0 rgba(0,0,0,0.3);
}

.cube-face::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.2) 26%, transparent 27%, transparent 74%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0.2) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.2) 26%, transparent 27%, transparent 74%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0.2) 76%, transparent 77%, transparent);
  background-size:20px 20px;
}

.cube-front{transform:rotateY(0deg) translateZ(40px);}
.cube-back{transform:rotateY(180deg) translateZ(40px);}
.cube-right{transform:rotateY(90deg) translateZ(40px);}
.cube-left{transform:rotateY(-90deg) translateZ(40px);}
.cube-top{transform:rotateX(90deg) translateZ(40px);}
.cube-bottom{transform:rotateX(-90deg) translateZ(40px);}

/* LOADING TEXT */
.loading-text{
  font-size:28px;
  letter-spacing:4px;
  color:#fff;
  margin-bottom:24px;
  animation:pulse 1.5s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{opacity:1;}
  50%{opacity:0.6;}
}

/* LOADING BAR */
.loading-bar{
  width:300px;
  height:12px;
  background:#1a1a1a;
  border:3px solid #000;
  margin:0 auto;
  position:relative;
  overflow:hidden;
}

.loading-bar::before{
  content:"";
  position:absolute;
  inset:0;
  border:2px solid #2a2a2a;
}

.loading-progress{
  height:100%;
  background:linear-gradient(90deg, #ff2a2a 0%, #ff5c5c 50%, #ff2a2a 100%);
  box-shadow:
    inset 2px 2px 0 rgba(255,92,92,0.5),
    inset -2px -2px 0 rgba(142,31,31,0.5);
  animation:loadProgress 2s ease-in-out forwards;
  position:relative;
}

@keyframes loadProgress{
  0%{width:0%;}
  100%{width:100%;}
}

.loading-progress::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  right:0;
  background:linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  animation:shimmer 1s infinite;
}

@keyframes shimmer{
  0%{transform:translateX(-100%);}
  100%{transform:translateX(100%);}
}

/* NAVBAR */
.navbar{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  padding:35px 0;
  z-index:10;
  background:transparent;
}

.navbar::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:140px;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0.95) 40%,
    rgba(0,0,0,0.85) 55%,
    rgba(0,0,0,0.65) 70%,
    rgba(0,0,0,0.35) 85%,
    rgba(0,0,0,0.0) 100%
  );
  z-index:0;
  pointer-events:none;
}

.navbar-container{
  width:min(1200px, 92%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  z-index:1;
  transform:translateY(-20px);
}

.navbar-left{
  display:flex;
  align-items:center;
  gap:18px;
}

.navbar-logo img{
  height:50px;
}

.navbar-players{
  font-size:15px;
}

#player-count{
  color:#ff2a2a;
}

.navbar-right{
  display:flex;
  align-items:center;
  gap:40px;
}

.navbar-links{
  display:flex;
  gap:35px;
}

.nav-link{
  position:relative;
  text-decoration:none;
  color:#ffffff;
  font-size:18px;
  letter-spacing:1px;
  transition:color 0.15s ease;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:2px;
  background:#ff2a2a;
  transition:width 0.15s ease;
}

.nav-link:hover{
  color:#ff2a2a;
}

.nav-link:hover::after{
  width:100%;
}

.navbar-buttons{
  display:flex;
  gap:20px;
}

/* MC BUTTON */
.mc-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 38px;
  font-size:16px;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:1px;
  color:#fff;
  border:4px solid #000;
  background:transparent;
}

.mc-btn::before{
  content:"";
  position:absolute;
  inset:4px;
  border:3px solid var(--inner-dark);
}

.mc-btn::after{
  content:"";
  position:absolute;
  inset:7px;
}

.mc-btn.discord::after{
  background:var(--discord-fill);
  box-shadow:
    inset 4px 4px 0 var(--discord-top),
    inset -4px -4px 0 var(--discord-bot);
}

.mc-btn.shop::after{
  background:var(--shop-fill);
  box-shadow:
    inset 4px 4px 0 var(--shop-top),
    inset -4px -4px 0 var(--shop-bot);
}

.mc-btn span{
  position:relative;
  z-index:1;
}

.mc-btn:hover{
  transform:translateY(2px);
}

.mc-btn:hover::after{
  filter:brightness(0.92);
}

/* HERO */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  color:#fff;
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  filter:grayscale(15%) brightness(0.85) contrast(1.05);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.65);
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
  padding:40px 20px;
  margin-top:-100px; 
}

.hero-logo{
  width:160px;
  height:auto;
  display:block;
  margin:0 auto 22px;
  animation:floatLogo 3.5s ease-in-out infinite;
}

@keyframes floatLogo{
  0%{transform:translateY(0px);}
  50%{transform:translateY(-10px);}
  100%{transform:translateY(0px);}
}

.hero-title{
  margin:0;
  font-size:56px;
  letter-spacing:1px;
  color:#fff;
}

.hero-subtitle{
  margin:14px 0 0;
  font-size:52px;
  letter-spacing:1px;
  color:#fff;
}

.hero-text{
  margin:24px auto 0;
  max-width:720px;
  font-size:18px;
  line-height:1.55;
  color:#e9e9e9;
}

/* IP BUTTON */
.ip-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 24px;
  font-size:16px;
  letter-spacing:1px;
  text-transform:uppercase;
  text-decoration:none;
  color:#fff;
  transition:transform 0.08s ease, filter 0.08s ease;
  margin-top:20px;
}

.ip-btn:hover{
  transform:translateY(2px);
  filter:brightness(0.92);
}

.ip-btn::before{
  content:"";
  position:absolute;
  inset:3px;
  border:2px solid #1f1f1f;
  z-index:0;
}

.ip-btn::after{
  content:"";
  position:absolute;
  inset:6px;
  background:#d63131;
  box-shadow:
    inset 3px 3px 0 #ff7b7b,
    inset -3px -3px 0 #8e1f1f;
  z-index:0;
}

.ip-btn span{
  position:relative;
  z-index:1;
}

/* SERVERS SECTION */
.servers-section{
  background:#0b0b0b;
  padding:110px 0 120px;
  text-align:center;
}

.servers-wrap{
  width:min(1200px, 92%);
  margin:0 auto;
}

.servers-title{
  font-size:44px;
  margin:0;
  letter-spacing:1px;
}

.servers-desc{
  max-width:760px;
  margin:18px auto 70px;
  color:#cfcfcf;
  line-height:1.6;
  font-size:16px;
}

.servers-grid{
  display:flex;
  justify-content:center;
  gap:34px;
  flex-wrap:wrap;
}

.server-card{
  width:360px;
  background:#1a1a1a;
  border:3px solid #2a2a2a;
  text-align:left;
}

.server-img{
  position:relative;
  overflow:hidden;
}

.server-img img{
  display:block;
  width:100%;
  height:210px;
  object-fit:cover;
}

.server-img::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:90px;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(26,26,26,1) 100%
  );
  z-index:2;
  pointer-events:none;
}

.server-body{
  padding:18px 18px 22px;
}

.server-top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.server-name{
  font-size:26px;
  letter-spacing:1px;
}

.server-dot{
  opacity:0.6;
}

.server-online{
  font-size:14px;
  color:#bdbdbd;
  display:flex;
  align-items:center;
  gap:8px;
}

.server-online .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#36ff5f;
  display:inline-block;
}

.server-text{
  font-size:14px;
  color:#bdbdbd;
  margin:8px 0 16px;
  line-height:1.4;
}

.server-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 26px;
  font-size:14px;
  letter-spacing:1px;
  text-transform:uppercase;
  text-decoration:none;
  color:#fff;
  border:1px solid #000;
  background:transparent;
}

.server-btn::before{
  content:"";
  position:absolute;
  inset:2px;
  border:2px solid #1f1f1f;
  z-index:0;
}

.server-btn::after{
  content:"";
  position:absolute;
  inset:2px;
  background:#6e86d6;
  box-shadow:
    inset 3px 3px 0 #9fb4ff,
    inset -3px -3px 0 #3d4c8f;
  z-index:0;
}

.server-btn span{
  position:relative;
  z-index:1;
}

.server-btn:hover{
  transform:translateY(2px);
}

.server-btn:hover::after{
  filter:brightness(0.92);
}

.blue{color:#4db3ff;}
.red{color:#ff2a2a;}
.green{color:#6aff6a;}

/* JOIN SECTION */
.join-section{
  background:#0b0b0b;
  padding:110px 0;
  text-align:center;
}

.join-wrap{
  width:min(1200px,92%);
  margin:0 auto;
  color:#fff;
}

.join-title{
  margin:0;
  font-size:44px;
  letter-spacing:1px;
}

.join-desc{
  margin:18px auto 70px;
  max-width:760px;
  color:#cfcfcf;
  line-height:1.6;
  font-size:16px;
}

.join-grid{
  display:flex;
  gap:26px;
  justify-content:center;
  flex-wrap:wrap;
}

.join-card{
  width:280px;
  background:#151515;
  border:3px solid #2a2a2a;
  padding:18px 18px 20px;
  text-align:left;
}

.join-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.join-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  background:#a9d88e;
  color:#000;
  border:3px solid #000;
  font-size:14px;
}

.join-head{
  font-size:18px;
  letter-spacing:1px;
}

.join-text{
  margin:0;
  color:#cfcfcf;
  font-size:14px;
  line-height:1.5;
}

.join-iprow{
  margin-top:8px;
}

.join-ipbtn{
  cursor:pointer;
  border:0;
  padding:0;
  background:transparent;
  font-family:"Minecraft", Arial, sans-serif;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  font-size:14px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#fff;
  border:3px solid #000;
}

.join-ipbtn::before{
  content:"";
  position:absolute;
  inset:2px;
  border:2px solid #1f1f1f;
  z-index:0;
}

.join-ipbtn::after{
  content:"";
  position:absolute;
  inset:1px;
  background:#d63131;
  box-shadow:inset 3px 3px 0 #ff7b7b, inset -3px -3px 0 #8e1f1f;
  z-index:0;
}

.join-ipbtn span{
  position:relative;
  z-index:1;
}

.join-ipbtn:hover{
  transform:translateY(2px);
  filter:brightness(0.94);
}

.join-hint{
  margin:40px auto 0;
  max-width:760px;
  color:#bdbdbd;
  font-size:14px;
  line-height:1.6;
}

/* FOOTER */
.footer{
  background:#0f0f0f;
  padding:90px 0 60px;
  color:#fff;
}

.footer-inner{
  width:min(1200px,92%);
  margin:0 auto 60px;
  display:flex;
  justify-content:space-between;
  gap:80px;
  flex-wrap:wrap;
}

.footer-col{
  flex:1;
  min-width:240px;
}

.footer-brand{
  display:flex;
  align-items:flex-start;
  gap:20px;
}

.footer-brand img{
  width:95px;
  margin-top:8px;
}

.footer-community h3,
.footer-middle h3,
.footer-right h3{
  font-size:20px;
  margin-bottom:14px;
  font-weight:700;
}

.footer-community a,
.footer-middle a{
  display:block;
  color:#bdbdbd;
  text-decoration:none;
  margin-bottom:8px;
  font-size:15px;
  transition:color 0.15s ease;
}

.footer-community a:hover,
.footer-middle a:hover{
  color:#fff;
}

.footer-right p{
  color:#bdbdbd;
  margin-bottom:18px;
  line-height:1.6;
  max-width:320px;
}

.footer-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 26px;
  font-size:14px;
  letter-spacing:1px;
  text-transform:uppercase;
  text-decoration:none;
  color:#fff;
  border:1px solid #000;
  background:transparent;
  transition:transform 0.08s ease, filter 0.08s ease;
}

.footer-btn::before{
  content:"";
  position:absolute;
  inset:2px;
  border:2px solid #1f1f1f;
  z-index:0;
}

.footer-btn::after{
  content:"";
  position:absolute;
  inset:4px;
  background:#5865f2;
  box-shadow:
    inset 3px 3px 0 #8a95ff,
    inset -3px -3px 0 #3843a6;
  z-index:0;
}

.footer-btn span{
  position:relative;
  z-index:1;
}

.footer-btn:hover{
  transform:translateY(2px);
  filter:brightness(0.94);
}

.footer-divider{
  width:min(900px, 90%);
  height:4px;
  background:#2a2a2a;
  margin:0 auto 30px;
}

.footer-bottom{
  text-align:center;
  color:#777;
  font-size:13px;
  line-height:1.6;
}

/* HAMBURGER MENU */
.hamburger{
  display:none;
  flex-direction:column;
  justify-content:space-between;
  width:30px;
  height:22px;
  cursor:pointer;
  z-index:100;
  transition:all 0.3s ease;
}

.hamburger span{
  width:100%;
  height:3px;
  background:#fff;
  border-radius:2px;
  transition:all 0.3s ease;
}

.hamburger.active span:nth-child(1){
  transform:rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2){
  opacity:0;
}

.hamburger.active span:nth-child(3){
  transform:rotate(-45deg) translate(8px, -8px);
}

/* Mobile menu backdrop */
.menu-backdrop{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:rgba(0,0,0,0.8);
  z-index:98;
  opacity:0;
  transition:opacity 0.3s ease;
}

.menu-backdrop.active{
  display:block;
  opacity:1;
}

/* RESPONSIVE - MOBILE */
@media (max-width: 900px){
  .hamburger{
    display:flex;
  }
  
  .loading-bar{
    width:250px;
  }
  
  .loading-text{
    font-size:24px;
  }
  
  .minecraft-cube{
    width:70px;
    height:70px;
  }
  
  .cube-face{
    width:70px;
    height:70px;
  }
  
  .cube-front{transform:rotateY(0deg) translateZ(35px);}
  .cube-back{transform:rotateY(180deg) translateZ(35px);}
  .cube-right{transform:rotateY(90deg) translateZ(35px);}
  .cube-left{transform:rotateY(-90deg) translateZ(35px);}
  .cube-top{transform:rotateX(90deg) translateZ(35px);}
  .cube-bottom{transform:rotateX(-90deg) translateZ(35px);}
  
  .navbar-container{
    transform:translateY(0);
  }
  
  .navbar-right{
    position:fixed;
    top:0;
    right:-100%;
    width:300px;
    max-width:85vw;
    height:100vh;
    height:100dvh;
    background:linear-gradient(180deg, #0b0b0b 0%, #1a1a1a 100%);
    flex-direction:column;
    gap:30px;
    padding:100px 30px 30px;
    transition:right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index:99;
    border-left:3px solid #ff2a2a;
    box-shadow:-5px 0 30px rgba(0,0,0,0.5);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  
  .navbar-right.active{
    right:0;
  }
  
  .navbar-links{
    flex-direction:column;
    gap:20px;
  }
  
  .nav-link{
    font-size:20px;
    padding:10px 0;
    border-bottom:1px solid #2a2a2a;
  }
  
  .navbar-buttons{
    flex-direction:column;
    gap:15px;
    width:100%;
  }
  
  .mc-btn{
    width:100%;
    justify-content:center;
    padding:12px 28px;
    font-size:14px;
  }
  
  .hero-content{
    margin-top:0;
  }
  
  .hero-title{
    font-size:36px;
  }
  
  .hero-subtitle{
    font-size:32px;
  }
  
  .hero-logo{
    width:120px;
  }
  
  .hero-text{
    font-size:16px;
  }
  
  .servers-section,
  .join-section{
    padding:60px 0;
  }
  
  .servers-title,
  .join-title{
    font-size:32px;
  }
  
  .servers-desc,
  .join-desc{
    font-size:14px;
    margin:16px auto 40px;
  }
  
  .server-card{
    width:100%;
    max-width:360px;
  }
  
  .join-card{
    width:100%;
    max-width:280px;
  }
  
  .footer-inner{
    gap:40px;
  }
  
  .footer-brand{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  
  .footer-col{
    text-align:center;
    min-width:100%;
  }
  
  .footer-right p{
    margin-left:auto;
    margin-right:auto;
  }
}

@media (max-width: 500px){
  .navbar-logo img{
    height:40px;
  }
  
  .loading-bar{
    width:200px;
  }
  
  .loading-text{
    font-size:20px;
    letter-spacing:3px;
  }
  
  .minecraft-cube{
    width:60px;
    height:60px;
    margin-bottom:30px;
  }
  
  .cube-face{
    width:60px;
    height:60px;
  }
  
  .cube-face::before{
    background-size:15px 15px;
  }
  
  .cube-front{transform:rotateY(0deg) translateZ(30px);}
  .cube-back{transform:rotateY(180deg) translateZ(30px);}
  .cube-right{transform:rotateY(90deg) translateZ(30px);}
  .cube-left{transform:rotateY(-90deg) translateZ(30px);}
  .cube-top{transform:rotateX(90deg) translateZ(30px);}
  .cube-bottom{transform:rotateX(-90deg) translateZ(30px);}
  
  .navbar-players{
    font-size:13px;
  }
  
  .nav-link{
    font-size:16px;
  }
  
  .hero-title{
    font-size:28px;
  }
  
  .hero-subtitle{
    font-size:26px;
  }
  
  .hero-logo{
    width:100px;
  }
  
  .ip-btn{
    padding:14px 20px;
    font-size:14px;
  }
  
  .servers-title,
  .join-title{
    font-size:26px;
  }
  
  .server-name{
    font-size:22px;
  }

}