.laptop-container {
  perspective: 1500px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 380px;
  position: relative;
}
.laptop {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.laptop-lid {
  width: 86%;
  height: 84%;
  background: #2a2a2a;
  border-radius: 10px 10px 0 0;
  position: relative;
  transform-origin: bottom center;
  transform: rotateX(-100deg);
  animation: openLid 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.4s;
  z-index: 2;
  border: 2px solid #444;
  border-bottom: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.laptop-lid::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: #555;
  border-radius: 50%;
  z-index: 3;
}
.laptop-screen {
  width: 92%;
  height: 90%;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-top: -4px;
}
.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  opacity: 0;
  animation: fadeInScreen 0.8s ease-in forwards;
  animation-delay: 1.8s;
}
.laptop-base {
  width: 96%;
  height: 16px;
  background: #2a2a2a;
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 6px;
  background: #1e1e1e;
  border-radius: 0 0 6px 6px;
}
.laptop-base::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 0 0 10px 10px;
}
@keyframes openLid {
  0%   { transform: rotateX(-100deg); }
  100% { transform: rotateX(-5deg); }
}
@keyframes fadeInScreen {
  to { opacity: 1; }
}
@media (max-width: 600px) {
  .laptop-container { height: 260px; }
}
@media (max-width: 400px) {
  .laptop-container { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .laptop-lid { transform: rotateX(-5deg); animation: none; }
  .laptop-screen img { opacity: 1; animation: none; }
}
