:root {
  --bg-dark: #0d0d0d;
  --bg-darker: #050505;
  --text-light: #eaeaea;
  --accent-primary: #6a00f4;
  --accent-secondary: #00f0ff;
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  cursor: none;
}
.profile-pic {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 5px solid #111;

  /* Modern black & white look */
  filter: grayscale(100%) contrast(1.1) brightness(1.05);
  transition: filter 0.6s ease-in-out;
}

/* Optional: On hover, reveal color */
.profile-pic:hover {
  filter: grayscale(0%) contrast(1) brightness(1);
}
.flip-horizontal {
  transform: scaleX(-1);
}
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at top left,
      var(--accent-primary),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      var(--accent-secondary),
      transparent 60%
    );
  animation: moveBg 10s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes moveBg {
  0% {
    background-position: left top, right bottom;
  }
  100% {
    background-position: right top, left bottom;
  }
}

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

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease-in-out;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0.8;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.btn-custom {
  background: var(--accent-gradient);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-custom:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 25px var(--accent-secondary);
}
.projects {
  min-height: 100vh;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.project-card {
  min-height: 320px;
  padding: 1.5rem;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-image) no-repeat center/cover;
  filter: blur(3px) brightness(0.5);
  z-index: 0;
}

.project-card * {
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 25px var(--accent-secondary);
}
.modal-body {
  max-height: 70vh; /* fits within viewport */
  overflow-y: auto; /* scroll only inside modal */
}

.modal-body img {
  max-width: 100%;
  max-height: 400px; /* keeps image from being too tall */
  object-fit: contain; /* keeps aspect ratio */
  margin: 0 auto;
  display: block;
  border-radius: 10px;
}
.about {
  min-height: 100vh;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  padding: 4rem 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
#project-title {
  /* top: -200px; */
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-align: center;
}
.profile-pic-wrapper {
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 25px var(--accent-primary), 0 0 45px var(--accent-secondary);
  animation: glowPulse 3s infinite alternate ease-in-out;
}
/* #designModal {
        top: -200px;
        height: 1200px;
      } */
.profile-pic {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 5px solid #111;
  transform: scaleX(-1);
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 20px var(--accent-primary);
  }
  100% {
    box-shadow: 0 0 40px var(--accent-secondary);
  }
}

.detail-card {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.detail-card i {
  font-size: 2rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 25px var(--accent-secondary);
}
.extra-section {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.extra-card {
  min-height: 250px;
  background: #1a1a1a;
  border-radius: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.extra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 25px var(--accent-secondary);
}
.extra-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-image) center/cover no-repeat;
  filter: blur(6px) brightness(0.6);
  z-index: 0;
  transition: transform 0.4s ease;
}

/* Hover effect */
.extra-card:hover::before {
  transform: scale(1.05);
}

.extra-card > * {
  position: relative;
  z-index: 1; /* ensures text is above blurred bg */
}
.contact {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.contact-form {
  max-width: 600px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px; /* spacing between icons */
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--theme-accent, #00f0ff); /* theme color */
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.6), 0 0 10px rgba(0, 240, 255, 0.5),
    0 0 20px rgba(0, 240, 255, 0.4);
}

.social-link:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.15); /* subtle hover bg */
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.4),
    0 0 40px rgba(0, 240, 255, 0.3);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8), 0 0 16px rgba(0, 240, 255, 0.7),
    0 0 30px rgba(0, 240, 255, 0.6);
}

.contact-form .form-control {
  background: #1a1a1a;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.8rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-secondary);
  background: #111;
  outline: none;
}
.form-control::placeholder {
  color: #ffffff !important;
  opacity: 0.7;
}
/* ================================================= */
/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a; /* match your dark theme */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Loader animation (futuristic glow ring) */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(0, 240, 255, 0.2);
  border-top: 6px solid #00f0ff;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
}

.loading-text {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #00f0ff;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #00f0ff, 0 0 20px #6a00f4;
}

/* Spin keyframe */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hide preloader */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ================================================= */
/* ====== Floating Tech Icons ====== */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.detail-card {
  min-height: 250px;
}
.floating-icons i {
  position: absolute;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  animation: floatAnim 12s infinite linear;
}
/* ================================== */

/* Futuristic Arrow Cursor (default) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;

  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><polygon points='2,2 2,30 26,16' stroke='%2300f0ff' stroke-width='2' fill='rgba(0,240,255,0.25)'/></svg>")
    no-repeat center;
  background-size: contain;

  filter: drop-shadow(0 0 5px #00f0ff) drop-shadow(0 0 12px #00f0ff)
    drop-shadow(0 0 20px #6a00f4);
}

/* Futuristic Pointer Cursor (hover on links/buttons) */
.custom-cursor.pointer {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'><path d='M8 2L8 20L12 18L16 24L20 22L16 16L24 16L8 2Z' stroke='%23ff00aa' stroke-width='2' fill='rgba(255,0,170,0.2)'/></svg>")
    no-repeat center;
  background-size: contain;

  filter: drop-shadow(0 0 5px #ff00aa) drop-shadow(0 0 12px #ff00ff)
    drop-shadow(0 0 20px #6a00f4);
}

/* Disable on mobile (keep default system cursor/touch) */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .custom-cursor {
    display: none;
  }
}
/* ================================== */
@keyframes floatAnim {
  from {
    transform: translateY(100vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) scale(1.3); /* grows */
    opacity: 0.8;
  }
  to {
    transform: translateY(-10vh) rotate(360deg) scale(0.8); /* shrinks back */
    opacity: 0;
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 0.4;
  }
  60% {
    opacity: 0.8;
  }
}

/* ====== Circuit Overlay ====== */
.circuit-bg {
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/circuits.png");
  background-size: 300px;
  opacity: 0.05;
  z-index: -1;
}
body,
a,
button,
.btn,
h1,
h2,
h4,
b,
h3,
p,
.card,
.project-card,
.extra-card {
  cursor: none !important;
}
