/* ===============================
   STUDENT PROJECTS PAGE STYLES
   (Адаптировано под Clean Blue стиль + улучшенные отступы)
   =============================== */

/* Общий фон страницы */
body {
    background: var(--white);
    font-family: 'Inter', sans-serif;
}

/* ==================== HERO ==================== */
.projects-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    margin-bottom: 60px;           /* увеличил отступ снизу */
}

.projects-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.projects-hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.projects-hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 24px;           /* улучшен отступ */
    background: linear-gradient(135deg, #ffffff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 400;
}

/* ==================== CONTAINER ==================== */
.projects-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== GRID ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 36px;                     /* увеличил расстояние между карточками */
    margin-top: -30px;
}

/* ==================== PROJECT CARD ==================== */
.project-card {
    background: linear-gradient(135deg, var(--white), var(--gray-light));
    border-radius: 28px;
    border: 1px solid rgba(47, 128, 237, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 28px 55px rgba(47, 128, 237, 0.18);
    border-color: rgba(47, 128, 237, 0.28);
}

/* Изображение */
.project-image {
    height: 240px;                 /* немного увеличил высоту для лучшей пропорции */
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-light), #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 4rem;
    opacity: 0.65;
}

/* Тело карточки */
.project-body {
    padding: 36px 32px;            /* увеличил внутренние отступы */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Теги */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.project-tag {
    padding: 6px 16px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(47, 128, 237, 0.2);
}

/* Заголовок */
.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 18px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--blue-dark);
}

/* Описание */
.project-description {
    color: var(--gray);
    font-size: 0.975rem;
    line-height: 1.7;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* Футер карточки */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(47, 128, 237, 0.1);
    margin-top: auto;
}

.project-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
}

.project-link {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    color: var(--blue-dark);
    gap: 10px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 32px;
    }

    .project-body {
        padding: 32px 28px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        min-height: 65vh;
        border-radius: 0 0 24px 24px;
        margin-bottom: 40px;
    }

    .projects-hero-title {
        font-size: 2.5rem;
    }

    .projects-hero-subtitle {
        font-size: 1.125rem;
    }

    .project-card {
        border-radius: 24px;
    }

    .project-image {
        height: 210px;
    }

    .project-body {
        padding: 30px 26px;
    }

    .projects-grid {
        gap: 28px;
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    .projects-hero-title {
        font-size: 2.15rem;
    }

    .projects-grid {
        gap: 24px;
    }

    .project-body {
        padding: 26px 22px;
    }

    .project-image {
        height: 200px;
    }
}