/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
    min-height: 100vh;
}

/* ===== BACKGROUND VIDEO ===== */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    backdrop-filter: blur(3px);
}

/* ===== NAVBAR (Same as Home) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

.brand-img:hover {
    transform: scale(1.1);
}

.brand-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.capsule-nav {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.menu-toggle,
.mute-btn {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.menu-toggle i,
.mute-btn i {
    font-size: 1.1rem;
    color: #fff;
}

.menu-toggle:hover,
.mute-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 80px 30px 30px;
}

.mobile-menu.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(10px);
}

/* ===== MAIN CONTAINER ===== */
.work-container {
    padding: 120px 50px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-title .highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 300;
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.cursor {
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== WORK GRID ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.work-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.work-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-card:hover .card-overlay {
    opacity: 1;
}

.category-badge {
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.card-content {
    padding: 25px;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #fff;
}

.project-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.services {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-tag i {
    font-size: 0.75rem;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.view-project:hover {
    color: #764ba2;
    gap: 12px;
}

.view-project i {
    transition: transform 0.3s;
}

.view-project:hover i {
    transform: translateX(5px);
}

/* ===== STATS SECTION ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.4);
}

.stat-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== BOTTOM SOCIAL BAR ===== */
.social-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1200px) {
    .capsule-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .brand-img {
        width: 40px;
        height: 40px;
    }
    
    .brand-text h3 {
        font-size: 1rem;
    }
    
    .brand-text span {
        font-size: 0.7rem;
    }
    
    .work-container {
        padding: 100px 20px 80px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 30px 20px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-card i {
        font-size: 2rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .social-bar {
        bottom: 20px;
        padding: 12px 25px;
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
}