:root {
  --accent: #8b36ff;
  --accent2: #b84cff;
  --bg: #ffffff;
  --text: #111111;
  --stat-bg: rgba(150, 0, 255, 0.05);
  --stat-border: rgba(150, 0, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  transition: background 0.4s, color 0.4s;
}

button,
.social-box a,
.contact-social a,
.social-icons a,
.stat-box,
.home-img img {
  transition: all 0.4s ease;
}


button:hover,
.social-box a:hover,
.contact-social a:hover,
.stat-box:hover,
.home-img img:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Navbar */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: var(--bg);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid rgba(150, 0, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.3rem;
}

.logo span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff !important;
  box-shadow: 0 3px 15px rgba(150, 0, 255, 0.4);
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

/* Theme Button */
.theme-trigger {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 14px 0 0 14px;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  z-index: 1500;
  box-shadow: 0 0 20px rgba(150, 0, 255, 0.5);
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}

.theme-trigger:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 30px rgba(150, 0, 255, 0.7);
}

/* Theme Panel */
.theme-panel {
  position: fixed;
  top: 50%;
  right: -450px;
  transform: translateY(-50%);
  width: 400px;
  height: 85vh;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  border-radius: 28px 0 0 28px;
  padding: 50px 35px;
  transition: right 0.6s cubic-bezier(.25, 1, .3, 1), opacity 0.4s ease;
  z-index: 2000;
  overflow-y: auto;
  opacity: 0;
}

.theme-panel.open {
  right: 0;
  opacity: 1;
}

.theme-panel h3 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 35px;
  position: relative;
}

.theme-panel h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.close-panel {
  position: absolute;
  top: 18px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-panel:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 22px;
  justify-items: center;
}

.color-option {
  width: 120px;
  height: 100px;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.color-option:hover {
  transform: translateY(-8px) scale(1.05);
}

.color-option.active {
  outline: 3px solid var(--accent);
}

.color-option span {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

/* Gradient Previews */
.color-option[data-theme="yellow"] {
  background: linear-gradient(135deg, #FFD700, #ffb300);
}

.color-option[data-theme="blue"] {
  background: linear-gradient(135deg, #2196f3, #1976d2);
}

.color-option[data-theme="black"] {
  background: linear-gradient(135deg, #111, #333);
}

.color-option[data-theme="white"] {
  background: linear-gradient(135deg, #ffffff, #f4f4f4);
  border: 1px solid #ccc;
}

.color-option[data-theme="purple"] {
  background: linear-gradient(135deg, #9c27b0, #e040fb);
}

.color-option[data-theme="orange"] {
  background: linear-gradient(135deg, #ff5722, #ff9800);
}

.color-option[data-theme="green"] {
  background: linear-gradient(135deg, #00c853, #64dd17);
}

.color-option[data-theme="pink"] {
  background: linear-gradient(135deg, #ff4081, #f50057);
}

/* Sections */
section {
  min-height: 100vh;
  padding: 120px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ==== Scroll Animation - Smooth Fade + Slide ==== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Home Section */
/* Base layout - Desktop default */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  text-align: left;
}

.home-content {
  flex: 1 1 500px;
  flex: 1 1 55%;
}

.home-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.home-content h1 span {
  color: var(--accent);
}

.home-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent2);
}

.home-img {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  position: relative;
  flex: 1 1 40%;
}

.home-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: rgba(0, 0, 0, 0.7);
}

/* Smooth hover effect for Contact Me button */
.home-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease;
  /* Smooth transition */
}

.home-btn:hover {
  transform: translateY(-4px) scale(1.05);
  /* Lift + slight scale */
  box-shadow: 0 8px 25px rgba(150, 0, 255, 0.5);
  /* Soft shadow */
}


.stats {
  display: flex;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(150, 0, 255, 0.05);
  border: 1px solid rgba(150, 0, 255, 0.1);
  padding: -12px 30px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-box h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: -5px;
  margin-top: 13px;
}

.stat-box p {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

.home-img {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.home-img img {
  width: 450px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  background: #fff;
}



/* Typing Effect */
.typing {
  color: var(--accent);
  font-weight: 600;
  border-right: 3px solid var(--accent2);
  padding-right: 6px;
  animation: blink 0.7s infinite;
}

.close-nav {
  display: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.close-nav:hover {
  color: var(--accent);
  transform: scale(1.1);
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* content ke peeche */
  pointer-events: none;
  /* mouse events ko block na kare */
}

.home {
  position: relative;
  z-index: 1;
  /* content foreground me rahe */
}

/* About Section */
#about {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(150, 0, 255, 0.05) 100%);
  position: relative;
}

#about::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("https://www.svgbackgrounds.com/wp-content/uploads/2021/05/wave-haikei.svg") no-repeat bottom;
  background-size: cover;
  opacity: 0.15;
}

#about .home-img::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent2), transparent 70%);
  filter: blur(100px);
  z-index: -1;
  top: -80px;
  left: -80px;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

#about .home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

#about .home-img {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

#about .home-img img {
  position: relative;
  border-radius: 25px;
  box-shadow: 0 0 25px rgba(150, 0, 255, 0.25);
  border: 3px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)),
    linear-gradient(135deg, var(--accent), var(--accent2));
  background-origin: border-box;
  background-clip: content-box, border-box;
  transition: all 0.4s ease;
}

#about .home-img img:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 15px 40px rgba(150, 0, 255, 0.35);
}

#about .home-content {
  flex: 1 1 55%;
}

#about h1 {
  position: relative;
  padding-left: 18px;
}

#about h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 3px;
}

#about h1 span {
  color: var(--accent);
}

#about h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent2);
}

#about p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 15px;
}

/* About Section Buttons Smooth Hover */
#about .home-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.4s ease;
  /* Smooth transition for hover */
}

#about .home-btn:hover {
  transform: translateY(-4px) scale(1.05);
  /* Lift + slight scale */
  box-shadow: 0 8px 25px rgba(150, 0, 255, 0.5);
  /* Shadow like Home buttons */
}

#about .home-content div[style*="display:flex"] a {
  transition: transform 0.3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

#about .home-img img {
  animation: float 4s ease-in-out infinite;
}

#about .home-content div[style*="display:flex"] a:hover {
  transform: scale(1.2);
  color: var(--accent2);
}

#about {
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
}

#about h1,
#about h3,
#about p {
  color: var(--text);
}

#about .home-img img {
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  background: #fff;
  transition: all 0.4s;
}

#about h1,
#about h3,
#about p {
  color: var(--text);
  transition: color 0.4s;
}


.medium {
  max-width: 1200px;
  width: 100%;
  margin: 50px auto;
  /* Center with top/bottom spacing */
  padding: 40px 50px;
  /* Comfortable padding inside */
  border-radius: 25px;
  /* Smooth rounded corners */
  background: linear-gradient(135deg, rgba(139, 54, 255, 0.05), rgba(184, 76, 255, 0.05));
  /* Soft gradient */
  border: 1px solid rgba(139, 54, 255, 0.2);
  /* Subtle border */
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  /* Soft shadow for depth */
  transition: all 0.4s ease;
}


/* Hover effect to make it slightly pop */
.medium:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}


/* Stylish Floating Social Box */
.social-box {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  display: flex;
  gap: 18px;
  padding: 14px 24px;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(150, 0, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease, transform 0.3s ease;
  z-index: 10;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
}

/* Icon style + hover */
.social-box a {
  color: #fff;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease, transform 0.3s ease;
}

.social-box a:hover {
  transform: translateY(-8px) scale(1.3) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* === PORTFOLIO SECTION === */
#portfolio {
  padding: 80px 20px;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
}

#portfolio .section-header h1 span {
  color: var(--accent);
  /* accent color */
}

#portfolio .filter-btn {
  border: 2px solid var(--accent);
  color: var(--accent);
}

#portfolio .filter-btn.active,
#portfolio .filter-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}

/* Grid */
/* 2x2 Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.portfolio-item .overlay p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.portfolio-item .overlay a {
  background: #fff;
  color: #000;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.portfolio-item .overlay a:hover {
  background: #f0f0f0;
}

/* Responsive layout */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.5s ease;
}


.project-card:hover img {
  transform: scale(1.1);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  display: inline-block;
  font-size: 1.3rem;
  margin: 5px 0;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 12px 28px;
  /* Button padding */
  border-radius: 50px;
  /* Rounded pill shape */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Animated Gradient Border */
.overlay h3::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 50px;
  background: linear-gradient(45deg, #ff6a00, #ee0979, #8e2de2, #4facfe);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Sliding Shine Effect */
.overlay h3::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.overlay h3:hover::after {
  left: 125%;
}

/* Hover Lift + Shadow */
.overlay h3:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.overlay p {
  font-size: 0.9rem;
}

/* === MODAL === */
.portfolio-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(8px);
}

.portfolio-modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-color, #fff);
  color: var(--text-color, #111);
  border-radius: 15px;
  max-width: 850px;
  width: 90%;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

.modal-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.modal-info {
  padding: 25px;
}

.modal-info h2 {
  color: var(--main-color, #ffb400);
  margin-bottom: 10px;
}

.modal-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: var(--main-color, #ffb400);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.modal-btn:hover {
  background: #000;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-color, #111);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.medium-2 {

  width: 100%;
  margin: 50px auto;
  /* Center with top/bottom spacing */
  padding: 40px 50px;
  /* Comfortable padding inside */

  background: linear-gradient(135deg, rgba(139, 54, 255, 0.05), rgba(184, 76, 255, 0.05));
  /* Soft gradient */
  border: 1px solid rgba(139, 54, 255, 0.2);
  /* Subtle border */
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  /* Soft shadow for depth */
  transition: all 0.4s ease;
}


/* Hover effect to make it slightly pop */
.medium-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Cursor Dot */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #ff00ff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
  transition: background 0.2s, transform 0.1s;
}

/* Cursor Outline */
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid #ff00ff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  box-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff, 0 0 45px #ff00ff;
  transition: width 0.2s, height 0.2s, transform 0.1s, border-color 0.2s;
}

/* Masonry Grid */
.masonry {
  column-count: 3;
  column-gap: 20px;
  padding: 30px 0;
}

.masonry-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.masonry-item img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  transition: transform 0.4s ease;
}

.masonry-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.masonry-item:hover img {
  transform: scale(1.1);
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.masonry-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #ffb400;
}

.overlay p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.overlay a {
  padding: 10px 20px;
  background: #ffb400;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.overlay a:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

/* Different Sizes */
.masonry-item.wide img {
  height: 250px;
  object-fit: cover;
}

.masonry-item.tall img {
  height: 400px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry {
    column-count: 1;
  }
}

/* ===== Moving Tech Scroll Section ===== */
/* ===== Moving Tech Scroll Section ===== */
.tech-scroll {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
  padding: 25px 0;
  border-top: 2px solid var(--main-color, #ffb400);
  border-bottom: 2px solid var(--main-color, #ffb400);
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.tech-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 22s linear infinite;
}

.tech-track span {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color, #f0f0f0);
  margin: 0 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.tech-track span i {
  margin-right: 10px;
  color: var(--main-color, #ffb400);
  font-size: 1.8rem;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px var(--main-color, #ffb400));
}

.tech-track span:hover {
  color: var(--main-color, #ffb400);
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--main-color, #ffb400));
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .tech-track span {
    font-size: 1.2rem;
    margin: 0 25px;
  }
}

/* ===== Modern Skills Section ===== */
#skills {
  background: var(--bg);
  /* Theme ke hisaab se background */
  color: var(--text);
  /* Theme ke hisaab se text color */
  transition: background 0.4s ease, color 0.4s ease;
}

#skills h1 {
  font-size: 2.6rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

#skills h1 span {
  color: var(--accent);
  /* Accent color ke hisaab se text */
}

.skills-intro {
  max-width: 600px;
  margin: 0 auto 60px;
  color: #555;
  font-size: 1rem;
  text-align: center;
}

/* === Skills Grid === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 35px;
  max-width: 1000px;
  margin: 0 auto;
}

/* === Card Style === */
#skills .skill-card {
  background: rgba(150, 0, 255, 0.05);
  border: 1px solid rgba(150, 0, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

#skills .skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px var(--theme-color, #b366ff));
}

.skill-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

/* === Progress Bar === */
#skills .skill-bar {
  height: 10px;
  width: 100%;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  overflow: hidden;
}

#skills .skill-bar .fill {
  height: 100%;
  width: var(--percent);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 5px;
  transition: width 1s ease;
}

@keyframes fillProgress {
  from {
    width: 0%;
  }

  to {
    width: var(--percent);
  }
}

/* ===== Services Section ===== */
#services {
  background: var(--bg);
  /* theme ke hisaab se background */
  color: var(--text);
  /* theme ke hisaab se text color */
  transition: background 0.4s, color 0.4s;
}

#services .section-header {
  text-align: center;
  margin-bottom: 60px;
}

#services .section-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
}

#services .section-header h1 span {
  color: var(--accent);
}

#services h1,
#services h3,
#services p {
  color: var(--text);
  /* text ko dark/light theme ke hisaab se adjust kare */
  transition: color 0.4s;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(150, 0, 255, 0.05);
  border: 1px solid rgba(150, 0, 255, 0.1);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.4s ease, color 0.4s ease;
}

.service-card h3,
.service-card p {
  color: var(--text);
  transition: color 0.4s;
}


.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text);
}

.service-card p {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card:hover i {
  color: var(--accent2);
  transform: scale(1.2) rotate(10deg);
}





/* === Responsive === */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}





/* ===== Portfolio Smooth + Staggered Animation ===== */
.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
  transition-delay: var(--delay, 0s);
}

.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Hover Effect */
.masonry-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.masonry-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Contact Section ===== */
#contact {
  padding: 100px 10%;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(150, 0, 255, 0.05) 100%);
  transition: background 0.4s, color 0.4s;
}

#contact .section-header {
  text-align: center;
  margin-bottom: 50px;
}

#contact .section-header h1 span {
  color: var(--accent);
}

/* Social Icons (Top) */
.contact-social {
  text-align: center;
  margin-bottom: 40px;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 10px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(150, 0, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-social a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  transform: translateY(-5px) scale(1.15);
}

/* Contact Box */
.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(150, 0, 255, 0.2);
  border-radius: 25px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 40px;
  transition: all 0.4s ease;
}

.contact-info {
  flex: 1 1 300px;
  color: var(--text);
}

.contact-info h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-info p {
  opacity: 0.8;
  margin-bottom: 25px;
  line-height: 1.6;
}

.info-line {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.info-line i {
  color: var(--accent);
  font-size: 1.1rem;
}

.info-line a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.info-line a:hover {
  color: var(--accent);
}

/* Form Side */
.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(150, 0, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(150, 0, 255, 0.2);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-box {
    flex-direction: column;
    text-align: center;
  }

  .info-line {
    justify-content: center;
  }

  .contact-form button {
    align-self: center;
  }
}

/* ===== Success Popup ===== */
#success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  z-index: 9999;
}

#success-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(150,0,255,0.3);
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  color: var(--text);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: scale(0.9);
  animation: popupScale 0.4s ease forwards;
}

.popup-content i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.popup-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes popupScale {
  to {transform: scale(1);}
}

/* ===== Theme Adaptive Footer ===== */
.footer {
  background: linear-gradient(180deg, rgba(150, 0, 255, 0.1), rgba(150, 0, 255, 0.03));
  padding: 60px 10%;
  border-top: 2px solid rgba(150, 0, 255, 0.15);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent2), transparent 70%);
  filter: blur(120px);
  z-index: 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  gap: 40px;
}

.footer-brand {
  flex: 1 1 280px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--text) 80%, transparent);
  transition: color 0.3s ease;
}


.footer-links h3,
.footer-social h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
}

.footer-links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent2);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icons a {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-6px) scale(1.15);
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  margin-top: 40px;
  border-top: 1px solid rgba(150, 0, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
}

.footer-bottom span {
  color: var(--accent);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links,
  .footer-social {
    margin-top: 20px;
  }
}
