.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.hero-content {
    position: relative;
    z-index: 300;
    max-width: 800px;
    margin: 0 auto;
}

.blob-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5); /* Scale up to avoid edges */
    width: 100%;
    height: 100%;
    min-width: 800px; /* Ensure minimum size */
    min-height: 800px;
    z-index: 250;
    opacity: 0.6;
    pointer-events: none; /* Prevent blob from interfering with interactions */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blob-background {
        transform: translate(-50%, -50%) scale(2); /* Scale up more on mobile */
    }
}

/* Rotating Tags */
.rotating-tags {
    margin-top: 2rem;
    text-align: center;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tag-container {
    position: relative;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rotating-tag {
    position: absolute;
    font-weight: 500;
    color: #6366f1;
    white-space: nowrap;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

/* Position states for circular effect */
.rotating-tag.far-right {
    opacity: 0;
    transform: translateX(400px) scale(0.6);
}

.rotating-tag.right {
    opacity: 0.4;
    transform: translateX(250px) scale(0.75);
    font-size: 1.1rem;
}

.rotating-tag.center {
    opacity: 1;
    transform: translateX(0) scale(1);
    font-size: 1.6rem;
}

.rotating-tag.left {
    opacity: 0.4;
    transform: translateX(-250px) scale(0.75);
    font-size: 1.1rem;
}

.rotating-tag.far-left {
    opacity: 0;
    transform: translateX(-400px) scale(0.6);
}

@media (max-width: 768px) {
    .rotating-tag {
        font-size: 1rem;
    }
    
    .rotating-tag.center {
        font-size: 1.4rem;
    }
    
    .rotating-tag.right, .rotating-tag.left {
        font-size: 0.9rem;
    }
    
    .rotating-tag.right {
        transform: translateX(160px) scale(0.75);
    }
    
    .rotating-tag.left {
        transform: translateX(-160px) scale(0.75);
    }
    
    .rotating-tag.far-right {
        transform: translateX(280px) scale(0.6);
    }
    
    .rotating-tag.far-left {
        transform: translateX(-280px) scale(0.6);
    }
}

/* Matrix Code Rain Effect */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.matrix-column {
    position: absolute;
    top: -100px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #dbd5bd;
    line-height: 1.2;
    white-space: pre;
    animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* Responsive matrix */
@media (max-width: 768px) {
    .matrix-column {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .matrix-column {
        font-size: 10px;
    }
}

section {
    position: relative;
    z-index: 2;
    background: transparent;
}

.about, .experience, .projects, .contact {
    position: relative;
    z-index: 2;
    background-color: transparent !important;
    background: none !important;
}

.about-content, .experience-content, .projects-content, .contact-content {
    position: relative;
    z-index: 3;
    background: transparent !important;
}

/* Sparkle Effect for Skill Tags */
.skill-tag {
    position: relative;
    overflow: visible;
}

.star {
    --star-size: 12px;
    --star-life: 1s;
    
    --start-left: 0px;
    --start-top: 0px;
    
    --end-left: 0px;
    --end-top: 0px;
    
    --star-color: #ADBDFF;
    
    width: var(--star-size);
    height: var(--star-size);
    left: var(--end-left);
    top: var(--end-top);
    background: var(--star-color);
    position: absolute;
    z-index: -1;
    mix-blend-mode: lighten;
    animation: sparkle-slide var(--star-life) ease-out forwards;
    pointer-events: none;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star:after {
    display: none;
}

@keyframes sparkle-slide {
    0% {
        left: var(--start-left);
        top: var(--start-top);
        transform: rotate(0deg);
        opacity: 0;
    }
    100% {
        left: var(--end-left);
        top: var(--end-top);
        transform: rotate(calc(180deg * var(--star-life-num))) scale(0.5);
        opacity: 1;
    }
}