
html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

/* Black overlay for welcome section */
.welcome-section {
    position: relative;
    overflow: hidden;
}

.welcome-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.welcome-black-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.801);
    z-index: 2;
}

.welcome-overlay {
    position: relative;
    z-index: 3;
    background: none;
}
/* ============================================
   PORTFOLIO PAGE SPECIFIC STYLES
   ============================================ */

/* Featured Projects Section */
.featured-projects-section {
    padding: 60px 20px 120px 20px;
    background: #303030;
}

.featured-projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-projects-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #b0b0b0;
}

/* Portfolio Tab Navigation */
.portfolio-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.portfolio-tab-btn {
    background: var(--dark-gray);
    color: var(--light-gray);
    border: 2px solid var(--deep-red);
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.portfolio-tab-btn:hover {
    background: var(--deep-red);
    color: var(--white);
    transform: scale(1.05);
}

.portfolio-tab-btn.active {
    background: var(--deep-red);
    color: var(--white);
}

/* Portfolio Tab Content */
.portfolio-tab-content {
    display: none;
}

.portfolio-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Products Sub-tabs Styling */
.products-sub-tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.products-sub-tab-btn {
    background: var(--dark-gray);
    color: var(--light-gray);
    border: 2px solid #666;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.products-sub-tab-btn:hover {
    background: var(--deep-red);
    color: var(--white);
    border-color: var(--deep-red);
    transform: scale(1.05);
}

.products-sub-tab-btn.active {
    background: var(--deep-red);
    color: var(--white);
    border-color: var(--deep-red);
}

.products-sub-tab-content {
    display: none;
}

.products-sub-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Project Cards - Same size as vision/mission/theme cards */
.portfolio-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Center and limit width for tabs with single cards */
#interior-designs .portfolio-projects-grid,
#branding .portfolio-projects-grid,
#exhibitions .portfolio-projects-grid,
#stones .portfolio-projects-grid,
#tiles .portfolio-projects-grid,
#wall-panels .portfolio-projects-grid {
    grid-template-columns: minmax(280px, 1fr);
    max-width: 350px;
    margin: 0 auto;
}

.project-card {
    background-color: rgb(27, 27, 27);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper {
    width: 100%;
    height: 250px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-wrapper .overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--deep-red);
    margin-bottom: 10px;
    font-size: 18px;
}

.project-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.gallery-modal .gallery-counter {
    display: none !important;
}

.gallery-modal.active {
    display: flex;
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 70vw;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    border: 5px solid var(--dark-red);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-red);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-arrow:hover {
    background: var(--deep-red);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left {
    left: 15px;
}

.gallery-arrow-right {
    right: 15px;
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 20;
}

.gallery-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-prev,
.gallery-next {
    background: var(--deep-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--dark-red);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-projects-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .portfolio-tabs-nav {
        gap: 12px;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 10px;
        min-height: 160px;
    }

    .portfolio-tab-btn {
        width: auto;
        min-width: 85px;
        font-size: 0;
        padding: 18px 12px;
        flex-shrink: 0;
    }

    .portfolio-tab-btn i {
        font-size: 24px;
        margin-right: 0;
    }

    .portfolio-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-content {
        width: 95%;
    }

    .gallery-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .gallery-arrow-left {
        left: 8px;
    }

    .gallery-arrow-right {
        right: 8px;
    }
}
