
html,
body{
    overflow-x:hidden;
    max-width:100%;
}
.section-header{
    margin-top: 100px;
}
.section-title{
    font-size: 50px;
    color: white;
}
.section-subtitle{
    font-size: 20px;
    letter-spacing: 1px;
    color: #ffae00;
}
.timeline-container {
    position: relative;
    width: 90%;
    max-width: 1600px !important;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 174, 0, 0.4) 10%,
        rgba(255, 174, 0, 0.4) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ff7b00, #ffae00);
    transform: translateX(-50%);
    transition: height 0.3s ease;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.4);
}

.timeline-item {
    position: relative;
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 3.5rem);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 3.5rem);
}

/* 3. CENTRAL SHIELD NODE BADGES STYLING                */
/* =================================================== */
.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 55px;
    height: 55px;
    background: #0a0a0a !important; /* Pure black to sync website background canvas */
    border: 3px solid rgba(255, 174, 0, 0.3) !important;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 174, 0, 0.15);
}
.timeline-node i {
    font-size: 18px !important;
    color: #ffae00 !important;
    transition: color 0.3s ease;
}

.timeline-node:hover {
    transform: translate(-50%, -50%) scale(1.15);
    border-color: #ffae00 !important;
    box-shadow: 0 0 30px rgba(255, 174, 0, 0.45);
}

.timeline-node.active {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: #ffae00 !important;
    animation: pulse-node 2s infinite;
}

@keyframes pulse-node {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 174, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 174, 0, 0.6); }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid #ff7b006c !important;
    border-radius: 22px !important;
    padding: 2rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 174, 0, 0.25) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.timeline-content::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important; /* Card ke vertical center axis par lock kiya */
    width: 14px !important;
    height: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 5 !important; /* Card body ke upar aur visible stack layer */
    transform: translateY(-50%) rotate(45deg) !important;
    transition: border-color 0.3s ease, background 0.3s ease !important;
}
.timeline-item:hover .timeline-content::before {
    border-left-color: rgba(255, 174, 0, 0.35) !important;
    border-bottom-color: rgba(255, 174, 0, 0.35) !important;
    background: #ffae00 !important;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -8px;
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -8px;
    border-right: none;
    border-top: none;
}

.timeline-year {
    display: inline-block;
    padding: 5px 16px;
    background: linear-gradient(135deg, #ffae00, #ff7b00) !important;
    color: #000000 !important; /* Bold sharp black fonts on orange capsule */
    border-radius: 50px !important;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.25);
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white !important;
    margin-bottom: 8px;
}

.timeline-company {
    font-size: 15px;
    color: #ffae00 !important; /* Institute title subtitle accent color override */
    font-weight: 600;
    margin-bottom: 10px !important;
}

.timeline-description {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    letter-spacing: 0.5px;
    gap: 0.5rem;
}


.timeline-skill {
    padding: 4px 12px;
    background: rgba(255, 174, 0, 0.05) !important;
    border: 1px solid rgba(255, 174, 0, 0.15) !important;
    border-radius: 50px !important;
    font-size: 12px;
    font-weight: 600;
    color: #ffae00 !important; /* Synced labels */
    transition: all 0.3s ease;
}

.timeline-skill:hover {
    background: #ffae00 !important;
    color: black !important;
    border-color: #ffae00 !important;
}

.timeline-achievements {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}


.timeline-achievement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.timeline-achievement::before {
    content: '•' !important;
    color: #ffae00 !important; 
    font-size: 16px;
    line-height: 1;
}

/* Timeline controls */
.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.timeline-filter {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.timeline-filter:hover,
.timeline-filter.active {
    background: #ffae00 !important;
    border-color: #ffae00 !important;
    color: #000000 !important; /* Fonts switch to solid dark black on selection focus */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 174, 0, 0.25);
}




/* SCREENSHOT ACCORDION WORK SPECIFIC LAYOUT */
/* =================================================== */
#portfolio-accordion-section {
    padding: 80px 0 60px;
    width: 100%;
    position: relative;
    background: transparent;
}
.container-accordion {
    width: 90%;
    max-width: 1600px !important;
    margin: 0 auto;
}
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Screenshot bars ke beech ka balanced gap */
    width: 100%;
    margin-top: 35px;

}
.accordion-item {
    background: rgba(255, 255, 255, 0.03); /* Modern Translucent Interface */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px; /* Slim curved borders jaisa image me hai */
    overflow: hidden;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    margin-bottom: 20px;
}
.accordion-item:hover {
    border-color:#ffae00; /* Theme orange slow border hover glow */
    background: rgba(255, 255, 255, 0.05);
}
.accordion-item.active {
    border-color: #ffae00; /* Main Theme Orange Glow */
    background: rgba(255, 174, 0, 0.01);
}
.accordion-header {
    padding: 18px 25px; /* Sleek patli width bar as per image */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.accordion-icon {
    font-size: 16px;
    color: #ffae00;
}

.accordion-header-left span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.3px;
}
.arrow-icon {
    font-size: 14px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accordion-content {
    max-height: 0; /* Initially data framework hidden chupa rahega */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Makkhan drop transition velocity */
}
.accordion-item.active .arrow-icon {
    transform: rotate(45deg); /* Plus smoothly turns into an elegant Close sign */
    color: #ffae00;
}
.accordion-item.active .accordion-content {
    /* JavaScript is property ko dynamic scrollHeight px values dekar smoothly open karega */
    max-height: max-content; 
}

.timeline-wrapper-box {
    position: relative;
    padding: 30px 30px 30px 45px; /* Axis stem margin alignment tracking space */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px; /* Dual cards stacks vertical inner spacing gap */
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.timeline-vertical-line {
    position: absolute;
    top: 40px;
    left: 72.5px; /* Circle shape elements coordinate alignment standard lock */
    width: 2px;
    height: calc(100% - 80px);
    background: linear-gradient(180deg, #ffae00 0%, rgba(255, 174, 0, 0.4) 70%, rgba(255, 174, 0, 0.05) 100%);
    z-index: 1;
}
.timeline-card-row {
    display: flex;
    align-items: flex-start;
    gap: 35px; /* Logo aur right display card horizontal space split distance */
    width: 100%;
    position: relative;
    z-index: 2;
}
.timeline-logo-badge {
    width: 55px;
    height: 55px;
    background: #ffffff; /* Local images brand PNG sharp display canvas backdrop */
    border: 3px solid rgba(255, 174, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Scaling down hone se lock kiya monitor display par */
    box-shadow: 0 4px 15px rgba(255, 174, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}
.timeline-brand-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.timeline-details-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.253);
    border-radius: 14px;
    padding: 22px 25px;
    flex: 1; /* Horizontal horizontal available frame width automatic full auto coverage */
    text-align: left;
    transition: all 0.3s ease;
}
.timeline-card-header {
    display: flex;
    justify-content: space-between; /* Title elements left side, dates meta array right side */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.timeline-details-card h3 {
    font-size: 20px;
    color: white;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}
.timeline-company {
    font-size: 16px;
    color: #ffae00; /* Website Theme Orange color title accent */
    font-weight: 600;
    margin: 4px 0 0 0;
}
.timeline-meta-right {
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end;
}
.timeline-date {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.979);
    font-weight: 600;
}
.timeline-location {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.788);
    margin-top: 3px;
}
/* Core Content Paragraph Description Body */
.timeline-text-body {
    font-size: 14.5px;
    color: white;
    line-height: 1.6;
    letter-spacing: 1px;
    margin: 0;
}
.timeline-card-row:hover .timeline-logo-badge {
    border-color: #ffae00;
    box-shadow: 0 5px 22px rgba(255, 174, 0, 0.35);
    transform: scale(1.04);
}
.timeline-card-row:hover .timeline-details-card {
    border-color: rgba(255, 174, 0, 0.596);
    background: rgba(255, 255, 255, 0.04);
}












/* =================================================== */
/* 5. MOBILE & TABLET DEVICE BREAKPOINT CONFIGURATION  */
/* =================================================== */
@media (max-width: 768px) {
    /* Mobile screen view sizes par gaps ko aur tight kiya taaki screen se bahar na jaye */

    .section-title{
        font-size: 35px;
        color: white;
    }
    .section-subtitle{
        font-size: 20px;
    
    }

    .timeline-container { 
        padding-left: 55px !important; 
        width: 96% !important; 
        padding-right: 0 !important; 
    }
    
    /* Mobile track lines placement coordinates track lock */
    .timeline-line, 
    .timeline-progress { 
        left: 20px !important; 
    }
    
    .timeline-item { 
        margin: 2.5rem 0; 
        width: 100% !important;
        height: auto !important;
        display: flex;
        justify-content: flex-start;
    }
    
    /* 🛠️ RIGHT SHIFT OVERRIDE: Mobile par bhi saare cards strict right side me push rahenge */
    .timeline-item:nth-child(odd), 
    .timeline-item:nth-child(even) { 
        padding-left: 20px !important; 
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    /* Mobile node circle icons sizes calculations reset */
    .timeline-node { 
        left: -30px !important; 
        width: 50px !important; 
        height: 50px !important; 
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    /* Specifc OS Brain/Microchip node mobile scale size override */
    .timeline-item[data-category="project"] .timeline-node {
        width: 55px !important;
        height: 55px !important;
    }
    
    /* Content text inner details space tweaks */
    .timeline-content { 
        right: 20px;
        padding: 20px !important; 
        text-align: left !important;
        border-radius: 18px !important;
    }
    
    /* Pointer Triangle Arrow aligned to face left side system axis line */
    .timeline-content::before {
        display: block !important;
        left: -6px !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) rotate(45deg) !important;
    }

    .timeline-year{
        font-size: 10px;
        padding: 5px 8px !important;
    }
    .timeline-title{
        font-size: 20px;
        margin-bottom: 5px !important;
    }
    .timeline-company{
        font-size: 15px;
    }
    .timeline-description{
        line-height: 20px;
        margin-top: -2px;
    }
    .timeline-skills {
        justify-content: flex-start !important;
        margin-top: -10px;
    }
    .timeline-skill{
        font-size: 12px;
        padding: 5px 7px;
    }
    .timeline-achievements{
        margin-top: -5px;
    }
    .timeline-achievement {
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 13px;
        line-height: 17px;
    }
    .timeline-item:hover .timeline-content::before {
        background: #ffae00 !important;
    }

    .timeline-card-header h3{
        font-size: 20px !important;

    }
    .timeline-meta-right{
        margin-top: -15px;
    }
    .timeline-date{
        font-size: 16px;
    }
    .timeline-text-body{
        margin-top: -5px;
        font-size: 13px;
        line-height: 18px;
    }
}
