/* Main portfolio styles - Created from homePage.html */

:root {
    --primary-color: #00BFA6;
    --secondary-color: #7B2CBF;
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --text-light: #e6e6e6;
    --card-bg: #1e1e1e;
    --header-gradient: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

/* Easter Egg: Hidden Matrix Effect - Activate with Konami Code */
.matrix-easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* NEW CUTTING-EDGE NAVBAR STYLES */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(123, 44, 191, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
}

.floating-navbar:hover {
    background: rgba(18, 18, 18, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 191, 166, 0.2);
}

.navbar-brand {
    margin-right: 20px;
    padding: 8px 16px;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background: rgba(40, 40, 40, 0.4);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    background: rgba(0, 191, 166, 0.1);
}

.nav-link-custom {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link-custom:hover {
    background: rgba(0, 191, 166, 0.1);
    color: var(--primary-color);
}

.nav-link-custom:hover::before {
    width: 70%;
}

.nav-link-custom.active {
    background: rgba(0, 191, 166, 0.15);
    color: var(--primary-color);
}

.nav-link-custom.active::before {
    width: 70%;
}

.navbar-toggler-custom {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: auto;
    display: none;
}

.navbar-toggler-custom:hover {
    background: rgba(0, 191, 166, 0.1);
}

.navbar-toggler-icon-custom {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.cv-button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.cv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 166, 0.3);
    color: white;
}

.cv-button i {
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Responsive styles */
@media (max-width: 991px) {
    .floating-navbar {
        display: flex;
        align-items: center;
        padding: 8px 12px; /* Adjusted padding */
        border-radius: 40px; /* Kept from previous mobile style */
        /* max-width: 90%; /* Already on base */
    }
    
    .navbar-toggler-custom {
        display: block;
        padding: 10px;
        margin-left: 0; /* Ensure it stays left */
        flex-shrink: 0; /* Prevent shrinking */
    }
    
    .navbar-links-container {
        /* Resetting previous mobile styles for horizontal layout */
        position: static;
        top: auto;
        left: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0; /* Links themselves will have padding */
        
        display: flex;
        flex-direction: row;
        align-items: center;
        
        width: 0; /* Start hidden */
        opacity: 0;
        visibility: hidden;
        overflow: hidden; /* Clip content during transition */
        
        margin-left: 10px; /* Space between toggler and links */
        
        transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                    opacity 0.2s 0.1s ease-out,
                    visibility 0s 0.35s; /* visibility for accessbility and interaction */
        z-index: auto; /* No longer needs separate stacking context like this */
        transform: none; /* Remove previous transforms */
    }
    
    .navbar-links-container.show {
        width: auto; /* Expand to content width */
        opacity: 1;
        visibility: visible;
        overflow-x: auto; /* Allow horizontal scroll if links overflow */
        transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                    opacity 0.2s ease-in,
                    visibility 0s 0s;
    }
    
    .nav-link-custom {
        display: inline-block; /* Horizontal layout */
        margin: 0 4px; /* Spacing between links */
        padding: 10px 8px; /* Padding for text and tap area */
        text-align: left; /* Align text to left */
        font-size: 0.85rem; /* Adjusted font size for better fit */
        white-space: nowrap; /* CRITICAL: Ensures full text is visible */
        border-radius: 18px; /* Rounded corners for links */
        /* transition for hover/active can remain from base or be specified here */
    }

    .nav-link-custom i {
        margin-right: 6px;
        font-size: 1em; /* Relative to link font size */
        vertical-align: middle; /* Better alignment */
    }
    
    /* Animated Toggler Icon (X) - This part remains from the previous version */
    .navbar-toggler-custom.active .navbar-toggler-icon-custom {
        background-color: var(--primary-color);
    }
    .navbar-toggler-custom.active .navbar-toggler-icon-custom:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .navbar-toggler-custom.active .navbar-toggler-icon-custom:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggler-custom.active .navbar-toggler-icon-custom:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.gradient-navbar {
    background: var(--header-gradient);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.section-heading {
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
    margin-bottom: 25px; /* Increased from 25px */
    margin-top: 25px; /* Added top margin for spacing */
    /* Dodatno za centriranje */
    display: inline-block;
    text-align: left;
    font-size: 1.5rem; /* Reduced font size */
    text-shadow: 0 0 8px rgba(0, 191, 166, 0.6); /* Added glow effect */
}

.section-heading::before {
    content: ">";
    margin-right: 5px;
    color: var(--secondary-color);
}

/* Dodajte novi stil za centriranje kontejnera naslova */
.heading-container {
    text-align: center;
    width: 100%;
}

/* Terminal-style text animation */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    width: 0;
    animation: typing 3.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Add this to your CSS section - moved from homePage.html */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.blink-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.profile-image {
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 191, 166, 0.5);
    transition: all 0.3s ease;
    max-width: 250px;
    animation: float 6s ease-in-out infinite;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.7);
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(var(--primary-color-rgb), 0.2);
}

.skill-card {
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-bottom-color: var(--primary-color);
}

.skill-card .card-header {
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
}

.skill-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.4);
}

.featured-project {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    overflow: hidden;
}

.project-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Ensure card images within project containers have transition and hover effect */
.project-image-container .card-img-top {
    transition: transform 0.5s ease;
    /* width: 100%; is default for card-img-top from Bootstrap */
}

.project-image-container:hover .card-img-top {
    transform: scale(1.05);
}

/* Make the image link a block element */
.project-image-link {
    display: block;
    text-decoration: none; /* Ensure no underline from the link */
}

/* Contact Form */
.contact-section {
    background-color: var(--bg-darker);
    padding: 80px 0;
    border-top: 1px solid #252525;
    position: relative;
    overflow: hidden;
}

/* Easter Egg: Circuit Board Pattern */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#333 1px, transparent 1px),
        radial-gradient(#333 1px, transparent 1px),
        linear-gradient(#222 2px, transparent 2px),
        linear-gradient(90deg, #222 2px, transparent 2px);
    background-size: 
        25px 25px,
        25px 25px,
        25px 25px,
        25px 25px;
    background-position:
        0 0,
        12.5px 12.5px,
        0 0,
        0 0;
    opacity: 0.1;
    z-index: 0;
}

.form-control {
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid #444;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(50, 50, 50, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 191, 166, 0.25);
}

.form-control::placeholder {
    color: #888;
}

.form-label {
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
}

.contact-details-card {
    height: 100%;
    background-color: rgba(30, 30, 30, 0.7);
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.contact-details-card:hover {
    border-left-color: var(--primary-color);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 191, 166, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.contact-details-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Code-inspired footer */
footer {
    background-color: var(--bg-darker);
    font-family: 'Fira Code', monospace;
    border-top: 1px solid #333;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Easter egg: hidden binary code */
.binary-code {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 8px;
    font-family: 'Fira Code', monospace;
    color: #333;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    
    .profile-image {
        max-width: 200px;
        margin-bottom: 30px;
    }
    
    .contact-details-card {
        margin-bottom: 30px;
    }

    .hero-section h1.display-4 {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
    }

    /* Removed .filter-buttons-container specific rules from here;
       base styles with flex-wrap: wrap will handle button wrapping. */

    .filter-btn {
        font-size: 0.8rem;    /* Smaller font size for better fit */
        padding: 6px 12px;    /* Adjusted padding */
        min-width: 0;         /* Allow button to shrink to its content width */
        flex-grow: 0;         /* Prevent button from growing to fill a wrapped line */
        flex-shrink: 1;       /* Allow button to shrink if space is limited */
        white-space: nowrap;  /* Prevent text inside button from wrapping to new line */
        margin-bottom: 8px;   /* Spacing for buttons that wrap to the next line */
        /* width: 100%; removed */
    }

    .filter-btn:last-child {
        margin-bottom: 0; /* Remove margin from the last button in a wrapped row or if it's the only one */
    }
}

/* Availability badge glow effect */
.glow-effect {
    box-shadow: 0 0 10px #28a745, 0 0 20px #28a745;
    animation: glow 1.5s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #28a745, 0 0 10px #28a745;
    }
    to {
        box-shadow: 0 0 10px #28a745, 0 0 20px #28a745, 0 0 30px #28a745;
    }
}

/* Text highlight effects */
.highlight-text {
    position: relative;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    font-size: 110%;
}

.highlight-primary {
    color: #41e891; /* First evergreen color */
    text-shadow: 0 0 8px rgba(65, 232, 145, 0.6);
}

.highlight-se {
    color: #00BFA6; /* Second evergreen color */
    text-shadow: 0 0 8px rgba(0, 191, 166, 0.6);
}

.highlight-ml {
    color: var(--bs-primary); /* Primary blue color */
    text-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.6);
}

/* Social links animation */
.social-link {
    position: relative;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: social-idle 3s ease-in-out infinite alternate;
}

.social-link:nth-child(1) { animation-delay: 0s; }
.social-link:nth-child(2) { animation-delay: 0.75s; }
.social-link:nth-child(3) { animation-delay: 1.5s; }
.social-link:nth-child(4) { animation-delay: 2.25s; }

.social-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bs-primary), transparent);
    transition: width 0.5s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    animation: none;
}

.social-link:hover::before {
    width: 100%;
}

.social-link:hover i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes social-idle {
    0% {
        transform: translateY(0);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: translateY(-4px);
        text-shadow: 0 0 8px rgba(65, 232, 145, 0.7);
    }
    100% {
        transform: translateY(0);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Blinking cursor animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.blink-cursor {
    animation: blink 1s step-end infinite;
}

/* Styles moved from projectCodeRagPage.html */

.project-header {
    background-color: var(--bg-darker);
    padding: 120px 0 50px;
    margin-bottom: 50px;
    position: relative;
}

.project-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(18, 18, 18, 0) 100%);
}

.project-title {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}

/* Styles for project-image specific to projectCodeRagPage */
.project-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.5s ease;
}

.project-image:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 191, 166, 0.3);
}

.project-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.03);
}

.project-meta {
    padding: 25px;
    border-left: 3px solid var(--secondary-color);
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 0 8px 8px 0;
    height: 100%;
    transition: all 0.3s ease;
}

.project-meta:hover {
    border-left-color: var(--primary-color);
    background-color: rgba(30, 30, 30, 0.7);
}

.project-meta .meta-heading {
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.tag-list {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background-color: rgba(0, 191, 166, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.project-details-section {
    padding: 50px 0;
}

.project-details h3 {
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.project-details h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--secondary-color);
}

.project-details p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-item {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-family: 'Fira Code', monospace;
}

.project-gallery {
    margin-top: 50px;
}

.gallery-heading { /* Specific style for gallery headings, often used with .section-heading */
    text-align: center;
    margin-bottom: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.related-projects {
    padding: 60px 0;
    background-color: var(--bg-darker);
}

.related-projects .section-heading { /* Overrides for .section-heading in .related-projects context */
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.related-projects .section-heading::before { /* Overrides for .section-heading::before in .related-projects context */
    content: none;
}

.related-project-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.related-project-card:hover {
    transform: translateY(-10px);
}

.related-project-image {
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-project-card:hover .related-project-image img {
    transform: scale(1.1);
}

.code-block {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #e0e0e0;
    position: relative;
    overflow-x: auto;
    margin-bottom: 25px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.code-block:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.code-block::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: #000;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 0 8px 0 8px;
}

.code-keyword {
    color: #ff79c6;
}

.code-string {
    color: #f1fa8c;
}

.code-comment {
    color: #6272a4;
}

.code-function {
    color: #50fa7b;
}

.floating-line {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.5;
    z-index: 1;
    animation: float-line 6s infinite ease-in-out;
}

@keyframes float-line {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Responsive adjustments from projectCodeRagPage.html */
@media (max-width: 767px) {
    .project-meta { /* This applies to projectCodeRagPage */
        margin-top: 30px;
        height: auto;
    }
    
    .related-project-image { /* This applies to projectCodeRagPage */
        height: 220px;
    }
}

/* Custom container width for increased side margins on larger screens,
   following common practice for portfolio sites.
   This caps the main content width at 1140px on screens 1200px and wider.
*/
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Styles for project cards in the main projects list */
.project-item .card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.project-item .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(var(--primary-color-rgb), 0.3), 
                0 0 5px rgba(var(--secondary-color-rgb), 0.2);
    border-color: rgba(var(--primary-color-rgb), 0.5);
}

.project-item .card-img-top {
    transition: transform 0.5s ease-out;
}

.project-item .card:hover .card-img-top {
    transform: scale(1.1) rotate(1deg);
}

.project-action-btn-container {
    display: flex;
    justify-content: flex-start; /* Changed from space-between to flex-start */
    align-items: center;
    gap: 10px; /* Adds space between buttons if they are close */
}

.project-action-btn {
    flex-grow: 0; /* Changed from 1 to 0 to prevent buttons from growing excessively */
    text-align: center;
    padding: 6px 10px; /* Reduced padding */
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.75rem; /* Reduced font size */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-action-btn i {
    margin-right: 6px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Source Button (GitHub) */
.project-source-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.project-source-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 10px rgba(var(--secondary-color-rgb), 0.4);
}

.project-source-btn:hover i {
    transform: rotate(-5deg) scale(1.1);
}

/* Visit Button (Web/Open) */
.project-visit-btn {
    background-color: transparent; /* Match Get In Touch */
    border: 1px solid var(--text-light); /* Match Get In Touch */
    color: var(--text-light); /* Match Get In Touch */
}

.project-visit-btn:hover {
    background-color: var(--text-light); /* White fill on hover */
    color: var(--bg-dark); /* Dark text on hover */
    transform: translateY(-3px) scale(1.05); /* Same zoom as source button */
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2); /* Adjusted shadow for light button */
    filter: none; /* Removed brightness filter as it's not needed for this style */
}

.project-visit-btn:hover i {
    transform: rotate(5deg) scale(1.1);
}

/* Ensure the project card link itself doesn't have weird underlines */
.project-card-link {
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* NEW STYLES FOR FILTER BUTTONS ANIMATION */ 
.filter-buttons-container {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow buttons to wrap to the next line */
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Add space between buttons */
    margin-bottom: 2.5rem; /* Adjusted from mb-5 for consistency */ 
}

.filter-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    animation: fadeInUp 0.5s ease-out forwards;
    position: relative; /* For pseudo-element positioning */
    overflow: hidden; /* To contain the ::before element */
    border: 1px solid var(--primary-color); /* Initial border */
    background-color: transparent;
    color: var(--text-light);
    padding: 8px 18px; /* Adjusted padding */
    border-radius: 25px; /* Rounded corners */
    font-weight: 500; /* Slightly bolder text */
    flex: 1 1 auto; /* grow and shrink as needed, auto basis */
    min-width: 100px; /* Minimum width for each button */
    max-width: fit-content; /* Don't grow larger than content requires */
    text-align: center; /* Ensure text is centered */
    white-space: nowrap; /* Prevent text from wrapping */
    margin-bottom: 0; /* No bottom margin by default */
}

/* Stagger the animation for each button */ 
.filter-btn:nth-child(1) { animation-delay: 0.1s; } 
.filter-btn:nth-child(2) { animation-delay: 0.2s; } 
.filter-btn:nth-child(3) { animation-delay: 0.3s; } 
.filter-btn:nth-child(4) { animation-delay: 0.4s; } 
/* .filter-btn:nth-child(5) { animation-delay: 0.5s; } */

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

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 166, 0.3), transparent); /* Subtle shimmer */
    transition: left 0.5s ease-out;
    z-index: 0;
}

.filter-btn:hover::before, 
.filter-btn.active::before {
    left: 100%; /* Move shimmer across on hover/active */ 
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 191, 166, 0.5); /* Glow effect */
    transform: translateY(-3px); /* Slight lift */ 
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 191, 166, 0.5), 0 0 25px rgba(0, 191, 166, 0.3); /* Stronger glow for active */
    border-color: var(--primary-color);
}

/* Ensure text is above the pseudo-element */ 
.filter-btn span, 
.filter-btn {
    position: relative;
    z-index: 1;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .filter-buttons-container {
        display: flex;
        flex-direction: row; /* Keep items in row */
        justify-content: center; /* Center the buttons */
        align-items: center; /* Align items vertically */
        flex-wrap: wrap; /* Allow wrapping if needed */
        gap: 8px; /* Slightly reduced gap */
    }
    
    .filter-btn {
        flex: 0 1 auto; /* Don't grow, allow shrink, auto basis */
        min-width: 0; /* Remove min-width constraint */
        max-width: none; /* Allow button to take needed space */
        font-size: 0.8rem; /* Consistent font size */
        padding: 6px 12px; /* Consistent padding */
        margin: 4px; /* Even spacing around all buttons */
        white-space: nowrap; /* Keep text on one line */
        text-overflow: ellipsis; /* Add ellipsis for very long text */
        overflow: hidden; /* Hide overflow text */
        display: inline-block; /* Ensure consistent block behavior */
    }
}

/* Availability badge glow effect */ 
.glow-effect {
    box-shadow: 0 0 10px #28a745, 0 0 20px #28a745;
    animation: glow 1.5s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden; 
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #28a745, 0 0 10px #28a745;
    }
    to {
        box-shadow: 0 0 10px #28a745, 0 0 20px #28a745, 0 0 30px #28a745;
    } 
}

/* Styles moved from inline attributes in homePage.html */

/* Skill Section Cards */
.skill-section-card-ml {
    background-color: rgba(30, 30, 30, 0.7);
    border-left: 4px solid var(--primary-color);
}

.skill-section-card-support {
    background-color: rgba(30, 30, 30, 0.7);
    border-left: 4px solid #6c757d; /* Using the specific color from inline style */
}

/* Skill Icons */
.skill-icon-img {
    height: 35px;
}

.skill-icon-pandas {
    height: 35px;
    background-color: white;
    border-radius: 4px;
    padding: 2px;
}

.skill-icon-llm-container {
    font-size: 1.5rem;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Education Section */
.education-badge-date {
    overflow: hidden;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
}

.education-progress-bar {
    background: rgba(255,255,255,0.2);
    width: 75%; /* This was specific, might need to be dynamic if content changes */
    z-index: 1;
}

.custom-course-pill {
    background: rgba(123, 44, 191, 0.15);
    border-radius: 16px;
    font-size: 0.8rem;
}

/* Project Card Images */
.project-image-bg-dark {
    background-color: #333;
}

/* Footer Styles */
.footer-get-in-touch-heading {
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.footer-intro-text {
    font-size: 1.1rem;
    /* color: var(--text-light); Assumes this is inherited or default */
}

.footer-contact-icon {
    font-size: 1.2rem;
}

.footer-social-icon {
    font-size: 1.5rem;
}

.footer-copyright-text {
    color: #aaa;
}

.footer-binary-code {
    font-size: 0.7rem;
    color: #444;
    opacity: 0.7;
}

/* Prevent specific text from wrapping */
.nowrap {
    white-space: nowrap;
}

/* End of styles moved from inline attributes */