/* Main Styles for Cybersecurity Portfolio */

/* Global Styles */
:root {
  --primary-color: #0dcaf0; /* Bootstrap info color */
  --primary-color-dark: #0b9bb8;
  --dark-bg: #212529;
  --darker-bg: #111111;
  --light-text: #f8f9fa;
  --border-opacity: 0.25;
}

body {
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Cyber Background */
#cyber-background {
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  overflow: hidden;
  position: fixed; /* Ensure it stays fixed in place */
  top: 0;
  left: 0;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000; /* Ensure navbar is above all content */
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  position: relative;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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


/* Hero Section */
.hero-section {
  padding-top: 6rem;
  position: relative;
  z-index: 1; /* Ensure content appears above background */
}

.title-letter {
  display: inline-block;
  transition: all 0.3s ease;
}

.title-letter:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

.cyber-icon-container {
  position: relative;
  height: 300px;
  width: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-icon {
  font-size: 8rem;
  color: var(--primary-color);
  position: relative;
  z-index: 2;
}

.cyber-icon-container:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: rgba(13, 202, 240, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(13, 202, 240, 0.3);
  animation: pulse 2s infinite;
}

/* Skill Progress Bars */
.skill-progress .progress {
  background-color: rgba(13, 202, 240, 0.1);
  border-radius: 10px;
  overflow: visible;
}

.skill-progress .progress-bar {
  position: relative;
  border-radius: 10px;
  transition: width 1.5s ease;
}

/* Project Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 202, 240, 0.2);
}

.card-img-top i {
  transition: transform 0.5s ease;
}

.card:hover .card-img-top i {
  transform: scale(1.1);
}

/*Certificate*/


/* Contact Form */
.form-control {
  background-color: var(--dark-bg) !important;
  border: 1px solid rgba(13, 202, 240, 0.3) !important;
  color: var(--light-text) !important;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover, 
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--light-text) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--dark-bg) inset !important;
  transition: background-color 5000s ease-in-out 0s;
  background-color: var(--dark-bg) !important;
  caret-color: var(--light-text);
  border-color: rgba(13, 202, 240, 0.3) !important;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25) !important;
}

.form-floating > label {
  color: rgba(248, 249, 250, 0.9);
}

/* Hide placeholder when input is focused or has content */
input:focus::placeholder,
textarea:focus::placeholder,
input:not(:placeholder-shown)::placeholder,
textarea:not(:placeholder-shown)::placeholder {
  color: transparent !important;
}

/* Dark Mode Toggle */
/* Fix for course-detail.html in dark mode */
body .list-group-item.bg-transparent {
  color: var(--light-text);
}

body .breadcrumb-item.active {
  color: var(--light-text);
}

body .accordion-body {
  color: var(--light-text);
}

body .list-group-item.bg-transparent span {
  color: var(--light-text);
}

/* Fix for dark mode */
body .list-group-item.bg-transparent,
body .breadcrumb-item.active,
body .accordion-body,
body .list-group-item.bg-transparent span,
body .card-body p,
body .card-body ul li,
body .card-body .text-center p,
body .card-body small,
body .sticky-top .card-body span {
  color: var(--light-text);
}

/* Fix for light mode */
body.light-mode .list-group-item.bg-transparent,
body.light-mode .breadcrumb-item.active,
body.light-mode .accordion-body,
body.light-mode .list-group-item.bg-transparent span,
body.light-mode .card-body p,
body.light-mode .card-body ul li,
body.light-mode .card-body .text-center p,
body.light-mode .card-body small,
body.light-mode .sticky-top .card-body span {
  color: #212529 !important;
}

/* Fix for dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--dark-bg);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.5);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .navbar {
    padding: 0.5rem 0;
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
  }
  
  .nav-link {
    margin: 0.5rem 0;
  }
  
  .cyber-icon-container {
    height: 200px;
    width: 200px;
  }
  
  .cyber-icon {
    font-size: 5rem;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
}

/* Blog Section Styles */
.blog-card {
  height: 100%;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-date {
  font-size: 0.85rem;
  color: var(--primary-color);
}

.blog-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(13, 202, 240, 0.1);
  color: var(--primary-color);
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Light Mode Styles */
body.light-mode {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

body.light-mode .navbar {
  background-color: rgba(248, 249, 250, 0.95);
}

body.light-mode .navbar-dark .navbar-nav .nav-link {
  color: #212529;
}

body.light-mode .card {
  background-color: #ffffff !important;
  border-color: rgba(13, 202, 240, 0.3) !important;
}

body.light-mode .card-body {
  color: #212529;
}

body.light-mode .list-group-item {
  background-color: #ffffff !important;
  color: #212529 !important;
}

body.light-mode .bg-dark {
  background-color: #f8f9fa !important;
}

body.light-mode .text-light {
  color: #212529 !important;
}

body.light-mode .border-info {
  border-color: rgba(13, 202, 240, 0.3) !important;
}

body.light-mode .card-title,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode footer,
body.light-mode .display-4 {  
  color: #212529 !important;
}

body.light-mode .modal-content {
  background-color: #ffffff;
  color: #212529;
}

/* Fix for footer in light mode */
body.light-mode footer {
  color: #212529 !important;
}

/* Fix for Professional Experience section in light mode */
body.light-mode .bg-black {
  background-color: #f8f9fa !important;
}

body.light-mode .bg-black .text-light,
body.light-mode footer .text-light {
  color: #212529 !important;
}

/* Fix for card titles in dark mode */
.card-title {
  color: var(--light-text) !important;
}

/* Fix for pagination in dark mode */
.pagination .page-link {
  background-color: var(--dark-bg);
  border-color: var(--primary-color-dark);
  color: var(--light-text);
}

/* Fix for nav tabs in dark mode */
.nav-tabs .nav-link {
  color: var(--light-text);
  background-color: transparent;
  border-color: transparent;
}

.nav-tabs .nav-link:hover {
  border-color: var(--primary-color);
  isolation: isolate;
}

.nav-tabs .nav-link.active {
  color: var(--light-text);
  background-color: var(--dark-bg);
  border-color: var(--primary-color);
  border-bottom-color: transparent;
}

/* Fix for accordion in dark mode */
.accordion-button {
  color: var(--light-text);
  background-color: var(--dark-bg);
}

.accordion-button:not(.collapsed) {
  color: var(--light-text);
  background-color: var(--dark-bg);
}

.accordion-button::after {
  filter: invert(1);
}

/* Fix for dark mode text visibility across all academy pages */
body .student-dashboard-content,
body .my-courses-content,
body .profile-content,
body .wishlist-content {
  color: var(--light-text);
}

body .card-body h4,
body .card-body h5,
body .card-body h6,
body .card-body .h6,
body .card-body .text-info,
body .card-body .small,
body .card-body .text-muted {
  color: var(--light-text) !important;
}

/* Fix for light mode text visibility */
body.light-mode .student-dashboard-content,
body.light-mode .my-courses-content,
body.light-mode .profile-content,
body.light-mode .wishlist-content,
body.light-mode .card-body h4,
body.light-mode .card-body h5,
body.light-mode .card-body h6,
body.light-mode .card-body .h6,
body.light-mode .card-body .text-info,
body.light-mode .card-body .small,
body.light-mode .card-body .text-muted {
  color: #212529 !important;
}

/* Fix for light mode */
body.light-mode .nav-tabs .nav-link {
  color: #212529;
}

body.light-mode .nav-tabs .nav-link.active {
  color: #212529;
  background-color: #ffffff;
  border-color: #dee2e6 #dee2e6 #ffffff;
}

body.light-mode .accordion-button {
  color: #212529;
  background-color: #ffffff;
}

body.light-mode .accordion-button:not(.collapsed) {
  color: #212529;
  background-color: #ffffff;
}

body.light-mode .accordion-button::after {
  filter: none;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #212529;
}

.pagination .page-item.disabled .page-link {
  background-color: rgba(33, 37, 41, 0.5);
  border-color: var(--primary-color-dark);
  color: rgba(248, 249, 250, 0.5);
}

/* Fix for form floating labels in dark mode */
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
  color: var(--primary-color) !important;
  opacity: 1;
}