@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&display=swap');

:root {
    --bg-color: #050505;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #8b5cf6;
    /* Light purple */
    --accent-color-hover: #a78bfa;
    --card-bg: rgba(255, 255, 255, 0.01);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-border: rgba(139, 92, 246, 0.3);
    --blur: blur(16px);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

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

body {
    font-family: 'Inter', "Noto Serif JP", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color-hover);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Header */
header {
    position: fixed;
    top: 20px;
    /* Default slightly down */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    /* Match main */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: none;
    z-index: 1000;
    transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.3s ease;
    /* Bouncy transition */
}

/* Header state when scrolled */
header.scrolled {
    top: 0;
    padding: 0.8rem 2rem;
}

header img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
    /* 外側の光 */
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.3);
    /* 画像にも内光っぽく */
}

header img:hover {
    transform: rotate(10deg);
    border-color: var(--accent-color);
}

header nav ul {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    /* ちょっと四角めに */
    padding: 0.7rem 1.2rem;
    /* 高さを少し大きく */
    box-shadow: inset 0 3px 4px -2px rgba(255, 255, 255, 0.6);
    /* 上部のみの強い内光 */
}

header nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    /* 内側もそれに合わせた丸みに */
    border: 1px solid transparent;
    /* ホバー時のガタつき防止 */
    transition: var(--transition);
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

#getintouch {
    background: linear-gradient(135deg, var(--accent-color), #6d28d9);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    /* 内光と外光 */
    transition: var(--transition);
}

#getintouch:hover {
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.6);
    color: #fff;
}

#getintouch:active i {
    transform: translateX(5px);
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    /* padding-top: 100px; */
    /* Space for fixed header */
}

/* Hero Section */
#hero-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        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: 60px 60px;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 60%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: fit-content;
}

#hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

#hero-section-projects {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    letter-spacing: 0.5px;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

#hero-section h1 {
    /* 5分の3 */
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#hero-section-name {
    background: linear-gradient(135deg, #d8b4fe 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.2));
    transition: filter 0.4s ease;
}

#hero-section-name:hover {
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.7)) drop-shadow(0 0 50px rgba(139, 92, 246, 0.3));
}

#hero-section p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

#hero-section-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
}

#hero-section-about {
    font-size: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.3rem;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), inset 0 2px 4px -1px rgba(255, 255, 255, 0.2);
    /* 内光と外光 */
}

#hero-section-about:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), inset 0 2px 8px -1px rgba(255, 255, 255, 0.4);
}

#hero-section-about:active i {
    transform: translateX(5px);
}

#hero-section-bottom ul {
    display: flex;
    gap: 1.2rem;
}

#hero-section-bottom ul li a {
    font-size: 1.6rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), inset 0 2px 4px -1px rgba(255, 255, 255, 0.15);
    /* 内光と外光 */
    transition: var(--transition);
    overflow: hidden;
}

#hero-section-bottom ul li a:hover {
    color: #fff;
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.2);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

#hero-section-bottom ul li i {
    font-size: 1.2rem;
}

#hero-section-bottom ul li a .social-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}

/* Bento Box Layout for About */
#about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    grid-gap: 1.5rem;
    margin-bottom: 8rem;
    position: relative;
}

#about-top-right {
    grid-column: 1 / 3;
    grid-row: 1;
}

#about-top-left {
    grid-column: 3 / 4;
    grid-row: 1;
}

#about-bottom-left {
    grid-column: 1 / 2;
    grid-row: 2;
}

#about-bottom-right {
    grid-column: 2 / 4;
    grid-row: 2;
}

#about::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

#about>div {
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05), inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

#about>div h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 100;
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

#about>div h3 i {
    color: var(--accent-color);
    font-size: 1rem;
    /* background: rgba(139, 92, 246, 0.1); */
    padding: 0.8rem;
    border-radius: 12px;
}

/* Stacks */
#about-top-left {
    display: flex;
    flex-direction: column;
}

#about-top-left ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

#about-top-left ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05), inset 0 0 10px rgba(255, 255, 255, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    /* 抑えめの白色内光・外光 */
}

#about-top-left ul li img {
    height: 32px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Fav Games */
#about-top-right ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#about-top-right ul li {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1), inset 0 3px 8px -2px rgba(255, 255, 255, 0.2);
    /* 内外光 */
}

#about-top-right-fortnite {
    cursor: pointer;
}

#about-top-right ul li img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

#about-top-right ul li:hover img {
    filter: brightness(1.2);
}

/* OMORI Animation */
@keyframes flicker {
    0% {
        filter: brightness(1) contrast(1);
    }

    30% {
        filter: brightness(1) contrast(1);
    }

    35% {
        filter: brightness(0.2) contrast(1.5) sepia(0.5);
        transform: perspective(100px) translateZ(10px);
    }

    40% {
        filter: brightness(0) contrast(2);
    }

    45% {
        filter: brightness(0.4) contrast(1.2) hue-rotate(-20deg);
        transform: perspective(100px) translateZ(-5px);
    }

    50% {
        filter: brightness(1) contrast(1);
        transform: none;
    }

    100% {
        filter: brightness(1) contrast(1);
    }
}

#about-top-right-omori img {
    animation: flicker 6s infinite;
}

/* Who am I? */
#about-bottom-left ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#about-bottom-left ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    line-height: 1.7;
}

#about-bottom-left ul li::before {
    content: "\f0da";
    /* FontAwesome play icon for custom bullet */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1rem;
    top: 2px;
}

/* Profile Info */
#about-bottom-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about-bottom-right-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

#about-bottom-right-name-career {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#about-bottom-right-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

#about-bottom-right>div:last-child {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: none;
    box-shadow: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

#about-bottom-right>div:last-child i {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Projects Section */
#work {
    margin-bottom: 8rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.project,
.work {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%); */
    border: 1px solid var(--card-border);
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05), inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.project-top {
    flex: none;
    height: 250px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.work-top {
    flex: none;
    height: 180px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.project-top img,
.work-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0.2;
    filter: grayscale(1) brightness(0.5);
}

.project:hover .project-top img,
.work:hover .work-top img {
    opacity: 0.35;
    filter: grayscale(0) brightness(0.5);
}

.project-bottom {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.work-bottom {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.project-bottom h4,
.work-bottom h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    font-weight: 600;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-bottom p,
.work-bottom p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Blog Section Styles */
#blog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 8rem;
    padding-top: 2rem;
    min-height: 200px;
    /* Prevent collapse during load */
}

.blog-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

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

    100% {
        transform: rotate(360deg);
    }
}

.blog-post {
    /* background: var(--card-bg); */
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05), inset 0 1px 3px rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.corner-ribbon {
    position: absolute;
    top: 12px;
    right: -32px;
    width: 120px;
    background: rgba(139, 92, 246, 0.3);
    color: transparent;
    height: 1.5rem;
    transform: rotate(45deg);
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.blog-post.featured {
    grid-column: 1 / -1;
    padding: 3rem;
    gap: 1.2rem;
}

.blog-post.featured .blog-date {
    font-size: 1rem;
    opacity: 0.8;
}

.blog-post.featured h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.blog-post.featured p {
    font-size: 1.1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.blog-post h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: var(--transition);
}

/* Removed hover color change as requested */

.blog-post p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* Links Section */
#links {
    margin-bottom: 8rem;
}

#links ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

#links ul li {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.03), inset 0 0 10px rgba(255, 255, 255, 0.15);
}

#links ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
}

#links ul li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 1;
    transition: var(--transition);
}

/* Hide empty elements if work is TODO */
.work-top:empty {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(139, 92, 246, 0.1));
}

/* Footer */
footer {
    padding: 3rem 4rem;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: none;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer p {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-weight: 100;
}

footer img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

footer ul {
    display: flex;
    gap: 1.5rem;
}

footer p a:hover {
    color: var(--accent-color) !important;
    transform: none !important;
}

footer ul li a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

footer ul li a i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 50%, #4b5563 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: none !important;
    transition: none !important;
}

footer ul li a:hover,
footer ul li a:hover i {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 50%, #4b5563 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

footer ul li a .social-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}

/* FontAwesome Icons Subtle Direct Light */
i[class*="fa-"] {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes victorySlide {
    0% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.8);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px) scale(0.9);
    }
}

.victory-overlay {
    position: fixed;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 600px;
    max-width: 90vw;
    pointer-events: none;
    animation: victorySlide 5s forwards;
}

.victory-overlay img {
    width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    #hero-section h1 {
        font-size: 4rem;
    }

    #about {
        grid-template-columns: 1fr;
    }

    .works-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    #about-top-left,
    #about-top-right,
    #about-bottom-left,
    #about-bottom-right {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    #about::after {
        display: none;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 2rem;
        text-align: center;
    }

    footer p {
        flex-direction: column;
        gap: 0.5rem;
    }

    header {
        padding: 1.2rem 2rem;
    }

    header nav {
        display: none;
    }
}

@media (max-width: 576px) {
    #hero-section h1 {
        font-size: 3rem;
    }

    #hero-section p {
        font-size: 1.1rem;
    }

    #about>div {
        padding: 2rem;
    }

    main {
        padding: 0 1.5rem;
        padding-top: 100px;
    }

    .blog-post.featured h3 {
        font-size: 1.5rem;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    header {
        padding: 1rem 1.5rem;
    }
}