@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-deep: #0b0d13;
    --bg-panel: #0f1118;
    --accent: #d9a441;
    --muted: #cbd5e1;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 20% 20%, #131521 0%, #0b0d13 40%),
                radial-gradient(circle at 80% 0%, #141824 0%, #0b0d13 45%),
                #0b0d13;
    color: #e2e8f0;
    min-height: 100vh;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.hero-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10,11,15,0.3) 0%, rgba(11,13,19,0.85) 100%);
}

.hero-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.95);
    transform: scale(1.01);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.35) 20%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 90px;
    gap: 12px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-panel);
    border: 1.5px solid rgba(217, 164, 65, 0.85);
    border-radius: 10px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    grid-column: span var(--c);
    grid-row: span var(--r);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55);
}

.gallery-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.1);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f8fafc;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-caption span {
    color: rgba(255, 255, 255, 0.72);
}

.gallery-caption i {
    color: var(--accent);
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

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

.blur-protection {
    filter: blur(18px);
    opacity: 0.1;
}

.about-section {
    position: relative;
    background: linear-gradient(180deg, rgba(6,8,12,0.95) 0%, rgba(8,10,15,0.9) 100%);
    overflow: hidden;
}

.display-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.about-hero {
    position: relative;
    background-image: linear-gradient(90deg, rgba(7,9,14,0.88) 0%, rgba(7,9,14,0.72) 45%, rgba(7,9,14,0.18) 100%), url('./axel.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 55px rgba(0,0,0,0.55);
    overflow: hidden;
}

.about-overlay-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08) 0, transparent 30%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0, transparent 25%),
                radial-gradient(circle at 60% 70%, rgba(255,255,255,0.06) 0, transparent 28%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.about-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
    padding: 48px;
}

.about-left {
    grid-column: span 6;
    display: grid;
    gap: 18px;
    max-width: 520px;
}

.about-right {
    grid-column: span 6;
    position: relative;
    min-height: 460px;
}

.about-title {
    color: #f54d4d;
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.about-subtitle {
    color: #5fb3ff;
    font-size: 1.2rem;
    font-weight: 600;
}

.about-heading {
    color: #f54d4d;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.about-body {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 0.98rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.about-list li {
    position: relative;
    padding-left: 18px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.about-list li::before {
    content: "•";
    color: #f54d4d;
    position: absolute;
    left: 0;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #f54d4d;
    color: #0b0d13;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    letter-spacing: 0.05em;
    box-shadow: 0 14px 35px rgba(245,77,77,0.35);
    width: fit-content;
}

.skill-cluster {
    position: absolute;
    bottom: 22px;
    left: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    max-width: 540px;
    padding: 8px;
    background: linear-gradient(90deg, rgba(7,9,14,0.75), rgba(7,9,14,0.35));
    border: 1px solid rgba(245, 77, 77, 0.32);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.skill-node {
    position: relative;
    padding: 12px 12px 10px;
    border: 1.4px solid rgba(245, 77, 77, 0.8);
    color: #f8fafc;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(7,9,14,0.6);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.skill-node span {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2px;
}

.skill-node.connector::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 24px;
    height: 1.2px;
    background: rgba(245, 77, 77, 0.8);
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .about-content {
        padding: 32px 28px;
    }
    .about-left {
        grid-column: span 12;
    }
    .about-right {
        grid-column: span 12;
        min-height: 520px;
    }
    .skill-cluster {
        position: relative;
        left: 0;
        bottom: 0;
        padding: 0;
        max-width: 100%;
        border: none;
        background: none;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }
    .about-subtitle {
        font-size: 1rem;
    }
    .about-content {
        padding: 26px 20px;
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-auto-rows: 80px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 160px;
    }
    .gallery-card {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }
}

#events-menu a {
    text-transform: uppercase;
}

[data-events-toggle] {
    text-transform: uppercase;
}
