* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at 18% 10%, rgba(0, 216, 255, .20), transparent 30rem),
        radial-gradient(circle at 90% 20%, rgba(124, 92, 255, .18), transparent 28rem),
        linear-gradient(135deg, #040713, #07111f 55%, #03060c);
    color: #eef4ff;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* стеклянные панели (y2k + modern) */
.glassy {
    background: rgba(18, 25, 45, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(0, 216, 255, 0.25);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,.06);
}

header {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
    transition: 0.2s;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: 'Courier New', 'Fira Code', monospace;
    display: inline-block;
    position: relative;
    color: #d6e6ff;
    text-shadow: 0 0 5px #2a6f9f;
}

/* лёгкий глитч-эффект при наведении */
.glitch:hover {
    animation: glitch 0.3s infinite;
}
@keyframes glitch {
    0% { transform: skew(0deg, 0deg); opacity: 1; text-shadow: 2px 0 #ff00c1, -2px 0 #00e0ff; }
    20% { transform: skew(2deg, 1deg); text-shadow: -2px 0 #ff00c1, 2px 0 #00e0ff; }
    40% { transform: skew(-2deg, -0.5deg); text-shadow: 2px 0 #ff00c1, -2px 0 #00e0ff; }
    60% { transform: skew(1deg, -1deg); }
    80% { transform: skew(-1deg, 0.5deg); }
    100% { transform: skew(0deg, 0deg); text-shadow: none; }
}

.sub {
    font-size: 1rem;
    color: #9bb4e0;
    border-top: 1px solid rgba(100, 180, 250, 0.4);
    display: inline-block;
    padding-top: 0.5rem;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border-left: 4px solid #3cc;
    padding-left: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.work-card {
    background: rgba(12, 18, 28, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    border: 1px solid rgba(80, 160, 220, 0.3);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: #6aa9ff;
    box-shadow: 0 10px 25px -8px rgba(0, 160, 255, 0.2);
}

.work-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #11161f;
    display: block;
}

.no-img {
    width: 100%;
    height: 180px;
    background: #0e1420;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #3f6a9a;
}

.work-info {
    padding: 1.2rem;
}

.work-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-family: monospace;
    letter-spacing: -0.3px;
}

.work-desc {
    font-size: 0.85rem;
    color: #b8c7f0;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.work-type {
    font-size: 0.7rem;
    background: #1f2a3e;
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.9rem;
    color: #9cc;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e2b3c;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid #2c4b6e;
}

.download-btn:hover {
    background: #2a4260;
    border-color: #5aa9dd;
}

.socials {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
}

.socials a {
    color: #cfdfff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
}

.socials a:hover {
    color: white;
    background: rgba(80, 160, 255, 0.2);
    transform: translateY(-2px);
}

.loader {
    text-align: center;
    padding: 3rem;
    color: #88aaff;
}

@media (max-width: 640px) {
    h1 { font-size: 2.6rem; }
    .grid { gap: 1rem; }
    .socials { gap: 0.8rem; }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
}
.container { position: relative; z-index: 1; }
.hero-links { margin: -1.4rem 0 3rem; }
.feature-card {
    display: block;
    padding: 1.35rem 1.5rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(0,216,255,.28);
    background: linear-gradient(135deg, rgba(0,216,255,.12), rgba(124,92,255,.12));
    color: #eef7ff;
    text-decoration: none;
    box-shadow: 0 20px 70px rgba(0,0,0,.24);
    transition: .22s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0,216,255,.72); box-shadow: 0 18px 80px rgba(0,216,255,.15); }
.feature-card span, .feature-card em { display: block; color: #9eb6d9; font-style: normal; }
.feature-card strong { display: block; margin: .2rem 0; font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: -.04em; }
.feature-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: #00d8ff !important; font-weight: 800; }
