@import 'components/utilities.css';
@import 'components/sidebar.css';
@import 'components/content.css';
@import 'components/footer.css';

/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.vibrant-title {
  color: #007bff; /* Example vibrant color */
}

.vibrant-subtitle {
  color: #28a745; /* Another vibrant color */
}

.vibrant-text {
  color: #495057;
}

.vibrant-link {
  color: #007bff;
  text-decoration: none;
}

.vibrant-link:hover {
  text-decoration: underline;
}

.vibrant-list {
  list-style-type: square;
  padding-left: 20px;
}

.vibrant-note {
  color: #6c757d;
  font-size: 0.9em;
}

.vibrant-shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.vibrant-icon {
  color: #ffc107; /* Vibrant icon color */
}

/* Sidebar Styles */
/*#sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  z-index: 999;
  background-color: #343a40;
}

#sidebar .nav-link {
  padding: 15px 20px;
  color: #f8f9fa;
  transition: background-color 0.3s ease;
}

#sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#sidebar .nav-link.active {
  background-color: #007bff;
  color: #fff;
}*/

/* Mobile Sidebar Styles */
/*@media (max-width: 768px) {
  #sidebar {
    width: 100%;
    height: auto;
    min-height: auto;
    padding-bottom: 0;
  }

  #sidebar .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.5rem;
  }

  #sidebar .nav-link {
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    width: auto;
  }

  #sidebar .nav-link i {
    margin-right: 0.2rem;
  }
}*/

/* Tablet Sidebar Styles */
@media (min-width: 769px) and (max-width: 992px) {
  #sidebar {
    width: 200px;
  }

  #content-container {
    width: calc(100% - 200px);
    margin-left: 200px;
    padding: 2rem !important;
    padding-top: 2rem !important;
    padding-bottom: 150px !important;
  }

  .logo-wrapper img {
    height: 40px;
    width: 40px;
  }

  .logo-slide {
    gap: 40px;
    padding: 16px 24px;
  }
}

/* Content Container Styles */
#content-container {
  margin-left: 250px;
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 250px);
  padding: 2rem !important;
  padding-bottom: 180px !important; /* Increased padding for footer */
  padding-top: 2rem !important;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-content {
  padding: 20px;
  flex-grow: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 100px; /* Increased margin */
  overflow-y: visible;
  overflow-x: hidden;
}

/* Footer Styles */
footer {
  width: 100%;
  background-color: #fff;
  padding: 10px 20px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  min-height: 120px;
}

.marquee-container {
  margin-block: 10px;
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.marquee-mask-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 128px;
  background: linear-gradient(to right, white 0%, white 40%, transparent 100%);
  z-index: 2;
}

.marquee-mask-right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 128px;
  background: linear-gradient(to left, white 0%, white 40%, transparent 100%);
  z-index: 2;
}

.marquee-track {
  display: flex;
  width: fit-content;
  
}

.logo-slide {
  display: flex;
  gap: 60px;
  padding: 10px 40px;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100%;
}

.logo-wrapper img {
  height: 100px;
  width: 100px;
  object-fit: contain;
  margin: auto;
}

@keyframes slide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Button Styles */
.vibrant-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.vibrant-button:hover {
  background-color: #0056b3;
}

/* Form Styles */
.vibrant-label {
  color: #495057;
  font-weight: bold;
}

.vibrant-input,
.vibrant-textarea {
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
}

.vibrant-input:focus,
.vibrant-textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.9em;
  margin-top: 5px;
}

/* Profile Image Styles */
.profile-image-container {
    max-width: 250px;  /* Changed from 500px */
    margin: 2rem auto;
    transition: transform 0.3s ease;
}

.profile-image-container:hover {
    transform: scale(1.02);
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-wrapper img {
    height: 60px;
    width: 60px;
  }

  .logo-slide {
    gap: 40px;
    padding: 10px 30px;
  }

  /* #sidebar {
      width: 30%;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 999; /* Ensure it's below other elements */
      /* height: auto;
      overflow-y: visible;
      padding-bottom: 15px;
  } */ */

  #sidebar .p-3 {
      padding: 10px;
  }

  #sidebar h1 {
      font-size: 1.5rem;
  }

  #sidebar .nav {
      flex-direction: row;
      justify-content: space-around;
  }

  #sidebar .nav-link {
      padding: 10px;
      text-align: center;
      font-size: 0.9rem;
  }

  #content-container {
      margin-left: 0;
      padding-top: 70px; /* Adjust based on sidebar height */
      padding-bottom: 100px !important; /* Smaller padding for mobile */
  }

  .main-content {
      padding: 1rem !important;
      margin-bottom: 40px;
  }

  .logo-slider img {
      height: 20px;
      margin: 0 10px;
  }

  footer {
      max-height: 60px; /* Smaller footer height for mobile */
  }

  .marquee-container {
    height: 80px;
    margin-block: 4px;
  }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  #content-container {
    min-height: calc(100vh - 60px);
    padding-bottom: 90px !important; /* Adjusted for mobile */
  }

  .main-content {
    margin-bottom: 40px; /* Adjusted for mobile */
  }

  footer {
    height: 60px; /* Adjusted for mobile */
    padding: 5px 20px;
  }

  #content-container {
    min-height: calc(100vh - 50px);
    padding-bottom: 70px !important;
  }

  footer {
    height: 50px;
  }

  .marquee-container {
    height: 70px;
  }

  .logo-wrapper img {
    height: 50px;
    width: 50px;
  }

  .logo-slide {
    gap: 30px;
    padding: 10px 20px;
  }

    #sidebar {
    width: 20%;
    /* height: auto; */
    /* min-height: auto; */
    /* position: fixed; */
    /* padding-bottom: 0; */
    z-index: 999;
  } 

  #sidebar .p-3 {
    padding: 0.5rem !important;
  }

  #sidebar h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  #sidebar .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.5rem;
  }

  #sidebar .nav-link {
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    width: auto;
  }

  #sidebar .nav-link i {
    margin-right: 0.2rem;
  } 

  #content-container {
    margin-left: 25%;
    padding: 1rem !important;
    padding-top: 160px !important; /* Increased to prevent overlap */
    padding-bottom: 120px !important; /* Adjusted mobile padding */
  }

  .main-content {
    padding: 1rem !important;
    margin-top: 1rem;
  }

  .vibrant-title {
    font-size: 1.5rem;
  }

  .vibrant-subtitle {
    font-size: 1.2rem;
  }

  .logo-wrapper img {
    height: 30px;
    width: 30px;
  }

  .logo-slide {
    gap: 30px;
    padding: 12px 16px;
  }

  .marquee-container {
    margin-block: 8px; /* Further reduced margin for mobile */
  }

  .service-item, .project-item, .experience-item {
    margin-bottom: 1rem;
    padding: 1rem !important;
  }

  .vibrant-button {
    width: 100%;
    margin-bottom: 1rem;
  }

  form .form-group {
    margin-bottom: 1rem;
  }

  .form-control {
    font-size: 0.9rem;
  }

  footer {
    position: fixed !important; /* Keep footer fixed on mobile */
    margin-top: 0;
    max-height: 100px; /* Reduced height for mobile */
  }
}

@media (min-width: 769px) and (max-width: 992px) {
   #sidebar {
    width: 200px;
  } 

  #content-container {
    width: calc(100% - 200px);
    margin-left: 200px;
    padding: 2rem !important;
    padding-top: 2rem !important;
    padding-bottom: 150px !important;
  }

  .logo-wrapper img {
    height: 40px;
    width: 40px;
  }

  .logo-slide {
    gap: 40px;
    padding: 16px 24px;
  }
}

@media (min-width: 993px) {
  #content-container {
    margin-left: 250px;
  }

  .main-content {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Fix for footer on mobile */
@media (max-width: 768px) {
  footer {
    position: relative !important;
    margin-top: 2rem;
  }

  .vh-100 {
    min-height: 100vh !important;
    height: auto !important;
  }

  body {
    padding-bottom: 60px;
  }
}

/* Updated mobile styles */
@media (max-width: 768px) {
  #content-container {
    margin-left: 0;
    padding: 1rem !important;
    padding-top: 160px !important;
    padding-bottom: 80px !important;
  }

  footer {
    position: relative;
    height: auto;
    min-height: 50px;
  }

  .main-content {
    padding: 1rem !important;
    margin-bottom: 20px;
  }
}

/* Maintain sidebar/content ratio on mobile */
@media (max-width: 768px) {
    #sidebar {
        width: 125px;
        position: fixed;
        height: 100vh;
        font-size: 70%;
        z-index: 999;
    }

    #content-container {
        width: calc(100% - 125px);
        margin-left: 125px;
        padding: 1rem !important;
    }
}