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

html, body {
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #242424;
  color: #fff;
  overflow: hidden; /* no scrollbars */
  perspective: 1000px;
}

/* Overlay */
.overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d; /* for cube */
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.85);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: #00ffcc;
  text-shadow: 1px 1px 4px #000;
  position: relative;
  letter-spacing: 1px;
}

/* Hamburger button (mobile only) */
.toggle-btn {
  position: absolute;
  left: 16px;
  font-size: 1.4rem;
  cursor: pointer;
  background: rgba(0,0,0,0.6);
  border: 1px solid #00ffcc;
  color: #00ffcc;
  padding: 6px 12px;
  border-radius: 6px;
  display: none; /* hidden on desktop */
  transition: background 0.3s ease;
}
.toggle-btn:hover { background: rgba(0,0,0,0.8); }

/* Layout */
.main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebars */
.sidebar {
  width: 220px;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  height: 100%;
}

.sidebar-right {
  width: 220px;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* cube at top, links centered */
  padding: 30px 0;
  z-index: 1000;
}

/* Menu Items */
.menu-item {
  margin: 6px 0;
  font-size: 1.1rem;
  padding: 8px 12px;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
}
.menu-item img {
  width: 24px;
  height: 24px;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-left: 4px solid #00ffcc;
  transform: translateX(4px);
}

/* Content */
.content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 12px solid #000;
  overflow: hidden;
  position: relative;
  background: #000;
}
.content img,
.content video {
  width: 1024px;
  height: 720px;
  object-fit: contain;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  background: #000;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.6);
}

/* Cube Section */
.cube-section { margin-bottom: 40px; }
.box-card {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3d 8s infinite linear;
}
.face {
  position: absolute;
  width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  font-size: 0.7rem; font-weight: bold;
  backface-visibility: visible;
  border-radius: 6px;
  background: linear-gradient(145deg, #2a2a2a, #383838);
  border: 2px solid #646cff;
}
.front  { transform: translateZ(40px); border-color: #646cff; }
.back   { transform: translateZ(-40px) rotateY(180deg); border-color: #00bcd4; }
.right  { transform: translateX(40px) rotateY(90deg); border-color: #4caf50; }
.left   { transform: translateX(-40px) rotateY(-90deg); border-color: #ff4081; }
.top    { transform: translateY(-40px) rotateX(90deg); border-color: #ffc107; }
.bottom { transform: translateY(40px) rotateX(-90deg); border-color: #9c27b0; }

@keyframes rotate3d {
  0%   { transform: rotateX(0) rotateY(0); }
  25%  { transform: rotateX(90deg) rotateY(90deg); }
  50%  { transform: rotateX(180deg) rotateY(180deg); }
  75%  { transform: rotateX(270deg) rotateY(270deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Social Links */
.social-section {
  flex: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.social-links ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0; padding: 0;
}
.social-links ul li {
  list-style: none;
  margin: 15px 0;
}
.social-links ul li a {
  text-decoration: none;
  display: block;
  width: 140px;
  height: 45px;
  background: #fff;
  text-align: left;
  padding-left: 12px;
  transform: rotate(-30deg) skew(25deg);
  transition: .5s;
  box-shadow: -10px 10px 6px rgba(0,0,0,.4);
  position: relative;
  border-radius: 6px;
}
.social-links ul li a .fa {
  font-size: 18px;
  color: #262626;
  line-height: 45px;
  transition: .5s;
  padding-right: 6px;
}
.social-links ul li a span {
  position: absolute;
  top: 14px;
  font-size: 13px;
  color: #262626;
  letter-spacing: 1px;
  transition: .5s;
}
.social-links ul li a:before {
  content: '';
  position: absolute;
  top: 5px; left: -10px;
  height: 100%; width: 10px;
  background: #b1b1b1;
  transform: skewY(-45deg);
  transition: .5s;
}
.social-links ul li a:after {
  content: '';
  position: absolute;
  bottom: -10px; left: -5px;
  height: 10px; width: 100%;
  background: #b1b1b1;
  transform: skewX(-45deg);
  transition: .5s;
}
.social-links ul li a:hover {
  transform: rotate(-30deg) skew(25deg) translate(10px,-7px);
  box-shadow: -25px 25px 20px rgba(0,0,0,.5);
}
 .social-links ul li:hover .fa,
    .social-links ul li:hover span { color: #fff; }

    .social-links ul li:hover:nth-child(1) a,
    .social-links ul li:hover:nth-child(1) a:before,
    .social-links ul li:hover:nth-child(1) a:after { background: #3b5998; }

    .social-links ul li:hover:nth-child(2) a,
    .social-links ul li:hover:nth-child(2) a:before,
    .social-links ul li:hover:nth-child(2) a:after { background: #00aced; }

    .social-links ul li:hover:nth-child(3) a,
    .social-links ul li:hover:nth-child(3) a:before,
    .social-links ul li:hover:nth-child(3) a:after { background: #dd4b39; }

    .social-links ul li:hover:nth-child(4) a,
    .social-links ul li:hover:nth-child(4) a:before,
    .social-links ul li:hover:nth-child(4) a:after { background: #e4405f; }