/* MAIN ELEMENTS */
html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Sora', sans-serif;
    display: flex;
    flex-direction: column;
}
 
header {
    background: #12001e;
    padding: 25px;
}

footer {
    text-align: center;
    background-color: #3c0064;
}

footer a {
    color: #12001e;
    text-decoration: none;
}


/* SHARED */
.content {
    min-width: 520px;
    flex: 1;
    background: linear-gradient(180deg, #12001e 0%, #3c0064 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* HEADERS */
/* shared */
.home-title, .subpages-title {
    color: #3c0064;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    margin: 0;
}


/* home */
.home-title {
    font-size: 12vw;
    line-height: 0.9;
    text-align: center;
    text-shadow: 0 0 5px #000000;
}


/* subpages */
.subpage-header {
    min-width: 470px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #12001e;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: 0.25s ease;
}

.subpage-header.scrolled {
    padding: 18px 25px;
    background: rgba(18, 0, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(237, 219, 255, 0.12);
}

.subpage-title {
    margin: 0;
    line-height: 0.9;
}

.subpage-title a {
    text-decoration: none;
    line-height: 0.9;
}

.subpage-title a:hover {
    color: transparent;
    background: linear-gradient(90deg, #eddbff 0%, #eddbff 50%, #3c0064 50%, #3c0064 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    animation: colorFill 0.8s ease forwards;
}

.subpage-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subpage-nav-item {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: #eddbff;
    background: rgba(237, 219, 255, 0.08);
    line-height: 1;
    cursor: pointer;
    transition: 0.25s ease;
}

.subpage-nav-item.scrolled {
    border: 1px solid rgba(237, 219, 255, 0.10);
}

.subpage-nav-item:hover {
    border-radius: 999px;
    background: rgba(237, 219, 255, 0.18);
}

/* HOME */
.outer-container {
    width: 95%;
    margin-top: 10px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
    animation: fadeUp 0.6s ease forwards;
}

.nav {
    position: relative;
    overflow: hidden;
    display: flex;
}

.nav-card {
    width: 50%;
    padding: 1.2rem;
    border: none;
    cursor: pointer;
    background: white;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.25s ease;
}

.nav-card:not(.active):hover {
    filter: brightness(0.92);
}

.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    text-align: left;
    transition: opacity 0.2s ease, color 0.25s ease;
    opacity: 1;
}

.hero.fade-out {
    opacity: 0;
}

.hero-image {
    width: 42%;
    min-width: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.hero-text {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    flex: 1;
}

.hero-text h2 {
    margin-top: 0;
}

.hero-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}

.hero-link:hover {
    filter: brightness(0.92);
}

@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 100%;
    }
}


/* SUBPAGES */
/* shared */
.cs-card, .ph-card {
    scroll-margin-top: 76px;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 8px;
    width: calc(95% - 16px);
    max-width: 1200px;
    padding: 2rem;
    color: #000;
    border-radius: 18px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.6s ease forwards;
}

.cs-card h2, .ph-card h2 {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
}

.cs-card h2::after, .ph-card h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 220px;
    height: 3px;
    background: rgba(18, 0, 30, 0.18);
}

.cs-card, .ph-card {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.links-list {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ph-card a, .cs-card a {
    display: inline-block;
    width: fit-content;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}

.ph-card a:hover, .cs-card a:hover {
    filter: brightness(0.92);
}

.cs-card h3, .ph-card h3 {
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
}

.skill-list, .gear-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-list span, .gear-list span {
    min-width: 120px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.skill-list span:hover, .gear-list span:hover {
    transform: translateY(-2px);
}

.skill-list strong, .gear-list strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.skill-list small, .gear-list small {
    font-size: 0.78rem;
    opacity: 0.7;
    font-weight: 600;
}


/* cs */
.cs-card {
    background: #eddbff;
}

.cs-card a {
    color: #fff;
    background-color: #6b145a;
}

.skill-list span {
    background-color: #6b145a25;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.project-card {
    padding: 0.2rem 1rem 1rem 1rem;
    border-radius: 14px;
    background-color: #6b145a25;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    max-width: 320px;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto 0;
}

.project-card a {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* ph */
.ph-card {
    background: #dbedff;
}

.ph-card a {
    color: #000;
    background-color: #76bfff;
}

.gear-list span {
    background-color: #0088ff2a;
}

.gallery-grid {
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 4px;
    grid-auto-flow: dense;
    gap: 12px;
}

.gallery-item {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.16);

    transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}


/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colorFill {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}