@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
}

header {
    background: linear-gradient(90deg, #16222a, #3a6073);
    border-bottom: 1px solid #3a6073;
}

.logo {
    max-height: 250px;
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-weight: 300;
}

section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.list-group-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

a {
    color: #00aaff;
}

a:hover {
    color: #0077cc;
}

.btn-primary {
    background-color: #00aaff;
    border-color: #00aaff;
}

.btn-primary:hover {
    background-color: #0077cc;
    border-color: #0077cc;
}

footer {
    background-color: #16222a;
    color: #a0a0a0;
}


/* Modal Styling */
.modal-content {
    background-color: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid #3a6073;
}

.modal-header {
    border-bottom: 1px solid #3a6073;
}

.btn-close {
    filter: invert(1);
}

/* Certificate Styling */
.cert-thumbnail {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-pdf-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 3rem;
    color: #3a6073;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

/* Timeline Styling */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00aaff, #3a6073, #00aaff);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.15);
    border-color: rgba(0, 170, 255, 0.3);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 1.8rem;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #00aaff, #0077cc);
    border-radius: 50%;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.8);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-title .icon {
    font-size: 1.5rem;
}

.timeline-location {
    color: #00aaff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-date {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(58, 96, 115, 0.3));
    border-radius: 20px;
    font-size: 0.85rem;
    color: #a0cfee;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.timeline-current {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 170, 255, 0.2));
    border-color: rgba(0, 255, 136, 0.3);
}

.timeline-current::after {
    content: '•';
    margin-left: 0.5rem;
    color: #00ff88;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Horizontal Timeline for Summer Schools */
.horizontal-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding: 2rem 1rem;
    margin-top: 1.5rem;
    overflow-x: auto;
}

.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 4.5rem;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #3a6073, #00aaff, #3a6073);
    border-radius: 3px;
}

.h-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    min-width: 140px;
}

.h-timeline-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00aaff;
    margin-bottom: 0.75rem;
}

.h-timeline-dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #00aaff, #0077cc);
    border-radius: 50%;
    border: 3px solid #1a1a2e;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.h-timeline-item:hover .h-timeline-dot {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.9);
}

.h-timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.h-timeline-item:hover .h-timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.2);
    border-color: rgba(0, 170, 255, 0.3);
}

.h-timeline-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.h-timeline-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
    text-align: center;
}

@media (max-width: 768px) {
    .horizontal-timeline {
        flex-direction: column;
        align-items: center;
    }

    .horizontal-timeline::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 3px;
        height: auto;
        transform: translateX(-50%);
    }

    .h-timeline-item {
        flex-direction: row;
        padding: 1rem 0;
        min-width: auto;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .h-timeline-year {
        margin-bottom: 0;
        min-width: 50px;
    }

    .h-timeline-dot {
        margin-bottom: 0;
    }

    .h-timeline-content {
        min-width: 150px;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    filter: invert(1);
    /* Invert for dark theme */
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon[alt="Scratch"] {
    filter: none;
}