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

body {
  font-family: 'Poppins', sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
}

/* =========================
   VIDEO
========================= */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.2;
}

/* OVERLAY */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

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

.nav-links a:hover {
  color: #00d2ff;
}

/* =========================
   HERO
========================= */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;

  /* Hidden by default for scroll reveal */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   LOGO
========================= */
.logo {
  width: 60px;
  margin-bottom: 20px;
}

/* =========================
   PROFILE
========================= */
.profile {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00d2ff;
  box-shadow: 0 0 20px #00d2ff;
  margin-bottom: 15px;
}

/* Broken image fallback style */
.profile[data-error] {
  background: rgba(0, 210, 255, 0.1);
  border: 2px dashed #00d2ff;
}

/* =========================
   VERIFIED
========================= */
.verified {
  width: 16px;
  margin-left: 5px;
  vertical-align: middle;
}

/* =========================
   TEXT EFFECT
========================= */
.chameleon-text {
  font-size: 30px;
  background: linear-gradient(90deg, #00d2ff, #2563eb, #7c3aed);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: move 5s linear infinite;
}

@keyframes move {
  0%   { background-position: 0% }
  100% { background-position: 300% }
}

/* =========================
   BUTTONS
========================= */
.btn {
  background: #2563eb;
  padding: 10px 20px;
  margin: 5px;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00d2ff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  border: 1px solid white;
  padding: 10px 20px;
  margin: 5px;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: #00d2ff;
  color: #00d2ff;
}

/* =========================
   SECTIONS — scroll reveal
========================= */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SERVICES
========================= */
.services {
  padding: 60px;
  text-align: center;
}

.grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  min-width: 140px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px #00d2ff;
}

/* =========================
   CONTACT
========================= */
.contact {
  padding: 60px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto 0;
}

input,
textarea {
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #00d2ff;
}

/* Invalid field highlight */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form feedback message */
.form-msg {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 5px;
  display: none;
  text-align: center;
}

.form-msg.success {
  display: block;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid #16a34a;
  color: #4ade80;
}

.form-msg.error {
  display: block;
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid #c0392b;
  color: #f87171;
}

/* =========================
   FOOTER & SOCIALS
========================= */
footer {
  text-align: center;
  padding: 30px;
}

.socials a {
  color: white;
  margin: 10px;
  font-size: 20px;
  transition: 0.3s;
}

.socials a:hover {
  color: #00d2ff;
  transform: scale(1.2);
  display: inline-block;
}

/* =========================
   LOADER
========================= */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loader h1 {
  color: #00d2ff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%   { opacity: 0.3 }
  50%  { opacity: 1 }
  100% { opacity: 0.3 }
}

/* =========================
   CURSOR (desktop only)
========================= */
#cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #00d2ff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;

  /* Hidden on touch devices via JS,
     but also hide if hover not supported */
}

@media (hover: none) {
  #cursor {
    display: none;
  }
}

/* =========================
   LANGUAGE BUTTON
========================= */
.lang-btn {
  position: fixed;
  top: 15px;
  right: 80px;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid #00d2ff;
  color: #00d2ff;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  z-index: 1001;
  transition: 0.3s;
}

.lang-btn:hover {
  background: rgba(0, 210, 255, 0.3);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 22px;
  }

  .profile {
    width: 90px;
    height: 90px;
  }

  .services,
  .contact {
    padding: 40px 20px;
  }

  .navbar {
    padding: 12px 20px;
  }

  .lang-btn {
    right: 20px;
    top: 60px;
  }

  form {
    max-width: 100%;
    padding: 0 10px;
  }
}
