/**
 * Projects Page Styles - Self-Contained
 * JKUAT Innovation and Entrepreneurship Club
 */

/* Prevent horizontal scroll - CRITICAL */
html {
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

* {
    box-sizing: border-box !important;
}

/* Ensure no element exceeds viewport */
section, div, header, footer, main {
    max-width: 100vw !important;
}

/* Scope all styles to projects page */
.projects-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #f9fafb;
    background: #0f172a url('/pages/shared/assets/images/backgrounds/tech-meeting-flatlay.jpg') center/cover fixed;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden !important;
    padding-top: 110px !important;
    contain: none !important;
    /* Restore standard fixed positioning */
    max-width: 100vw !important;
}

/* Add dark overlay to background */
.projects-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

/* Enhanced background with subtle overlay */
.projects-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: -1;
    opacity: 0.3;
}

/* Background pattern class */
.projects-page.bg-pattern::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Navigation handled by global-navbar.css */

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Background Pattern */
.bg-pattern {
    background: #0f172a url('/pages/shared/assets/images/backgrounds/tech-meeting-flatlay.jpg') center/cover fixed;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

/* Projects Page Specific Styles */

/* ===== HERO SECTION ===== */
/* ===== HERO SECTION ===== */
.hero-heading {
    font-size: clamp(3rem, 8vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem) !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 55rem !important;
    margin: 0 auto 3rem auto !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text.accent {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ===== STATS SECTION ===== */
.stats-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
    max-width: 70rem !important;
    margin: 0 auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.stats-container>div {
    text-align: center !important;
    min-width: 100px !important;
    flex: 0 0 auto !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.stats-container>div:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.stat-number {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.stat-label {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* ===== SECTION SPACING ===== */
.tab-content {
    margin-top: 3rem !important;
}

/* ===== TAB BUTTONS SECTION ===== */
.tab-buttons-section {
    padding: 1rem 0 !important;
    margin-bottom: 0 !important;
}

.tab-buttons-container {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    gap: 1.5rem !important;
}

/* ===== FILTER BUTTONS SECTION ===== */
.filter-buttons-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-bottom: 3rem !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===== TAB BUTTONS ===== */
.tab-btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.tab-btn:not(.active) {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.tab-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 1px solid !important;
}

.filter-btn:not(.active) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.filter-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.filter-btn.active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0 0 0;
}

/* Update the projects grid in HTML to match events page */
#projectsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px 16px 0 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-status.planning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-status.completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Project Type Badges */
.project-type-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-type-badge i {
    font-size: 0.8rem;
}

.project-type-badge.club-project {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.project-type-badge.personal-project {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.2));
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.project-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.project-stat {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.project-stat i {
    margin-right: 0.5rem;
    width: 16px;
}

.project-stat.team i {
    color: #10b981;
}

.project-stat.progress i {
    color: #3b82f6;
}

.project-stat.timeline i {
    color: #f59e0b;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ===== FILTERS SECTION ===== */
.filters-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: end;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-select option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

/* ===== AUTH MODAL FIX ===== */
/* Ensure auth modal appears above all page content */
.auth-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 1 !important;
    animation: none !important;
    pointer-events: auto !important;
}

.auth-container {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
    max-width: 900px !important;
    width: 100% !important;
    max-height: 95vh !important;
    overflow: hidden !important;
    position: relative !important;
    transform: translateY(0) !important;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ===== MODAL STYLES ===== */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 100000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    pointer-events: auto !important;
}

.modal-backdrop.active {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 900px !important;
    max-height: calc(100vh - 4rem) !important;
    margin: auto !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-body {
    padding: 2rem !important;
    overflow-y: auto !important;
    flex: 1 !important;
}

.modal-large {
    max-width: 900px !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.modal-header h2 {
    color: white;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.glass-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.glass-input option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== PROJECT DETAIL MODAL ===== */
.project-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-owner {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.project-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-detail-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-detail-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.project-detail-stats .stat-item i {
    color: #10b981;
}

.project-detail-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.detail-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

/* ===== LOADING STATES ===== */
.loading-container {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.loading-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ===== NO CONTENT STATES ===== */
.no-projects {
    text-align: center;
    padding: 4rem 0;
}

.no-projects-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.no-projects-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.no-projects-icon i {
    font-size: 2rem;
    color: #f59e0b;
}

.no-projects-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.no-projects-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

    /* CRITICAL: Prevent ALL horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
    }

    .projects-page {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Ensure all sections fit */
    section {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Hero Section Mobile */
    .hero-section-padding {
        padding: 1.5rem 0 2rem 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .hero-content-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    .hero-heading {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 !important;
        word-wrap: break-word !important;
    }

    .hero-badge-container {
        font-size: 0.7rem !important;
        padding: 0.375rem 0.875rem !important;
        margin-bottom: 1rem !important;
    }

    /* Quick Actions - Stack on Mobile */
    .quick-actions-container {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .quick-actions-container .btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Tabs - Wrap on Mobile */
    .tab-buttons-section {
        width: 100% !important;
        overflow: hidden !important;
        padding: 1rem 0 !important;
    }

    .tab-buttons-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }

    .tab-btn {
        flex: 0 1 auto !important;
        padding: 0.625rem 0.875rem !important;
        font-size: 0.8125rem !important;
        white-space: nowrap !important;
        min-width: auto !important;
    }

    .tab-btn i {
        font-size: 0.75rem !important;
        margin-right: 0.25rem !important;
    }

    /* Container - CRITICAL */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Stats - 2 column grid on mobile */
    .stats-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
        justify-content: center !important;
    }

    .stats-container>div {
        min-width: 0 !important;
        width: 100% !important;
        padding: 0.75rem 0.5rem !important;
    }

    .stat-number {
        font-size: 1.75rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    /* Filter Buttons - Wrap */
    .filter-buttons-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .filter-btn {
        flex: 0 1 auto !important;
        white-space: nowrap !important;
        padding: 0.5rem 0.875rem !important;
        font-size: 0.8125rem !important;
        min-width: auto !important;
    }

    /* Forms */
    .filters-row,
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .form-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    .form-actions .btn {
        width: 100% !important;
    }

    .glass-input,
    .glass-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Cards */
    .project-card {
        padding: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .project-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .project-actions .btn {
        width: 100% !important;
    }

    /* Modal */
    .modal-backdrop {
        padding: 1rem !important;
    }

    .modal-content,
    .modal-large {
        max-width: calc(100vw - 2rem) !important;
        width: calc(100% - 2rem) !important;
        margin: 0 auto !important;
    }

    .project-detail-title {
        font-size: 1.35rem !important;
        word-wrap: break-word !important;
    }

    .project-detail-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .project-detail-stats {
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .project-detail-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    .project-detail-actions .btn {
        width: 100% !important;
    }

    .project-detail-content {
        max-height: 50vh !important;
    }

    /* Incubation Grid */
    .incubation-info-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Tab Content Section */
    .tab-content-section {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 0 2rem 0 !important;
    }

    /* Dropdown menu */
    .dropdown-menu {
        min-width: 180px !important;
        max-width: calc(100vw - 2rem) !important;
    }

    /* Form max width */
    .form-max-width {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce sizes for very small phones */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .hero-heading {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.875rem !important;
    }

    .hero-badge-container {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.75rem !important;
    }

    /* Stats - Single column on very small screens */
    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .stats-container>div {
        padding: 0.625rem 0.5rem !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .quick-actions-container .btn,
    .btn-lg {
        padding: 0.75rem 1rem !important;
        font-size: 0.8125rem !important;
    }

    .filter-btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .project-card {
        padding: 1rem !important;
    }

    .project-stats {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .project-stat {
        justify-content: center !important;
    }

    .modal-backdrop {
        padding: 0.5rem !important;
    }

    .modal-content,
    .modal-large {
        padding: 1rem !important;
        max-width: calc(100vw - 1rem) !important;
    }

    .project-detail-title {
        font-size: 1.125rem !important;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.project-detail-content::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.project-detail-content::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.project-detail-content::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

.project-detail-content::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-backdrop.active {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-backdrop.active .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== FOOTER STYLES ===== */
/* Footer styles removed - using minimal-footer.js component */

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* JS-Injected Content Styles (to avoid CSP issues) */
.empty-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 3rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-icon.innovation {
    color: rgba(16, 185, 129, 0.3);
}

.empty-state-icon.hackathon {
    color: rgba(139, 92, 246, 0.3);
}

.empty-state-icon.incubation {
    color: rgba(245, 158, 11, 0.3);
}

.empty-state-icon.search {
    color: rgba(255, 255, 255, 0.3);
}

.empty-state-title {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: rgba(255, 255, 255, 0.6);
}

.project-lead-wrapper {
    flex: 1;
}

.project-meta-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.category-badge-static {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-tag-more {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.hackathon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.hackathon-title-main {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    flex: 1;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.open {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.hackathon-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.hackathon-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: white;
    font-weight: 600;
}

.hackathon-theme-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.registration-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.registration-alert-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.registration-alert-text {
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
}

.registration-deadline-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.incubation-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lead-info-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lead-icon-small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.lead-name-small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.collaboration-intro {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.lead-highlight-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.lead-highlight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lead-highlight-label {
    color: #10b981;
    font-weight: 600;
}

.lead-highlight-name {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Navigation & Footer CSP Fixes */
.nav-projects-active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
}

.notif-badge-hidden {
    display: none;
}

/* CSP Compliance Classes */
.hero-section-padding {
    padding: 2rem 0 4rem 0;
    position: relative;
    z-index: 10;
}

.hero-content-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge-container {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.hero-accent-text {
    color: #10b981;
}

.quick-actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.stat-number-active {
    color: #10b981;
}

.stat-number-completed {
    color: #3b82f6;
}

.stat-number-incubation {
    color: #f59e0b;
}

.stat-number-hackathons {
    color: #8b5cf6;
}

.tab-section-relative {
    position: relative;
    z-index: 10;
}

.tab-content-section {
    padding: 0 0 0 0;
    position: relative;
    z-index: 10;
}

.loading-container {
    text-align: center;
    grid-column: 1 / -1;
}

.loading-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.loading-spinner-green {
    color: #10b981;
}

.loading-spinner-purple {
    color: #8b5cf6;
}

.loading-spinner-orange {
    color: #f59e0b;
}

.form-max-width {
    max-width: 800px;
    margin: 0 auto;
}

.submission-msg-container {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.submission-msg-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    display: block !important;
}

.submission-msg-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block !important;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-textarea-resizable {
    resize: vertical;
}

.incubation-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.incubation-icon-idea {
    background: linear-gradient(135deg, #10b981, #059669);
}

.incubation-icon-mentor {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.incubation-icon-launch {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Class toggling states for JS */
.tab-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

.filter-btn.active {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
}

.modal-backdrop.active {
    display: flex !important;
}

.opacity-50 {
    opacity: 0.5;
}

/* =========================
   Premium Modal System
   ========================= */

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.3s ease-out;
    overscroll-behavior: contain;
}

.modal-content-premium {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.15);
    animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom scrollbar for modal */
.modal-content-premium::-webkit-scrollbar {
    width: 8px;
}

.modal-content-premium::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.modal-content-premium::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content-premium::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.modal-inner-padding {
    padding: 2.5rem;
}

.modal-title-vibrant {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.modal-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-stat-pill i {
    color: #60a5fa;
    font-size: 0.9rem;
}

.modal-stat-pill:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.modal-section-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-section-title i {
    color: #3b82f6;
    width: 24px;
    text-align: center;
}

.modal-text-content {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 1.05rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-tech-tag {
    padding: 0.6rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.modal-tech-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.modal-actions-bar {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-action-btn {
    padding: 0.875rem 2.5rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.modal-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

/* Specific adjustments for forms in modals */
.modal-form-glass {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-field-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0.5rem;
}

.modal-input-glass {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-input-glass:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modal-input-glass option {
    background: #0f172a;
    color: white;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .project-card,
    .btn,
    .glass-input,
    .tab-btn,
    .filter-btn {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .pulse {
        animation: none !important;
    }

    .fade-in-up,
    .slide-in-right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .spinner {
        animation: none !important;
    }
}
