/* --- PROJECT SECTION STYLES --- */

/* --------------------------------------
   GENERAL PROJECT CONTAINER AND HEADERS 
   -------------------------------------- */
#projects {
    padding: 8rem 5%;
    position: relative;
    z-index: 5;
    background-color: transparent;
}

/* Overall Section Title */
.project-headline-1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 6rem;
    text-align: center;
    /* Use the bright Azure glow */
    background: linear-gradient(90deg, #00bfff 0%, #0080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Subsection Headings (AI, ML, Full Stack) */
.subsection-heading-1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 191, 255, 0.3);
    padding-bottom: 5px;
    letter-spacing: 1px;
}

/* --------------------------------------
   PROJECT CARD: Digital Archive (AI/ML/Full Stack)
   -------------------------------------- */

.project-card-1 {
    /* Reuse Glass Panel Styling */
    background-color: rgba(15, 20, 25, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.project-card-1:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
}

/* Project Preview Area (Top Gradient Section) */
.h-48 {
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    /* Add a high-contrast shadow inside the container */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Skill Tags */
.skill-tag-1 {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

/* Test Tools Container */
.tools-container-1 {
    font-family: monospace;
    color: #48bb78; /* Use a terminal green for tool list */
    padding-left: 10px;
}

/* Links (GitHub/Live Demo) */
.project-card-1 a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --------------------------------------
   AUTOMATION WORKFLOWS: The Pipeline View
   -------------------------------------- */

/* --- AUTOMATION WORKFLOWS: The Pipeline View --- */

#automation-workflows-container-2 {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    max-width: 100%;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#automation-workflows-container-2::-webkit-scrollbar {
    display: none;
}

.workflow-card-2 {
    min-width: 380px; /* Slightly wider cards */
    max-width: 380px;
    flex-shrink: 0;
}

.workflow-video-2 {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.video-placeholder-2 {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    color: gray;
}

/* Interactive Buttons */
.description-btn-2, .expand-btn-2 {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.description-btn-2 {
    background: #00bfff;
    color: #0a0a0f;
}

.expand-btn-2 {
    background: transparent;
    border: 1px solid #00bfff;
    color: #00bfff;
}
.expand-btn-2:hover {
    background: rgba(0, 191, 255, 0.1);
}

/* --- PIPELINE VISUALIZATION (Collapsed) --- */

.pipeline-flow-container-2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, padding 0.6s ease-out, opacity 0.4s;
    opacity: 0;
    margin-top: 20px;
}

.workflow-card-2.expanded .pipeline-flow-container-2 {
    max-height: 1200px; /* Large enough to show flow */
    opacity: 1;
    padding-top: 15px;
}

/* Pipeline Flow Style */
.pipeline-view-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* Space between nodes */
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.1); /* Subtle dark background for the view area */
    border-radius: 8px;
}

.pipeline-node-2 {
    position: relative;
    width: 90%;
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid #00bfff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.pipeline-node-2:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.7);
    background: rgba(0, 191, 255, 0.2);
}

.node-icon-2 {
    font-size: 1.5rem;
    color: #00bfff;
    margin-bottom: 5px;
}

.node-title-2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

/* Connector Line (The Actual Pipeline) */
.pipeline-node-2:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -40px; /* Half of the gap */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: #00bfff;
    box-shadow: 0 0 5px #00bfff;
}

/* --- INTERACTIVE DETAIL PANEL --- */
.node-detail-panel-2 {
    border: 1px solid #d8ae43; /* Gold accent for interactive details */
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    display: none; /* Initially hidden, shown by JS */
}

.detail-content-2 h4 {
    font-family: 'Orbitron', sans-serif;
    color: #ffebad; /* Gold title */
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.detail-steps-2 h5, .detail-output-2 h5 {
    color: #00bfff;
    font-weight: 700;
    margin-top: 10px;
}

.detail-steps-2 ul {
    list-style: disc;
    margin-left: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.detail-output-2 p {
    color: #48bb78; /* Terminal success color */
    font-size: 0.9rem;
    font-style: italic;
}