/* --- New Font & Body Styles --- */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- New Rule to Disable AOS Animations on Subsequent Visits --- */
body.aos-disabled-visit [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.gradient-background {
    background: linear-gradient(-45deg, #02040a, #111827, #0b0f19, #1e1b3a);
    background-size: 400% 400%;
    animation: gradientAnimation 30s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

main {
    flex-grow: 1;
}

#main-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

#main-header.scrolled .navbar {
    background: rgba(17, 24, 39, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #059669;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background-color: #047857;
}

/* --- Global Styles --- */
.text-accent { 
    color: #059669 !important; 
}

.navbar-brand .text-accent { 
    font-weight: bold; 
}

.nav-link.active { 
    color: #fff !important; 
    font-weight: 500; 
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* --- "Glassmorphism" Component Styles --- */
.card, .bg-body-tertiary {
    background: rgba(27, 30, 48, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.card-img-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Content Styles --- */
.content h2, 
.content h3 {
    color: var(--bs-body-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content p {
    color: var(--bs-secondary-color);
    line-height: 1.7;
}

.content a {
    color: var(--bs-info);
    text-decoration: none;
}
.content a:hover {
    text-decoration: underline;
}

.content img, 
.content figure {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1.5rem 0;
}

.content blockquote {
    border-left: 3px solid #059669;
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--bs-secondary-color);
    margin: 1.5rem 0;
}

.content ul, 
.content ol {
    padding-left: 2rem;
    color: var(--bs-secondary-color);
}

.content pre {
    background-color: var(--bs-tertiary-bg);
    padding: 1rem;
    border-radius: 0.25rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.content code {
    font-size: 0.9em;
}