.projects-page {
    min-height: 100vh;
    background: var(--bg-body);
    padding-top: 6rem;
}

.projects-header {
    text-align: center;
    padding: 3rem 10% 2rem;
    background: var(--bg-body);
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
}

.projects-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.projects-section {
    padding: 2rem 5%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
    border: 1px solid rgba(0,0,0,0.04);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-detail-page {
    min-height: 100vh;
    background: var(--bg-body);
    padding: 6rem 5% 4rem;
}

.project-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease-out;
}

.project-detail-header {
    margin-bottom: 2rem;
}

.project-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.project-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.project-details {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-description {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.project-video {
    margin: 2rem 0;
}

.project-video iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    border: none;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-block {
    padding: 1.2rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.info-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-block p {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.info-block a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.info-block a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.team-section-project {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.team-section-project h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

.team-section-project ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.team-section-project li {
    background: var(--bg-body);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.team-section-project li:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.team-section-project li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.team-section-project li:hover a {
    color: white;
}

.back-link-project {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-link-project:hover {
    color: var(--primary-hover);
    transform: translateX(-5px);
}

.modern-form {
    margin-top: 2rem;
}

.modern-form .input-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.modern-form input[type="text"],
.modern-form input[type="url"],
.modern-form input[type="file"],
.modern-form textarea,
.modern-form select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-body);
    color: var(--text-main);
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.modern-form input:focus,
.modern-form textarea:focus,
.modern-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
    background: white;
    outline: none;
}

.modern-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modern-form select {
    cursor: pointer;
}

.modern-form input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.modern-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.modern-form .checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-body);
}

.modern-form .checkbox-group label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
}

.modern-form .checkbox-group label:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .project-detail-container {
        padding: 2rem 1.5rem;
    }
    
    .project-detail-header h1 {
        font-size: 2rem;
    }
    
    .project-info-grid {
        grid-template-columns: 1fr;
    }
    
    .project-video iframe {
        height: 250px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    position: relative;
    z-index: 50;
}