/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-top: 100px; /* Adjust the padding to match the height of your header */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #007bff, #6c757d);
    border-radius: 2px;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
    margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.1s;
}

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

.timeline-date {
    position: relative;
    min-width: 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: white;
    border-radius: 0;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    z-index: 10;
    flex-shrink: 0;
}

.timeline-content {
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 20px;
    position: relative;
    box-shadow: 4px 4px 0 #333, 8px 8px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 800px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 #333, 12px 12px 0 rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #000;
}

.company-logo {
    text-align: center;
    margin-bottom: 15px;
}

.company-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 2px solid #000;
    border-radius: 50%;
    padding: 8px;
    background: white;
    box-shadow: 2px 2px 0 #000;
}

/* Company-specific logo backgrounds */
.jpmc-theme .company-logo img {
    background: #a36c4b;
    border-color: #8b5a3c;
}

.augmodo-theme .company-logo img {
    background: #5fb7c7;
    border-color: #4a9fb0;
}

.htx-theme .company-logo img {
    background: #5b2c84;
    border-color: #482166;
}

.protechs-theme .company-logo img {
    background: #f8c271;
    border-color: #e6af5a;
}

.omega-theme .company-logo img {
    background: #baa0ff;
    border-color: #a085ff;
}

.experience-details h3 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 18px;
    font-weight: bold;
}

.experience-details h4 {
    margin: 0 0 3px 0;
    color: #007bff;
    font-size: 14px;
    font-weight: 600;
}

.duration {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 12px;
    display: block;
}

.jpmc-theme .duration,
.augmodo-theme .duration,
.htx-theme .duration {
    color: #ffffff;
}

.protechs-theme .duration {
    color: #f8c271;
}

.omega-theme .duration {
    color: #baa0ff;
}

.location {
    color: #6c757d;
    font-size: 14px;
    font-weight: normal;
}

.description {
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 13px;
}

.tech-stack {
    margin-bottom: 15px;
}

.tech-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 3px 10px;
    margin: 2px 3px 2px 0;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
    border: 2px solid #007bff;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: white;
}

.company-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Company-specific color themes */
.jpmc-theme .timeline-content {
    background: #a36c4b;
    border-color: #8b5a3c;
    box-shadow: 4px 4px 0 #6b422d, 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.jpmc-theme .timeline-content:hover {
    box-shadow: 6px 6px 0 #6b422d, 12px 12px 0 rgba(0, 0, 0, 0.1);
}

.jpmc-theme .timeline-date {
    background: #a36c4b;
}

.jpmc-theme .experience-details h3,
.jpmc-theme .experience-details h4,
.jpmc-theme .description {
    color: #ffffff;
}

.jpmc-theme .company-link {
    background: #ffffff;
    color: #a36c4b;
    border-color: #ffffff;
}

.jpmc-theme .company-link:hover {
    background: #8b5a3c;
    color: #ffffff;
}

.jpmc-theme .timeline-content::before {
    border-bottom-color: #8b5a3c;
}

.augmodo-theme .timeline-content {
    background: #5fb7c7;
    border-color: #4a9fb0;
    box-shadow: 4px 4px 0 #387b8a, 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.augmodo-theme .timeline-content:hover {
    box-shadow: 6px 6px 0 #387b8a, 12px 12px 0 rgba(0, 0, 0, 0.1);
}

.augmodo-theme .timeline-date {
    background: #5fb7c7;
}

.augmodo-theme .experience-details h3,
.augmodo-theme .experience-details h4,
.augmodo-theme .description {
    color: #ffffff;
}

.augmodo-theme .company-link {
    background: #ffffff;
    color: #00485e;
    border-color: #ffffff;
}

.augmodo-theme .company-link:hover {
    background: #00485e;
    color: #ffffff;
}

.augmodo-theme .timeline-content::before {
    border-bottom-color: #4a9fb0;
}

.htx-theme .timeline-content {
    background: #5b2c84;
    border-color: #482166;
    box-shadow: 4px 4px 0 #301545, 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.htx-theme .timeline-content:hover {
    box-shadow: 6px 6px 0 #301545, 12px 12px 0 rgba(0, 0, 0, 0.1);
}

.htx-theme .timeline-date {
    background: #5b2c84;
}

.htx-theme .experience-details h3,
.htx-theme .experience-details h4,
.htx-theme .description {
    color: #ffffff;
}

.htx-theme .company-link {
    background: #ffffff;
    color: #5b2c84;
    border-color: #ffffff;
}

.htx-theme .company-link:hover {
    background: #482166;
    color: #ffffff;
}

.htx-theme .timeline-content::before {
    border-bottom-color: #482166;
}

.protechs-theme .timeline-content {
    background: #000000;
    border-color: #333333;
    box-shadow: 4px 4px 0 #1a1a1a, 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.protechs-theme .timeline-content:hover {
    box-shadow: 6px 6px 0 #1a1a1a, 12px 12px 0 rgba(0, 0, 0, 0.1);
}

.protechs-theme .timeline-date {
    background: #f8c271;
    color: #000000;
}

.protechs-theme .experience-details h3,
.protechs-theme .experience-details h4,
.protechs-theme .description {
    color: #f8c271;
}

.protechs-theme .company-link {
    background: #f8c271;
    color: #1c1c1c;
    border-color: #f8c271;
}

.protechs-theme .company-link:hover {
    background: #e6af5a;
    color: #1c1c1c;
}

.protechs-theme .timeline-content::before {
    border-bottom-color: #333333;
}

.omega-theme .timeline-content {
    background: #1e003a;
    border-color: #300057;
    box-shadow: 4px 4px 0 #0f0020, 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.omega-theme .timeline-content:hover {
    box-shadow: 6px 6px 0 #0f0020, 12px 12px 0 rgba(0, 0, 0, 0.1);
}

.omega-theme .timeline-date {
    background: #baa0ff;
    color: #1e003a;
}

.omega-theme .experience-details h3,
.omega-theme .experience-details h4,
.omega-theme .description {
    color: #baa0ff;
}

.omega-theme .company-link {
    background: #baa0ff;
    color: #1e003a;
    border-color: #baa0ff;
}

.omega-theme .company-link:hover {
    background: #a085ff;
    color: #1e003a;
}

.omega-theme .timeline-content::before {
    border-bottom-color: #300057;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-container {
        padding: 20px 10px;
    }
    
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        margin-bottom: 20px;
    }
    
    .timeline-content {
        max-width: 100%;
        padding: 15px;
    }
    
    .timeline-content::before {
        border-width: 6px;
    }
    
    .company-logo img {
        width: 50px;
        height: 50px;
    }
    
    .experience-details h3 {
        font-size: 16px;
    }
    
    .experience-details h4 {
        font-size: 13px;
    }
}

/* Modern Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project-card {
    background: white;
    border: 2px solid #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 4px 4px 0 #333;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 #333;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #000;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.project-type {
    color: #007bff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.project-description {
    color: #333;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 15px;
}

.project-awards {
    margin: 15px 0 20px 0;
}

.award {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid #000;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 #000;
}

.project-btn.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.project-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 #000;
}

.project-btn.secondary {
    background: white;
    color: #007bff;
    border-color: #007bff;
}

.project-btn.secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 #000;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-content {
        padding: 20px;
    }
}

/* External Activities Section - Staggered Layout */
.external-grid {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.activity-card {
    background: white;
    border: 2px solid #000;
    border-radius: 0;
    padding: 20px;
    box-shadow: 4px 4px 0 #333;
    transition: all 0.3s ease;
    width: 450px;
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    animation: slideInStagger 0.6s ease forwards;
}

.activity-card:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    animation-delay: 0.1s;
}

.activity-card:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    transform: translateY(-20px);
    animation-delay: 0.3s;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 6px 6px 0 #000;
}

.activity-card:nth-child(even):hover {
    transform: translateY(-28px);
}

@keyframes slideInStagger {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.activity-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: #f8f9fa;
    flex-shrink: 0;
}

.activity-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    line-height: 1.2;
}

.activity-org {
    margin: 0 0 5px 0;
    color: #007bff;
    font-size: 15px;
    font-weight: 600;
}

.activity-role {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.activity-description {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Achievements Sections */
.achievements-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.achievement-section {
    margin-bottom: 50px;
}



.hackathon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hackathon-card {
    background: white;
    border: 2px solid #000;
    border-radius: 0;
    padding: 25px;
    box-shadow: 4px 4px 0 #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Specific hackathon card colors */
.hackathon-card:nth-child(1) {
    background: #ff55bb;
    border-color: #e6409f;
    box-shadow: 4px 4px 0 #cc2d85;
}

.hackathon-card:nth-child(1):hover {
    box-shadow: 6px 6px 0 #cc2d85;
}

.hackathon-card:nth-child(1) .hackathon-title,
.hackathon-card:nth-child(1) .hackathon-achievement,
.hackathon-card:nth-child(1) .hackathon-details {
    color: #ffffff;
}

.hackathon-card:nth-child(2) {
    background: #1bcaff;
    border-color: #16b3e6;
    box-shadow: 4px 4px 0 #0da6d9;
}

.hackathon-card:nth-child(2):hover {
    box-shadow: 6px 6px 0 #0da6d9;
}

.hackathon-card:nth-child(2) .hackathon-title,
.hackathon-card:nth-child(2) .hackathon-achievement,
.hackathon-card:nth-child(2) .hackathon-details {
    color: #ffffff;
}

.hackathon-card:nth-child(3) {
    background: #a36c4b;
    border-color: #8b5a3c;
    box-shadow: 4px 4px 0 #6b422d;
}

.hackathon-card:nth-child(3):hover {
    box-shadow: 6px 6px 0 #6b422d;
}

.hackathon-card:nth-child(3) .hackathon-title,
.hackathon-card:nth-child(3) .hackathon-achievement,
.hackathon-card:nth-child(3) .hackathon-details {
    color: #ffffff;
}

.hackathon-card:nth-child(4) {
    background: #c955ff;
    border-color: #b340e6;
    box-shadow: 4px 4px 0 #9030cc;
}

.hackathon-card:nth-child(4):hover {
    box-shadow: 6px 6px 0 #9030cc;
}

.hackathon-card:nth-child(4) .hackathon-title,
.hackathon-card:nth-child(4) .hackathon-achievement,
.hackathon-card:nth-child(4) .hackathon-details {
    color: #ffffff;
}

.hackathon-card:nth-child(5) {
    background: #ffe6b1;
    border-color: #f0d195;
    box-shadow: 4px 4px 0 #e6c682;
}

.hackathon-card:nth-child(5):hover {
    box-shadow: 6px 6px 0 #e6c682;
}

.hackathon-card:nth-child(5) .hackathon-title,
.hackathon-card:nth-child(5) .hackathon-achievement,
.hackathon-card:nth-child(5) .hackathon-details {
    color: #27bdb0;
}

.hackathon-card:nth-child(6) {
    background: #ffe6b1;
    border-color: #f0d195;
    box-shadow: 4px 4px 0 #e6c682;
}

.hackathon-card:nth-child(6):hover {
    box-shadow: 6px 6px 0 #e6c682;
}

.hackathon-card:nth-child(6) .hackathon-title,
.hackathon-card:nth-child(6) .hackathon-achievement,
.hackathon-card:nth-child(6) .hackathon-details {
    color: #27bdb0;
}

.hackathon-card:nth-child(7) {
    background: #fdfdfd;
    border-color: #e0e0e0;
    box-shadow: 4px 4px 0 #c8c8c8;
}

.hackathon-card:nth-child(7):hover {
    box-shadow: 6px 6px 0 #c8c8c8;
}

.hackathon-card:nth-child(7) .hackathon-title,
.hackathon-card:nth-child(7) .hackathon-achievement,
.hackathon-card:nth-child(7) .hackathon-details {
    color: #438b5b;
}

.hackathon-card:nth-child(8) {
    background: #1e003a;
    border-color: #300057;
    box-shadow: 4px 4px 0 #0f0020;
}

.hackathon-card:nth-child(8):hover {
    box-shadow: 6px 6px 0 #0f0020;
}

.hackathon-card:nth-child(8) .hackathon-title,
.hackathon-card:nth-child(8) .hackathon-achievement,
.hackathon-card:nth-child(8) .hackathon-details {
    color: #baa0ff;
}

.hackathon-card:nth-child(9) {
    background: #323e88;
    border-color: #2a3470;
    box-shadow: 4px 4px 0 #1e2654;
}

.hackathon-card:nth-child(9):hover {
    box-shadow: 6px 6px 0 #1e2654;
}

.hackathon-card:nth-child(9) .hackathon-title,
.hackathon-card:nth-child(9) .hackathon-achievement,
.hackathon-card:nth-child(9) .hackathon-details {
    color: #b6eef5;
}

.hackathon-card:nth-child(10) {
    background: #ffdada;
    border-color: #f0c4c4;
    box-shadow: 4px 4px 0 #e6aeae;
}

.hackathon-card:nth-child(10):hover {
    box-shadow: 6px 6px 0 #e6aeae;
}

.hackathon-card:nth-child(10) .hackathon-title,
.hackathon-card:nth-child(10) .hackathon-achievement,
.hackathon-card:nth-child(10) .hackathon-details {
    color: #d46e6e;
}

.hackathon-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #333;
}

.hackathon-title {
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.3;
    position: relative;
    padding-left: 15px;
}

.hackathon-title::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: currentColor;
    opacity: 0.6;
    font-size: 12px;
}

.hackathon-achievement {
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin: 3px 6px 8px 0;
    color: inherit;
}

.hackathon-details {
    color: #555;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.leadership-list, .others-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.leadership-item, .others-item {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 0;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 #bbb;
    position: relative;
}

/* Leadership specific colors */
.leadership-item:nth-child(1) {
    background: #9984ca;
    border-color: #8671b8;
}

.leadership-item:nth-child(1) .leadership-title,
.leadership-item:nth-child(1) .leadership-org,
.leadership-item:nth-child(1) .leadership-desc {
    color: #402349;
}

.leadership-item:nth-child(2) {
    background: #007bff;
    border-color: #0056b3;
}

.leadership-item:nth-child(2) .leadership-title,
.leadership-item:nth-child(2) .leadership-org,
.leadership-item:nth-child(2) .leadership-desc {
    color: #ffffff;
}

.leadership-item:nth-child(3) {
    background: #000000;
    border-color: #333333;
}

.leadership-item:nth-child(3) .leadership-title,
.leadership-item:nth-child(3) .leadership-org,
.leadership-item:nth-child(3) .leadership-desc {
    color: #ffffff;
}

.leadership-item:nth-child(4) {
    background: #4d4d4d;
    border-color: #666666;
}

.leadership-item:nth-child(4) .leadership-title,
.leadership-item:nth-child(4) .leadership-org,
.leadership-item:nth-child(4) .leadership-desc {
    color: #ffffff;
}

.leadership-item:nth-child(5) {
    background: #5fb7c7;
    border-color: #4a9fb0;
}

.leadership-item:nth-child(5) .leadership-title,
.leadership-item:nth-child(5) .leadership-org,
.leadership-item:nth-child(5) .leadership-desc {
    color: #ffffff;
}

.leadership-item:nth-child(6) {
    background: #ffaf63;
    border-color: #e69950;
}

.leadership-item:nth-child(6) .leadership-title,
.leadership-item:nth-child(6) .leadership-org,
.leadership-item:nth-child(6) .leadership-desc {
    color: #e7661b;
}

.leadership-item:nth-child(7) {
    background: #f6f6f6;
    border-color: #e0e0e0;
}

.leadership-item:nth-child(7) .leadership-title,
.leadership-item:nth-child(7) .leadership-org,
.leadership-item:nth-child(7) .leadership-desc {
    color: #000000;
}

.leadership-item:nth-child(8) {
    background: #486aa0;
    border-color: #3d5a8a;
}

.leadership-item:nth-child(8) .leadership-title,
.leadership-item:nth-child(8) .leadership-org,
.leadership-item:nth-child(8) .leadership-desc {
    color: #ffffff;
}

.others-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #007bff;
}

.leadership-item:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.leadership-title, .others-title {
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.3;
    position: relative;
    padding-left: 15px;
}

.leadership-title::before, .others-title::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: currentColor;
    opacity: 0.6;
    font-size: 12px;
}

.leadership-org, .others-details {
    color: #007bff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    display: inline-block;
}

.leadership-desc {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .external-grid {
        padding: 20px;
    }
    
    .activity-card {
        width: 100%;
        margin-bottom: 20px;
        transform: none !important;
    }
    
    .activity-card:nth-child(odd),
    .activity-card:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
    }
    
    .activity-card:nth-child(even):hover {
        transform: translateY(-5px);
    }
    
    .activity-header {
        gap: 12px;
    }
    
    .activity-logo {
        width: 50px;
        height: 50px;
    }
    
    .activity-card {
        padding: 18px;
    }
    
    .hackathon-grid,
    .leadership-list,
    .others-list {
        grid-template-columns: 1fr;
    }
}

header {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li button {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

nav ul li button:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.night-mode-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.night-mode-btn i {
    font-size: 20px;
    pointer-events: none;
}

/* Section Styles */
section {
    padding: 50px;
    text-align: center;
    margin: 0;
    /* Removed invalid margin-bottom */
}

section#intro {
    background-color: #f4f4f4;
    padding-bottom: 0;
}

section h2 {
    display: inline-block;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 20px 40px;
    border-radius: 0;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

section h2 button {
    margin-top: 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dropdown-btn {
    display: none; /* Hide the dropdown button by default */
}

section h2 button:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.button2-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.button2 {
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button2:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn2 {
    margin-top: 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn2:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Section Header */
.section-header {
    display: inline-block;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Experience Card */
.experience-card {
    display: flex;
    align-items: center; /* Align image and text vertically in the center */
    justify-content: center; /* Center the content horizontally */
    padding: 150px;
    margin: 10px 0; /* Add spacing between cards */
    background-color: #5fb7c7; /* Adjust background color */
    height: 250px; /* Fixed height for all experience cards */
    box-sizing: border-box; /* Ensure padding is included in height */
}

.experience-card .left-column {
    flex-shrink: 0; /* Prevent the image from shrinking */
    margin-right: 20px; /* Add space between the image and text */
    text-align: right;
}

.experience-card img {
    width: 200px; /* Adjust the size of the image */
    height: 200px; /* Keep the aspect ratio */
    border-radius: 5px;
}

.experience-card .right-column {
    flex: 1; /* Allow the text column to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the text */
    text-align: left; /* Align text to the left */
    max-width: 600px; /* Set max width for consistent text width */
}

.experience-card h3 {
    margin-top: 0;
    font-size: 30px; /* Adjust font size */
    color: #fff; /* Adjust color */
}

.experience-card p {
    margin: 10px 0;
    font-size: 14px;
}

.experience-card-links {
    margin-top: 10px;
}


.experience-card .btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background-color: #F5F5F5;
    color: #002E5D;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 3px 3px 0 #000;
}

.experience-card .btn:hover {
    background-color: #D4D4D4;
}

/* Project Cards */
.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #002E5D;
    border-radius: 0;
    padding: 30px;
    width: calc(33% - 30px); /* Adjusted to fit three cards per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #F5F5F5;
    box-sizing: border-box;
    min-height: 250px; /* Set a minimum height for consistent card size */
}

.project-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #002E5D;
    border-radius: 0;
    padding: 30px;
    width: 100%; /* Adjusted to fit three cards per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #F5F5F5;
    box-sizing: border-box;
    min-height: 250px; /* Set a minimum height for consistent card size */
}

.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    transform: rotateY(180deg);
    background-color: #2d2d2d;
    color: white;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.back-content {
    padding: 20px;
    text-align: center;
}



.project-card img {
    width: 150px;
    height: auto;
    border-radius: 5px;
}

.project-card h3 {
    font-size: 24px;
    color: #F5F5F5;
}

.project-card p {
    margin: 10px 0;
    color: #F5F5F5;
}

.project-card-links {
    margin-top: 10px;
}

.project-card .btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background-color: #F5F5F5;
    color: #002E5D;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 3px 3px 0 #000;
}

.project-card .btn:hover {
    background-color: #D4D4D4;
}

/* CCA Cards */
.cca-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cca-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #002E5D;
    border-radius: 0;
    padding: 20px;
    width: calc(33% - 40px); /* Adjusted to fit three cards per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #F5F5F5;
    box-sizing: border-box;
}

.cca-card img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.cca-card h3 {
    font-size: 24px;
    color: #F5F5F5;
}

.cca-card p {
    margin: 10px 0;
    color: #F5F5F5;
}

.cca-card-links {
    margin-top: 10px;
}

.cca-card .btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background-color: #F5F5F5;
    color: #002E5D;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 3px 3px 0 #000;
}

.cca-card .btn:hover {
    background-color: #D4D4D4;
}

/* Skills Section */
.skills-section {
    width: 80%;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h2 {
    font-size: 24px;
    font-weight: bold;
}

.skills-category .skills-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 5px 10px;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.skills-category .skills-box img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.skills-category .skills-box p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.skills-category .skills-box div {
    display: flex;
    align-items: center;
}

/* Night Mode Styles */
body.night-mode {
    background-color: #222;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.night-mode header {
    background-color: #333;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.night-mode footer {
    background-color: #333;
    transition: background-color 0.3s ease;
}

body.night-mode nav ul li button {
    background-color: #444;
    color: #fff;
    border-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.night-mode nav ul li button:hover {
    background-color: #666;
}

body.night-mode .button2 {
    background-color: #444;
    color: #fff;
    border-color: #fff;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .button2:hover {
    background-color: #666;
}

body.night-mode section h2,
body.night-mode section h2 button {
    background-color: #444;
    color: #fff;
    border-color: #666;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .experience-card,
body.night-mode .cca-card,
body.night-mode .skills-category .skills-box {
    background-color: #444;
    color: #fff;
    border-color: #666;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .experience-card h3,
body.night-mode .cca-card h3,
body.night-mode .skills-category h2 {
    color: #ffa726;
}

body.night-mode .experience-card p,
body.night-mode .cca-card p,
body.night-mode .skills-category p {
    color: #ddd;
}

body.night-mode .btn,
body.night-mode .experience-card .btn,
body.night-mode .cca-card .btn,
body.night-mode .skills-category .skills-box .btn {
    background-color: #666;
    color: #fff;
    border-color: #fff;
}

body.night-mode .btn:hover,
body.night-mode .experience-card .btn:hover,
body.night-mode .cca-card .btn:hover,
body.night-mode .skills-category .skills-box .btn:hover {
    background-color: #888;
}

body.night-mode .night-mode-btn {
    background-color: #666;
    color: #fff;
    border-color: #fff;
}

body.night-mode .night-mode-btn:hover {
    background-color: #888;
}

/* Additional night mode styles for home page */
body.night-mode section#intro {
    background-color: #1a1a1a;
}

body.night-mode section#experience {
    background-color: #222;
}

body.night-mode section#projects {
    background-color: #1a1a1a;
}

body.night-mode section#skills {
    background-color: #222;
}

body.night-mode section#contact {
    background-color: #1a1a1a;
}

body.night-mode .project-card {
    background-color: #333;
    border-color: #444;
}

body.night-mode .card-front, 
body.night-mode .card-back {
    background-color: #333;
    color: #ddd;
}

body.night-mode .project-card h3 {
    color: #ffa726;
}

body.night-mode .project-card p {
    color: #bbb;
}

body.night-mode .proj-card {
    background-color: #333;
    border-color: #444;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .proj-side {
    background-color: #333;
}

body.night-mode .proj-card h3,
body.night-mode .proj-card h4 {
    color: #ffa726;
}

body.night-mode .proj-card p {
    color: #bbb;
}

body.night-mode .proj-btn {
    background-color: #666;
    color: #fff;
    border-color: #fff;
}

body.night-mode .proj-btn:hover {
    background-color: #888;
}

/* Add smooth transitions for all elements */
body, 
header, 
footer, 
button, 
.button2, 
section, 
.blog-post, 
.gallery-item, 
.experience-card, 
.cca-card, 
.project-card,
.night-mode-btn,
.proj-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Popup Styles */
.others-popup {
    display: none;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #000;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1001;
    width: 300px;
    text-align: center;
}

.popup-content {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.others-popup button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 0;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.others-popup button:hover {
    background-color: #f0f0f0;
}

.others-popup button:last-child {
    margin-bottom: 0;
}

/* Project Section Styling */
#Projects {
    padding: 50px;
    text-align: center;
}

#Projects h2 {
    margin-bottom: 30px;
}

.proj-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Card Styling */
.proj-card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    margin: 15px;
}

.proj-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.proj-card:hover {
    transform: translateY(-10px);
}

.proj-card.flipped .proj-inner {
    transform: rotateY(180deg);
}

/* Card Sides */
.proj-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

.proj-front {
    background-color: #002E5D;
    color: #F5F5F5;
}

.proj-back {
    background-color: #2d2d2d;
    color: #ffffff;
    transform: rotateY(180deg);
}

/* Content Layout */
.proj-left-column {
    text-align: center;
    margin-bottom: 15px;
}

.proj-right-column {
    text-align: left;
}

/* Image Styling */
.proj-card img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

/* Text Styling */
.proj-card h3 {
    font-size: 20px;
    color: #ffa600;
    margin-bottom: 10px;
}

.proj-card h4 {
    font-size: 14px;
    color: #ffa600;
    margin-bottom: 15px;
}

.proj-card p {
    font-size: 14px;
    color: #ffa600;
    margin-bottom: 15px;
}

/* Button Styling */
.proj-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffa600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

/* Back Content Layout */
.proj-back-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* #experience {
    margin: 50px 0;
}

.experience-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.experience-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background-color: #e0e0e0;
    color: #555;
    cursor: pointer;
    font-size: 24px;
    border: 1px solid #ccc;
}

.experience-tab + .experience-tab {
    border-left: none;
}

.experience-tab.active {
    background-color: #5fb7c7;
    color: #fff;
}

.experience-content {
}

.experience-card {
    display: flex;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
}

.experience-card .left-column {
    flex: 1;
    text-align: center;
}

.experience-card .right-column {
    flex: 2;
    padding-left: 20px;
}

.experience-card .experience-card-links {
    margin-top: 10px;
}

.experience-card .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
}

@media (max-width: 768px) {
    .experience-card {
        flex-direction: column;
    }
    .experience-card .right-column {
        padding-left: 0;
        margin-top: 20px;
    }
} */

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    nav ul {
        display: none; /* Hide navigation items by default */
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .dropdown-btn {
        display: block;
        background-color: #fff;
        color: #000;
        border: 1px solid #000;
        padding: 10px;
        border-radius: 0;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        margin-bottom: 10px;
    }

    nav.show ul {
        display: flex; /* Show navigation items when dropdown is toggled */
    }

    nav ul li {
        display: block;
        margin: 5px 0;
    }

    nav ul li button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .night-mode-btn {
        width: 35px;
        height: 35px;
    }

    section {
        padding: 20px;
    }

    section#intro {
        padding: 20px;
        margin-top: -30px;
        margin-bottom: 30px;
    }

    section h2 {
        font-size: 18px;
        padding: 15px 20px;
        margin-bottom: 20px;
        margin-top: -20px;
    }

    .button2-container {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .button2 {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

/* Ensure proper behavior on smaller screens */
    .experience-card {
        flex-direction: column; /* Stack image and text on smaller screens */
        align-items: center; /* Center content horizontally */
        height: auto; /* Let height adjust naturally on small screens */
    }

    .experience-card .left-column {
        margin-right: 0; /* Remove margin when stacked */
        margin-bottom: 20px; /* Space between image and text */
    }

    .experience-card img {
        width: 200px; /* Adjust the size of the image */
        height: auto; /* Keep the aspect ratio */
        border-radius: 5px;
    }

    .experience-card .right-column {
        text-align: center; /* Center text on smaller screens */
    }

    .experience-card h3 {
        font-size: 24px; /* Adjust font size for smaller screens */
    }

    .experience-card p {
        font-size: 16px; /* Adjust paragraph font size */
    }
    .skills-category .skills-box {
        flex-direction: column;
        text-align: center;
    }

    .skills-category .skills-box img {
        margin-bottom: 10px;
    }

    /* Update for project and CCA cards to display in columns */
    .project-container,
    .cca-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card,
    .cca-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .project-card img,
    .cca-card img {
        width: 100px;
        margin-bottom: 20px;
    }

    .project-card h3,
    .cca-card h3 {
        font-size: 20px;
    }

    .project-card p,
    .cca-card p {
        font-size: 14px;
    }

    /* Timeline Mobile Responsive */
    .timeline-container {
        padding: 20px 10px;
        gap: 20px;
    }

    .timeline-container::before {
        left: 40px;
    }

    .timeline-item {
        gap: 15px;
    }

    .timeline-date {
        min-width: 50px;
        width: 50px;
        height: 50px;
        font-size: 10px;
    }

    .timeline-content {
        max-width: calc(100% - 80px);
        padding: 15px;
    }

    .timeline-content::before {
        left: -12px;
        top: 25px;
        border-width: 6px;
    }

    .company-logo img {
        width: 50px;
        height: 50px;
    }

    .experience-details h3 {
        font-size: 16px;
    }

    .experience-details h4 {
        font-size: 13px;
    }

    .duration {
        font-size: 11px;
    }

    .description {
        font-size: 12px;
    }

    .company-link {
        font-size: 11px;
        padding: 5px 10px;
    }
}
