/* General Styles */
body {
    margin: 0;
    font-family: 'Merriweather', serif;
    background-color: #2c2f33;
    color: #ffffff;
}

/* Horizontal Flair Line */
.flair-line {
    display: inline-block;
    width: 50px;
    height: 2px;
    background-color: #f0a500;
    margin-right: 10px;
    vertical-align: middle;
}

/* Vertical Flair Line */
.vertical-flair-line {
    width: 2px;
    height: 100px;
    background-color: #f0a500;
    margin: 0 auto;
}

/* Header Section */
.header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 0px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 24px;
    color: #f0a500;
    font-weight: 700;
    margin-bottom: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #f0a500;
}

/* Header Content */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.header-text, .header-image {
    flex: 1 1 45%;
    max-width: 500px;
    padding: 20px;
}

.header-text {
    text-align: center;
}

.header-text h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
}

.header-text .highlight {
    color: #f0a500;
}

.header-text p {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-button {
    background-color: transparent;
    color: #f0a500;
    padding: 10px 30px;
    border: 2px solid #f0a500;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-button:hover {
    background-color: #f0a500;
    color: #ffffff;
}

/* Header Image */
.header-image {
    position: relative;
    text-align: center;
    padding-bottom: 0px;
}

.header-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 5px;
    opacity: .618;
}

/* Social Icons */
.social-container {
    position: absolute;
    right: -60px; /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-container .vertical-flair-line {
    width: 2px;
    height: 100px;
    background-color: #f0a500;
    margin-bottom: 10px;
}

.social-container i {
    font-size: 20px;
    color: #ffffff;
    margin: 10px 0;
    cursor: pointer;
}

.social-container i:hover {
    color: #f0a500;
}

/* Contact Section Flair Lines */
.contact-line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: #f0a500;
    margin: 20px auto;
}

/* Header and Footer Lines */
.header-line, .footer-line {
    width: 100%;
    height: 2px;
    background-color: #f0a500;
    margin: 20px 0;
}

/* Contact Info Styling */
.contact-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    background-color: #393e46;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    width: 80%;
}

.contact-info i {
    margin-right: 10px;
    color: #f0a500;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: normal;
}

/* Links */
a {
    color: #f0a500;
    text-decoration: none;
}

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

/* About Section */
.about {
    background-color: #33363b;
    padding: 60px 20px;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Skills Section */
.skills {
    background-color: #2c2f33;
    padding: 60px 20px;
    text-align: center;
}

.skills h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
}

.skill-item {
    background-color: #393e46;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-item img {
    max-width: 50px;
    margin-bottom: 10px;
}

.skill-item p {
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.skill-item:hover {
    transform: scale(1.05);
}

/* Portfolio Section */
.portfolio {
    background-color: #33363b;
    padding: 60px 20px;
    text-align: center;
}

.portfolio h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.portfolio-grid {
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 70%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.portfolio-item:hover {
    transform: scale(1.05);
}
.portfolio-item img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
    object-fit: cover;
}

.portfolio-item p {
    font-size: 18px;
    margin: 10px 0;
}

.portfolio-item button {
    background-color: #f0a500;
    color: #ffffff;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.portfolio-item button:hover {
    background-color: #d18c00;
}

.view-more {
    background-color: #f0a500;
    color: #ffffff;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.view-more:hover {
    background-color: #d18c00;
}

/* Experience Section */
.experience {
    background-color: #2c2f33;
    padding: 60px 20px;
    text-align: left;
}

.experience h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffffff;
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: 40px; /* Adjust to align properly */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 2px;
    height: 85%;
    background-color: #777; /* Line color */
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

/* Timeline Date Tag */
.timeline-date {
    position: relative;
    background-color: #555555; /* Darker gray background */
    color: #ffffff;
    width: 80px;
    padding: 10px;
    border-radius: 20px 0 0 20px; /* Rounded left side */
    text-align: center;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out the dates */
    font-size: 14px;
    font-weight: 600;
}

.timeline-date::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #555555; /* Match the color of the date tag */
    transform: translateY(-50%);
}

/* Styling for individual dates */
.date-top {
    margin-bottom: 5px; /* Add spacing between the top date and the bottom date */
}

.date-bottom {
    margin-top: 5px; /* Add spacing between the bottom date and the top date */
}

.timeline-date span {
    display: block;
    background-color: #393e46;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 16px;
    position: relative;
}

/* Ribbon effect */
.timeline-date span::before,
.timeline-date span::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
}

.timeline-date span::before {
    left: -20px;
    border-right-color: #393e46; /* Matches the background color of the ribbon */
}

.timeline-date span::after {
    right: -20px;
    border-left-color: #393e46;
}

/* Orange Circular Marker with Glow */
.timeline-marker {
    position: absolute;
    top: 50%;
    left: 114px;
    width: 12px;
    height: 12px;
    background-color: #f0a500; /* Orange flair */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(240, 165, 0, 0.6); /* Glow effect */
    transform: translateY(-50%);
}

.timeline-content {
    background-color: #393e46;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1;
}

.timeline-content h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 5px;
}

.timeline-content h4 {
    font-size: 18px;
    color: #f0a500;
    margin: 0 0 15px;
}

.timeline-content p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
}

/* Adjust timeline line to be below the marker */
.timeline::before {
    top: 60px; /* Position the line slightly below the marker */
}

/* Blog Section */
.blog {
    background-color: #33363b;;
    padding: 80px 20px;
    text-align: center;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog h2 {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.blog h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #ffa500; /* Accent color */
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.blog-post {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    text-align: left;
}

.blog-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.blog-title:hover {
    color: #ffa500; /* Accent color */
}

.blog-excerpt {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: flex-end;
}

.blog-button-container {
    text-align: center;
}

.blog-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffa500; /* Accent color */
    color: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.blog-button:hover {
    background-color: #e69500;
    transform: translateY(-5px);
}

span .blog-date {
    display: flex;
    align-content: revert;
    justify-items: right;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog h2 {
        font-size: 32px;
    }

    .blog-grid {
        gap: 30px;
    }

    .blog-image img {
        height: 180px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-excerpt {
        font-size: 15px;
    }

    .blog-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog h2 {
        font-size: 28px;
    }

    .blog-image img {
        height: 160px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-excerpt {
        font-size: 14px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }

    .blog-button {
        padding: 8px 20px;
        font-size: 13px;
    }
}


/* Contact Section */
.contact {
    background-color: #33363b;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

/* Horizontal Flair Line */
.contact-line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: #f0a500;
    margin: 20px auto; /* Centers the line */
}

/* Contact Header */
.contact h2 {
    font-size: 28px;
    color: #ffffff;
    margin: 20px 0;
    font-weight: 700;
}

/* Contact Details */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 30px; /* Spacing between contact items */
    margin: 20px 0;
}

.contact-item {
    background-color: #393e46;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    color: #f0a500; /* Icon color */
    margin-right: 10px;
    font-size: 18px;
}

.contact-item span {
    color: #ffffff;
    font-size: 16px;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons i {
    font-size: 20px;
    color: #ffffff;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-icons i:hover {
    color: #f0a500;
}


/* Modal Styles */
.modal {
    display: none; /* Hide modal by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--overlay-bg);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1B2A38;
    margin: auto;
    padding: 30px;
    border: none;
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    position: relative;
    color: var(--modal-text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease forwards;
    transform: translateY(-50px);
    opacity: 0;
}

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

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--secondary-color);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.modal-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

#modal-link {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: #F2EFC4;
    color: #1d2c3a;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
}

#modal-link:hover,
#modal-link:focus {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* Modal Show Class for Animations */
.modal.show {
    display: flex;
    animation: fadeInOverlay 0.3s ease forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
.footer {
    background-color: #202225;
    padding: 20px;
    text-align: center;
    color: #f0a500;
}

/* Responsive Design */

/* Mobile Devices */
@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        flex-wrap: wrap;
    }
    .header {
        padding-bottom: 20px;
    }
    .header-content {
        flex-direction: column;
    }

    .header-text, .header-image, .social-container {
        flex: 1 1 100%;
        max-width: none;
    }

    .header-image {
        display: none;
    }

    .social-container {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
    }

    .social-container .vertical-flair-line {
        display: none;
    }

    .social-container i {
        margin: 0 10px;
    }
    .timeline {
        margin-left: 30px; /* Reduce margin for smaller screens */
    }


    .timeline-content {
        margin-left: 10px; /* Adjust content to align with the new marker position */
    }

    .timeline-date {
        margin-right: 10px; /* Adjust spacing for the date tag */
    }

    /* Adjust order so social-container appears after header-text */
    .header-text {
        order: 1;
    }

    .social-container {
        order: 2;
    }

    .contact-details {
        display: flex;
        gap: 30px;
        margin: 20px 0;
        align-items: center;
        flex-direction: column;
}

/* Mid-sized Screens */
@media (min-width: 769px) and (max-width: 1280px) {

    .header {
        padding-bottom: 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .header-text, .header-image, .social-container {
        flex: none;
        max-width: none;
    }

    .header-image {
        display: block;
    }

    .social-container {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }

    .social-container .vertical-flair-line {
        display: none;
    }

    .social-container i {
        margin: 0 10px;
    }

    /* Adjust order so social-container appears after header-image */
    .header-text {
        order: 2;
    }

    .header-image {
        order: 1;
    }

    .social-container {
        order: 3;
    }
}
@media (max-width: 480px) {
    .timeline {
        margin-left: 20px; /* Further reduce margin for very small screens */
    }

}