:root {
    --primary: #f000e0;
    --primary-light: #f000e0;
    --primary-dark: #c400a7;
    --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(250, 14, 218, 0.4), 0 0 40px rgba(255, 67, 224, 0.1);
}

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

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);
    }
}

.glass-pane {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    pointer-events: none;
    overflow: hidden;
}

.glass-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: glassShine 8s infinite linear;
}

@keyframes glassShine {
    0% {
        left: -100%;
    }

    15% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.shape-1 {
    width: 180px;
    height: 240px;
    top: 15%;
    left: 8%;
    animation: floatGlass1 20s infinite ease-in-out alternate;
}

.shape-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    bottom: 12%;
    right: -5%;
    background: rgba(255, 255, 255, 0.02);
    animation: floatGlass2 25s infinite ease-in-out alternate;
    animation-delay: -5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 35%;
    right: 15%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(255, 255, 255, 0.05);
    animation: floatGlass3 18s infinite ease-in-out alternate;
    animation-delay: -2s;
}

@keyframes floatGlass1 {
    0% {
        transform: translateY(0) rotate(-15deg) scale(1);
    }

    50% {
        transform: translateY(-40px) rotate(0deg) scale(1.05);
    }

    100% {
        transform: translateY(20px) rotate(-30deg) scale(0.95);
    }
}

@keyframes floatGlass2 {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(40px) rotate(20deg) scale(1.1);
    }

    100% {
        transform: translateY(-20px) rotate(-10deg) scale(0.9);
    }
}

@keyframes floatGlass3 {
    0% {
        transform: translateY(0) rotate(25deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(45deg) scale(1.02);
    }

    100% {
        transform: translateY(30px) rotate(5deg) scale(0.98);
    }
}



.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;
    }
}

/* Custom Purple Mouse Cursor */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
    margin: -6px 0 0 -6px;
    transition: background-color 0.2s, transform 0.2s;
    mix-blend-mode: screen;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    margin: -20px 0 0 -20px;
    transition: width 0.3s, height 0.3s, margin 0.3s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 10px rgba(240, 0, 224, 0.3) inset, 0 0 10px rgba(240, 0, 224, 0.3);
}

.custom-cursor.hover {
    transform: scale(0.5);
    background-color: #fff;
    box-shadow: 0 0 15px #fff;
}

.custom-cursor-follower.hover {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    background-color: rgba(240, 0, 224, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (hover: none) and (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}

/* Contact Section */
.contact-section {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-snappy);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 0, 224, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #25d366;
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-button {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 600px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .contact-icon {
        margin: 0 auto;
    }
}