body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #e6e6e6;
    cursor: none;
}

.container {
    position: relative;
    width: 100%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#nameHeader {
    font-size: 3em;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.65s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#nameHeader::before, #nameHeader:hover::before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: 0;
    background-color: #d4af37;
    transition: all 0.3s;
}

#nameHeader::before {
    width: 0;
    left: 50%;
}

#nameHeader:hover::before {
    width: 100%;
    left: 0;
}

#nameHeader:hover {
    color: #C9A800;
}

#nameHeader::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    animation: Shimmer 2s infinite;
}

@keyframes Shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    background-color: #333;
    color: #d4af37;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    outline: none;
    user-select: none;
    text-decoration: underline;
}

.btn:hover {
    background-color: #444;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 0.7s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn:active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s;
}

@keyframes ripple {
    to {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.content {
    z-index: 1;
    padding: 50px 0;
}

.content-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
    visibility: hidden;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.btn i {
    margin-right: 8px;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #d4af37;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
    transition: all 0.3s ease;
    transition-property: width, height, border;
}

/* Hide custom cursor on mobile devices */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }

    body {
        cursor: auto; /* Reset the cursor to default for mobile */
    }

    .modal-content {
        max-height: 80vh; /* Set a max height for the modal content */
        overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */
    }

    /* When the modal is open, prevent background content from scrolling */
    body.modal-open {
        overflow: hidden;
    }

    /* Allow the modal itself to scroll if the content exceeds its height */
    .modal {
        overflow-y: auto;
    }
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.65s ease-in-out;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    pointer-events: none;  /* Disables all click events on the modal background */
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;  /* Enables click events on the modal content */
}

.modal-content.show {
    opacity: 1;
    transform: scale(1);
}

.modal-content.hide {
    opacity: 0;
    transform: scale(0.95);
}

.education-close-btn {
    color: #d4af37;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.education-close-btn:hover {
    color: #C9A800;
}

#coursesList {
    margin-top: 20px;
}

.course {
    margin-bottom: 20px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    overflow: hidden;
}

.course-header {
    background-color: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.course-header:hover {
    background-color: #333333;
}

.course-title {
    font-weight: 600;
    color: #d4af37;
}

.course-date {
    font-size: 0.9em;
    color: #d4af37;
}

.course-details {
    display: none;
    padding: 10px 15px;
    background-color: #2a2a2a;
    border-top: 1px solid #d4af37;
}

.btn::after {
    content: attr(data-text);
    text-decoration: underline;
    display: inline-block;
    margin-left: 5px;
}


.projects-close-btn {
    color: #d4af37;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.projects-close-btn:hover {
    color: #C9A800;
}

#projectList {
    margin-top: 20px;
}

.project {
    margin-bottom: 20px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    overflow: hidden;
}

.project-header {
    background-color: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-header:hover {
    background-color: #333333;
}

.project-title {
    font-weight: 600;
    color: #d4af37;
}

.project-date {
    font-size: 0.9em;
    color: #d4af37;
}

.project-details {
    display: none;
    padding: 10px 15px;
    background-color: #2a2a2a;
    border-top: 1px solid #d4af37;
}

