/* 
  style.css - AdQuest Custom Styles for Portfolio & Additions 
  Handles the aesthetic extensions for .portfolio-grid, .filter-bar, and .project-hero 
*/

/* 
  Project Hero Section - Massive Parallax Edge-to-Edge 
*/
.project-hero {
    position: relative;
    width: 100vw;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1a1a;
    /* Neutral dark background */
}



.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.project-hero-content {
    z-index: 3;
}

/*
  Intro Text - Project Description (injected from YAML frontmatter)
*/
.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* 
  Markdown Content inside Project Page 
  Ensures clean typography, max-width, shadows on images
*/
.project-content {
    color: #1f2937;
    font-size: 1.25rem;
    line-height: 1.8;
}

.project-content p {
    margin-bottom: 1.5rem;
}

.project-content h1,
.project-content h2,
.project-content h3 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: block;
}

.project-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* 
  Archive Page Elements 
*/
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}

.portfolio-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

/* Base custom background utility */
.custom-bg {
    background-color: #f9fafb;
}

/* Navbar glass effect override on portfolio */
#navbar.bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
}

/* Language Switcher Hover Effect - Exact Match with Nav */
.lang-btn {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.lang-btn:hover {
    color: #9B88D0 !important;
    /* text-brand-light */
}

.lang-btn.active {
    color: #8A74C0 !important;
    /* text-brand */
    font-weight: bold;
    pointer-events: none;
}

/* 
  Glassmorphism Search Styles 
*/
.search-glass {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-results-dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 116, 192, 0.3) transparent;
}

.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(138, 116, 192, 0.3);
    border-radius: 20px;
}

.search-result-item {
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(138, 116, 192, 0.1);
}

.search-highlight {
    background-color: rgba(138, 116, 192, 0.2);
    color: #8A74C0;
    font-weight: 600;
    border-radius: 2px;
    padding: 0 1px;
}

/* Navbar Search Specifics */
#navbar-search {
    color: white;
    transition: all 0.3s ease;
}

#navbar-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#navbar.bg-white #navbar-search {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1f2937 !important;
}

#navbar.bg-white #navbar-search::placeholder {
    color: #9ca3af !important;
}

#navbar.bg-white .fa-search {
    color: #9ca3af !important;
}

#navbar.bg-white #navbar-search:focus {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-in-scale {
    animation: fadeInScale 0.2s ease-out forwards;
}
