/* ======== PROJECT DETAIL PAGE STYLES ======== */

/* Reuse variables from style.css which is loaded first */

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}
.brand-logo .dot { color: var(--accent-green); }
.syncopate-font { font-family: var(--font-heading); }

/* Nav */
.detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}
.back-link:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateX(-5px);
}

/* Hero */
.detail-hero {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 60px;
    height: 450px;
}

.detail-hero-img {
    width: 100%;
    height: 100%;
}
.detail-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent 30%, rgba(6, 9, 7, 0.95) 100%);
}

.detail-hero-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 2;
}

.project-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(0, 255, 102, 0.15);
    color: var(--accent-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.detail-hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.detail-hero-content .tagline {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 500px;
}

/* Info Grid */
.detail-info {
    margin-bottom: 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s;
}
.info-card:hover {
    border-color: rgba(0, 255, 102, 0.3);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.info-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Detail About */
.detail-about,
.detail-tech,
.detail-features,
.detail-gallery {
    margin-bottom: 80px;
}

.detail-section-header {
    margin-bottom: 30px;
}

.detail-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 800px;
}
.detail-text p:first-child {
    color: #fff;
    font-weight: 500;
    font-size: 1.15rem;
}

/* Tech Pills */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-pill {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}
.tech-pill:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 255, 102, 0.05);
    transform: translateY(-3px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 35px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: rgba(0, 255, 102, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 102, 0.05);
}

.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    background: rgba(0, 255, 102, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--accent-green);
}

.feature-card h4 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}
.gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(0, 255, 102, 0.3);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}
.gallery-item:hover img {
    filter: brightness(1.1);
}

/* CTA */
.detail-cta {
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}
.detail-cta h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}
.detail-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.solid-btn {
    background: #ff8c00;
    border: none;
    padding: 14px 40px;
    color: #fff;
    border-radius: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.solid-btn:hover {
    background: #e07b00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
    .detail-hero { height: 350px; }
    .detail-hero-content h1 { font-size: 2.5rem; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .detail-hero { height: 300px; }
    .detail-hero-content { left: 25px; bottom: 25px; }
    .detail-hero-content h1 { font-size: 1.8rem; }
    .info-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .detail-cta h2 { font-size: 1.8rem; }
}
