/* Projects Page Specific Styles */

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: block;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  line-height: 50px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1040;
  opacity: 0;
  cursor: pointer;
  visibility: hidden;
}
.scroll-to-top:focus, .scroll-to-top:hover {
  color: #ffffff;
  background: #1e40af;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.scroll-to-top i {
  font-weight: 700;
}

/* Menu Toggle Fix for Projects Page */
.menu-toggle {
    position: fixed;
    right: 15px;
    top: 15px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:focus, .menu-toggle:hover {
    color: #fff;
    background: #374151;
}

#sidebar-wrapper {
    position: fixed;
    z-index: 1000;
    right: -250px;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    transition: all 0.4s ease 0s;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar-wrapper.active {
    right: 0;
    width: 250px;
    transition: all 0.4s ease 0s;
}

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li.sidebar-nav-item a {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 15px;
    transition: all 0.3s ease;
}

.sidebar-nav li a:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
    font-size: 1.2rem;
    background: rgba(31, 41, 55, 0.1);
    height: 80px;
    line-height: 50px;
    padding-top: 15px;
    padding-left: 15px;
}

.sidebar-nav > .sidebar-brand a {
    color: #fff;
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand a:hover {
    color: #fff;
    background: none;
}

/* Projects Masthead */
.projects-masthead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.projects-masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 1;
}

.projects-masthead .masthead-content {
    position: relative;
    z-index: 2;
}

.projects-masthead .masthead-logo {
    max-height: 80px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.projects-masthead .masthead-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.projects-masthead .masthead-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.project-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.project-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Project Meta */
.project-meta {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-meta span {
    font-size: 0.9rem;
    color: #6c757d;
}

.project-meta i {
    color: #007bff;
    margin-right: 0.5rem;
}

/* Project Actions */
.project-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.project-actions .btn {
    width: 100%;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Filters */
.filter-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-section .form-control,
.filter-section .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Project Status Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #212529 !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-masthead .masthead-title {
        font-size: 2.5rem;
    }
    
    .projects-masthead .masthead-subtitle {
        font-size: 1.1rem;
    }
    
    .project-card .card-img-top {
        height: 200px;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .projects-masthead .masthead-title {
        font-size: 2rem;
    }
    
    .project-card .card-body {
        padding: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Grid */
.projects-grid {
    min-height: 400px;
}

/* Filter Buttons */
.filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-btn:hover:not(.active) {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Clear Filters Button */
.clear-filters {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.clear-filters:hover {
    background: #5a6268;
    border-color: #545b62;
    color: white;
}
