/* Base Styles */
:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --dark: #212529;
  --light: #f8f9fa;
}

.more-projects {
  display: none;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: none;
  z-index: 99;
  transition: all 0.3s ease;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#backToTop.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

 /* Custom navbar styles */
 .navbar {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%) !important;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.text-gradient-primary {
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-link {
  position: relative;
  margin: 0 0.5rem;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    margin-top: 0.5rem;
    border-radius: 0.25rem;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
}

#home {
  background: linear-gradient(135deg, #0d6efd 0%, #084298 100%);
}

.hero-profile-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.hero-profile-img:hover {
  transform: scale(1.03);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.2);
  color: #ffc107 !important;
}

.hero-shape-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: rgba(255, 255, 255, 0.05);
  animation: morph 8s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: rgba(255, 255, 255, 0.05);
  animation: morph 12s ease-in-out infinite;
}

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

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hover-shadow-lg {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow-lg:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.underline {
  width: 80px;
  height: 4px;
  border-radius: 2px;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.badge i {
  font-size: 0.8em;
}

.skill-icon {
  transition: transform 0.2s ease;
  text-align: center;
}
.skill-icon:hover {
  transform: translateY(-5px);
}
.skill-icon img {
  filter: grayscale(20%);
  opacity: 0.9;
  transition: all 0.3s ease;
}
.skill-icon:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.underline {
  width: 80px;
  height: 4px;
  border-radius: 2px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Utility Classes */
.underline {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto;
}

/* Section Padding */
section {
  padding: 80px 0;
}

/* Hero Section */
#homePage {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.skill-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 5px;
}

.skill-item span {
  font-size: 0.9rem;
  text-align: center;
}

/* Portfolio Cards */
.portfolio-item {
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.card {
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hover-primary {
  transition: color 0.3s ease;
}

.hover-primary-mail:hover {
  color: #0d6efd !important;
}

footer a:hover {
  text-decoration: underline;
}

/* Contact Section */

.bg-dark-2 {
  background-color: #1a1a1a;
  border: 1px solid #333;
}

.contact-form .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.icon-box {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.social-icon {
  width: 40px;
  height: 40px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  background-color: #0b5ed7 !important;
}

.underline {
  width: 80px;
  height: 4px;
  border-radius: 2px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
  }
  
  .skill-item img {
    width: 50px;
    height: 50px;
  }
}

