:root {
--primary: #1e70eb;
--primary-light: #4a8eef;
--primary-dark: #1557c2;
--secondary: #f8f9fa;
--dark: #212529;
--light: #ffffff;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow-x: hidden;
}

/* Floating curved navbar */
.navbar {
background: var(--light);
border-radius: 0 0 20px 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
padding: 15px 30px;
transition: all 0.3s ease;
}

.navbar-brand {
font-weight: 700;
color: var(--primary);
font-size: 1.8rem;
}

.nav-link {
color: var(--dark);
font-weight: 500;
margin: 0 10px;
transition: all 0.3s;
}

.nav-link:hover {
color: var(--primary);
}

.navbar-toggler {
border: none;
outline: none;
}

/* Hero section */
.projects-hero {
background: linear-gradient(rgba(30, 112, 235, 0.9), rgba(30, 112, 235, 0.8)), url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
background-size: cover;
background-position: center;
color: var(--light);
padding: 150px 0 100px;
text-align: center;
}

/* Projects section */
.projects-section {
padding: 80px 0;
background: var(--secondary);
}

.project-card {
background: var(--light);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
margin-bottom: 30px;
transition: all 0.3s;
}

.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-media {
position: relative;
height: 300px;
overflow: hidden;
background-color: #000;
}

.project-thumbnail {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 0.3s;
}

.project-card:hover .project-thumbnail {
opacity: 0.7;
transform: scale(1.05);
}

.play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 70px;
height: 70px;
background: rgba(255, 255, 255, 0.9);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s;
z-index: 2;
}

.play-button i {
font-size: 24px;
color: var(--primary);
margin-left: 5px;
}

.play-button:hover {
background: var(--light);
transform: translate(-50%, -50%) scale(1.1);
}

.project-content {
padding: 25px;
}

.project-tag {
background: var(--primary);
color: var(--light);
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9rem;
display: inline-block;
margin-bottom: 15px;
}

.project-details {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin: 15px 0;
}

.project-detail {
display: flex;
align-items: center;
color: var(--dark);
font-size: 0.9rem;
}

.project-detail i {
margin-right: 8px;
color: var(--primary);
}

/* Video Modal */
.video-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
z-index: 9999;
align-items: center;
justify-content: center;
}

.video-modal.active {
display: flex;
}

.video-container {
width: 90%;
max-width: 800px;
position: relative;
}

.video-container iframe {
width: 100%;
height: 450px;
border-radius: 10px;
}

.close-modal {
position: absolute;
top: -40px;
right: 0;
color: white;
font-size: 30px;
cursor: pointer;
transition: all 0.3s;
}

.close-modal:hover {
color: var(--primary);
}

/* Footer */
footer {
background: var(--dark);
color: var(--light);
padding: 60px 0 30px;
}

.social-links {
margin: 20px 0;
}

.social-links a {
display: inline-block;
height: 45px;
width: 45px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
margin: 0 10px;
color: var(--light);
text-align: center;
line-height: 45px;
transition: all 0.3s;
}

.social-links a:hover {
background: var(--primary);
transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
.projects-hero {
padding: 120px 0 80px;
}

.project-details {
flex-direction: column;
gap: 10px;
}

.video-container iframe {
height: 250px;
}
}


/* Custom styles for the tabs and project list */
.projects-tabs {
    background: #1e70eb;
    padding: 120px 0 40px;
    margin-top: -20px;
}

.nav-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 40px;
}

.nav-tabs .nav-link {
    color: white;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 40px;
    margin: 0 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: white;
    color: #1e70eb;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.tab-content {
    padding: 30px 0;
}

/* Project List Table Styles */
.projects-table {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 50px;
}

.domain-header {
    background: linear-gradient(135deg, #1e70eb 0%, #0d5fd4 100%);
    color: white;
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.domain-header:hover {
    background: linear-gradient(135deg, #0d5fd4 0%, #0a4cb8 100%);
}

.domain-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.domain-header i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.domain-header.collapsed i {
    transform: rotate(-90deg);
}

.table-responsive {
    margin: 0;
}

.table {
    margin: 0;
    border-radius: 0;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #2d3748;
    padding: 18px 20px;
    font-size: 1.1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f7fafc;
}

.table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.05rem;
}

.project-id {
    font-weight: 700;
    color: #1e70eb;
    font-family: 'Courier New', monospace;
}

.project-name {
    font-weight: 500;
    color: #2d3748;
}

.domain-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ml-dl-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.genai-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cloud-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.devops-badge {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.quantum-badge {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.web-badge {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d3748;
}

.java-badge {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #2d3748;
}

.java-ai-badge {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2d3748;
}

.collapse {
    border-bottom: 1px solid #e2e8f0;
}

/* Previous Projects Section Styling */
#previous-tab-pane .projects-section {
    padding: 0;
    background: transparent;
}

#previous-tab-pane .text-center {
    margin-bottom: 60px !important;
}

#previous-tab-pane .display-4 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px !important;
}

#previous-tab-pane .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 0 !important;
}

/* PROJECT CARD SPACING FIX */
#previous-tab-pane .row {
    margin-top: -15px;
    margin-bottom: -15px;
}

#previous-tab-pane .row > [class*='col-'] {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Ensure existing project cards are properly styled */
#previous-tab-pane .project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 0;
}

#previous-tab-pane .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#previous-tab-pane .project-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

#previous-tab-pane .project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#previous-tab-pane .project-card:hover .project-thumbnail {
    transform: scale(1.1);
}

#previous-tab-pane .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(30, 112, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#previous-tab-pane .play-button:hover {
    background: rgba(30, 112, 235, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

#previous-tab-pane .play-button i {
    color: white;
    font-size: 1.5rem;
    margin-left: 5px;
}

#previous-tab-pane .project-content {
    padding: 25px;
}

#previous-tab-pane .project-tag {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #1e70eb 0%, #0d5fd4 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

#previous-tab-pane .project-content h3 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#previous-tab-pane .project-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

#previous-tab-pane .project-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#previous-tab-pane .project-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
}

#previous-tab-pane .project-detail i {
    color: #1e70eb;
}

/* Video Modal Styling */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #1e70eb;
}

#videoFrame {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-tabs {
        padding: 100px 0 30px;
    }
    
    .nav-tabs .nav-link {
        padding: 12px 25px;
        margin: 0 5px 10px;
        font-size: 1.1rem;
    }
    
    .domain-header {
        padding: 15px 20px;
    }
    
    .domain-header h4 {
        font-size: 1.1rem;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: white;
    }
    
    .table tbody td {
        display: block;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #2d3748;
    }
    
    .domain-badge {
        float: right;
    }
    
    #videoFrame {
        height: 300px;
    }
    
    /* Mobile spacing adjustments */
    #previous-tab-pane .row {
        margin-top: -10px;
        margin-bottom: -10px;
    }
    
    #previous-tab-pane .row > [class*='col-'] {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tabs .nav-link {
        width: 90%;
        max-width: 300px;
        margin: 5px 0;
    }
    
    .project-details {
        flex-direction: column;
        gap: 10px;
    }
    
    #previous-tab-pane .project-media {
        height: 200px;
    }
}