:root {
    --primary-gold: rgb(231, 182, 92);
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-gold: rgb(231, 182, 92);
    --border-color: rgba(231, 182, 92, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ===============================
   HERO SECTION
   =============================== */
.hero-section {
    position: relative;
    padding: 10vh 0 2vh 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(231, 182, 92, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(231, 182, 92, 0.05) 0%, transparent 40%);
    animation: patternFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes patternFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: var(--primary-gold);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================
   FILTER SECTION
   =============================== */
.work-section {
    padding: 5rem 0 3rem;
    position: relative;
    overflow: visible;
    z-index: 10;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dropdown-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--primary-gold), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.dropdown-wrapper:hover::before {
    opacity: 0.1;
}

/* ===============================
   DROPDOWN STYLES
   =============================== */
.dropdown-group {
    position: relative;
}

.dropdown-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
    opacity: 0.9;
}

.custom-dropdown {
    position: relative;
     z-index: 1001;
}

.dropdown-selected {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 182, 92, 0.2);
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.dropdown-selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 182, 92, 0.1), transparent);
    transition: width 0.4s ease;
}

.dropdown-selected:hover::before {
    width: 100%;
}

.dropdown-selected:hover {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(231, 182, 92, 0.1);
}

.dropdown-selected.active {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-selected.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-selected-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.dropdown-selected-label.placeholder {
    color: var(--text-secondary);
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--primary-gold);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
     z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block !important;
}

.dropdown-menu.active {
    max-height: 400px;
    opacity: 1;
}

/* Search Input */
.dropdown-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.dropdown-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 182, 92, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.dropdown-search-input::placeholder {
    color: var(--text-secondary);
}

.dropdown-search-input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(231, 182, 92, 0.1);
}

/* Dropdown Options */
.dropdown-options {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(231, 182, 92, 0.2), transparent);
    transition: width 0.3s ease;
}

.dropdown-option:hover {
    background: rgba(231, 182, 92, 0.05);
    border-left-color: var(--primary-gold);
    padding-left: 1.5rem;
}

.dropdown-option:hover::before {
    width: 100%;
}

.dropdown-option.hidden {
    display: none;
}

/* Custom Scrollbar */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: rgba(231, 182, 92, 0.05);
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: rgb(241, 192, 102);
}

/* ===============================
   WORK CARDS SECTION
   =============================== */
.work-cards-section {
    padding: 3rem 0 6rem;
    display: none;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-cards-section.active {
    display: block;
    opacity: 1;
}

/* ===============================
   TABS
   =============================== */
.work-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.work-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(231, 182, 92, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.work-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 182, 92, 0.1), transparent);
    transition: left 0.3s ease;
}

.work-tab:hover::before {
    left: 100%;
}

.work-tab:hover {
    border-color: var(--primary-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.work-tab.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 182, 92, 0.3);
}

.work-tab i {
    font-size: 1.1rem;
}

/* ===============================
   TAB CONTENT
   =============================== */
.tab-content-wrapper {
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   PORTFOLIO CARDS GRID
   =============================== */
.portfolio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.portfolio-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portfolio-card:hover::before {
    transform: scaleX(1);
}

.portfolio-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(231, 182, 92, 0.15);
}

.portfolio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.portfolio-card-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(231, 182, 92, 0.1);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.portfolio-card-type i {
    font-size: 0.9rem;
}

.portfolio-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    
}

.portfolio-card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-card-actions {
    display: flex;
    gap: 0.75rem;
}

.portfolio-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(231, 182, 92, 0.3);
    color: var(--primary-gold);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.portfolio-card-btn:hover {
    background: rgba(231, 182, 92, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.portfolio-card-btn.primary {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--dark-bg);
}

.portfolio-card-btn.primary:hover {
    background: rgb(241, 192, 102);
    box-shadow: 0 5px 20px rgba(231, 182, 92, 0.3);
}

.portfolio-card-btn i {
    font-size: 0.9rem;
}

/* Empty State */
.empty-tab-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-tab-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
    opacity: 0.3;
}

.empty-tab-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-tab-state p {
    font-size: 0.95rem;
}


.portfolio-cards-grid.empty-grid {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* ===============================
   SHARE MODAL
   =============================== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.share-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid var(--primary-gold);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    z-index: 10001;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(231, 182, 92, 0.3);
    color: var(--primary-gold);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: rgba(231, 182, 92, 0.2);
    border-color: var(--primary-gold);
    transform: rotate(90deg);
}

.share-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 182, 92, 0.2);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

.share-option:hover {
    background: rgba(231, 182, 92, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(231, 182, 92, 0.2);
}

.share-option i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.share-option span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

/* ===============================
   RESET BUTTON
   =============================== */
.reset-section {
    text-align: center;
    margin-top: 4rem;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.reset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.reset-btn:hover::before {
    width: 300px;
    height: 300px;
}

.reset-btn:hover {
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(231, 182, 92, 0.3);
}

.reset-btn i {
    transition: transform 0.4s ease;
}

.reset-btn:hover i {
    transform: rotate(180deg);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

    .dropdown-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .portfolio-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .work-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .work-tab {
        justify-content: center;
    }

    .portfolio-cards-grid {
        grid-template-columns: 1fr;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .portfolio-card-actions {
        flex-direction: column;
    }
}