:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #e2e8f0;
    --heading-color: #f8fafc;
    --bg-light: #f4f7f6;
    --bg-dark: #2c3e50;
    --animation-duration: 0.8s;
    --animation-delay-increment: 0.1s;
    --animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 15px 0;
}

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

ul {
    list-style: none;
}

h2 {
    color: var(--heading-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
}

.floating-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.floating-back-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.projects-page-content {
    flex: 1;
    padding: 40px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero-bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.projects-page-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle, rgba(6, 182, 212, 0.1) 30%, transparent 70%);
    animation: rotateGradient 30s linear infinite;
    z-index: 0;
}

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

.projects-page-content h2 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.project-list-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    overflow: visible;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.project-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-list-item:hover::before {
    opacity: 1;
}

.project-list-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.2);
}

.project-list-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.project-list-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.project-list-item .project-info {
    padding: 0;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.project-list-item h3 {
    margin: 0 0 8px;
    font-size: 1.4em;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-list-item p {
    margin-bottom: 12px;
    font-size: 1em;
    opacity: 0.9;
    line-height: 1.6;
}

.project-list-item .project-link {
    font-size: 0.9em;
    color: #06b6d4;
    transition: all 0.3s ease;
    position: relative;
}

.project-list-item .project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    transition: width 0.3s ease;
}

.project-list-item .project-link:hover {
    color: #8b5cf6;
}

.project-list-item .project-link:hover::after {
    width: 100%;
}

.site-footer-projects {
    display: none;
}

.initial-hidden {
    opacity: 0;
}

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

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.animated-content-wrapper.in-view .animate-fade-in-up { animation: fadeInUp var(--animation-duration) var(--animation-timing-function) forwards var(--animation-delay); }
.animated-content-wrapper.in-view .animate-fade-in-scale { animation: fadeInScale var(--animation-duration) var(--animation-timing-function) forwards var(--animation-delay); }
.animated-content-wrapper.in-view .animate-slide-in-left { animation: slideInLeft var(--animation-duration) var(--animation-timing-function) forwards var(--animation-delay); }
.animated-content-wrapper.in-view .animate-slide-in-right { animation: slideInRight var(--animation-duration) var(--animation-timing-function) forwards var(--animation-delay); }

.animate-item.delay-1 { --animation-delay: calc(var(--animation-delay-increment) * 1); }
.animate-item.delay-2 { --animation-delay: calc(var(--animation-delay-increment) * 2); }
.animate-item.delay-3 { --animation-delay: calc(var(--animation-delay-increment) * 3); }
.animate-item.delay-4 { --animation-delay: calc(var(--animation-delay-increment) * 4); }
.animate-item.delay-5 { --animation-delay: calc(var(--animation-delay-increment) * 5); }
.animate-item.delay-6 { --animation-delay: calc(var(--animation-delay-increment) * 6); }
.animate-item.delay-7 { --animation-delay: calc(var(--animation-delay-increment) * 7); }
.animate-item.delay-8 { --animation-delay: calc(var(--animation-delay-increment) * 8); }

@media (min-width: 768px) {
    .projects-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2em; }
    .floating-back-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2em;
        top: 15px;
        left: 15px;
    }
    .project-list-item img {
        width: 70px;
        height: 70px;
        margin-right: 15px;
    }
    .project-list-item h3 {
        font-size: 1.2em;
    }
    .project-list-item p {
        font-size: 0.85em;
    }
    .project-list-item .project-link {
        font-size: 0.8em;
    }
    .project-list-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h2 { font-size: 1.8em; }
    .floating-back-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1em;
        top: 10px;
        left: 10px;
    }
    .projects-list {
        gap: 10px;
    }
    .project-list-item img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    .project-list-item h3 {
        font-size: 1.1em;
    }
    .project-list-item p {
        font-size: 0.8em;
        margin-bottom: 3px;
    }
    .project-list-item .project-link {
        font-size: 0.75em;
    }
    .project-list-item {
        padding: 10px;
    }
}