/* About Section */
#about {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2.344rem; /* Reduced from 3.125rem */
    color: var(--text-color);
    overflow: hidden;
}

#about-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background/profile.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

/* Gradient Overlay */
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 1.0), rgba(0, 0, 0, 0.2));
    z-index: 2;
}

/* Initial state - off-screen to the left */
.about-content {
    position: relative;
    z-index: 3;
    max-width: 28.125rem; /* Reduced from 37.5rem */
    color: var(--text-color);
    opacity: 0;
    transform: translateX(-4.688rem); /* Reduced from -6.25rem */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-content.in-view {
    opacity: 1;
    transform: translateX(0);
}

.about-content.out-of-view {
    opacity: 0;
    transform: translateX(-4.688rem);
}

/* About Content - Heading */
.about-content h1 {
    font-size: 1.875rem; /* Reduced from 2.5rem */
    margin-bottom: 0.9375rem; /* Reduced from 1.25rem */
    color: var(--text-color);
}

/* About Content - Paragraph */
.about-content p {
    font-size: 1.406rem; /* Reduced from 1.875rem */
    line-height: 1.6;
    margin-bottom: 0.9375rem; /* Reduced from 1.25rem */
    color: var(--text-color);
}

/* Download Resume Button */
.resume-button {
    background-color: transparent;
    border: 0.09375rem solid var(--primary-color); /* Reduced from 0.125rem */
    color: var(--primary-color);
    padding: 0.469rem 0.938rem; /* Reduced from 0.625rem 1.25rem */
    font-size: 0.75rem; /* Reduced from 1rem */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Resume Button - Hover Effect */
.resume-button:hover {
    background-color: var(--primary-color);
    color: var(--hover-text-color);
    box-shadow: 0 0 0.469rem var(--primary-color); /* Reduced from 0.625rem */
}

/* Responsive Styling for Smaller Screens */
@media (max-width: 36rem) { /* Reduced from 48rem */
    .about-content h1 {
        font-size: 1.688rem; /* Reduced from 2.25rem */
    }

    .about-content p {
        font-size: 0.75rem; /* Reduced from 1rem */
    }

    .resume-button {
        font-size: 0.656rem; /* Reduced from 0.875rem */
        padding: 0.375rem 0.703rem; /* Reduced from 0.5rem 0.9375rem */
    }
}

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

/* Modal Content */
.modal-content {
    background-color: var(--background-color);
    margin: 4.688% auto; /* Reduced from 6.25% */
    padding: 0.938rem; /* Reduced from 1.25rem */
    border-radius: 0.375rem; /* Reduced from 0.5rem */
    width: 80%;
    max-width: 30rem; /* Reduced from 40rem */
    box-shadow: 0 0.234rem 0.703rem rgba(0, 0, 0, 0.3); /* Adjusted from 0.3125rem 0.9375rem */
    color: var(--text-color);
    font-family: var(--font-family);
}

/* Modal Heading */
.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.703rem; /* Reduced from 0.9375rem */
    font-size: 1.01625rem; /* Reduced from 1.35rem */
    text-align: center;
}

/* Close Button Styling */
.close {
    color: var(--secondary-color);
    float: right;
    font-size: 1.3125rem; /* Reduced from 1.75rem */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Styling for Modal on Smaller Screens */
@media (max-width: 36rem) { /* Reduced from 48rem */
    .modal-content {
        width: 90%;
        padding: 0.703rem; /* Reduced from 0.9375rem */
    }

    .modal-content h2 {
        font-size: 0.844rem; /* Reduced from 1.125rem */
    }

    .close {
        font-size: 1.125rem; /* Reduced from 1.5rem */
    }
}



/* Add this CSS to style the text overlay */
.text-overlay {
    position: absolute;
    bottom: 300px;
    right: 20px;
    color: white;
    background-color: var(--background-color);
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    transition: all 1s ease;
    opacity: 0;
    transform: translateX(100%);
}