body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: #000;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

header .profile-image {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
}

header h1 {
    font-size: 2.5em;
    color: #0f0;
}

header p {
    font-size: 1.2em;
    color: #ddd;
}

.websites-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    padding: 20px 0;
}

.websites-showcase .box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid #0f0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transition: transform 0.3s ease;
}

.websites-showcase .box img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.websites-showcase .box:hover {
    transform: scale(1.05);
}

.youtube-channel {
    text-align: center;
    margin-top: 40px;
}

.youtube-channel img {
    max-width: 80%;
    height: auto;
}

.contact-form {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.contact-form form {
    display: inline-block;
    text-align: left;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #0f0;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0c0;
}

.meet-shafaet .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
    padding: 20px 0;
}

.meet-shafaet .grid-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2em;
    }

    .websites-showcase, .meet-shafaet .grid-container {
        grid-template-columns: 1fr;
    }

    .youtube-channel img {
        max-width: 100%;
    }
}

.zero-hq {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.zero-hq img {
    max-width: 60%;
    height: auto;
    border: 3px solid #0f0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.center-text {
    text-align: center;
    margin-top: 20px;
}

#email-container a {
    display: inline-block;
    color: white;
    background-color: black;
    border: 2px solid green;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#email-container a:hover {
    background-color: green;
    border-color: white;
}

.email-reveal-box {
    display: inline-block;
    color: white;
    background-color: black;
    border: 2px solid green;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-reveal-box:hover {
    background-color: green;
    color: black;
    border-color: white;
}

.puzzle-container {
    text-align: center;
    margin: 40px 0;
}

.puzzle-piece {
    display: inline-block;
    margin: 5px;
    padding: 20px;
    background-color: black;
    color: white;
    border: 2px solid green;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
    font-size: 24px;
    font-weight: bold;
}

.puzzle-piece:hover {
    transform: scale(1.1);
    background-color: green;
    color: black;
}

#message-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    color: white;
    border: 2px solid green;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    z-index: 1000;
}

.puzzle-box {
  display: inline-block;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

.puzzle-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 10px;
}

.puzzle-piece {
    display: inline-flex; /* Changed to inline-flex for better control */
    justify-content: center;
    align-items: center;
    margin: 5px;
    padding: 10px;
    background-color: black;
    color: white;
    border: 2px solid green;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
    font-size: 24px;
    font-weight: bold;
    width: auto; /* Adjust width to auto */
    min-width: 30px; /* Set a minimum width */
}

.rotating-image {
    width: 100%; /* Ensure image takes full width of the container */
    height: auto; /* Maintain aspect ratio */
}

#cube-gallery {
    perspective: 1200px;
    width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 400px;
    height: 400px;
    backface-visibility: hidden;
    background-size: cover;
}

/* Positioning each face of the cube */
.cube-face.front  { transform: rotateY(0deg) translateZ(200px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(200px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(200px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(200px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(200px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(200px); }

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.tiny-text {
  color: #eee; /* Light grey color */
  text-align: center; /* Center the text vertically */
  display: flex; /* Flexbox layout for centering horizontally */
  justify-content: center; /* Center horizontally within flex container */
  font-size: 0.8rem; /* Slightly larger font size for better readability on mobile devices */
  font-weight: 100;
}
