/* Button-style link */
.button-link {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0.5em 0;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button-link:hover {
    background-color: #1e90ff;
    color: white;
}

.button-container {
    margin: 1em 0;
    margin-top: 10px;
}

#recent-drawings {
    margin-top: 20px 0;
}
#recent-drawings-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


#clear-btn, #predict-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#clear-btn:hover, #predict-btn:hover {
    background-color: #0056b3;
}

/* About Section Styling */
.about-container {
    display: flex;
    align-items: center;
    text-align: left;
}

.about-img {
    max-width: 100%;
    height: auto;
    width: 300px;
    object-fit: cover;
    margin-right: 2em;
}

.about-text {
    max-width: 600px;
}

.cv-buttons {
    margin-top: 1em;
}

.cv-button {
    display: inline-block;
    padding: 0.5em 1em;
    margin-right: 1em;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.cv-button:hover {
    background-color: #555;
}

/* Timeline Styling */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 2em 0;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 80px;
    width: 4px;
    background: #ddd;
}

.timeline-event {
    display: flex;
    align-items: center;
    margin: 1em 0;
    padding: 1em;
    background-color: #fff;
    border-left: 4px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    transition: background-color 0.3s ease;
    margin-left: 100px;
}

.timeline-event:hover {
    background-color: #f4f4f4;
}

.event-logo {
    margin-right: 1em;
}

.event-logo img {
    width: 125px;
    height: auto;
}

.event-details {
    max-width: 600px;
}

.timeline-event h3 {
    margin: 0 0 0.5em 0;
}

.timeline-event p {
    margin: 0.2em 0;
}

.event-date {
    position: absolute;
    left: -250px;
    text-align: right;
    width: 180px;
    font-size: 0.9em;
    color: #555;
}

.portfolio-h2 {
    text-align: left;
    margin-left: 20px;
}

.more-details {
    display: none;
}

.timeline-event:hover .more-details {
    display: block;
}

/* Projects Styling */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
}

.project-item {
    position: relative;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 40px);
    box-sizing: border-box;
    transition: transform 0.3s;
}

.project-item h3 {
    margin-top: 0;
}

.project-item:hover {
    transform: translateY(-10px);
    z-index: 100;
}

.project-logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.project-item p {
    margin: 10px 0;
}

.project-item:hover .additional-info {
    display: block;
}

.additional-info {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 101;
}

.toggle-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

.responsibilities {
    margin-top: 10px;
}

/* Form Styling */
form input, form textarea {
    display: block;
    width: 100%;
    margin: 0.5em 0;
    padding: 0.5em;
}

form button {
    background-color: #333;
    color: white;
    padding: 0.5em 1em;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* Course Interest Section */
#course-interest-link {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#course-interest-link h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

#course-interest-link p {
    font-size: 18px;
    margin: 10px 0 20px;
    line-height: 1.6;
}

#course-interest-link .button-container {
    display: flex;
    justify-content: center;
}

#course-interest-link .button-link {
    padding: 10px 20px;
    font-size: 18px;
}

#prediction-result {
    font-size: 1.5em; /* Increase font size */
    font-weight: bold; /* Make it bold */
    color: #333; /* Darker color for better contrast */
    padding: 10px;
    border: 2px solid #333; /* Add border around the result */
    border-radius: 5px; /* Rounded corners for the border */
    background-color: #f9f9f9; /* Light background color */
    margin-top: 10px; /* Space above the result */
    opacity: 0; /* Start hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth transition */
}

#prediction-result.visible {
    opacity: 1; /* Fade in */
}

.form-container {
    background: #fff;
    padding: 2em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-container button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 5px;
}

.section-title {
    text-align: center;
    margin-top: 0;
    padding-top: 1em;
}

#services, #inquiry {
    padding: 2em;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    padding: 0.5em 0;
    border-bottom: 1px solid #ddd;
}

.social-icons {
    margin-top: 1em;
}

.social-icon {
    color: white;
    font-size: 2em;
    margin: 0 0.5em;
    text-decoration: none;
}

.social-icon:hover {
    color: #ccc;
}

#insight {
    margin-top: 20px;
}
#insight p {
    max-width: 800px;
}

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

.gallery-item {
    position: relative;
    display: inline-block;
}

.gallery-item img {
    max-width: 200px; /* Adjust as needed */
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gallery-item .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    text-align: center;
    display: none; /* Hide initially */
    border-radius: 0 0 4px 4px;
}

.gallery-item:hover .info {
    display: block; /* Show on hover */
}