:root {
    --primary: #6F0EFA;
    --primary-light: #8e42fa;
    --primary-dark: #4b00c4;
    --bg: #0a0a0a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);

    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-snappy: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --shadow-glow: 0 0 20px rgba(111, 14, 250, 0.4), 0 0 40px rgba(111, 14, 250, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    background-color: var(--bg);
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #0a0a0a, #160733, #0a0a0a, #14002e);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientBG 15s ease infinite;
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to avoid cutoff on mobile */
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.parallax-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(111, 14, 250, 0.5);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
        scale: 1;
    }

    80% {
        opacity: 0.6;
        scale: 1;
    }

    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: float 20s infinite linear, morph 15s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

.purple-blob {
    background: var(--primary);
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    top: -10%;
    right: -10%;
    animation-delay: -5s;
}

.dark-blob {
    background: #1a023a;

    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    bottom: -20%;
    left: -10%;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-5%, 5%) scale(1.1) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}



.layout-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
    /* Increased top padding since body is flex-start */
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
}

.layout-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
    justify-content: center;
}

.left-column {
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-column {
    flex: 1.5;
    width: 100%;
    display: flex;
    flex-direction: column;
}


.fade-in {
    opacity: 0;
    animation: fadeInContainer 1s ease forwards;
}

@keyframes fadeInContainer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.profile-image-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, var(--primary), var(--primary-light)) border-box;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-snappy);
}

.profile-image:hover {
    transform: scale(1.05);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    z-index: 1;
    animation: pulse 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    text-align: center;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    text-align: center;
}



.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 14, 250, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: 0;
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.link-icon {
    font-size: 1.5rem;
    color: var(--text);
    transition: color var(--transition-fast);
}

.link-card:hover .link-icon {
    color: var(--primary-light);
}

.link-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.link-arrow {
    font-size: 1.25rem;
    opacity: 0.5;
    transition: all var(--transition-snappy);
    position: relative;
    z-index: 1;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translate(4px, -4px);
    color: var(--primary-light);
}



.projects-section {
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    align-self: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 4px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-snappy);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.project-image {
    width: 100%;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-snappy);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(111, 14, 250, 0.4);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-fast);
}

.project-overlay i {
    font-size: 2rem;
    color: white;
    transform: translateY(20px);
    transition: transform var(--transition-snappy);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-overlay i {
    transform: translateY(0);
}

.project-info {
    padding: 1.25rem;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.project-card:hover .project-info h3 {
    color: var(--primary-light);
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}


.footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    opacity: 0.7;
}



.staggered-item {
    opacity: 0;
    transform: translateY(20px);
}


.staggered-item.show {
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 860px) {
    .layout-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .left-column {
        max-width: 100%;
        width: 100%;
    }

    .right-column {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .layout-wrapper {
        padding: 2rem 1.25rem;
    }

    .profile-image-container {
        width: 90px;
        height: 90px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 1rem 1.25rem;
    }

    .link-title {
        font-size: 1rem;
    }
}