/* Main Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.page-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.main-title {
    color: #FFA900;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFA900, transparent);
    border-radius: 2px;
}

/* Section Navigation - Three columns */
.section-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.nav-item {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 169, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item:hover {
    transform: translateY(-5px);
}

.nav-item.active {
    border-color: #FFA900;
    background: #252525;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(255, 169, 0, 0.1);
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
    background: rgba(255, 169, 0, 0.2);
}

.nav-icon i {
    font-size: 2rem;
    color: #FFA900;
}

.nav-item h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.nav-item:hover h2 {
    color: #FFA900;
}

.nav-item p {
    color: #aaa;
    font-size: 1rem;
    margin: 0;
}

/* Sections Container */
.sections-container {
    position: relative;
    min-height: 500px;
}

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInSection 0.5s ease forwards;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modified Mobile Navigation */
@media (max-width: 768px) {
    .section-nav {
        grid-template-columns: 1fr;
    }
    
    .sections-container {
        padding-bottom: 30px; /* Reduced padding since we removed the mobile nav */
    }
    
    .timeline {
        padding-left: 0;
        margin-left: 0;
    }
    
    .timeline::after {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-marker {
        left: 18px;
    }
    
    .project-items {
        grid-template-columns: 1fr;
    }
    
    .experience-card .experience-header h3 {
        font-size: 1.2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-control-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-options {
        justify-content: center;
    }
}

/* Skills Control Panel */
.skills-control-panel {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 30px;
    border: none;
    background: #252525;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    box-shadow: 0 0 0 2px rgba(255, 169, 0, 0.3);
    background: #2a2a2a;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #252525;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    color: #ccc;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #2a2a2a;
    color: #fff;
}

.filter-btn.active {
    background: rgba(255, 169, 0, 0.1);
    color: #FFA900;
    border: 1px solid rgba(255, 169, 0, 0.3);
}

/* Skills Container */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Skill Category */
.skill-category {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.category-header {
    background: #151515;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 169, 0, 0.3);
}

.category-header h3 {
    color: #FFA900;
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-header h3 i {
    background: rgba(255, 169, 0, 0.1);
    padding: 10px;
    border-radius: 50%;
    font-size: 1rem;
}

.skill-count {
    background: rgba(255, 169, 0, 0.15);
    color: #FFA900;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 25px;
}

/* Skill Card */
.skill-card {
    background: #252525;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #2a2a2a;
}

.skill-header {
    background: #202020;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: #fff;
}

.skill-percentage {
    background: rgba(255, 169, 0, 0.15);
    color: #FFA900;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.skill-body {
    padding: 15px;
}

.skill-progress {
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFA900, #ffc04c);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-level {
    text-align: right;
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Mobile Styles for Work Section */
@media (max-width: 768px) {
    .experience-timeline .mobile-view {
        padding-left: 0;
    }
    
    .timeline.mobile-view::after {
        left: 20px;
    }
    
    .timeline-item.mobile-friendly {
        padding-left: 50px;
    }
    
    .timeline-item.mobile-friendly .timeline-marker {
        left: 9px;
    }
    
    .experience-card {
        margin-bottom: 15px;
    }
    
    .experience-header {
        padding: 15px;
    }
    
    .experience-body {
        padding: 15px;
    }
    
    .tech-stack {
        margin-top: 10px;
    }
    
    .tech-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .project-items {
        grid-template-columns: 1fr;
    }
    
    /* Additional class-specific styling */
    .mobile-header {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-header .company {
        margin-bottom: 5px;
    }
    
    .mobile-header h3 {
        font-size: 1.2rem;
    }
    
    .mobile-card {
        border-radius: 12px;
    }
    
    .mobile-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Very small screens */
    .very-small-screen .timeline-marker {
        width: 16px;
        height: 16px;
        left: 7px;
    }
    
    .very-small-screen .timeline-item {
        padding-left: 40px;
    }
    
    .very-small-screen .timeline::after {
        left: 15px;
    }
    
    /* Additional mobile fixes for screens smaller than 480px */
    @media (max-width: 480px) {
        .page-container {
            padding: 15px 10px;
        }
        
        .timeline-item {
            padding-left: 40px;
        }
        
        .timeline-marker {
            left: 6px;
            width: 18px;
            height: 18px;
        }
        
        .timeline::after {
            left: 15px;
        }
        
        .experience-header {
            padding: 12px;
        }
        
        .experience-header h3 {
            font-size: 1.1rem;
        }
        
        .company, .period {
            font-size: 0.8rem;
        }
        
        .experience-body {
            padding: 12px;
        }
        
        .experience-body p, 
        .experience-body li {
            font-size: 0.85rem;
        }
        
        .tech-badge {
            padding: 3px 7px;
            font-size: 0.7rem;
        }
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-nav {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .main-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .section-nav {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav {
        display: flex;
        gap: 10px;
    }
    
    .sections-container {
        padding-bottom: 80px; /* Space for mobile nav */
    }
    
    .timeline {
        padding-left: 20px;
        margin-left: 10px;
    }
    
    .timeline-marker {
        left: -29px;
    }
    
    .experience-card .experience-header h3 {
        font-size: 1.2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-control-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-options {
        justify-content: center;
    }
}

/* Work Experience Section */
.experience-timeline {
    position: relative;
    margin: 20px 0;
    padding: 20px 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, #FFA900, rgba(255, 169, 0, 0.3));
    top: 0;
    bottom: 0;
    left: 50px;
    border-radius: 4px;
}

.timeline-item {
    padding-left: 100px;
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    width: 25px;
    height: 25px;
    background: #FFA900;
    border: 4px solid #252525;
    border-radius: 50%;
    left: 40px;
    top: 25px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 169, 0, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 169, 0, 0.8);
}

.timeline-content {
    padding: 0;
    position: relative;
}

.experience-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.experience-header {
    background: #252525;
    padding: 20px 25px;
    position: relative;
}

.experience-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFA900, transparent);
}

.experience-header h3 {
    color: #FFA900;
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.company {
    display: inline-block;
    margin-right: 15px;
    font-weight: 500;
    color: #ddd;
}

.period {
    display: inline-block;
    background: rgba(255, 169, 0, 0.1);
    color: #FFA900;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.experience-body {
    padding: 25px;
}

.experience-body p {
    color: #ccc;
    margin-top: 0;
    margin-bottom: 15px;
}

.experience-body ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.experience-body li {
    margin-bottom: 10px;
    position: relative;
    color: #bbb;
    line-height: 1.5;
}

.experience-body li::before {
    content: '•';
    color: #FFA900;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: rgba(255, 169, 0, 0.15);
    color: #FFA900;
    transform: translateY(-2px);
}

/* Project highlights */
.project-highlight {
    margin-top: 25px;
    font-weight: 600;
    color: #FFA900;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.project-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.project-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    border-left: 3px solid #FFA900;
}

.project-item h4 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1rem;
}

.project-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

/* Enhanced Mobile Styles for Work Section */
@media (max-width: 768px) {
    /* Work section timeline adjustments */
    .experience-timeline {
        padding: 0;
        margin: 10px 0;
        width: 100%;
    }
    
    .timeline {
        padding-left: 0;
        margin-left: 0;
        width: 100%;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .timeline-marker {
        left: 8px;
        width: 20px;
        height: 20px;
        top: 20px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    /* Card styling on mobile */
    .experience-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .experience-header {
        padding: 15px;
        flex-direction: column;
    }
    
    .experience-header h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .company, .period {
        display: block;
        margin-bottom: 5px;
    }
    
    .company {
        margin-right: 0;
    }
    
    .period {
        display: inline-block;
        font-size: 0.8rem;
    }
    
    .experience-body {
        padding: 15px;
    }
    
    .experience-body p {
        font-size: 0.95rem;
    }
    
    .experience-body ul {
        padding-left: 15px;
    }
    
    .experience-body li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    /* Tech stack badges */
    .tech-stack {
        margin-top: 10px;
        gap: 5px;
    }
    
    .tech-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    /* Project items */
    .project-highlight {
        font-size: 1rem;
    }
    
    .project-items {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        padding: 12px;
    }
    
    .project-item h4 {
        font-size: 0.95rem;
    }
    
    .project-item p {
        font-size: 0.85rem;
    }
    
    /* Fix potential overflow issues */
    #work-section {
        width: 100%;
        padding: 0;
        overflow: hidden;
    }
    
    /* Mobile animation tweaks */
    .experience-card:hover {
        transform: none;
    }
    
    .timeline-item:hover .timeline-marker {
        transform: none;
    }
}

/* Timeline Intro */
.timeline-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.timeline-intro h3 {
    color: #FFA900;
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.timeline-intro h3:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFA900, transparent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-intro p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Learning Timeline */
.learning-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.learning-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, #FFA900, #ff7b00, #e74c3c, #3498db, #2c3e50);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.learning-item {
    padding: 15px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.learning-content {
    padding: 25px;
    background-color: rgba(35, 35, 35, 0.9);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.learning-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(40, 40, 40, 0.95);
}

/* Timeline connector dots with glow effect */
.learning-content::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: #FFA900;
    border: 4px solid #252525;
    border-radius: 50%;
    z-index: 1;
    top: calc(50% - 15px);
    box-shadow: 0 0 10px rgba(255, 169, 0, 0.5);
    transition: all 0.3s ease;
}

.learning-item:hover .learning-content::after {
    background-color: #ff7b00;
    box-shadow: 0 0 15px rgba(255, 169, 0, 0.8);
}

.left-item .learning-content::after {
    right: -54px;
}

.right-item .learning-content::after {
    left: -54px;
}

/* Date badge with gradient */
.learning-date {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #FFA900 0%, #ff7b00 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(255, 169, 0, 0.2);
}

.learning-content h4 {
    color: #fff;
    margin: 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.learning-content p {
    color: #ccc;
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.learning-content ul {
    margin: 15px 0;
    padding-left: 20px;
    color: #bbb;
}

.learning-content li {
    margin-bottom: 8px;
    position: relative;
    line-height: 1.5;
}

.learning-content li::before {
    content: '•';
    color: #FFA900;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.learning-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tag colors - adding AI/ML tag */
.frontend-tag {
    background-color: #3498db;
    color: white;
}

.backend-tag {
    background-color: #2c3e50;
    color: white;
}

.devops-tag {
    background-color: #27ae60;
    color: white;
}

.security-tag {
    background-color: #e74c3c;
    color: white;
}

.api-tag {
    background-color: #1abc9c;
    color: white;
}

/* Mini tech stack display */
.tech-stack-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.tech-stack-mini span {
    background: rgba(255, 255, 255, 0.07);
    color: #aaa;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-stack-mini span:hover {
    background: rgba(255, 169, 0, 0.1);
    color: #FFA900;
    transform: translateY(-2px);
}

/* Responsive for Learning Timeline */
@media screen and (max-width: 768px) {
    .learning-timeline::after {
        left: 31px;
    }
    
    .learning-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        margin-bottom: 30px;
    }
    
    .right-item {
        left: 0;
    }
    
    .left-item .learning-content::after,
    .right-item .learning-content::after {
        left: -39px;
    }
    
    .timeline-intro h3 {
        font-size: 1.5rem;
    }
    
    .timeline-intro p {
        font-size: 1rem;
    }
    
    .learning-content {
        padding: 20px;
    }
    
    .learning-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .learning-item {
        padding-left: 60px;
        padding-right: 10px;
    }
    
    .left-item .learning-content::after,
    .right-item .learning-content::after {
        left: -44px;
        width: 16px;
        height: 16px;
        top: 30px;
    }
    
    .learning-content {
        padding: 15px;
    }
    
    .learning-content h4 {
        font-size: 1.1rem;
    }
    
    .learning-date {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .learning-content p,
    .learning-content li {
        font-size: 0.9rem;
    }
    
    .tech-stack-mini {
        flex-wrap: wrap;
    }
    
    .timeline-intro h3 {
        font-size: 1.3rem;
    }
}