/* General Styles */
body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1c1e26;
}

h1, h2, h4 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: #0D6EFD;
}

section {
    padding: 60px 0;
}

/* Navbar */
.navbar {
    background-color: rgba(28, 30, 38, 0.95);
}

/* Header Section with GIF Background */
.header-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: left;
    background-image: url('bg_video.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Dark overlay to reduce brightness */
.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1;
}

/* Content is above the overlay */
.overlay-content {
    z-index: 2;
    position: relative;
    padding-left: 5%;
}

.chip-profile-img {
    width: 360px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    margin-left: 100px;
}

/* Skills Section */
.skill-icon {
    width: 150px;
    height: 100px;
    margin-bottom: 10px;
}

.skills-section h4 {
    margin-top: 10px;
    color: #e0e0e0;
}

.skills-section {
    background-color: #3b3e41;
    color: #0c0c10;
}

/* Project Cards */
.card {
    background-color: #1c1e26;
    color: white;
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background-color: #333;
}

.card-title, .card-text {
    color: white;
}

/* Flashcard Styles */
.flashcard {
    width: 100%;
    height: 300px;
    perspective: 1000px; /* Allows the card to have a 3D flip effect */
    margin-bottom: 20px;
    position: relative;
}

.flashcard-front, .flashcard-back {
    width: 100%;
    height: 100%;
    background-color: #2c2f38;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 30px;
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
}

.flashcard-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flashcard-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flashcard:hover .flashcard-front {
    transform: rotateY(180deg);
}

.flashcard:hover .flashcard-back {
    transform: rotateY(0deg);
}

.education-icon {
    font-size: 3rem;
    color: #0D6EFD;
    margin-bottom: 15px;
}

/* Experience Section */
.experience-section {
    background-color: #1c1e26;
    color: white;
    padding: 60px 0;
}

/* Timeline container */
.timeline {
    position: relative;
    margin: 50px 0;
    padding-left: 40px; /* Space for the vertical line */
}

/* Vertical timeline line */
.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #0D6EFD; /* Accent color for the timeline line */
}

/* Timeline item container */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #2c2f38;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    background-color: #333;
}

/* Timeline icons */
.timeline-icon {
    position: absolute;
    left: -40px;
    top: 10px;
    background-color: #0D6EFD;
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Timeline content */
.timeline-content {
    padding-left: 50px; /* Space for the icon */
}

.timeline-content h4 {
    margin-top: 0;
    color: #ffffff;
}

.timeline-content h5 {
    color: #999;
    font-weight: 300;
}

.timeline-content p {
    color: #ddd;
    margin-bottom: 10px;
}

.timeline-content strong {
    color: #ffffff;
}

/* General Styles for Course Box */
.course-box {
    background-color: #2c2f38;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-50px); /* Slide in from the left */
    transition: all 0.7s ease-in-out;
}

.course-box.show {
    max-height: 1000px; /* Expanded */
    opacity: 1;
    transform: translateX(0); /* Slide into view */
}

/* Styling the course list items */
.course-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
    color: #ddd;
}

.course-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(50px); /* Slide each course up */
    opacity: 0; /* Hidden initially */
}

.course-box.show .course-list li {
    transform: translateY(0); /* Slide into position */
    opacity: 1; /* Fade in */
}

/* Add a slight delay for each list item (staggered effect) */
.course-box.show .course-list li:nth-child(1) {
    transition-delay: 0.2s;
}
.course-box.show .course-list li:nth-child(2) {
    transition-delay: 0.4s;
}
.course-box.show .course-list li:nth-child(3) {
    transition-delay: 0.6s;
}
.course-box.show .course-list li:nth-child(4) {
    transition-delay: 0.8s;
}
.course-box.show .course-list li:nth-child(5) {
    transition-delay: 1s;
}
.course-box.show .course-list li:nth-child(6) {
    transition-delay: 1.2s;
}
.course-box.show .course-list li:nth-child(7) {
    transition-delay: 1.4s;
}
.course-box.show .course-list li:nth-child(8) {
    transition-delay: 1.6s;
}
.course-box.show .course-list li:nth-child(9) {
    transition-delay: 1.8s;
}

/* Hover effect for the course items */
.course-list li:hover {
    transform: scale(1.05); /* Slight zoom */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Soft shadow */
}

/* Styling the course headers */
h3.course-header {
    color: #ffffff;
    margin-bottom: 10px;
}

/* Awards Section */
.awards-section {
    background-color: #1c1e26;
    color: white;
    padding: 60px 0;
}

.award-card {
    background-color: #2c2f38;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

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

/* Icons for Education and Award Cards */
.education-icon, .award-icon {
    background-color: #0D6EFD;
    color: white;
    padding: 15px;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Award Headings */
.award-card h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.award-card h5 {
    color: #999;
    font-weight: 300;
}

.award-card p {
    color: #ddd;
    font-size: 1rem;
}

.award-year {
    font-weight: bold;
    color: #0D6EFD;
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .award-card {
        margin-bottom: 20px;
    }
}

/* Contact Section */
.contact-section {
    background-color: #0D6EFD;
    color: white;
    padding: 60px 0;
}

/* Style for LinkedIn and GitHub Icons */
.linkedin-icon i {
    color: #0077B5; /* LinkedIn's official blue color */
    font-size: 24px;
    transition: color 0.3s ease;
}

.github-icon i {
    color: #333; /* GitHub's official dark color */
    font-size: 24px;
    transition: color 0.3s ease;
}

/* Add hover effect */
.linkedin-icon i:hover {
    color: #005582; /* Darker shade of LinkedIn blue on hover */
}

.github-icon i:hover {
    color: #6e5494; /* Slightly lighter purple for GitHub on hover */
}


/* Footer */
footer {
    background: #343a40;
    color: white;
    padding: 20px 0;
}
