/* Base Reset and Transition */
* {
  transition: all 0.3s ease-in-out;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  position: relative;
}

/* Navbar */
.navbar-nav a {
  color: inherit;
  position: relative;
}
.navbar-nav a:hover {
  color: #fca61f;
}
.navbar-nav a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  background: #fca61f;
  transition: width 0.3s ease, left 0.3s ease;
  top: 35px;
}
.navbar-nav a:hover:after {
  width: 100%;
  left: 0;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #fca61f;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

body.light-mode .nav-link {
  color: #3f396d;
}

body.light-mode .nav-link.active,
body.light-mode .nav-link:hover {
  color: #fca61f !important;
}

body.light-mode .nav-link.active::after {
  background-color: #fca61f;
  width: 100%;
  left: 0;
}
/* Button */
.c-btn {
  border: none;
  background: #fca61f;
  color: #fff;
  font-size: 1.2rem;
}
.c-btn:hover {
  background-color: #6f34fe;
  color: white;
  transform: scale(1.05);
}

.c-btn.h-btn {
  background-color: #fca61f;
  font-size: 1.1rem;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.c-btn.h-btn:hover {
  background-color: #6f34fe;
  transform: translateY(-3px);
}


/* Home Section */
.home {
  height: 100vh;
  background: linear-gradient(33deg, #f2f2ff 0%, #ebf9ff 100%);
  padding: 30px 0 10px;
}
.home h2 {
  font-size: 2.2rem;
}
@media (min-width: 768px) {
  .home h2 {
    font-size: 3rem;
  }
}
.h-text {
  color: #6f34fe;
  font-weight: 700;
  font-size: 3rem;
}
@media (min-width: 768px) {
  .h-text {
    font-size: 4rem;
  }
}
.home p {
  margin-top: 1rem;
  font-size: 1.2rem;
  width: fit-content;
}
.home img {
  animation: floatimg 4s ease-in-out infinite;
}

/* Float Image Animation */
@keyframes floatimg {
  0% { transform: translateX(0); }
  50% { transform: translateX(-24px); }
  100% { transform: translateX(0); }
}

/* Heading */
.heading small {
  color: #6f34fe;
  font-size: 1.5rem;
  font-weight: 600;
}
.heading h3 {
  margin-top: 0.5rem;
  color: #3f396d;
  font-size: 2.5rem;
  font-weight: 700;
}
.heading p {
  font-size: 1.3rem;
}
.text {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Skill */
.skill {
  background-color: rgb(234, 234, 249);
}
#skill-img {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Experience Section */
.expertise {
  padding: 60px 0;
  background-color: #f9f9ff;
}

.expertise .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.expertise .card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Smaller card styles */
.small-card {
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.project-img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
  padding: 0.3rem;
  background: #fff;
  border-radius: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
}

.card-text {
  font-size: 0.85rem;
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}

@media (max-width: 576px) {
  .project-img {
    height: 50px !important;
    width: 50px !important;
  }
  .card-title {
    font-size: 0.95rem;
  }
}


.card-footer {
  font-size: 0.85rem;
}



/* Contact */
.contact {
  background-color: #f3f3f3;
}
.contact-details i {
  font-size: 1.5rem;
  color: #fca61f;
}
.contact-details p {
  font-size: 1.2rem;
  margin-left: 1rem;
}
.contact-form .form-control {
  padding: 10px;
  width: 80%;
  border-radius: 0.375rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form .form-control:focus {
  border: 1px solid #fca61f;
  box-shadow: 0 0 0 0.2rem rgba(252, 166, 31, 0.25);
}
@media (max-width: 576px) {
  .contact-form .form-control {
    width: 100%;
  }
}

/* Footer */
footer {
  background-color: #d2c7ed;
}
footer .link-group a {
  margin: 1rem 10px 0;
  text-decoration: none;
  color: #6c757d;
  font-size: 1.1rem;
}
footer .link-group a:hover {
  color: #fca61f;
}

/* Social */
.social-links .button {
  border: none;
  margin-right: 1rem;
  font-size: 1.2rem;
  background-color: #fff;
  padding: 14px 15px 10px;
}
.social-links .button:hover {
  color: #fff;
  transform: translateY(-20px);
  transition-duration: 1s;
}
.social-links .github { color: black; }
.social-links .linkedin { color: #0077B5; }
.social-links .email { color: #DB4437; }

/* Scroll to Top */
#scrollToTopBtn {
  z-index: 999;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
}

/* Icon */
#icon {
  width: 1.8rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 2rem;
  border-color: darkgray;
}

/* Section Spacing */
section {
  min-height: 80vh;
  padding-top: 70px;
}


/* Cards */
.card, .rounded-lg {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #f5f5f5;
}
.dark-mode .bg-light {
  background-color: #1f1f1f !important;
}
.dark-mode .card,
.dark-mode .project-card {
  background-color: #2a2a2a;
  color: #fff;
}
.dark-mode section,
.dark-mode .form-control,
.dark-mode .container,
.dark-mode .row,
.dark-mode .col,
.dark-mode .card,
.dark-mode .flex,
.dark-mode footer {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border-color: #333 !important;
}
.dark-mode .navbar,
.dark-mode footer {
  background-color: #1c1c1c !important;
}
.dark-mode .card {
  background-color: #2a2a2a !important;
}
.dark-mode footer {
  background-color: #2c2c2c !important;
}
body.dark-mode .nav-link {
  color: #eee;
}

body.dark-mode .nav-link.active,
body.dark-mode .nav-link:hover {
  color: #ffce5c !important;
}

body.dark-mode .nav-link.active::after {
  background-color: #ffce5c;
  width: 100%;
  left: 0;
}

#filter-select {
  min-width: 280px;
  font-size: 1rem;
  padding: 0.5em 1em;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}
