*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: scroll;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #f0eaf8;
    background-color: #080810;
    background-image:
        radial-gradient(circle at 15% 40%, rgba(120, 40, 200, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(160, 60, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(200, 80, 20, 0.07) 0%, transparent 40%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: auto;
    overflow-y: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

input,
textarea,
select {
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
}

a {
    text-decoration: none;
    color: inherit;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2d0a5e;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #b06ef5;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(176, 110, 245, 0.2);
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #b06ef5;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(176, 110, 245, 0.2);
}

.hideAll {
    display: none !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0e0518 0%, #110820 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(140, 50, 220, 0.2);
    z-index: 1000;
    border-bottom: 1px solid rgba(160, 80, 240, 0.25);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand,
.click-home {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 20px rgba(160, 80, 240, 0.7),
                 0 2px 8px rgba(0, 0, 0, 0.4);
}

.brand:hover,
.brand:focus,
.click-home:hover,
.click-home:focus {
    color: #c084fc;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.9),
                 0 0 50px rgba(160, 80, 240, 0.6),
                 0 2px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #e8e0f5;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #c084fc 0%, #7c3aed 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.8),
                0 4px 8px rgba(124, 58, 237, 0.4);
}

.main-nav a:hover,
.main-nav a:focus {
    color: #c084fc;
    text-shadow: 0 0 15px rgba(192, 132, 252, 0.6);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

.main-nav a:visited {
    color: #e8e0f5;
}

main {
    margin-top: 5rem;
    padding: 2rem 1rem;
}

.hero-section {
    max-width: 1200px;
    margin: 5rem auto 5rem;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, #1a1030 0%, #0e0820 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(140, 50, 220, 0.12),
                0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(160, 80, 240, 0.18);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(140, 50, 220, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-image-wrapper {
    margin: 0 auto 2.5rem;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
    padding: 5px;
    box-shadow: 0 0 40px rgba(160, 80, 240, 0.7),
                0 0 80px rgba(140, 50, 220, 0.35),
                0 12px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: all 0.4s ease;
    animation: profileGlow 3s ease-in-out infinite;
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(160, 80, 240, 0.7),
                    0 0 80px rgba(140, 50, 220, 0.35),
                    0 12px 32px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
    50% {
        box-shadow: 0 0 60px rgba(192, 132, 252, 0.9),
                    0 0 120px rgba(160, 80, 240, 0.5),
                    0 16px 40px rgba(0, 0, 0, 0.6),
                    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    }
}

.profile-image-wrapper:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 0 70px rgba(192, 132, 252, 1),
                0 0 130px rgba(160, 80, 240, 0.6),
                0 20px 50px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text {
    color: #ddd6f0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: left;
}

.hero-text:last-child {
    margin-bottom: 0;
}

.portfolio-section,
.contact-section,
.skills-section,
.about-section {
    scroll-margin-top: 5.5rem;
}

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto 4.5rem;
    padding: 0 1rem;
}

.portfolio-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(160, 80, 240, 0.6),
                 0 2px 8px rgba(0, 0, 0, 0.4);
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.project-card {
    background: linear-gradient(135deg, #18102a 0%, #100c1e 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 1px rgba(160, 80, 240, 0.12) inset;
    border: 1px solid rgba(160, 80, 240, 0.12);
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(160, 80, 240, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover,
.project-card:focus-within,
.project-card:active {
    transform: translateY(-12px);
    box-shadow: 0 0 40px rgba(160, 80, 240, 0.45),
                0 20px 40px rgba(0, 0, 0, 0.6),
                0 0 1px rgba(192, 132, 252, 0.35) inset;
    border-color: rgba(192, 132, 252, 0.45);
}

.project-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #2a1a40 0%, #1a1030 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
}

.project-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-placeholder img {
    transform: scale(1.1);
}

.project-card figcaption {
    padding: 1.75rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 10, 35, 0.85) 0%, rgba(10, 6, 18, 0.95) 100%);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: #ffffff;
    margin-bottom: 0.125rem;
    text-shadow: 0 0 10px rgba(160, 80, 240, 0.4);
}

.project-sub {
    font-size: 0.85rem;
    color: #c4b0e0;
    font-weight: 400;
}

.contact-section {
    max-width: 700px;
    margin: 8rem auto 8rem;
    padding: 3.5rem 3rem;
    background: linear-gradient(135deg, #0c0818 0%, #07050f 100%);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(140, 50, 220, 0.18),
                0 0 1px rgba(160, 80, 240, 0.22) inset;
    border: 1px solid rgba(160, 80, 240, 0.22);
}

.contact-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(160, 80, 240, 0.6);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(160, 80, 240, 0.35);
    border-radius: 16px;
    background-color: rgba(20, 10, 35, 0.5);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(160, 80, 240, 0.35);
    border-radius: 16px;
    background-color: rgba(20, 10, 35, 0.5);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 160px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.2),
                0 0 30px rgba(160, 80, 240, 0.35);
    background-color: rgba(20, 10, 35, 0.7);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(220, 200, 255, 0.35);
}

.submit-button {
    display: block;
    width: auto;
    margin: 2.5rem auto 0;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(192, 132, 252, 0.6);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(160, 80, 240, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(160, 80, 240, 0.35);
}

.submit-button:hover,
.submit-button:focus-visible {
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.7),
                0 8px 25px rgba(160, 80, 240, 0.5);
    border-color: #c084fc;
}

.about-section {
    max-width: 960px;
    margin: 8rem auto 8rem;
    padding: 4rem 5rem 4.5rem;
    background: linear-gradient(135deg, #1a1030 0%, #0e0820 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(140, 50, 220, 0.12),
                0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(160, 80, 240, 0.18);
}

.about-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(160, 80, 240, 0.6),
                 0 2px 8px rgba(0, 0, 0, 0.4);
}

.about-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c084fc 0%, #7c3aed 100%);
    border-radius: 2px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.7);
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.about-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.about-image-col .profile-image-wrapper {
    margin: 0;
}

.resume-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 2px solid rgba(192, 132, 252, 0.6);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(160, 80, 240, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 16px rgba(160, 80, 240, 0.3);
    white-space: nowrap;
}

.resume-button:hover,
.resume-button:focus-visible {
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.7),
                0 6px 20px rgba(160, 80, 240, 0.5);
    border-color: #c084fc;
}

.about-text {
    flex: 1;
}

.about-text .hero-text {
    color: #ddd6f0;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    text-align: left;
    max-width: 520px;
    padding: 0 0.5rem;
}

.about-text .hero-text:last-child {
    margin-bottom: 0;
}

.skills-section {
    max-width: 1200px;
    margin: 0 auto 8rem;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, #f8f4ff 0%, #ede8f8 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(100, 30, 180, 0.12),
                0 0 1px rgba(160, 80, 240, 0.1) inset;
    border: 1px solid rgba(160, 80, 240, 0.12);
}

.skills-section h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #1a0a2e;
}

.skills-columns,
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.skills-column {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
    padding: 2.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(100, 30, 180, 0.1),
                0 0 1px rgba(160, 80, 240, 0.08) inset;
    border: 1px solid rgba(160, 80, 240, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 7rem;
}

.skills-column:hover,
.skills-column:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(100, 30, 180, 0.18),
                0 0 1px rgba(160, 80, 240, 0.15) inset;
}

.skills-column h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a0a2e;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.skills-column ul {
    padding-left: 1.5rem;
    list-style: disc;
}

.skills-column li {
    color: #2a1a3e;
    font-size: 0.975rem;
    line-height: 2;
    margin-bottom: 0.625rem;
}

.skills-column li:last-child {
    margin-bottom: 0;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.25rem;
    list-style: none;
    padding-left: 0;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2a1a3e;
    font-size: 0.95rem;
    line-height: 1.4;
}

.skill-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.project-page {
    max-width: 820px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #e8e0f8;
}

.project-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-header {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 0.25rem;
    text-align: center;
}

.project-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    letter-spacing: 1px;
}

.project-subtitle {
    font-size: 0.95rem;
    color: #c4b0e0;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
    opacity: 0.8;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    background: none;
    border-radius: 0;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}

.project-meta-item strong {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #9a80b8;
    text-transform: uppercase;
    opacity: 0.7;
}

.project-meta-item span {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.project-image-placeholder {
    margin: 1.5rem 0 2rem;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    border: none;
    padding: 0;
}

.project-image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.overview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0;
    border: none;
}

.project-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #c084fc;
    margin: 0.5rem 0 0.1rem 0;
    letter-spacing: 0.3px;
}

.project-content p {
    font-size: 0.92rem;
    color: #c8bedd;
    line-height: 1.65;
    margin: 0;
    opacity: 0.9;
}

.project-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
}

.feature-box {
    flex: 1;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(160, 80, 240, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.feature-box:hover {
    border-color: rgba(192, 132, 252, 0.4);
    transform: none;
    box-shadow: none;
}

.feature-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c084fc;
    margin: 0 0 0.2rem 0;
}

.feature-box p {
    font-size: 0.8rem;
    color: #c8bedd;
    margin: 0;
    opacity: 0.7;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(192, 132, 252, 0.3);
    background: rgba(45, 10, 94, 0.4);
    color: #ffffff;
    letter-spacing: 0.03em;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.tech-tag img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.tech-tag:hover {
    border-color: rgba(192, 132, 252, 0.6);
    transform: none;
    box-shadow: none;
}

.project-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: none;
}

.project-link {
    font-size: 0.78rem;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    border: 1px solid rgba(192, 132, 252, 0.4);
    background: rgba(160, 80, 240, 0.1);
    color: #ffffff;
    letter-spacing: 0.08em;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.project-link:first-child {
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
    border-color: #c084fc;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.4);
}

.project-link:first-child:hover,
.project-link:first-child:focus-visible {
    background: linear-gradient(135deg, #d0a0ff 0%, #9b59f5 100%);
    border-color: #d0a0ff;
    box-shadow: 0 0 24px rgba(192, 132, 252, 0.65);
    transform: none;
}

.project-link:hover,
.project-link:focus-visible {
    background: rgba(192, 132, 252, 0.25);
    border-color: rgba(192, 132, 252, 0.7);
    transform: none;
    box-shadow: none;
}

.code-caption {
    font-size: 0.85rem;
    color: #9a80b8;
    margin: 0 0 0.75rem;
    opacity: 0.85;
}

.code-block {
    position: relative;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.code-lang {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.08);
    padding: 0.3rem 0.85rem;
    border-bottom: 1px solid rgba(192, 132, 252, 0.15);
    width: 100%;
}

.code-block pre {
    margin: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #c8bedd;
    line-height: 1.75;
    white-space: pre;
}

.back-to-portfolio {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    background: none;
    border-radius: 0;
}

.back-to-portfolio a,
.click-portfolio {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #c4b0e0;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

.back-to-portfolio a:hover,
.click-portfolio:hover {
    opacity: 1;
    background: none;
    transform: none;
}

.site-footer {
    background: linear-gradient(135deg, #0c0818 0%, #07050f 100%);
    padding: 3rem 1rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(160, 80, 240, 0.22);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(140, 50, 220, 0.12);
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(160, 80, 240, 0.45))
            drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
}

.social-links a:hover img,
.social-links a:focus-visible img {
    filter: drop-shadow(0 0 20px rgba(192, 132, 252, 0.9))
            drop-shadow(2px 2px 12px rgba(160, 80, 240, 0.65));
    transform: translateY(-4px);
}

.site-footer small {
    color: #ddd6f0;
    font-size: 0.925rem;
    font-weight: 600;
}

.copyright {
    color: #ddd6f0;
    font-size: 0.875rem;
    opacity: 0.75;
}

@media (max-width: 1024px) {
    .project-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .header-container { padding: 1rem 1.5rem; flex-wrap: wrap; }
    .brand, .click-home { font-size: 1rem; }
    .main-nav { gap: 2rem; }
    .main-nav a { font-size: 0.8rem; padding: 0.4rem 0; }
    main { margin-top: 4.5rem; padding: 1.5rem 1rem; }

    .hero-section { padding: 3rem 2rem; margin-bottom: 3.5rem; }
    .profile-image-wrapper { width: 140px; height: 140px; }
    .hero-text { font-size: 0.95rem; }

    .portfolio-section { margin-bottom: 3.5rem; }
    .portfolio-section h2 { font-size: 1.6rem; margin-bottom: 2.75rem; margin-top: 2rem; }
    .project-container { grid-template-columns: 1fr; gap: 2rem; }

    .contact-section { padding: 3rem 2.5rem; margin-bottom: 3.5rem; }
    .contact-section h2 { font-size: 1.4rem; margin-bottom: 2.5rem; }
    .form-group { margin-bottom: 1.75rem; }
    .form-group input, .form-group textarea { padding: 0.875rem 1.25rem; font-size: 0.9rem; }
    .submit-button { padding: 0.875rem 2rem; font-size: 0.9rem; }

    .about-section { padding: 3rem 2.5rem; margin-bottom: 3.5rem; }
    .about-section h2 { font-size: 1.6rem; }
    .about-inner { flex-direction: column; align-items: center; gap: 2rem; }
    .about-image-col { width: 100%; align-items: center; }
    .about-inner .profile-image-wrapper { margin: 0 auto; }
    .about-text .hero-text { max-width: 100%; padding: 0; }

    .skills-section { padding: 3rem 2rem; margin-bottom: 3.5rem; }
    .skills-section h2 { font-size: 1.6rem; margin-bottom: 2.75rem; }
    .skills-columns, .skills-container { grid-template-columns: 1fr; gap: 1.25rem; }
    .skills-column { padding: 2rem; margin-bottom: 0; }
    .skills-column h3 { font-size: 1.05rem; }
    .skills-column li { font-size: 0.925rem; }

    .social-links { gap: 2rem; }

    .project-page { padding: 0 0.75rem; margin: 1rem auto 2rem; }
    .project-content { padding: 1.75rem 1.5rem; }
    .project-header h1 { font-size: 1.6rem; }
    .project-meta { gap: 1.5rem; }
    .project-content h2 { font-size: 1.15rem; }
    .project-content h3 { font-size: 0.95rem; }
    .overview-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .project-links { justify-content: flex-start; }
    .project-features { flex-direction: column; }
    .feature-box { min-width: unset; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .header-container { padding: 0.875rem 1rem; }
    .brand, .click-home { font-size: 0.9rem; letter-spacing: 1.5px; }
    .main-nav { gap: 1.25rem; }
    .main-nav a { font-size: 0.725rem; letter-spacing: 1px; padding: 0.3rem 0; }
    main { margin-top: 4rem; padding: 1rem 0.75rem; }

    .hero-section { padding: 2.5rem 1.5rem; margin-bottom: 3rem; border-radius: 16px; }
    .profile-image-wrapper { width: 120px; height: 120px; margin-bottom: 2rem; }
    .hero-text { font-size: 0.925rem; line-height: 1.7; }

    .portfolio-section { margin-bottom: 3rem; padding: 0 0.5rem; }
    .portfolio-section h2 { font-size: 1.45rem; letter-spacing: 2.5px; margin-bottom: 2.5rem; }
    .project-container { gap: 1.75rem; }
    .project-card { border-radius: 12px; }
    .project-placeholder { height: 200px; }
    .project-card figcaption { padding: 1.5rem 1.25rem; }
    .project-title { font-size: 0.825rem; letter-spacing: 2px; }
    .project-sub { font-size: 0.8rem; }

    .contact-section { padding: 2.5rem 2rem; margin-bottom: 3rem; border-radius: 16px; }
    .contact-section h2 { font-size: 1.35rem; letter-spacing: 2px; margin-bottom: 2.25rem; }
    .form-group { margin-bottom: 1.5rem; }
    .form-group label { font-size: 0.9rem; margin-bottom: 0.5rem; }
    .form-group input, .form-group textarea { padding: 0.825rem 1.125rem; font-size: 0.9rem; }
    .form-group textarea { min-height: 130px; border-radius: 14px; }
    .submit-button { width: 100%; padding: 0.875rem 2rem; font-size: 0.875rem; margin-top: 2rem; }

    .about-section { padding: 2.5rem 1.5rem; margin-bottom: 3rem; border-radius: 16px; }
    .about-section h2 { font-size: 1.45rem; letter-spacing: 2.5px; margin-bottom: 2rem; }
    .about-inner { flex-direction: column; align-items: center; gap: 1.75rem; }
    .about-image-col .profile-image-wrapper { width: 120px; height: 120px; margin: 0 auto; }
    .about-text .hero-text { font-size: 0.925rem; line-height: 1.75; max-width: 100%; padding: 0; }

    .skills-section { padding: 2.5rem 1.5rem; margin-bottom: 3rem; border-radius: 16px; }
    .skills-section h2 { font-size: 1.45rem; letter-spacing: 2.5px; margin-bottom: 2.5rem; }
    .skills-columns, .skills-container { gap: 1.25rem; }
    .skills-column { padding: 1.75rem; border-radius: 14px; margin-bottom: 0; }
    .skills-column h3 { font-size: 1rem; margin-bottom: 1.25rem; }
    .skills-column ul { padding-left: 1.25rem; }
    .skills-column li { font-size: 0.9rem; line-height: 1.85; margin-bottom: 0.5rem; }

    .site-footer { padding: 2.5rem 1rem 1.75rem; }
    .social-links { gap: 1.75rem; margin-bottom: 1.75rem; }
    .social-links a img { width: 32px; height: 32px; }
    .copyright { font-size: 0.825rem; }

    .project-page { padding: 0 0.5rem; margin: 0.75rem auto 2rem; }
    .project-content { padding: 1.5rem 1.25rem; }
    .project-header h1 { font-size: 1.4rem; }
    .project-meta { gap: 1.25rem; }
    .project-links { flex-direction: column; }
    .project-link { text-align: center; }
}