:root {
  --base-color: linear-gradient(
    140deg,
    rgb(0, 0, 33) 0%,
    rgb(40, 10, 151),
    rgb(207, 31, 31),
    rgb(200, 221, 23) 100%
  );
  --primary-color: rgb(18, 18, 62);
  --btn-bg: #1e2167;
  --white-heading: white;
  --scard-bg: rgba(218, 10, 10, 0.07);
  --foot-bg: linear-gradient(180deg, #0b1220, #020617);
  --foot-p: #9ca3af;
  --card-p: #cccccc;
  --accent-gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
}

.light-mode {
  --base-color: linear-gradient(
    140deg,
    rgba(114, 165, 207, 0.945) 0%,
    rgb(204, 137, 168),
    rgb(156, 82, 253),
    rgba(238, 248, 142, 0.678) 100%
  );
  --primary-color: rgb(185, 185, 218);
  --btn-bg: linear-gradient(180deg, rgb(71, 71, 175), rgb(195, 195, 209));
  --white-heading: black;
  --scard-bg: rgba(15, 23, 42, 0.08);
  --foot-bg: linear-gradient(180deg, rgb(200, 200, 224), rgb(195, 195, 209));
  --foot-p: #374151;
  --card-p: #ffffff;
  --accent-gradient: linear-gradient(135deg, #c4eeac 0%, #ff19cd 100%);
}

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

body {
  background: var(--base-color);
  color: var(--white-heading);
  font-family: "Poppins", sans-serif;
}

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  background: var(--primary-color);
  position: fixed;
  width: 100%;
  top: 0%;
  z-index: 999;
  margin-bottom: 130px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.left a {
  text-decoration: none;
  color: var(--white-heading);
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white-heading);
  padding: 5px 10px;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  display: inline-block;
  align-items: center;
  position: relative; /* Yaha hona chahiye */
  transition: 0.3s ease;
}

/* Underline line (hidden by default) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--card-p);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
} /* Hover effect */
.nav-links a:hover::after{
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a:hover,.btn:hover {
  border-color: var(--card-p);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white-heading);
  font-size: 22px;
  cursor: pointer;
}

/*theame toogle css*/
#theme-toggle {
  cursor: pointer;
  height: 40px;
  width: 40px;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--scard-bg);
  border: none;
  transition: background-color 0.3s ease;
}
#theme-toggle:hover {
  border: 2px solid rgb(0, 216, 255);
}
#theme-toggle svg {
  height: 24px;
  width: 24px;
  /* SVG ka color variables se control karein */
  fill: var(--white-heading);
}

/* Default: Sun dikhao, Moon chhupao (Dark Mode) */
#theme-toggle svg:last-child {
  display: none;
}

/* Light Mode active hone par: Sun chhupao, Moon dikhao */
body.light-mode #theme-toggle svg:first-child {
  display: none;
}

body.light-mode #theme-toggle svg:last-child {
  display: block;
}

.install-btn {
  position: fixed;
  display: none;
  bottom: 20px;
  right: 20px;
  background: #0d6efd;
  color: var(--white-heading);
  border: none;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 6px 15px rgba(184, 6, 6, 0.3);
}

/* ===== HERO ===== */

.hero {
  min-height: 100vh;
  display: flex;
  margin-left: 50px;
  align-items: center;
  padding-top: 90px;
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    var(--secondary-bg) 100%
  );
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.name-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-text {
  display: block;
  font-size: 2.5rem;
  color: var(--text-secondary);
}

.hero-description {
  color: var(--card-p);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  margin-right: 20px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

.profile-img {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-bg);
  z-index: 1;
}

.btn {
  padding: 10px 14px;
  background: var(--btn-bg);
  color: var(--white-heading);
  font-weight: 700;
  color: ;
  border: 2px solid var(--white-heading);
  border-radius: 10px;
  margin: 20px 10px;
  cursor: pointer;
}
.btn:hover {
  border: 2px solid rgb(0, 216, 255);
  box-shadow: 0 15px 30px rgba(0, 216, 255, 0.2);
}

.purple,
#element {
  color: rgb(7, 250, 238);
}

#services {
  margin: 80px 0px 30px 0;
  padding: 20px 50px;
  text-align: center;
}

#services h2 {
  font-size: 2.5rem;
  color: #00d8ff;
  /* Neon Blue Accent */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Glassmorphism Card Design */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--scard-bg);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(184, 11, 11, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

/* Hover Effect */
.service-card:hover,
.portfolio-section .card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.1);
  border-color: #00d8ff;
  box-shadow: 0 15px 30px rgba(0, 216, 255, 0.2);
}

/* Icon Styling */
.service-card i {
  font-size: 40px;
  margin-bottom: 20px;
  color: #00d8ff;
  /* Icons in Neon Blue */
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--white-heading);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--card-p);
  /* Soft gray for readability */
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Specific highlight for Java */
.service-card.java i {
  color: #f89820;
  /* Java's signature orange for variety */
}

/* Portfolio Section Specific */
.portfolio-section {
  padding: 10px 10%;
  background-color: var(--base-color);
  text-align: center;
}

.section-title h2 {
  color: #00d8ff;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-title p {
  color: #a0a0a0;
  margin-bottom: 50px;
}

/* Projects Container Grid */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
/* Modern Project Card */
.portfolio-section .card {
  background: rgba(255, 255, 255, 0.03);
  /* Glass effect */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  text-align: left;
  /* Align text to left for professional look */
  position: relative;
  overflow: hidden;
}
/* Icon Styles */
.portfolio-section .icon {
  font-size: 35px;
  margin-bottom: 20px;
}

.icon.blue {
  color: #00d8ff;
}

.icon.green {
  color: #2ecc71;
}

.icon.yellow {
  color: #f1c40f;
}

.portfolio-section h3 {
  color: var(--white-heading);
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.portfolio-section p {
  color: var(--card-p);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Combined Button Style */
.cta-button {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #00d8ff;
  border: 1px solid #00d8ff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 15px;
  margin-bottom: 5px;
  transition: 0.3s;
}
.cta-button:hover {
  background: #00d9ffcb;
  color: white;
}
.cta-button i {
  margin-left: 8px;
}

/* ===== PROFESSIONAL FOOTER ===== */
.site-footer {
  background: var(--foot-bg);
  color: var(--white-heading);
  font-weight: 700;
  margin-top: 80px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Brand */
.footer-col.brand h2 {
  color: var(--white-heading);
  margin-bottom: 15px;
}

.footer-col.brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--foot-p);
  font-weight: 700;
}

/* Titles */
.footer-col h3 {
  color: var(--white-heading);
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
}

/* Links */
.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin: 10px 0;
  font-size: 14px;
}

.footer-col ul li a {
  color: var(--white-heading);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #60a5fa;
}

/* Social icons */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1f3157;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5f5;
  font-size: 18px;
  transition: 0.3s;
}

.social-links a:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-3px);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--white-heading);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 955px) {
  .menu-toggle {
    display: block;
  }
  .install-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 55px;
    height: auto;
    right: 0;
    flex-direction: column;
    background: var(--primary-color);
    width: 250px;
    padding: 15px;
    z-index: 999;
    transform: translateX(10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .role-text {
    font-size: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .image-wrapper {
    width: 300px;
    height: 300px;
  }

  .profile-img {
    width: 280px;
    height: 280px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/*mobile menu*/

@media (max-width: 800px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .role-text {
    font-size: 1.6rem;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .image-wrapper {
    width: 250px;
    height: 250px;
  }

  .profile-img {
    width: 230px;
    height: 230px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
  .image-wrapper {
    width: 250px;
    height: 250px;
  }

  .profile-img {
    width: 230px;
    height: 230px;
  }
  .firstsection {
    margin: 80px 0px 30px 0;
    flex-direction: column;
  }
}

 