/* ---------------- Reset & Base ---------------- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { background: #0a0a0a; color: #ffffff; line-height: 1.6; overflow-x: hidden; }

/* ---------------- Fixed Header ---------------- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 80px; background: #000; border-bottom: 1px solid #222;
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.projecthero-text h1 { font-size: 48px; margin-bottom: 15px; }
.projecthero-text span { color: #c1914b; font-style: italic; }
.projecthero-text p { color: #aaa; font-weight: bold; font-size: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo span { font-size: 26px; font-weight: 700; text-transform: uppercase; }

nav a { margin: 0 15px; text-decoration: none; color: #888; transition: 0.3s; }
nav a:hover, nav a.active { color: #c1914b; }

/* ---------------- Fixed Banner ---------------- */
.projecthero-banner {
    width: 100%; background: #000; color: #fff; font-weight: bold;
    font-size: 20px; height: 40px; line-height: 40px; overflow: hidden;
    position: fixed; top: 81px; z-index: 999;
}

.projecthero-banner span {
    display: inline-block; white-space: nowrap; position: absolute;
    left: 100%; animation: scrollText 15s linear infinite;
}

@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-150vw); } }

/* ---------------- Hero Section ---------------- */
.projecthero {
    margin-top: 121px; height: 45vh; padding: 0 80px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("image/about.jpeg") center/cover;
    display: flex; align-items: center;
}

.projecthero-text h1 { font-size: 48px; margin-bottom: 20px; }

/* ---------------- Filter Bar ---------------- */
.filter-bar {
    background: #0f0f0f; padding: 20px 80px; display: flex; gap: 12px;
    flex-wrap: wrap;  top: 121px; z-index: 998;
}

.filter-btn {
    padding: 8px 20px; border: 1px solid #333; background: transparent;
    color: #aaa; cursor: pointer; transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover { background: #c1914b; color: #000; border-color: #c1914b; }

/* ---------------- Grid ---------------- */
.gallery-wrapper { padding: 40px 80px; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.project-card {
    background: #1a1a1a; border: 1px solid #222; border-radius: 12px;
    transition: 0.4s; overflow: hidden; cursor: pointer; position: relative;
}

.project-card:hover { border-color: #c1914b; transform: translateY(-8px); }

.card-img-container { width: 100%; height: 200px; overflow: hidden; position: relative; }
.project-card img { width: 100%; height: 100%; object-fit: cover; }

/* Play Icon Overlay for Videos */
.play-icon-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(193, 145, 75, 0.8); color: #000; width: 50px; height: 50px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px;
}

.card-info { padding: 15px; }
.card-info h5 { color: #c1914b; font-size: 18px; }
.card-info span { color: #aaa; font-size: 14px; }

/* ---------------- Lightbox (Popup) ---------------- */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95); backdrop-filter: blur(10px); padding: 40px 0;
}

.lightbox-content {
    margin: auto; display: block; width: 90%; max-width: 1000px; max-height: 80vh;
    border: 2px solid #c1914b; border-radius: 10px; object-fit: contain; animation: zoom 0.4s;
}

@keyframes zoom { from {transform:scale(0.8); opacity:0} to {transform:scale(1); opacity:1} }

.close-lightbox {
    position: fixed; top: 20px; right: 30px; color: #fff; font-size: 50px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}

#caption { text-align: center; color: #c1914b; font-size: 22px; margin-top: 20px; font-weight: bold; }

/* ---------------- Footer ---------------- */
footer { padding: 30px 80px; background: #000; border-top: 1px solid #222; }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 25px; }
.social-item { color: #888; text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 18px; }

/* ---------------- Responsive Fixes ---------------- */

/* Laptop / Tablets */
@media (max-width: 1200px) { 
    header, .projecthero, .filter-bar, .gallery-wrapper, footer { padding-left: 40px; padding-right: 40px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); } 
}

/* Mobile Phones */
@media (max-width: 768px) {
    header { padding: 15px 20px; flex-direction: column; }
    .logo span { font-size: 20px; }
    nav { margin-top: 10px; }
    nav a { margin: 0 8px; font-size: 14px; }

    /* Mobile par header bada ho jata hai toh top aur margin badhana zaroori hai */
    .projecthero-banner { top: 105px; font-size: 16px; }
    .projecthero { margin-top: 145px; padding: 0 20px; height: 35vh; text-align: center; }
    .projecthero-text h1 { font-size: 32px; }
    
    .filter-bar { top: 145px; padding: 15px 20px; gap: 8px; }
    .filter-btn { padding: 6px 12px; font-size: 12px; }

    .gallery-wrapper { padding: 20px; }
    .project-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .social-links { justify-content: center; }
    .close-lightbox { top: 10px; right: 20px; font-size: 40px; }
}