
:root {
    --background-color: linear-gradient(135deg, #0f0f2d, #1e1e4f, #2d2d7f);
    --text-color: #fff;
    --accent-color: #8e7cff;
    --card-bg: rgba(255, 255, 255, 0.98);
    --anim: cubic-bezier(0.75, 0, 0.36, 0.9);
    --shadow-color: rgba(142, 124, 255, 0.2);
}

* {
    color-scheme: dark;
    font-size: large;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card, .skill-card, .text {
    opacity: 0;
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

html {
    scroll-behavior: auto;
}

body {
    background-image: var(--background-color);
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

h1, p, h2 {
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #fff, #a0a0ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

mark {
    background: rgba(255, 255, 255, 0.15);
    border: 5px solid rgba(255, 255, 255, 0);
    border-radius: 12px;
    color: var(--text-color);
    padding: 0.2rem 0.5rem;
    transition: background 0.3s ease;
}

span:hover, mark:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-bar {
    width: auto;
    display: flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    margin: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

.header-bar:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.header-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.header-info {
    margin-left: 1rem;
}

.header-role {
    font-size: 16px;
    color: var(--accent-color);
    margin-top: 4px;
}

.header-bar img {
    width: 50px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.header-bar img:hover {
    transform: scale(1.1);
}

.line {
    margin: 40px auto;
    height: 1px;
    max-width: 95%;
    background-color: rgba(255, 255, 255, 0.2);
}

.section-about,
.section-projects,
.section-skills {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about,
.skills,
.projects-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.skills::before,
.projects-container::before,
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
    pointer-events: none;
}

.skills:hover::before,
.about:hover::before,
.projects-container:hover::before {
    left: 100%;
}

.skills-flex {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    height: 133px;
    width: 150px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
}

.skill-card span {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 0;
}

.projects-header h1 {
    font-size: 2rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 1rem;
}

.projects-header p {
    font-size: 1rem;
    color: rgb(240, 240, 240);
    line-height: 1.6;
}

.projects {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(
            250px,
            1fr
        )
    );
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 20rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.project-card::after {
    content: '';
    position: absolute;
    top: -70%;
    right: -100%;
    width: 200%;
    height: 150%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(142, 124, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.6s;
}

.project-card:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.project-img img {
    width: 120px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-title {
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(120deg, #fff, #a0a0ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

.project-description {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1.5rem 1.5rem;
}

.project-status {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem 1.5rem;
    color: #ffffff;
}

.project-bar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(142, 124, 255, 0.1);
    color: var(--text-color);
    padding: 0.5rem 0 0.5rem 1rem;
    width: 120px;
    border-radius: 12px;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(142, 124, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(142, 124, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-bar:hover {
    background: rgba(142, 124, 255, 0.15);
    border-color: rgba(142, 124, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(142, 124, 255, 0.15);
}

.status-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-radius: 8px;
    position: relative;
}

.status-icon::before {
    content: '';
    transform: translate(-50%, -50%);
}

.status-icon.success::before {
    content: '✓';
    background: linear-gradient(120deg, #fff, #a0a0ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    font-weight: bold;
}

.status-icon.fail::before {
    content: '✕';
    background: linear-gradient(120deg, #fff, #a0a0ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    font-weight: bold;
}

footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-top: 3rem;
}

.contact {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.contact img:hover {
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.copyright p {
    margin: 0.3rem 0;
}

@media (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr;
    }
    
    .header-bar {
        margin: 0.5rem;
        padding: 0.8rem;
    }
    
    .text {
        padding: 1.5rem;
    }
}