:root {
  --bg: #fff;
  --text: #333;
  --primary: #e91e63;
  --card-bg: #f0f0f0;
}

body.dark {
  --bg: #1e1e1e;
  --text: #f2f2f2;
  --card-bg: #2c2c2c;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  transition: background 0.3s, color 0.3s;
}

/* ✅ NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 15px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid #ccc;
  gap: 10px;
}

.logo {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
}

/* ✅ Hamburger button */
.hamburger {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ✅ HERO SECTION */
.hero {
  background: var(--primary);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

/* ✅ MAIN SECTION */
.section {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
}

.section h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* ✅ PROJECT CARDS */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.footer {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ff4081;
}

.footer p,
.footer a {
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-contact .social-icons a {
  margin-right: 10px;
  color: #ff4081;
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 30px;
  font-size: 13px;
  color: #888;
}


/* ✅ Scroll animation */
.hidden {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}

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

/* ✅ Responsive Navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg);
    border-top: 1px solid #ccc;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  #themeToggle {
    margin-left: auto;
  }
}
/* Scroll to Top Button Styles */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  font-size: 20px;
  background-color: #e91e63; /* dark pink */
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  display: flex;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #c2185b;
  transform: scale(1.1);
}



/* Wrapper around the card and rotating border */
.rotating-border-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
}


/* Rotating multicolor conic border */
.rotating-border {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: conic-gradient(
    #ff0057, #ff7c00, #fffb00,
    #48ff00, #00ffd5, #002bff,
    #7a00ff, #ff00ab, #ff0057
  );
  animation: spin 4s linear infinite;
  z-index: 1;
  padding: 5px;
  border-radius: 20px;
  filter: blur(1px);
}

/* Static card inside the border */
.card-content {
  position: relative;
  z-index: 2;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: white;
}

.card-content h3 {
  margin-bottom: 10px;
}

/* Rotation animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.cards-section {
  padding: 40px;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

    .colorful-border-button {
      position: relative;
      padding: 15px 30px;
      font-size: 16px;
      font-weight: bold;
      color: white;
      background: #111;
      border: none;
      cursor: pointer;
      z-index: 1;
      overflow: hidden;
    }

    .colorful-border-button::before {
      content: '';
      position: absolute;
      top: -3px;
      left: -3px;
      right: -3px;
      bottom: -3px;
      background: conic-gradient(
        red, orange, yellow, green, blue, indigo, violet, red
      );
      animation: spin 4s linear infinite;
      z-index: -2;
    }

    .colorful-border-button::after {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      right: 2px;
      bottom: 2px;
      background-color: #111;
      z-index: -1;
    }

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


 .cursor-area {
    position: fixed;
    inset: 0;
    cursor: none; /* Hides real system cursor */
    z-index: 1;
    padding: 40px;
    font-family: sans-serif;
  }

  .cursor-dot, .cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    background: #ff0077;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0077, 0 0 15px #ff00aa;
  }

  .cursor-ring {
    width: 35px;
    height: 35px;
    border: 2px solid #ff00cc;
    border-radius: 50%;
    transition: transform 0.12s ease-out;
    box-shadow: 0 0 10px #ff00cc;
  }
  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.5);
      opacity: 0;
    }
  }