/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #4f46e5;
  --secondary-color: #818cf8;
  --accent-color: #6366f1;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gradient-1: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  --gradient-2: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
  color: var(--dark-color);
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-decoration: none !important;
}

.hero-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: none;
  
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.25rem;
}

/* Force remove underline from name */
.gradient-text,
h1.gradient-text,
.hero-name {
  text-decoration: none !important;
}

#home h1.gradient-text {
  text-decoration: none !important;
  border-bottom: none !important;
}


/* Prevent name from being clickable */
h1.gradient-text {
  pointer-events: none;
  cursor: default;
}

/* But allow other elements to be clickable */
h1.gradient-text * {
  pointer-events: auto;
}


.lead.text-muted {
  font-weight: 500;
  color: #4b5563 !important;
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

/* ===== UTILITY CLASSES ===== */
.gradient-bg {
  background: var(--gradient-1);
}

/* ===== SECTION CARDS ===== */
.section-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  overflow: hidden;
  max-width: 1111px;
  margin: 0 auto 2rem auto;
  padding: 2.5rem;
}

.section-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

/* ===== PROFILE IMAGE ===== */
.profile-img {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 300px;
  height: 300px;
}

.profile-img.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== SOCIAL BUTTONS ===== */
.social-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

/* ===== FLOATING NAVIGATION ===== */
.floating-nav {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 1000;
  background: white;
  padding: 1rem;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 1s;
}

.floating-nav a {
  color: var(--dark-color);
  transition: all 0.3s;
  position: relative;
}

.floating-nav a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.floating-nav a.active {
  color: var(--primary-color);
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  transform: scale(1.1);
}

/* Enhanced hover and active animations */
.floating-nav a {
  color: var(--dark-color);
  transition: all 0.3s ease;
  position: relative;
  padding: 8px;
  border-radius: 50%;
}

.floating-nav a:hover {
  color: var(--primary-color);
  background-color: rgba(79, 70, 229, 0.05);
  transform: scale(1.1);
}

/* Active state with animation */
.floating-nav a.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  z-index: -1;
  animation: activeNavPulse 2s infinite;
}

/* Pulse animation for active nav item */
@keyframes activeNavPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
}

/* Mobile navigation active states */
@media (max-width: 768px) {
  .nav-icon.active {
    background: var(--gradient-1);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
  }
  
  .nav-icon.active::before {
    display: none; /* Remove pulse on mobile */
  }
}

/* ===== SKILLS SECTION ===== */
.skill-category {
  margin-bottom: 3rem;
}

.skill-category-title {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.skill-category-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-1);
}

.skill-category-title i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.skill-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.skill-item:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
  border-left-color: var(--primary-color);
  transform: translateX(5px);
}

.skill-item:hover .skill-logo {
  transform: scale(1.15) rotate(5deg);
}

.skill-name {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1rem;
}

.skill-percentage {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.skill-bar {
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 15px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: white;
  color: var(--dark-color);
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: default;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.skill-tag:hover {
  background: var(--gradient-1);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.skill-tag:hover .skill-tag-logo {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.skill-tag:hover .skill-tag-icon {
  color: white;
  transform: scale(1.1);
}

.skill-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.skill-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.skill-tag-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.skill-tag-icon {
  font-size: 16px;
  margin-right: 8px;
  color: var(--primary-color);
  vertical-align: middle;
}

/* ===== PROJECTS SECTION ===== */
.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
  border-color: var(--primary-color);
}

.project-card h3 {
  font-weight: 600;
  font-size: 1.3rem;
}

.project-card p {
  font-weight: 500;
  color: #4b5563;
  font-size: 0.9rem;
}

.project-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.project-content {
  flex-grow: 1;
}

.project-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-footer {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.project-footer .btn {
  background: var(--gradient-1);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.project-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  color: white;
}

.tech-stack-title,
.features-title {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #f8fafc;
  color: var(--dark-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: default;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tech-tag:hover {
  background: var(--gradient-1);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.tech-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

.tech-icon {
  font-size: 14px;
  margin-right: 6px;
  color: var(--primary-color);
  vertical-align: middle;
}

.tech-tag:hover .tech-logo {
  filter: brightness(0) invert(1);
}

.tech-tag:hover .tech-icon {
  color: white;
}

.hidden-project {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden-project.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===== EDUCATION SECTION ===== */
.education-card {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.education-card::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.education-card.visible::before {
  transform: scale(1);
}

.education-card h4 {
  font-weight: 600;
  font-size: 1.2rem;
}

.education-card p {
  font-weight: 500;
  color: #4b5563;
}

/* ===== SOFT SKILLS SECTION ===== */
.soft-skill-card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.9);
}

.soft-skill-card.visible {
  opacity: 1;
  transform: scale(1);
}

.soft-skill-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
}

/* ===== ACHIEVEMENT SECTION ===== */
.achievement-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.achievement-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
}

.achievement-card .carousel-inner {
  height: 300px;  /* Adjust this value if you want a taller/shorter area */
  background-color: #f8f9fa; /* Light gray background for the empty space */
  border-bottom: 1px solid #e2e8f0;
}
.achievement-card .carousel-item {
  height: 100%;
  width: 100%;
}
.achievement-card .achievement-img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}
.achievement-card .carousel-control-prev-icon,
.achievement-card .carousel-control-next-icon {
  background-color: rgba(79, 70, 229, 0.5); /* Primary color with transparency */
  border-radius: 50%;
  padding: 1.5rem;
  background-size: 50% 50%;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certification-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.certification-scroll {
  max-height: 400px;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out;
  position: relative;
}

.certification-scroll.expanded {
  max-height: 5000px;
}

.certification-scroll:not(.expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.cert-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--primary-color);
}

.cert-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.cert-item p {
  font-weight: 500;
  color: #374151;
  line-height: 1.5;
}

.cert-item i {
  font-size: 1.2rem;
  opacity: 0.8;
}

.certification-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge {
  font-size: 0.85rem;
  padding: 0.5em 1em;
  border-radius: 20px;
}

/* ===== BUTTONS ===== */
.btn:not(.social-btn) {
  background: var(--gradient-1) !important;
  border: none !important;
  color: white !important;
  border-radius: 25px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.btn:not(.social-btn):hover {
  background: var(--gradient-1) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3) !important;
}

#showMoreBtn {
  background: var(--gradient-1);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#showMoreBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
  color: white;
}

#showMoreCerts {
  transition: all 0.3s ease;
  background: var(--gradient-1);
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  color: white;
  font-weight: 600;
  margin-top: 20px;
}

#showMoreCerts:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.project-card {
  animation-delay: var(--animation-delay, 0s);
}

.project-card:nth-child(1) {
  --animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  --animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  --animation-delay: 0.3s;
}

.project-card:nth-child(4) {
  --animation-delay: 0.4s;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and Mobile Navigation */
@media (max-width: 768px) {
  .floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0.5rem;
    border-radius: 15px 15px 0 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transform: none;
    top: auto;
  }

  .floating-nav .d-flex {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 1rem;
  }

  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--dark-color);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #e2e8f0;
  }

  .nav-icon:hover,
  .nav-icon.active {
    background: var(--gradient-1);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
  }

  .nav-icon i {
    font-size: 1.2rem;
  }

  .section-card {
    max-width: 100%;
    margin: 0 1rem 2rem 1rem;
    padding: 1.5rem !important;
  }

  .section-title {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  #home h1.display-3 {
    font-size: calc(1.5rem + 1.5vw);
  }

  .display-4 {
    font-size: calc(1.4rem + 1.2vw);
  }

  .skill-bar {
    height: 20px;
  }

  .project-card,
  .soft-skill-card,
  .achievement-card {
    padding: 1rem;
  }

  .social-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .skill-category-title {
    font-size: 1.2rem;
  }

  .skill-item {
    padding: 1rem;
  }

  .skill-tag {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .skill-logo {
    width: 32px;
    height: 32px;
  }

  .skill-tag-logo {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }

  .skill-tag-icon {
    font-size: 14px;
    margin-right: 6px;
  }

  .project-card {
    padding: 1.5rem;
  }

  .tech-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  .tech-logo {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }

  .tech-icon {
    font-size: 12px;
    margin-right: 4px;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .certification-scroll {
    max-height: 350px;
  }

  .certification-scroll.expanded {
    max-height: 1200px;
  }

  .cert-item {
    padding: 15px;
    margin-bottom: 10px;
  }

  .cert-item i {
    font-size: 1rem;
  }

  #showMoreCerts {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
  .nav-icon {
    font-size: 1.2rem;
    padding: 6px;
  }

  .section-card {
    margin: 0 0.5rem 1.5rem 0.5rem;
    padding: 1rem !important;
  }

  .section-title {
    font-size: 1.8rem;
  }

  #home .container .section-card {
    padding: 1rem !important;
  }

  .social-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
  }

  #home .d-flex.justify-content-center {
    flex-direction: column;
    align-items: center;
  }

  .mb-4 {
    margin-bottom: 1rem !important;
  }

  .project-card .d-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-card .gradient-bg {
    margin-bottom: 1rem;
    margin-right: 0 !important;
  }

  .project-card .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .project-card {
    padding: 1rem;
  }

  .tech-logos {
    gap: 0.3rem;
  }

  .tech-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .tech-logo {
    width: 12px;
    height: 12px;
    margin-right: 3px;
  }

  .tech-icon {
    font-size: 10px;
    margin-right: 3px;
  }

  .skill-tags {
    gap: 0.5rem;
  }

  .skill-logo {
    width: 28px;
    height: 28px;
  }

  .skill-tag-logo {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }

  .skill-tag-icon {
    font-size: 12px;
    margin-right: 4px;
  }

  .skill-tag {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .cert-item .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .cert-item i {
    margin-bottom: 8px;
    margin-right: 0 !important;
  }
}

/* Large Tablets */
@media (min-width: 769px) and (max-width: 992px) {
  .floating-nav {
    right: 1rem;
  }

  .section-card {
    padding: 2rem !important;
  }
}




