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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

/* Liquid Background */
.liquid-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.liquid-bg svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
}

.wave1 {
    animation: wave 15s ease-in-out infinite;
}

.wave2 {
    animation: wave 12s ease-in-out infinite reverse;
}

.wave3 {
    animation: wave 18s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-30px) scaleY(1.1);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Liquid Blobs */
.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.blob1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    top: 50px;
    right: -50px;
    animation-delay: 5s;
}

.blob3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    bottom: -100px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Glitch Text Effect */
.glitch {
    position: relative;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glitch-skew 5s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-anim 2s infinite linear alternate-reverse;
    color: #f0f;
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim 3s infinite linear alternate-reverse;
    color: #0ff;
    z-index: -2;
}

@keyframes glitch-anim {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 5%, 0 5%);
        transform: translateX(2px);
    }
    20% {
        clip-path: polygon(0 15%, 100% 15%, 100% 25%, 0 25%);
        transform: translateX(-2px);
    }
    40% {
        clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%);
        transform: translateX(2px);
    }
    60% {
        clip-path: polygon(0 70%, 100% 70%, 100% 75%, 0 75%);
        transform: translateX(-2px);
    }
    80% {
        clip-path: polygon(0 85%, 100% 85%, 100% 95%, 0 95%);
        transform: translateX(2px);
    }
    100% {
        clip-path: polygon(0 95%, 100% 95%, 100% 100%, 0 100%);
        transform: translateX(-2px);
    }
}

@keyframes glitch-skew {
    0%, 100% {
        transform: skew(0deg);
    }
    50% {
        transform: skew(1deg);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: none;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.project-card h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #fff;
    backdrop-filter: blur(10px);
}

.project-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.project-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Liquid Cursor */
.cursor-liquid {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
    filter: blur(5px);
}

.cursor-liquid.expand {
    width: 60px;
    height: 60px;
    filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    body {
        cursor: auto;
    }

    .cursor-liquid {
        display: none;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
