/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #333;
}

/* Header styling */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0);
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1em;
}

/* Language changer buttons */
.language-changer .lang-button {
    font-size: 0.9rem;
    padding: 0.3em 0.6em;
    color: white;
    background: transparent;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-changer .lang-button:hover {
    background-color: white;
    color: #333;
}

/* Ghost Button Styling */
.ghost-button {
    font-size: 1rem;
    padding: 0.6em 1em;
    color: white;
    background: transparent;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.ghost-button:hover {
    background-color: white;
    color: #333;
}

/* Sidebar with Ghost Buttons */
.sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1em;
    z-index: 10;
}

.sidebar .ghost-button.active {
    background-color: white;
    color: #333;
}

/* Section Styling */
.section {
    min-height: 100vh;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    overflow-wrap: break-word;
    max-width: 90%;
    margin: 0 auto;
}

.section h1 {
    font-size: 2.5em;
    margin-bottom: 1em;
}

.section p, .section ul {
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* Additional styling for the Experience section with star icons */
.experience-item ul li {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.experience-item ul li i {
    color: gold;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 1em 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #333;
    margin: 15% auto;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
}

.close-button {
    float: right;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
}

/* Animation for Section Growth */
.animate-grow {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.animate-grow.visible {
    transform: scale(1.01);
}
.modal-content a i {
    color: white;  /* Sets the icon color to white */
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s;
}

.modal-content a:hover i {
    color: #ddd;  /* Slightly lighter color on hover */
}



/* Language popup styling */
.language-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show the popup with opacity */
.language-popup.show {
    opacity: 1;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        transform: translate(0, 0);
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        background: rgba(0, 0, 0, 0.85);
        padding: 0.5em 0;
        z-index: 10;
    }

    .sidebar .ghost-button {
        font-size: 0.9rem;
        padding: 0.5em 0.8em;
    }

    .section {
        padding: 1.5em;
        text-align: left;
    }

    .section h1 {
        font-size: 2em;
    }

    .section p, .section ul {
        font-size: 1em;
        line-height: 1.4;
        max-width: 90%;
    }

    /* Modal on smaller screens */
    .modal-content {
      width: 90%;a{color:white}
    }
}
/* Hamburger Icon */
.hamburger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    z-index: 11; /* Ensure it appears above the content */
}

.hamburger-icon span {
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: 0.3s;
}

.hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    z-index: 10;
}

.mobile-menu-item {
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.mobile-menu-item:hover {
    color: #ddd;
}

/* Show hamburger icon and mobile menu only on mobile screens */
@media (max-width: 768px) {
    .hamburger-icon {
        display: flex;
        position: fixed;
        top: 15px;
        right: 20px;
    }
    .sidebar {
        display: none;
    }
    .mobile-menu.show {
        display: flex;
    }
}

/* Thin line between bullet points */
ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Subtle line */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subtle line */
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
}

/* Remove line from last item */
ul li:last-child {
    border-bottom: none;
}


.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.timeline-point {
    margin: 0 20px;
    cursor: pointer;
    width: 80px;
    height: 50px;
    position: relative;
}

.timeline-arrow {
    font-size: 24px;
    color: white;
    margin: 0 10px;
}

.timeline-content {
    width: 80%;
    max-width: 600px;
  color:black;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 30px;
}

.timeline-content h2 {
    margin-bottom: 15px;
}

.timeline-content ul {
    text-align: left;
}

@media (max-width: 768px) {
    .timeline-point {
        width: 60px;
        height: 40px;
    }
}
/* Hamburger menu icon styling */
.burger-menu {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 20;
    background: none;
    border: none;
    font-size: 1.8em;
    color: white;
    cursor: pointer;
}

/* Sidebar (mobile menu) */
#mobileMenu {
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden on the left */
    height: 100%;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    transition: left 0.3s ease-in-out;
    z-index: 15;
}

/* When open, slide the menu in from the left */
#mobileMenu.open {
    left: 0;
}

/* Ghost buttons styling in the menu */
.menu-link {
    text-align: left;
    color: white;
    background: transparent;
    border: none;
    font-size: 1.2em;
    padding: 0.8em 1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}