@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/*==================== Performance Optimizations ====================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* Hardware Acceleration for Better Performance */
.portfolio-box,
.skills-category,
.btn,
.project-btn,
.tech-badge,
.skill-tag {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Selection Color */
::selection {
  background: var(--main-color);
  color: var(--second-bg-color);
}

:root {
  /* Black and White Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(20, 20, 20, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-primary: #ffffff;
  --accent-secondary: #e0e0e0;
  --accent-tertiary: #c0c0c0;
  --accent-warning: #ffffff;
  --accent-gradient: linear-gradient(
    135deg,
    #ffffff 0%,
    #e0e0e0 50%,
    #c0c0c0 100%
  );
  --accent-gradient-2: linear-gradient(135deg, #e0e0e0 0%, #ffffff 100%);
  --accent-gradient-3: linear-gradient(135deg, #c0c0c0 0%, #ffffff 100%);
  --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.2);
  --shadow-glow-hover: 0 0 60px rgba(255, 255, 255, 0.3);
  --shadow-white: 0 0 40px rgba(255, 255, 255, 0.3);

  /* Legacy color mappings for compatibility */
  --second-bg-color: var(--bg-secondary);
  --bg-color: var(--bg-primary);
  --text-color: var(--text-primary);
  --main-color: var(--accent-primary);
  --third-color: var(--accent-tertiary);
  --edu-color: var(--accent-secondary);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  cursor: default;
}

/* Scroll Progress Indicator */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 9998;
  backdrop-filter: blur(10px);
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #a0a0a0 50%, #ffffff 100%);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: gradientMove 3s linear infinite;
}

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

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loader-text {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loader-progress {
  width: 250px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #a0a0a0 100%);
  border-radius: 10px;
  animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  display: none;
}

/* Cursor Spotlight Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle 600px at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.cursor-active::before {
  opacity: 1;
}

/* Interactive Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
  position: relative;
  z-index: 1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.3s ease;
}

.header.sticky {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
  font-size: 2.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  cursor: default;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.navbar a {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-left: 3.5rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar a:hover {
  color: var(--text-primary);
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a.active {
  color: var(--accent-primary);
}

.navbar a.active::after {
  width: 100%;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 15rem 9% 10rem;
}

.home-content {
  max-width: 900px;
}

.home-content h3 {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 3rem;
}

span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.home-content h1 {
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  margin: 1rem 0;
}

.home-img {
  position: relative;
}

.home-img::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(40px);
  animation: pulse 3s ease-in-out infinite;
}

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

.home-img img {
  width: 35vw;
  animation: floatImage 4s ease-in-out infinite;
  border-radius: 50%;
  margin-right: 20px;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.home-img img:hover {
  box-shadow: 0 30px 80px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2.4rem);
  }

  100% {
    transform: translateY(0);
  }
}

.home-content p {
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow: none;
  margin-left: 1.5rem;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #000;
  border-color: transparent;
}

.social-media {
  justify-content: center;
  margin: 3rem 0;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--accent-primary);
  margin: 0 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.social-media a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-media a:hover::before {
  opacity: 1;
}

.social-media a:hover {
  color: #000;
  border-color: transparent;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn {
  display: inline-block;
  padding: 1.4rem 3.5rem;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  font-size: 1.6rem;
  color: #000000;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
}

.btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/*home content over*/

/* Skills Section Styles */

.skills {
  background: transparent;
  padding: 12rem 9% 8rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: subtlePulse 8s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.skills .heading {
  text-align: center;
  font-size: 6.5rem;
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.skills .heading::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.skills-subtitle {
  text-align: center;
  font-size: 2rem;
  color: #a0a0a0 !important;
  font-weight: 300;
  margin-bottom: 8rem;
  position: relative;
  z-index: 10;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.skills-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 4rem;
}

.skills-category {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 4rem;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.skills-category::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.skills-category:hover::after {
  opacity: 1;
}

.skills-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.skills-category:hover::before {
  opacity: 1;
}

.skills-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(255, 255, 255, 0.05) inset;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(15, 15, 15, 0.8);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 3;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-icon {
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.category-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-icon:hover::before {
  opacity: 1;
}

.category-icon i {
  font-size: 3.5rem;
  color: #ffffff;
  transition: all 0.4s ease;
}

.skills-category:hover .category-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.skills-category:hover .category-icon i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.category-title {
  font-size: 2.4rem;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 3;
  text-transform: uppercase;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 3;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 1.4rem 2.8rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 3;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.skill-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: -1;
}

.skill-tag:hover::before {
  left: 100%;
}

.skill-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.skill-tag:hover::after {
  opacity: 1;
}

.skill-tag:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  letter-spacing: 1px;
}

@keyframes skillGlow {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  }
}

/* Responsive Design for Skills */
@media (max-width: 1200px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  .skills {
    padding: 10rem 5% 6rem;
  }

  .skills .heading {
    font-size: 5rem;
  }

  .skills-category {
    padding: 3rem;
  }

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

@media (max-width: 768px) {
  .skills .heading {
    font-size: 4rem;
    letter-spacing: -2px;
  }

  .skills .heading::after {
    width: 80px;
    height: 3px;
  }

  .skills-subtitle {
    font-size: 1.3rem;
    margin-bottom: 5rem;
  }

  .category-header {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .category-icon {
    width: 6rem;
    height: 6rem;
  }

  .category-icon i {
    font-size: 3rem;
  }

  .category-title {
    font-size: 2rem;
  }

  .skill-tag {
    font-size: 1.4rem;
    padding: 1.2rem 2rem;
  }
}

@media (max-width: 450px) {
  .skills {
    padding: 8rem 4% 5rem;
  }

  .skills .heading {
    font-size: 3.5rem;
  }

  .skills-category {
    padding: 2.5rem;
  }

  .category-icon {
    width: 5.5rem;
    height: 5.5rem;
  }

  .category-icon i {
    font-size: 2.5rem;
  }

  .category-title {
    font-size: 1.8rem;
  }

  .skill-tag {
    font-size: 1.3rem;
    padding: 1rem 1.8rem;
  }

  .skills-tags {
    gap: 1rem;
  }
}

/* End Skills Section Styles */

/* scroll bar using webkit  */

::-webkit-scrollbar {
  width: 0.8rem;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-secondary);
  width: 0.8rem;
}

/* scroll bar content */

/* Education section removed */

/*Services content*/

.services h2 {
  margin-bottom: 5rem;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-container .services-box {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: 0.5s ease;
}

.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.services .heading {
  text-align: center;
  font-size: 4.5rem;
}

.services-box i {
  font-size: 7rem;
  color: var(--third-color);
}

.services-box i:hover {
  color: gold;
}

.services-box h3 {
  font-size: 2.6rem;
}

.services-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
}

/*services content over*/

/*Portfolio content*/

.portfolio {
  background: transparent;
}

.portfolio h2 {
  margin-bottom: 4rem;
}

/* Portfolio Section */
.portfolio {
  padding: 10rem 9% 8rem;
  text-align: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

.portfolio .heading {
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.portfolio-subtitle {
  font-size: 1.8rem;
  color: var(--text-secondary);
  margin-bottom: 6rem;
  position: relative;
  z-index: 1;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Container Grid Layout */
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 4rem;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Modern Portfolio Box Card */
.portfolio-box {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.portfolio-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.portfolio-box:hover::before {
  opacity: 1;
}

.portfolio-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Portfolio Image Container */
.portfolio-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-box:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.portfolio-box:hover .portfolio-overlay {
  opacity: 0.8;
}

/* Portfolio Content */
.portfolio-content {
  padding: 3rem 2.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-secondary);
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  width: fit-content;
}

.project-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.portfolio-box:hover .project-title {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.project-description {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  flex: 1;
}

/* Technology Badges */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Project Links/Buttons */
.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
}

.project-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.3rem 2rem;
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  -webkit-text-fill-color: initial;
  background-clip: unset;
  -webkit-background-clip: unset;
}

.project-btn i {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.btn-live {
  background: #ffffff;
  color: #000000;
  border: 2px solid #ffffff;
}

.btn-live:hover {
  background: transparent;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-live:hover i {
  transform: translateX(3px);
}

.btn-code {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-code:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-code:hover i {
  transform: scale(1.1) rotate(5deg);
}

.portfolio-layer a {
  color: #000;
  font-size: 2.8rem;
  background: rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.portfolio-layer a:hover {
  background: #000;
  color: #fff;
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: #000;
}

/* Responsive */
/* Portfolio Responsive Design */
@media (max-width: 1024px) {
  .portfolio-container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .portfolio {
    padding: 8rem 5% 6rem;
  }

  .portfolio .heading {
    font-size: 4rem;
    margin-bottom: 1.5rem;
  }

  .portfolio-subtitle {
    font-size: 1.6rem;
    margin-bottom: 4rem;
  }

  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
  }

  .portfolio-image {
    height: 240px;
  }

  .portfolio-content {
    padding: 2.5rem 2rem;
  }

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

  .project-description {
    font-size: 1.4rem;
  }

  .project-links {
    flex-direction: column;
    gap: 1.2rem;
  }

  .project-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .portfolio .heading {
    font-size: 3.5rem;
  }

  .portfolio-subtitle {
    font-size: 1.4rem;
    padding: 0 1rem;
  }

  .portfolio-image {
    height: 220px;
  }

  .portfolio-content {
    padding: 2rem 1.5rem;
  }

  .project-title {
    font-size: 2rem;
  }

  .project-category {
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
  }

  .tech-badge {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

  .project-btn {
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
  }
}

/* Contact Section Styles */
.contact-container {
  min-height: 100vh;
  width: 100%;
  background: transparent;
  padding: 8rem 0;
  position: relative;
}

#contactHeading {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5.5rem;
  font-weight: 900;
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-info {
  padding: 4rem;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 0.95),
    rgba(30, 30, 30, 0.95)
  );
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.contact-info:hover::before {
  opacity: 1;
}

.contact-info:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-5px);
}

.contact-form {
  padding: 4rem;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 0.95),
    rgba(30, 30, 30, 0.95)
  );
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.contact-form::before {
  opacity: 1;
}

.contact-form:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-5px);
}

.info-section {
  margin-bottom: 3rem;
}

.info-section h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
}

.info-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ffffff, transparent);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 10px;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transform: translateX(5px);
}

.info-item .icon {
  width: 4.5rem;
  height: 4.5rem;
  min-width: 4.5rem;
  margin-right: 1.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.info-item:hover .icon {
  background: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.map-container {
  margin: 3rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.map-container:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  filter: grayscale(100%) invert(100%) contrast(90%);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.social-link:hover::before {
  width: 300px;
  height: 300px;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  color: #000;
  border-color: #ffffff;
}

.form-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1.5rem;
}

.form-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.contactName {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.contactInput {
  width: 100%;
  height: 5rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-size: 1.6rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 0 2rem;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  transition: all 0.4s ease;
  font-family: "Poppins", sans-serif;
}

.contactInput:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.contactTextarea {
  width: 100%;
  min-height: 150px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-size: 1.6rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  resize: vertical;
  transition: all 0.4s ease;
  font-family: "Poppins", sans-serif;
}

.contactTextarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.7);
}

.contactInput::placeholder,
.contactTextarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.contactSubmit {
  width: 100%;
  height: 6rem;
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  color: #000;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Poppins", sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.contactSubmit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.contactSubmit:hover::before {
  width: 500px;
  height: 500px;
}

.contactSubmit:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.contactSubmit:active {
  transform: translateY(-2px) scale(0.98);
}

.business-hours {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  padding: 2.5rem;
  border-radius: 15px;
  margin-top: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.business-hours:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  #contactHeading {
    font-size: 3.5rem;
    padding: 3rem 1.5rem;
  }

  .contact-info,
  .contact-form {
    padding: 2rem;
  }

  .info-item {
    font-size: 1.4rem;
  }

  .map-container iframe {
    height: 250px;
  }
}

/*Portfolio content over*/

/*Footer content*/

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 3rem 9%;
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
  font-size: 1.5rem;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.footer-text p {
  text-align: center;
  font-weight: 400;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.5s ease;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--third-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}

.footer .end {
  margin-top: 2rem;
  margin-left: 3rem;
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
}

.footer .end a {
  font-size: 1.7rem;
  color: var(--text-color);
}

.footer .end a:hover {
  color: var(--main-color);
}

.footer .social-media {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-left: 5rem;
}

.footer .social-media a:hover {
  color: var(--second-bg-color);
  background-color: var(--third-color);
}

/*footer content over*/

/* BREAKPOINTS */

/* media queries */

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

/* 991px */

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .services {
    padding-bottom: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }

  /* .contact{
        color: #1A2031;
    } */

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home {
    display: flex;
    flex-direction: column;
  }

  .home {
    flex-direction: column;
  }

  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  /* home content over */

  .services h2 {
    margin-bottom: 3rem;
  }

  /* services over */

  .portfolio h2 {
    margin-bottom: 3rem;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .footer-text {
    margin-left: 0.5rem;
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 365px) {
  .home-img img {
    width: 90vw;
  }

  .about-img img {
    width: 90vw;
  }

  .footer .end {
    display: flex;
    flex-direction: column;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}

/* ==================== AI CHATBOT STYLES ==================== */

#chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

#chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  color: #000;
  font-size: 2.8rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-chatbot 2s infinite;
}

@keyframes pulse-chatbot {
  0%,
  100% {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.5);
  }
}

#chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5);
}

#chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 550px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: slideUp 0.3s ease;
}

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

#chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: #ffffff;
  padding: 1.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.chatbot-avatar {
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #000;
}

.chatbot-title h4 {
  font-size: 1.7rem;
  color: #000;
  margin: 0;
  font-weight: 600;
}

.chatbot-status {
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

#chatbot-close {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: #000;
  font-size: 2.4rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#chatbot-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-primary);
}

#chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.message {
  display: flex;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: #ffffff;
  color: #000;
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  background: #e0e0e0;
  color: #000;
}

.message-content {
  max-width: 75%;
}

.message-content p {
  background: var(--bg-card);
  padding: 1.2rem 1.5rem;
  border-radius: 15px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-message .message-content p {
  background: #ffffff;
  color: #000;
  border: none;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-btn:hover {
  background: #ffffff;
  color: #000;
  transform: translateY(-2px);
}

.chatbot-input-container {
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  display: flex;
  gap: 1rem;
}

#chatbot-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 1.2rem 1.8rem;
  color: var(--text-primary);
  font-size: 1.4rem;
  outline: none;
  transition: all 0.3s ease;
}

#chatbot-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

#chatbot-send {
  width: 45px;
  height: 45px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#chatbot-send:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.typing-indicator {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 15px;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Responsive Chatbot */
@media (max-width: 768px) {
  #chatbot-window {
    width: calc(100vw - 40px);
    height: 500px;
    right: 20px;
    bottom: 90px;
  }

  #chatbot-toggle {
    width: 55px;
    height: 55px;
    font-size: 2.5rem;
  }
}

@media (max-width: 450px) {
  #chatbot-container {
    bottom: 20px;
    right: 20px;
  }

  #chatbot-window {
    width: calc(100vw - 30px);
    height: 450px;
    right: 15px;
    bottom: 80px;
  }

  .message-content {
    max-width: 80%;
  }
}

/*==================== Advanced Animations ====================*/

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
  }
}

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Slide In Blur Animation */
@keyframes slideInBlur {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Gradient Shift Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Border Glow Animation */
@keyframes borderGlow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

/* Text Glow Animation */
@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  }
}

/*==================== Optimized Apply Animations to Elements ====================*/

/* Portfolio Section Animations - Disabled for ScrollReveal to handle */
/* Uncomment if not using ScrollReveal
.portfolio-box {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.portfolio-box:nth-child(1) {
  animation-delay: 0.05s;
}

.portfolio-box:nth-child(2) {
  animation-delay: 0.1s;
}

.portfolio-box:nth-child(3) {
  animation-delay: 0.15s;
}
*/

/* Heading Animations - Handled by ScrollReveal */

/* Skills Category Animation - Handled by ScrollReveal for better performance */

/* Button Hover Animations - Optimized */
.btn,
.project-btn {
  transition: all 0.3s ease; /* Faster transition */
  will-change: transform; /* Hint browser for optimization */
}

.btn:hover,
.project-btn:hover {
  /* Removed infinite pulse for better performance */
  transform: translateY(-2px) scale(1.02);
}

/* Tech Badge Animation on Hover */
.tech-badge {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.tech-badge:hover::before {
  left: 100%;
}

/* Project Image Shimmer Effect */
.portfolio-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.7s ease;
}

.portfolio-box:hover .portfolio-image::after {
  left: 100%;
}

/* Smooth Page Load Animation */
body {
  animation: fadeIn 0.5s ease-in;
}

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

/* Portfolio Box Advanced Hover Effect */
.portfolio-box {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-box:hover {
  animation: none;
}

/* Heading Gradient Animation - Simplified for performance */
.heading span {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #a0a0a0 25%,
    #ffffff 50%,
    #a0a0a0 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Removed infinite animation for better performance */
}

/* Social Media Icons Animation - Optimized */
.social-media a {
  transition: all 0.25s ease;
}

.social-media a:hover {
  transform: translateY(-5px) scale(1.1);
  /* Removed infinite animation for better performance */
}

/* Skill Tag Glow on Hover - Simplified */
.skill-tag:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  /* Removed infinite animation for better performance */
}

/* Portfolio Content - Handled by ScrollReveal */
/* .portfolio-content {
  animation: slideInBlur 0.8s ease-out;
} */

/* Project Category/Title - Handled by Intersection Observer */
/* .project-category {
  animation: fadeInRight 0.8s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.project-title {
  animation: fadeInLeft 0.8s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
} */

/* Contact Form Animation */
.contact-form {
  animation: fadeInRight 1s ease-out;
}

.contact-info {
  animation: fadeInLeft 1s ease-out;
}

/* Footer Animation */
.footer {
  animation: fadeInUp 1s ease-out;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Add subtle animation to portfolio container */
.portfolio-container {
  animation: fadeIn 1s ease-out;
}

/* Navbar Link Hover Effect */
.navbar a {
  position: relative;
  transition: all 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* Logo Spin Animation */
.logo i {
  transition: transform 0.3s ease;
}

.logo:hover i {
  animation: rotate 2s linear infinite;
}

/* Chatbot Button Pulse */
#chatbot-toggle {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Portfolio Subtitle Animation */
.portfolio-subtitle {
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.skills-subtitle {
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

/* Fix for Portfolio Images */
.portfolio-box .portfolio-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 24px 24px 0 0;
}

.portfolio-box .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-box:hover .portfolio-image img {
  transform: scale(1.15);
}

/* Ensure images load properly */
.portfolio-image img[src] {
  opacity: 1;
}

.portfolio-image img:not([src]) {
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
}
