* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    min-height: 100vh;
    padding: 42px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.main-logo {
    width: min(900px, 96vw);
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

h1 {
    font-size: 3.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 42px;
    color: #b0b0b0;
    font-weight: 300;
    letter-spacing: 1px;
}

.project-selection {
    display: flex;
    gap: 34px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
}

.project {
    background: linear-gradient(145deg, #333333, #1a1a1a);
    border: 2px solid #444444;
    border-radius: 20px;
    padding: 30px 30px 32px;
    width: 350px;
    text-align: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.45s;
}

.project:hover::before {
    left: 100%;
}

.project:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: #666666;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.78),
        0 0 40px rgba(255, 255, 255, 0.14);
}

.project h3 {
    font-size: 1.45rem;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.project-media {
    width: 100%;
    height: 200px;
    margin-bottom: 24px;
    border-radius: 14px;
    overflow: hidden;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project:hover img {
    transform: scale(1.08);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #2f2f2f, #1a1a1a);
    color: #b0b0b0;
    font-weight: 600;
}

.project a {
    display: inline-block;
    background: linear-gradient(45deg, #4a4a4a, #666666);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #666666, #888888);
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
    }
}

@media (max-width: 960px) {
    .main-logo {
        width: min(740px, 96vw);
    }

    h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 640px) {
    main {
        padding: 26px 12px 36px;
    }

    .main-logo {
        width: min(540px, 99vw);
        max-height: 180px;
    }

    h1 {
        font-size: 2.15rem;
        margin-bottom: 12px;
    }

    h2 {
        margin-bottom: 30px;
        font-size: 1.45rem;
    }

    .project {
        width: min(380px, 100%);
        padding: 22px 20px 24px;
    }

    .project-media {
        height: 180px;
    }
}
