* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0a0a0a;
  color: white;
}

#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader-logo {
  height: 60px;
  animation: fadeIn 1s ease;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(168,85,247,0.15), transparent 60%);
  pointer-events: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  z-index: 1000;
}

.logo {
  height: 70px;
  object-fit: contain;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav a:hover {
  color: #a855f7;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  max-width: 600px;
}

.hero p {
  margin: 20px 0;
  color: #ccc;
}

button {
  padding: 14px 28px;
  border: none;
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  color: white;
  font-size: 15px;
  border-radius: 12px;
  transition: 0.3s;
  cursor: pointer;
}

button:hover {
  box-shadow: 0 0 20px #a855f7;
}

button:active {
  transform: scale(0.96);
}

.services {
  padding: 100px 50px;
  text-align: center;
}

.services h2 {
  margin-bottom: 40px;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  width: 250px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #7e22ce;
}

.cta {
  text-align: center;
  padding: 80px;
  background: linear-gradient(45deg, #1a002e, #000);
}

.cta button {
  margin-top: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #777;
}

/* PROJECTS */
.projects-page {
  padding: 120px 50px;
  text-align: center;
}

.projects-page h1 {
  font-size: 36px;
}

.projects-page p {
  color: #aaa;
  margin: 20px 0 40px;
}

.projects-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.project-card {
  position: relative;
  width: 320px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);

  transition: 0.4s;
}

.project-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #a855f7;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  text-align: center;
  opacity: 0;
  transition: 0.3s;
}

.project-card:hover .overlay {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);

  justify-content: center;
  align-items: center;
}

.modal video {
  width: 80%;
  max-width: 900px;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}