/* Theme Switch Styles */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  width: 60px;
  position: relative;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
  border-radius: 50%;
}

.slider .fa-sun-o,
.slider .fa-moon-o {
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: 8px;
}

.slider .fa-sun-o {
  left: 8px;
}

.slider .fa-moon-o {
  right: 8px;
}

input:checked + .slider {
  background-color: #66b1ff;
}

input:checked + .slider:before {
  transform: translateX(26px);
}


/* Dark Theme Colors */
:root {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --header-bg: #1a1a1a;
  --card-bg: #1e1e1e;
  --border-color: #2d2d2d;
  --link-color: #4a9eff;
  --secondary-text: #e0e0e0;
}

/* Apply Theme Variables */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: var(--bg-color);
  color: var(--text-color);
  /* transition: all 0.3s ease; */
  margin: 0;
  padding: 0;
  font-family: 'Montserrat';
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-loaded {
  opacity: 1;
}

body.page-transitioning {
  opacity: 0;
}

/* Card content */
.card-content {
  color: var(--text-color);
}

/* Service descriptions */
.services .desc {
  color: var(--text-color);
}


.second {
  background-color: var(--header-bg);
  background: #eee;
  width: 100%;
  color: #000000;  /* This overrides the #888 color */
}

.timeline-label {
  background-color: var(--card-bg) !important;
   /* color: var(--text-color) !important; */
}

/* Style for timeline entry links */
.timeline-label h2 a {
  color: var(--link-color);  /* Uses the existing link color variable */
  text-decoration: none;
  transition: color 0.3s ease;
}

.timeline-label h2 a:hover {
  color: #66b1ff;  /* Lighter blue on hover */
  text-decoration: underline;
}

/* Style for project type links */
.timeline-label p strong a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.timeline-label p strong a:hover {
  color: #66b1ff;
  text-decoration: underline;
}

/* Update these rules in your style.css file */

/* Higher specificity for timeline links */
.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label h2 a {
  color: #4a9eff !important; /* Using a direct color value for testing */
  text-decoration: none;
  transition: color 0.3s ease;
}

.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label h2 a:hover {
  color: #66b1ff !important;
  text-decoration: underline;
}

/* Project type links */
.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label p strong a {
  color: #4a9eff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.timeline-centered .timeline-entry .timeline-entry-inner .timeline-label p strong a:hover {
  color: #66b1ff !important;
  text-decoration: underline;
}

/* Override any general link colors in the timeline */
.timeline-centered a {
  color: #4a9eff !important;
}


/* Update the services section styling */
.services {
  background-color: var(--card-bg);
  color: #ffffff;  /* Set the default text color to white */
}

.services p {
  color: #ffffff !important;  /* Force white color for paragraphs */
}

/* Ensure the heading stays distinct */
.services h3 {
  color: #ffffff;  /* Make the service titles white as well */
  margin-bottom: 15px;
}

/* Add hover state for better interaction */
.services:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* If you're using icons, make sure they remain visible */
.services .icon2 {
  color: #ffffff;
}


@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459Wlhzg.ttf) format('truetype');
}

i {
  color: #fff;
}
.carousel-item {
  background-image:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/95581/header.png');
  opacity: 0.8;
  height: 100%;
}
.fixed-content {
  width: auto;
  float: none;
  display: block;
  margin-right: auto;
  margin-left: auto;
  padding: 40px;
  text-align: center;
  background-color: transparent;
}

.header {
  background-repeat: no-repeat, repeat;
  color: #FFF;
  max-height: 500px;
  height: 100%;
}

.header .port {
  border-radius: 50%;
  border: 6px #ccc solid;
  width: 16%;

  position: relative;
  z-index: 2;
  background-color: transparent;
}
#portfolio h2,
#contact h2 {
  font-size: 40px;
  margin: 0 0 15px 0;
}
.panel {
  font-family: 'Indie Flower', cursive;
  width:100%;
}
.footer {
  color: #666;
  margin-top: auto;
}
.footer .blue i {
  color: #d2d6dc;
}
.footer .blue i:hover {
  background: #3c7fc6;
  color: #d2d6dc;
}
.footer .fa-chevron-up {
  cursor: pointer;
  font-size: 34px;
  margin: 40px 0 0 0;
  position: relative;
  top: 0px;
}
.footer .fa-chevron-up:hover {
  -webkit-animation: up 1s infinite;
  /* Chrome, Safari, Opera */
  animation: up 1s infinite;
}
@-webkit-keyframes up {
  0% {
    top: 0px;
  }
  25% {
    top: 5px;
  }
  50% {
    top: 0px;
  }
  75% {
    top: 5px;
  }
  100% {
    top: 0px;
  }
}
.animate-box {
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.project-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

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

.project-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.project-card .tech-tag {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(44, 152, 240, 0.1);
    color: #2c98f0;
    font-size: 12px;
}

@media screen and (max-width: 768px) {
  .floating-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      top: auto;
      transform: none;
      display: flex;
      justify-content: space-around;
      border-radius: 0;
  }

  .projects-grid {
      grid-template-columns: 1fr;
  }

  .filter-bar {
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
  }
}

.icon-row {
  margin: 45px auto;
  width: 100%;
}
.icon-row i {
  border-radius: 4px;
  cursor: pointer;
  font-size: 44px;
  margin: 0px 20px;
  /* padding: 20px 30px; */
  transition: all 400ms ease-in-out;
}
.icon-row i:hover {
  background: #FFF;
  color: #ca5549;
}

.icon-row a {
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.icon-row a:hover {
  color: #4d79ff; /* Or whatever highlight color matches your theme */
  transform: translateY(-2px);
}

.icon-row a i {
  font-size: 18px;
  margin-right: 6px;
}

.icon-row a span {
  margin-left: 5px;
}


.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background-color: rgba(70, 130, 180, 0.8); /* SteelBlue with opacity */
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.home-button:hover {
    background-color: rgba(70, 130, 180, 1); /* Full opacity on hover */
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.home-button i {
    font-size: 24px;
    color: white;
}