/* ====== General Style ====== */

:root {
  --main-color: #0d6efd;
  --bg-dark: #121212;
  --text-light: #f1f1f1;
  --glass: rgba(255, 255, 255, 0.1);
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

body.dark .card,
body.dark .form-control,
body.dark .navbar,
body.dark .bg-white,
body.dark .bg-light {
  background-color: var(--glass) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader div {
  width: 40px;
  height: 40px;
  border: 4px solid var(--main-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dark-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
  background-color: #f8f9fa;
  color: #212529;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  font-weight: 700;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #084298;
  border-color: #084298;
}

/* ====== Animations with AOS ====== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ====== Navbar ====== */
.navbar {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-link {
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #0d6efd;
}

/* ====== Hero Section ====== */
.hero-section {
  background: linear-gradient(-45deg, #6610f2, #0d6efd, #20c997, #6f42c1);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ====== Projects Cards Hover ====== */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ====== Skills Section ====== */
.skill-item {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: scale(1.05);
}

/* ====== Footer ====== */
footer {
  background: #212529;
  color: white;
  font-size: 0.9rem;
}

footer a {
  color: #adb5bd;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

/* ====== Scroll to Top Button ====== */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background: #084298;
  cursor: pointer;
}

/* ====== Responsive Tweaks ====== */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .skill-item {
    margin-bottom: 20px;
  }
}
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  opacity: 0.8;

  .scroll-arrow {
    width: 2px;
    height: 30px;
    margin: 0 auto;
    background: #fff;
    animation: scrollAnim 1.5s infinite;
  }

  i {
    font-size: 1.5rem;
  }
}

@keyframes scrollAnim {
  0% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
}

.glitch {
  color: white;
  font-size: 3rem;
  position: relative;
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  color: #fff;
  background: transparent;
}

.glitch::before {
  animation: glitchTop 2s infinite;
  color: #f0f;
  top: -2px;
}

.glitch::after {
  animation: glitchBottom 2s infinite;
  color: #0ff;
  top: 2px;
}

@keyframes glitch {
  0% {
    transform: none;
  }
  20% {
    transform: skew(-0.5deg, -0.5deg);
  }
  40% {
    transform: skew(0.5deg, 0.5deg);
  }
  60% {
    transform: skew(-0.5deg, -0.5deg);
  }
  80% {
    transform: skew(0.5deg, 0.5deg);
  }
  100% {
    transform: none;
  }
}

@keyframes glitchTop {
  0%,
  100% {
    clip: rect(0, 9999px, 0, 0);
  }
  10% {
    clip: rect(0, 9999px, 5px, 0);
  }
  20% {
    clip: rect(0, 9999px, 0, 0);
  }
  30% {
    clip: rect(0, 9999px, 5px, 0);
  }
  40% {
    clip: rect(0, 9999px, 0, 0);
  }
}

@keyframes glitchBottom {
  0%,
  100% {
    clip: rect(0, 9999px, 0, 0);
  }
  10% {
    clip: rect(5px, 9999px, 10px, 0);
  }
  20% {
    clip: rect(0, 9999px, 5px, 0);
  }
  30% {
    clip: rect(5px, 9999px, 10px, 0);
  }
  40% {
    clip: rect(0, 9999px, 5px, 0);
  }
}





