:root {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --bg-dark: #0B0F19;
    --text-dark: #f3f4f6;
    --card-dark: #1e293b;
}

* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-glow {
    background-image: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(249, 115, 22, 0.2), rgba(255, 255, 255, 0));
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--card-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.gallery-item .overlay-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gallery-item .overlay-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal {
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    animation: zoomIn 0.3s ease-out;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.search-bar {
    position: relative;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 25px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-action {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
}

.slideshow-controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: none;
}

.slideshow-controls.active {
    display: flex;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.like-btn {
    transition: all 0.2s;
}

.like-btn.liked {
    color: #ef4444;
    transform: scale(1.2);
}

.share-btn, .download-btn {
    transition: all 0.2s;
}

.share-btn:hover, .download-btn:hover {
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    display: block;
}

.category-card.active .bg-gradient-to-br {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-card.active .bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 1rem;
    pointer-events: none;
}

/* Custom Select Dropdown Styling for Contact Section */
#contactSubject {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255,255,255,0.08) url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 1rem center/1.5em;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    padding-right: 2.5rem;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    box-shadow: none;
}
#contactSubject:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color)33;
}
#contactSubject option {
    color: #222;
    background: #fff;
}

/* Remove default arrow for select in IE */
select::-ms-expand {
    display: none;
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}
