:root {
    --bg-dark: #03071f;
    --bg-gradient-start: #020518;
    --bg-gradient-end: #081a40;
    --primary-pink: #ff6b9d;
    --secondary-purple: #c44569;
    --accent-blue: #6db9ff;
    --text-light: #f8f9fa;
    --text-muted: #c5d2ea;
    --glow-pink: rgba(255, 107, 157, 0.6);
    --glow-blue: rgba(109, 185, 255, 0.5);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 9, 30, 0.7), rgba(8, 26, 60, 0.75));
    z-index: -5;
    pointer-events: none;
}

.background-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
    pointer-events: none;
}

/* Decorative corner GIFs */
.corner-gif {
    position: absolute;
    top: 0.75rem;
    width: clamp(5rem, 12vw, 10rem);
    z-index: 0;
    pointer-events: none;
    animation: pulseCorner 8s ease-in-out infinite;
    --corner-rotate: rotate(0deg);
    transform: var(--corner-rotate);
}

.corner-gif img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 15px 45px rgba(10, 14, 39, 0.6);
}

.corner-gif--left {
    left: 0.75rem;
    --corner-rotate: rotate(-12deg);
}

.corner-gif--right {
    right: 0.75rem;
    --corner-rotate: rotate(12deg);
}

@keyframes pulseCorner {
    0%,
    100% {
        transform: var(--corner-rotate) translateY(0);
    }
    50% {
        transform: var(--corner-rotate) translateY(-6px);
    }
}

/* Floating Name Background */
.name-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: clamp(8rem, 20vw, 18rem);
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
    z-index: 0;
    pointer-events: none;
    animation: floatName 20s ease-in-out infinite;
    letter-spacing: 0.1em;
    user-select: none;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

@keyframes floatName {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -52%) rotate(5deg);
    }
}

/* Stars Background */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="white" opacity="0.25"/></svg>') repeat;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="white" opacity="0.18"/></svg>') repeat;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1.5" fill="white" opacity="0.12"/></svg>') repeat;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.glitch {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--primary-pink);
    position: relative;
    text-shadow: 
        0 0 10px var(--glow-pink),
        0 0 20px var(--glow-pink),
        0 0 40px var(--glow-pink);
    animation: glowPulse 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--glow-pink),
            0 0 20px var(--glow-pink),
            0 0 40px var(--glow-pink);
    }
    50% {
        text-shadow: 
            0 0 20px var(--glow-pink),
            0 0 40px var(--glow-pink),
            0 0 60px var(--glow-pink),
            0 0 80px var(--glow-pink);
    }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

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

/* Section Titles */
.section-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

.code-bracket {
    color: var(--primary-pink);
    font-weight: 700;
}

/* Sections */
.hearts-section,
.commits-section,
.memes-section {
    margin: 5rem 0;
    animation: fadeInUp 1s ease-out backwards;
}

.hearts-section {
    animation-delay: 0.4s;
}

.commits-section {
    animation-delay: 0.6s;
}

.memes-section {
    animation-delay: 0.8s;
}

/* Love Counter */
.love-counter {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--primary-pink);
    font-weight: 600;
}

#love-count {
    display: inline-block;
    min-width: 2ch;
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 6rem;
    border-top: 2px solid rgba(255, 107, 157, 0.2);
}

.footer p {
    margin: 1rem 0;
    color: var(--text-muted);
}

.code-text {
    font-family: 'Space Mono', monospace;
    color: var(--accent-blue);
    font-size: 1.1rem;
    background: rgba(79, 172, 254, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .name-background {
        font-size: clamp(6rem, 15vw, 10rem);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-pink);
    color: white;
}

::-moz-selection {
    background: var(--primary-pink);
    color: white;
}
