/* General Body Styles - Harmonized for both pages */
body {
    overflow-y: auto; /* Allows vertical scrolling */
    background-color: #0a0a0a; /* Deep dark background */
    color: #00ff41; /* Green text for hacker aesthetic */
    font-family: 'Source Code Pro', monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    perspective: 1000px; /* Crucial for 3D effects */
}

/* Scrollbar Styling */
body::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
}

body::-webkit-scrollbar-track {
    background: #1a1a1a; /* Dark track background */
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: #00ff41; /* Green thumb */
    border-radius: 10px;
    border: 2px solid #0a0a0a; /* Dark border around thumb */
    box-shadow: 0 0 8px #00ff41; /* Green glow */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #00cc33; /* Darker green on hover */
    box-shadow: 0 0 15px #00ff41; /* More intense glow on hover */
}


/* Animation Containers - Fixed position for consistent background across scroll */
#code-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 0;
    overflow: hidden;
}

#sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 1; /* Above code snippets, below content */
    overflow: hidden;
}

/* Code Particle Styles and Animation */
.code-particle {
    position: absolute;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.8em;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.7);
    animation: fly-particle linear forwards;
}

@keyframes fly-particle {
    0% {
        opacity: 0;
        transform: translate3d(var(--start-x, 0), var(--start-y, 0), var(--start-z, 0)) scale(1);
        filter: blur(0px);
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--end-x, 0), var(--end-y, 0), var(--end-z, 0)) scale(0.5);
        filter: blur(2px);
    }
}

/* Sparkle Particle Styles and Animation */
.sparkle-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #00ff41;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41;
    animation: sparkle-fade-out linear forwards;
}

@keyframes sparkle-fade-out {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) translateY(-20px);
    }
}

/* Animation for logo rolling effect (from index-styles) */
@keyframes roll-around-center {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Navigation Bar Styles */
.navbar {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-bottom: 1px solid #00ff41;
    position: sticky; /* Stays at top while scrolling */
    top: 0;
    z-index: 10;
}

.navbar-brand .text-light {
    color: #00ff41 !important;
    text-shadow: 0 0 8px #00ff41;
}

.navbar-brand .text-secondary {
    color: #00cc33 !important;
}

.nav-link {
    color: #00ff41 !important;
    text-shadow: 0 0 5px #00ff41;
}

.nav-link:hover {
    color: #00cc33 !important;
    text-shadow: 0 0 10px #00cc33;
}

/* Header Styles (from index-styles) */
header {
    position: relative;
    z-index: 5;
    padding-top: 100px;
    padding-bottom: 100px;
}

.badge {
    background-color: rgba(0, 255, 65, 0.2) !important;
    color: #00ff41 !important;
    border: 1px solid #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

.text-gradient {
    background: linear-gradient(45deg, #00ff41, #33ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
}

h1 {
    color: #e0e0e0;
    text-shadow: 0 0 15px #00ff41;
}

.text-muted {
    color: #999999 !important;
}

.btn-primary {
    background-color: #00ff41;
    border-color: #00ff41;
    color: #0a0a0a;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00cc33;
    border-color: #00cc33;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

.btn-outline-secondary {
    border-color: #00ff41;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.profile-img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.7);
}

/* About Section Styles (from index-styles) */
.about-section {
    background-color: rgba(10, 10, 10, 0.8);
    border-top: 1px solid #00ff41;
    border-bottom: 1px solid #00ff41;
    position: relative;
    z-index: 5;
}

/* Footer Styles */
.footer {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-top: 1px solid #00ff41;
    position: relative;
    z-index: 10;
    color: #00ff41;
}

.social-icons a {
    color: #00ff41;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #00cc33;
    text-shadow: 0 0 10px #00ff41;
}

#avatar-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(0, 255, 65, 0.1);
    border: 2px solid #00ff41;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.7);
    position: relative;
    z-index: 6;
    animation: roll-around-center 5s linear infinite;
}

#avatar-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Project Section Styles (from projects.css) */
.project-section {
    background-color: rgba(10, 10, 10, 0.8);
    border-top: 1px solid #00ff41;
    border-bottom: 1px solid #00ff41;
    position: relative;
    z-index: 5;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.project-item {
    margin-bottom: 60px;
    align-items: center;
}

.project-image-container {
    border: 2px solid #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-image-container:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 1), 0 0 40px rgba(0, 255, 65, 0.5);
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.project-title {
    color: #e0e0e0;
    text-shadow: 0 0 10px #00ff41;
}

.project-description {
    color: #999999;
}
