
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:system-ui,-apple-system,sans-serif;
height:100vh;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
flex-direction: column;
}

.container{
width:95%;
max-width:1100px;
text-align:center;
margin-bottom: 20px;
position: relative;
z-index: 1;
}

.logos-container{
display:flex;
justify-content:center;
gap:1rem;
margin-bottom:10px;
}

.tech-logo{
width:100px;
height:100px;
object-fit:contain;
}

.rotating-logo{
animation:rotate 5s linear infinite;
}

.rotating-logo-reverse-fast{
animation:rotate 5s linear infinite reverse;
}

.rotating-logo-delayed{
animation:rotate 5s linear infinite reverse 2s;
}

h1{
font-size:100px;
font-weight:900;
margin-bottom:10px;
}

.subtitle{
font-size:15px;
margin-bottom:10px;
}

h2{
font-size:20px;
margin-bottom:10px;
text-align:center;
}

button{padding:5px 10px;cursor:pointer;margin-bottom:10px;}

#infoBtn{margin-bottom:10px;}

p#infoText {margin-bottom: 10px;}

.hidden{
display:none;
}

footer{
width: 100%;
text-align: center;
border-top: 1px solid #000;
padding: 20px;
font-size:15px;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

@keyframes rotate{
from{transform:rotate(0deg);}
to{transform:rotate(360deg);}
}

/* Snake Game Styles */
.game-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.game-container {
  position: relative;
  margin: 20px auto;
  display: inline-block;
}

#gameCanvas {
  border: 2px solid #333;
  background-color: #111;
  display: block;
  touch-action: none;
  max-width: 100%;
  height: auto;
}

.game-ui {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}

.score, .high-score {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
}

.game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  z-index: 10;
}

.game-over h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #f26524;
}

.game-over p {
  font-size: 18px;
  margin-bottom: 20px;
}

.game-instructions {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

#startGameBtn, #restartBtn {
  background: #2063af;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#startGameBtn:hover, #restartBtn:hover {
  background: #f26524;
}

#showGameBtn {
  background: #d6ba32;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

#showGameBtn:hover {
  background: #2063af;
}

/* Mobile responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 60px;
  }
  
  .tech-logo {
    width: 70px;
    height: 70px;
  }
  
  .game-ui {
    font-size: 16px;
  }
  
  #gameCanvas {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 40px;
  }
  
  .tech-logo {
    width: 50px;
    height: 50px;
  }
  
  #gameCanvas {
    width: 250px;
    height: 250px;
  }
  
  .game-instructions {
    font-size: 12px;
  }
}
