/* styles.css */

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #121212;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1.5; /* Adjust opacity to make the matrix effect less intense */
}

.main-header {
    background: rgba(31, 31, 31, 0.7); /* Adjusted opacity */
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #ff7f00;
    transition: transform 0.3s ease-in-out;
}

.profile-photo:hover {
    transform: scale(1.1);
}

.profile-info {
    text-align: center;
}

.title {
    font-size: 2.5rem;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    margin: 5px 0 20px 0;
    color: #cccccc;
}

.download-icon {
    background: #ff7f00;
    color: #000000;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.download-icon:hover {
    background: #ffffff;
    color: #ff7f00;
}

.about-section, .experience-section, .contact-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 20px auto;
    background: rgba(31, 31, 31, 0.7); /* Adjusted opacity */
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.toggle-details {
    background: #ff7f00;
    color: #000000;
    padding: 5px 10px;
    border: none;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    margin: 10px 0;
    transition: background-color 0.3s, color 0.3s;
}

.toggle-details:hover {
    background: #ffffff;
    color: #ff7f00;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    list-style-type: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff7f00;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 20px 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff7f00;
    box-shadow: 0 0 0 4px rgba(255, 127, 0, 0.2);
    z-index: 10;
}

.timeline-item-content {
    padding: 20px;
    background: rgba(31, 31, 31, 0.7); /* Adjusted opacity */
    border-radius: 8px;
    position: relative;
    width: 45%;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
}

.timeline-item-content.left {
    left: -0.5%;
}

.timeline-item-content.right {
    left: 51.5%;
}

.details {
    margin-top: 10px;
}

.hidden {
    display: none;
}

.contact-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(31, 31, 31, 0.7); /* Adjusted opacity */
    border-radius: 10px;
    text-align: center;
}

.calendly-link {
    background: #ff7f00;
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.calendly-link:hover {
    background: #ffffff;
    color: #ff7f00;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff7f00;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 100;
}

#back-to-top:hover {
    background: #ffffff;
    color: #ff7f00;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .about-section, .experience-section, .contact-section {
        padding: 20px 10px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .download-icon {
        padding: 8px 16px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item-content.left,
    .timeline-item-content.right {
        width: calc(100% - 40px);
        margin-left: 40px;
        left: 0 !important;
    }

    .timeline-item::before {
        left: 20px;
    }
}
