/* Enhanced Visual Effects for Home Page */

/* Cyber Grid Background */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 255, 65, 0.03) 50%,
            transparent 100%);
    animation: glitchSweep 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes glitchSweep {

    0%,
    90%,
    100% {
        transform: translateX(-100%);
    }

    10%,
    80% {
        transform: translateX(100vw);
    }
}

/* Scan Lines */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.05) 2px,
            rgba(0, 255, 65, 0.05) 4px);
    animation: scanMove 3s linear infinite;
    z-index: 1;
}

@keyframes scanMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Background Shapes */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 50%;
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    border-radius: 0;
    transform: rotate(45deg);
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 70%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

@keyframes shapeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
}

/* Enhanced Title Effects */
.title-container {
    position: relative;
    margin: 0;
    /* No margins */
}

.glitch-text {
    position: relative;
    display: inline-block;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    /* Ensure name is visible */
    z-index: 1;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    /* Reduce opacity so main text shows through */
}

.glitch-text::before {
    animation: glitch1 3s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch2 3s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch1 {

    0%,
    95%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    2% {
        transform: translate(-1px, 1px);
        opacity: 0.8;
    }

    4% {
        transform: translate(-1px, -1px);
        opacity: 0;
    }
}

@keyframes glitch2 {

    0%,
    95%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    3% {
        transform: translate(1px, 1px);
        opacity: 0.8;
    }

    5% {
        transform: translate(1px, -1px);
        opacity: 0;
    }
}

/* Typing Container */
.typing-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: 'Fira Code', monospace;
}

.typing-prefix {
    color: #00ff41;
    font-weight: bold;
    font-size: 1.2em;
}

.typing-text {
    color: #007bff !important;
    /* Force blue color */
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5) !important;
    font-family: 'Fira Code', monospace;
    min-height: 1.5em;
    /* Prevent layout shift */
}

.cursor-blink {
    color: #007bff;
    /* Blue cursor to match text */
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Enhanced Description */
.hero-description-container {
    position: relative;
    margin: 0;
    /* No margins */
}



.highlight-text {
    color: inherit;
    /* Use normal text color instead of green */
    font-weight: 600;
    text-shadow: none;
    /* Remove green glow */
}

/* Removed conflicting typing keyframes - handled by JavaScript */

/* Enhanced Badges */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    /* No margins */
}

.animated-badge {
    position: relative;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.05));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 25px;
    color: #00ff41;
    font-weight: 500;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: badgeGlow 3s ease-in-out infinite;
    animation-delay: calc(var(--badge-index, 0) * 0.2s);
}

.animated-badge::before {
    content: attr(data-icon);
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.animated-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 255, 65, 0.1));
}

.animated-badge:hover::before {
    left: 10px;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    }
}

/* Enhanced Buttons */
.enhanced-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    border: none;
    border-radius: 30px;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.4);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.enhanced-btn:hover .btn-particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: particleExplode 0.6s ease-out;
}

@keyframes particleExplode {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

/* Social Links */
.hero-social {
    margin: 0;
    /* No margins */
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    color: #00ff41;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff41;
    font-size: 0.8em;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.social-link:hover::before {
    opacity: 1;
    bottom: -35px;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
}

/* Enhanced Image Container */
.enhanced-image {
    position: relative;
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.image-border {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(0, 255, 65, 0.5);
    border-radius: 20px;
    z-index: 1;
}

.border-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #00ff41;
}

.corner-tl {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    animation: cornerPulse 2s ease-in-out infinite;
}

.corner-tr {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
    animation: cornerPulse 2s ease-in-out infinite 0.5s;
}

.corner-bl {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
    animation: cornerPulse 2s ease-in-out infinite 1s;
}

.corner-br {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    animation: cornerPulse 2s ease-in-out infinite 1.5s;
}

@keyframes cornerPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.3), transparent);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 65, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: overlayMove 4s linear infinite;
}

@keyframes overlayMove {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

/* Background Floating Elements Container */
.floating-elements-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    /* Behind the main content but above background */
}

/* Enhanced Floating Elements */
.floating-element {
    position: absolute;
    font-size: 2.5em;
    color: #00ff41;
    animation: floatEnhanced 8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    z-index: 2;
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

/* Position floating elements around the hero section, not over the image */
.code-element {
    top: 20%;
    left: 10%;
}

.security-element {
    top: 15%;
    right: 15%;
}

.energy-element {
    bottom: 30%;
    left: 8%;
}

.terminal-element {
    top: 70%;
    right: 12%;
}

.bug-element {
    bottom: 15%;
    right: 18%;
}

.shield-element {
    top: 50%;
    left: 5%;
}

@keyframes floatEnhanced {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
        filter: blur(0px);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
        filter: blur(1px);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
        filter: blur(0px);
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
        filter: blur(2px);
    }
}

.element-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #00ff41;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: trailMove 2s linear infinite;
}

@keyframes trailMove {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0);
    }
}

/* Tech Orbit */
.tech-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 50%;
    animation: orbitRotate 20s linear infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
}

.ring-2 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    animation: orbitItemRotate 20s linear infinite reverse;
}

.ring-1 .orbit-item:nth-child(1) {
    top: -20px;
    left: 80px;
}

.ring-1 .orbit-item:nth-child(2) {
    top: 80px;
    left: 160px;
}

.ring-1 .orbit-item:nth-child(3) {
    top: 160px;
    left: 80px;
}

.ring-2 .orbit-item:nth-child(1) {
    top: -20px;
    left: 130px;
}

.ring-2 .orbit-item:nth-child(2) {
    top: 130px;
    left: 260px;
}

.ring-2 .orbit-item:nth-child(3) {
    top: 260px;
    left: 130px;
}

@keyframes orbitItemRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Status Bar */
.status-bar {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    z-index: 15;
    backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    color: #888;
}

.status-value {
    color: #00ff41;
    font-weight: 500;
}

.status-value.online {
    position: relative;
}

.status-value.online::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .badge-container {
        justify-content: center;
    }

    .animated-badge {
        font-size: 0.9em;
        padding: 0.6rem 1.2rem;
    }

    .social-links {
        justify-content: center;
    }

    .status-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .tech-orbit {
        display: none;
    }

    .floating-element {
        font-size: 1.5em;
    }
}

/* Additional Visual Enhancements */

/* Animated Background Gradient */
.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(0, 255, 65, 0.05) 0%,
            transparent 25%,
            rgba(0, 255, 65, 0.03) 50%,
            transparent 75%,
            rgba(0, 255, 65, 0.05) 100%);
    animation: gradientShift 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(10px) translateY(-10px);
    }

    50% {
        transform: translateX(-5px) translateY(10px);
    }

    75% {
        transform: translateX(-10px) translateY(-5px);
    }
}

/* Enhanced Profile Image Hover Effects */
.profile-image {
    transition: all 0.5s ease;
    filter: brightness(1) contrast(1.1) saturate(1.2);
}

.profile-placeholder:hover .profile-image {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

.profile-placeholder:hover .image-glow {
    opacity: 1;
    transform: scale(1.2);
}

/* Loading Animation for Images */
.profile-image {
    opacity: 1;
    /* Changed from 0 to 1 to show image immediately */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: imageLoad 1s ease-out 0.5s forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Hero Content Animation */
.hero-content {
    animation: heroSlideIn 1.5s ease-out;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for Hero Elements */
.hero-text>* {
    opacity: 0;
    animation: elementSlideIn 0.8s ease-out forwards;
}

.title-container {
    animation-delay: 0.2s;
}

.hero-description-container {
    animation-delay: 0.4s;
}

.hero-highlights {
    animation-delay: 0.6s;
}

.hero-buttons {
    animation-delay: 0.8s;
}

.hero-social {
    animation-delay: 1s;
}

@keyframes elementSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Hover Effects for Badges */
.animated-badge:hover {
    animation-play-state: paused;
}

.animated-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.animated-badge:hover::after {
    left: 100%;
}

/* Enhanced Button Hover States */
.btn-secondary.enhanced-btn {
    background: linear-gradient(135deg, transparent, rgba(0, 255, 65, 0.1));
    border: 2px solid #00ff41;
    color: #00ff41;
}

.btn-secondary.enhanced-btn:hover {
    background: linear-gradient(135deg, #00ff41, #00cc33);
    color: #000;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
    .tech-orbit {
        transform: translate(-50%, -50%) scale(0.8);
    }

    .floating-element {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .home-section {
        padding: 70px 1rem 2rem !important;
        min-height: 100vh;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    .hero-text {
        order: 2;
        width: 100%;
    }

    .hero-image {
        order: 1;
        flex: none !important;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .glitch-text {
        font-size: 2rem;
    }

    .typing-container {
        justify-content: center;
    }

    .status-bar {
        position: relative;
        margin-top: 4rem;
        bottom: auto;
        left: auto;
        transform: none;
    }

    .hero-social {
        margin-bottom: 0.3rem;
    }

    /* Adjust floating elements for mobile */
    .floating-element {
        font-size: 2em;
        opacity: 0.6;
    }

    /* Reposition elements to avoid image overlap on mobile */
    .code-element {
        top: 10%;
        left: 5%;
    }

    .security-element {
        top: 10%;
        right: 5%;
    }

    .energy-element {
        bottom: 40%;
        left: 3%;
    }

    .terminal-element {
        bottom: 40%;
        right: 3%;
    }

    .bug-element {
        bottom: 10%;
        right: 8%;
    }

    .shield-element {
        bottom: 10%;
        left: 8%;
    }
}

@media (max-width: 480px) {
    .badge-container {
        gap: 0.5rem;
    }

    .animated-badge {
        font-size: 0.8em;
        padding: 0.5rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .enhanced-btn {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .status-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.8em;
    }

    /* Further adjust floating elements for small screens */
    .floating-element {
        font-size: 1.5em;
        opacity: 0.5;
    }

    /* Spread elements more around the edges */
    .code-element {
        top: 5%;
        left: 2%;
    }

    .security-element {
        top: 5%;
        right: 2%;
    }

    .energy-element {
        bottom: 45%;
        left: 1%;
    }

    .terminal-element {
        bottom: 45%;
        right: 1%;
    }

    .bug-element {
        bottom: 5%;
        right: 2%;
    }

    .shield-element {
        bottom: 5%;
        left: 2%;
    }
}

/* Dark/Light Theme Enhancements */
[data-theme="light"] .cyber-grid {
    background-image:
        linear-gradient(rgba(0, 100, 25, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 100, 25, 0.2) 1px, transparent 1px);
}

[data-theme="light"] .glitch-overlay {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 100, 25, 0.05) 50%,
            transparent 100%);
}

[data-theme="light"] .scan-lines {
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 100, 25, 0.1) 2px,
            rgba(0, 100, 25, 0.1) 4px);
}

/* Performance Optimizations */
.hero-content,
.hero-image,
.floating-elements,
.tech-orbit {
    will-change: transform;
}

.animated-badge,
.enhanced-btn,
.social-link {
    will-change: transform, box-shadow;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-element,
    .tech-orbit,
    .cyber-grid {
        animation: none !important;
    }
}

/* Research Section Enhanced Visuals */
.research-paper-card {
    position: relative;
    overflow: hidden;
}

.research-paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.research-paper-card:hover::before {
    left: 100%;
}

.research-paper-card.published::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid var(--accent-green);
    opacity: 0.7;
}

.research-paper-card.pending::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid var(--accent-blue);
    opacity: 0.7;
}

.paper-number {
    position: relative;
    z-index: 2;
}

.paper-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
    animation: numberGlow 3s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }
    100% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.status-badge {
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.keyword {
    position: relative;
    overflow: hidden;
}

.keyword::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s ease;
}

.keyword:hover::before {
    left: 100%;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.area-card {
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.area-card:hover::before {
    opacity: 1;
}

.area-icon {
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.area-card:hover .area-icon {
    filter: grayscale(0%);
    transform: scale(1.1) rotate(5deg);
}

/* Action button enhancements */
.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

/* Staggered animation for research cards */
.research-paper-card:nth-child(1) {
    animation-delay: 0.1s;
}

.research-paper-card:nth-child(2) {
    animation-delay: 0.2s;
}

.research-paper-card:nth-child(3) {
    animation-delay: 0.3s;
}

.research-paper-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Pulse animation for stat numbers */
.stat-card .stat-number {
    animation: statPulse 2s ease-in-out infinite alternate;
}

@keyframes statPulse {
    0% {
        text-shadow: 0 0 5px var(--accent-green);
    }
    100% {
        text-shadow: 0 0 15px var(--accent-green), 0 0 25px var(--accent-green);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .animated-badge,
    .enhanced-btn,
    .social-link,
    .research-paper-card,
    .action-btn {
        border-width: 3px;
    }

    .highlight-text {
        text-shadow: none;
        font-weight: bold;
        color: inherit;
        /* Ensure no green color in high contrast mode */
    }
}

/*
 Profile Image Container Fix */
.profile-placeholder {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid rgba(0, 255, 65, 0.3);
}

.avatar-icon {
    font-size: 4rem;
    color: #00ff41;
}

/* Ensure image displays properly */
.profile-image {
    display: block !important;
    position: relative;
    z-index: 2;
}

/* Mobile responsive for profile image */
@media (max-width: 768px) {
    .profile-placeholder {
        width: 220px;
        height: 220px;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .hero-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        flex: none !important;
    }
}

@media (max-width: 480px) {
    .profile-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .image-container {
        width: 180px;
        height: 180px;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .enhanced-btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}

/* Additional Floating Elements Enhancements */

/* Hover effects for floating elements */
.floating-element:hover {
    animation-play-state: paused;
    transform: scale(1.3) !important;
    opacity: 1 !important;
    filter: brightness(1.5) !important;
    cursor: pointer;
    z-index: 10;
}

/* Enhanced trail effects */
.element-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #00ff41;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: trailMove 3s linear infinite;
    opacity: 0.7;
}

@keyframes trailMove {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px #00ff41;
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -200%) scale(0.5);
        box-shadow: 0 0 5px #00ff41;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -300%) scale(0);
        box-shadow: none;
    }
}

/* Pulsing effect for floating elements */
.floating-element::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    animation: elementPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes elementPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Different colors for different elements */
.code-element {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.security-element {
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.energy-element {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.terminal-element {
    color: #00ff41;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.bug-element {
    color: #ff4757;
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}

.shield-element {
    color: #a855f7;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Update trail colors to match elements */
.code-element .element-trail {
    background: #00d4ff;
}

.security-element .element-trail {
    background: #ff6b35;
}

.energy-element .element-trail {
    background: #ffd700;
}

.terminal-element .element-trail {
    background: #00ff41;
}

.bug-element .element-trail {
    background: #ff4757;
}

.shield-element .element-trail {
    background: #a855f7;
}

/* Ensure floating elements don't interfere with text selection */
.floating-elements-bg {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Add subtle background glow to floating elements area */
.floating-elements-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%,
            rgba(0, 255, 65, 0.02) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 70%,
            rgba(0, 212, 255, 0.02) 0%,
            transparent 50%);
    z-index: -1;
}

/* Smooth transitions for all floating elements */
.floating-element {
    transition: all 0.3s ease;
}

/* Performance optimization for floating elements */
.floating-element,
.element-trail {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Hide floating elements during loading to prevent flash */
.floating-elements-bg {
    opacity: 0;
    animation: fadeInFloating 2s ease-out 1s forwards;
}

@keyframes fadeInFloating {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Fix
 overlap issues */
.home-section {
    min-height: 100vh;
    position: relative;
    padding-top: 0;
    /* No top padding */
    padding-bottom: 0;
    /* No bottom padding */
}

.hero-content {
    padding-top: 0;
    /* No top padding */
    padding-bottom: 0;
    /* No bottom padding */
}

/* Ensure proper stacking order */
.hero-social {
    position: relative;
    z-index: 5;
}

.status-bar {
    clear: both;
}

/* Additional mobile fixes */
@media (max-width: 768px) {
    .home-section {
        padding-top: 0;
        /* No top padding for mobile */
        padding-bottom: 0;
    }

    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .home-section {
        padding-top: 0;
        /* No top padding for small screens */
        padding-bottom: 0;
    }

    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-social {
        margin-top: 0.2rem;
        margin-bottom: 0.3rem;
    }
}

/* 
Ensure name is always visible */
.name-text {
    color: #ffffff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove green highlights from paragraph text */
.hero-description {
    color: inherit;
}

.hero-description .highlight-text {
    color: #ffffff;
    /* White color instead of green */
    font-weight: 600;
    text-shadow: none;
}

/* Ensure glitch effect doesn't hide the main text */
.glitch-text {
    color: #ffffff !important;
}

/* Reduce glitch effect intensity */
@media (prefers-reduced-motion: reduce) {

    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }
}

/* Na
vbar Overlap Fix */
.navbar {
    z-index: 1000;
    /* Ensure navbar is above content */
}

/* Ensure hero title is properly positioned below navbar */
.hero-title {
    margin-top: 1rem;
    position: relative;
    z-index: 5;
}

.name-text {
    display: block;
    margin-bottom: 0.5rem;
}

/* Additional spacing for very small screens */
@media (max-width: 360px) {
    .home-section {
        padding-top: 4rem;
    }

    .title-container {
        margin-top: 1.5rem;
    }
}

/* Ensure content is never hidden behind navbar */
@media (min-width: 1200px) {
    .home-section {
        padding-top: 10rem;
        /* More space on larger screens */
    }
}