/* Custom Styles for Projects Page */

/* Hero Section */
.projects-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(0, 97, 242, 0.8) 100%), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.projects-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1px;
}

.projects-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Buttons */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 0.95rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 97, 242, 0.3);
}

/* Project Cards */
.project-card-v2 {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.project-thumb {
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

.project-card-v2:hover .project-thumb img {
    transform: scale(1.1);
}

.project-category-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.project-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.client-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.3;
}

.project-details p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-view-project {
    margin-top: auto;
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.btn-view-project:hover {
    gap: 0.8rem;
    color: var(--primary);
}

/* Featured Spotlight Redesign */
.spotlight-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.spotlight-image {
    min-height: 450px;
    background-size: cover;
    background-position: center;
}

.spotlight-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.spotlight-content h4 {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.spotlight-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.spotlight-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .spotlight-wrapper { grid-template-columns: 1fr; }
    .spotlight-image { height: 300px; min-height: auto; }
    .spotlight-content { padding: 2rem; }
}

/* Project Link Overlay */
.project-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 97, 242, 0.85); /* Primary color with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(2px);
}

.project-card-v2:hover .project-link-overlay {
    opacity: 1;
}

.project-link-overlay i {
    margin-right: 10px;
}

.project-link-overlay:hover {
    background: rgba(0, 97, 242, 0.95);
}
