:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --section-bg: #f8f9fa;
  --nav-bg: #343a40;
  --nav-link-color: #ffffff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
  background-color: var(--nav-bg) !important;
}

.nav-link {
  color: var(--nav-link-color) !important;
}

.section {
  padding: 100px 0;
  background-color: var(--section-bg);
  transition: background-color 0.3s ease;
}

/* Dark mode */
body.dark-mode {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --section-bg: #1e1e1e;
  --nav-bg: #000000;
  --nav-link-color: #ffffff;
}
/*home section*/
.profile{
  max-width: 100%;
  max-height:auto;
  width: 300px; 
  height: 300px; 
  object-fit: cover; 
  border-radius: 50%/10%;
  left: 10%;
  margin-top: 60px;
  display: flex;
}
.home-right {
  padding: 40px;
  color: var(--text-color);
  background-color: var(--bg-color); /* Bootstrap's bg-secondary */
  border-radius: 12px;
  text-align: left;
}

/* Headline styles */
.home-right h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Paragraph styles */
.home-right p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Button group spacing */
.button-group a {
  width: 130px;
  color: var(--text-color);
  background-color: blueviolet;
}

/* Social icons */
.social-media i {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: transform 0.2s ease;
}

.social-media i:hover {
  transform: scale(1.2);
  color: blueviolet; /* Bootstrap primary color */
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .home-right {
    text-align: center;
    padding: 20px;
  }

  .button-group a {
    display: inline-block;
    margin: 10px 5px;
  }
}

/*about section*/
#about .nav-link {
  background:var(--nav-bg);
  color: var(--text-color);
  border-radius: 5px;
  text-align: left;
}

#about .nav-link.active {
  background-color:blueviolet;
  color:var(--text-color);
  font-weight: bold;
}

#about .tab-content p {
  background:var(--bg-color);
  color:var(--text-color);
  padding: 10px;
  border-radius: 5px;
}




/*skills section*/

/* project section*/
h2{
  text-align: center;
}
/* Overlay */
.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px;
}

.project-card {
  position: relative;
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay Hidden by Default */
.overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background:blueviolet;
  color:var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: bottom 0.4s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}
.project-card:hover .overlay {
  bottom: 0; /* slide up on hover */
}

/* Show overlay on hover */
.overlay a {
  background-color: white;
  color: blueviolet;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.overlay a:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
}

/*contact section*/
.btn-light {
  background-color:blueviolet; /* light gray */
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* footer */
footer {
  background-color: var(--nav-bg);
  color: var(--text-color);
  padding: 30px 20px;
  font-family: sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: left;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-right,
.footer-icon {
  flex: 1 1 250px;
}

.footer-container h5 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-left p {
  font-size: 14px;
}

.footer-right a,
.footer-icon a {
  display: block;
  color:var(--text-color);
  text-decoration: none;
  margin-bottom: 6px;
}

.footer-right a:hover,
.footer-icon a:hover {
  color: white;
}

.footer-icon a {
  font-size: 20px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: #aaa;
  font-size: 13px;
}
