/* General Reset and Body Styling */
* {
    box-sizing: border-box;
    font-family: 'Playwrite NG Modern', Arial, sans-serif;
}

/* Global Styles */
body {
    background-color: #0d1117;
    /* Dark background */
    color: #c9d1d9;
    line-height: 1.6;
    text-align: center;
}

h1,
h2,
h3,
h4 {
    color: white !important;
}

label {
    color: white !important;
}

/* Header and Navigation */
header.navbar {
    display: flex;
    background-color: #161b22;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
}

.navbar a {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2a9d8f;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.navbar a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar-item:hover {
    color: #2a9d8f !important;
}

.navbar-item {
    color: white !important;
}

.navbar-burger {
    color: white !important;
}

/* Hero Section */
#landing {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 140, 255, 0.7)), url('images/backgroundPortfilio.jpg') center/cover;
    position: relative;
    padding: 20px;
}

#landing .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    max-width: 800px;
    text-align: center;
}

.image-frame {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    transition: transform 0.3s ease;
}

.image-frame img {
    width: 100%;
    height: auto;
}

.image-frame:hover {
    transform: scale(1.05);
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.contact-info a {
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info a:hover {
    color: #2a9d8f;
    transform: scale(1.2);
}

#landing h2 {
    font-size: 3.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out forwards;
}

#landing p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    animation: fadeIn 1s ease-out 0.5s forwards;
    color: white;
}

#landing button {
    background: linear-gradient(90deg, #2a9d8f, #4b7f6f);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out 1s forwards;
}

#landing button:hover {
    background: linear-gradient(90deg, #1f776b, #3e5e4e);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#landing h1 {
    color: white;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* Vertical line down the middle */
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #3498db;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

/* Default: Right-Side Events */
.timeline-content {
    width: 40%;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: black;
    text-align: left;
    position: relative;
}

/* Left-Side Events */
.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

/* Circular Notches */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
}

/* Headings */
.timeline-content h3 {
    color: black !important;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

/* Links */
.timeline-content a {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
}

.timeline-content a:hover {
    text-decoration: underline;
}

.timeline-content h4 {
    color: black !important;
}

/* Keyframes for Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Section Styling */
.section {
    padding: 60px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
    animation: fadeIn 1s ease-out forwards;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.section p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Image Frame Styling */
.image-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-frame:hover {
    transform: scale(1.1);
    box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    display: none;
    z-index: 1000;
    font-size: 20px;
    cursor: pointer;
}

.back-to-top i {
    margin: 0;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    #landing {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 140, 255, 0.7)),
            url('images/backgroundPortfilio.jpg') cover no-repeat;
        background-size: auto;
    }

    #landing h2 {
        font-size: 2.5rem;
    }

    #landing p {
        font-size: 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.9rem;
        color: black !important;
    }

    .section h2 {
        font-size: 2rem;
    }

    .section p {
        font-size: 1rem;
    }

    .image-frame {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    @media (max-width: 480px) {

        /* Further adjustments for very small screens */
        .timeline-content {
            width: 100%;
            /* Full width for the timeline items */
            padding: 10px;
            /* Adjust padding */
        }

        .timeline-content h3 {
            font-size: 20px;
        }

        .timeline-content h4 {
            font-size: 14px;
        }

        .timeline-content a {
            font-size: 12px;
            /* Smaller font for links */
        }

        /* Adjust spacing */
        .timeline-item {
            margin-bottom: 20px;
        }
    }
}