:root {
    --bg-color: #0f0f13;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --accent-color: #7d5fff;
    --accent-glow: rgba(125, 95, 255, 0.5);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: purple;
    animation: move1 25s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: blue;
    animation: move2 30s infinite alternate-reverse;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: magenta;
    animation: move3 28s infinite alternate;
}

@keyframes move1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60vw, 20vh) scale(1.1);
    }

    66% {
        transform: translate(20vw, 80vh) scale(0.9);
    }

    100% {
        transform: translate(80vw, 10vh) scale(1.05);
    }
}

@keyframes move2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-50vw, -40vh) rotate(180deg);
    }

    100% {
        transform: translate(-20vw, 20vh) rotate(360deg);
    }
}

@keyframes move3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-30vw, 40vh) scale(1.2);
    }

    50% {
        transform: translate(40vw, -30vh) scale(0.8);
    }

    75% {
        transform: translate(-20vw, -20vh) scale(1.1);
    }

    100% {
        transform: translate(10vw, 30vh) scale(1);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography & Header */
h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.site-logo {
    width: 240px;
    height: 240px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(125, 95, 255, 0.6));
    animation: fadeIn 1s ease-out forwards;
}

/* Glass Components */
.glass-panel {
    background: linear-gradient(rgba(15, 15, 19, 0.8), rgba(15, 15, 19, 0.9)),
        url('../assets/header-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2rem;
}

.glass-panel .site-logo {
    margin-bottom: 0;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.glass-panel-content {
    flex-grow: 1;
}

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

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--glass-highlight);
    background: rgba(255, 255, 255, 0.08);
}

.card-image-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link-text {
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.card-link-text::after {
    content: '→';
    transition: transform 0.3s;
}

.glass-card:hover .card-link-text::after {
    transform: translateX(5px);
}

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

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.profile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.profile-link:hover {
    color: var(--text-primary);
    background: var(--glass-highlight);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }
}