@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-out;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #15150f;
    color: #ecf0f1;
    line-height: 1.6;
    animation: scaleUp 0.5s ease forwards;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #1b1a11;
}

.brand-text h1 {
    white-space: nowrap;
    font-weight: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
}


.navbar-brand, .tagline, .links a {
    color: #e9ee9f;
    font-weight: 500;
    text-decoration: none;
}

.navbar-brand {
    font-size: 2.2rem;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.links a {
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
    font-size: 1rem;
    border: 1px solid #5b5e34;
}

.links a:hover {
    transform: scale(1.05);
    background-color: #5c5e34;
    color: #ecf0f1;
}


main {
    padding: 2rem 3rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #eeea9f;
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #5e5d34;
    padding-bottom: 10px;
}


/* About Me Section */
#about {
    display: flex;
    align-items: center;
    gap: 30px; /* Adjust the gap as needed */
    margin-top: 50px; /* Add some top margin for spacing */
}

.profile-container {
    flex-shrink: 0; /* Prevent the image from shrinking */
}

.profile-pic {
    width: 100%; /* Adjust the width as needed */
    height: 350px; /* Adjust the height as needed */
    border-radius: 50%;
    border: 4px solid #999976; /* Or any other color as per your design */
    box-shadow: #dbd534;
}

.about-content {
    flex: 1; /* Take up the remaining space */
    padding: 20px; /* Add some padding for spacing */

    border-radius: 10px; /* Rounded corners */
}

.about-content h2 {
    margin-bottom: 10px; /* Spacing between the title and the paragraph */
    font-size: 2.5em; /* Large font size for the title */
    color: #edee9f; /* White color for the title */
}

#about-description {
    font-size: 1.1em; /* Slightly larger font size for readability */
    color: #f4f5f6; /* A lighter color for the paragraph */
    line-height: 1.6; /* Increased line height for better readability */
}


/* Styles for the resume sections */
.r-sections {
    display: grid;
    font-size: smaller;
    grid-template-columns: repeat(3, 1fr); /* Two columns */
    gap: 1rem; /* Space between sections */
    margin-bottom: 2rem; /* Space after the sections */
}

.r-section {
    font-size: small;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    /* Set the height to min-content to ensure the box takes up only the space it needs */
    height: min-content;
}

.r-sections h2 {
    font-size: 1.5rem;
    color: #eeeb9f;
    margin-bottom: 10px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
}

.r-section ul {
    list-style-type: none;
    padding: 0;
}

.r-section li {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 10px;
}

.r-section li i {
    margin-right: 10px;
    color: #ffffff;
}

/* Adjustments for icons */
.fa-briefcase::before {
    content: "\f0b1";
}

.fa-graduation-cap::before {
    content: "\f19d";
}

.fa-chalkboard-teacher::before {
    content: "\f51b";
}

/* Article Styles */
article {
    background-color: #2c2a1a;
    padding: 3rem;
    margin: 4px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

article:hover {
    border: 2px solid #d3db34;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media only screen and (max-width: 768px) {
    .article {
        margin-bottom: 15px;
    }
}


/* List Styles */
ul {
    list-style-type: none; 
    padding-left: 0; 
}

li {
    position: relative; 
    padding-left: 25px; 
    margin-bottom: 10px; 
}

li i {
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 20px; 
    text-align: center;
    color: #aaa; 
}

/* Footer */
footer {
    background-color: #333333;
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-top: 3px solid #444;
}

footer a {
    text-decoration: underline;
}

/* Experience Styles */

.experience {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 10px;
    transition: all 0.3s ease; 
}

.experience:hover {
    border: 2px solid #dbd034;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-text {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-image {
    padding: 25px;
    flex-basis: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    align-self: stretch;
}

.experience-image img {
    border-radius: 20px;
    border: 0px solid #0f0f0f;
    /* box-shadow: 0 10px 20px rgba(150, 146, 146, 0.293); */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reduced-image {
    width: 50px; 
    height: auto;
}

.footerid {
    background-color: #1b1b11;
}

h3 {
    color: #dbd334;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.social-links {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px; 
    margin-top: 20px; 
}

.social-links a {
    font-size: 2rem; 
    color: #ecf0f1; 
}

.project-details {
    background-color: #303018;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.project-details summary {
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.project-details summary::-webkit-details-marker {
    display: none;
}

.project-details p {
    padding-top: 10px;
}

.project {
    margin-bottom: 20px;
    padding: 30px;
    
    border-radius: 8px;
}

.project-header {
    margin-bottom: 15px;
}

.project-details-flex > div,
.project-gif {
    margin-right: 10px;
}

.project-gif {
    max-width: 300px;
    max-height: 300px;
    height: auto;
}


.project-details-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-links {
    margin-top: 10px;
}

.project-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-right: 5px;
}

.project-links a:hover {
    text-decoration: underline;
    color: #9fd0ee;
}

.project-tools {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tools li {
    background: #5e5a34;
    color: #ecf0f1;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}


/* Media queries for mobile screens */
@media only screen and (max-width: 768px) {
    .project-sections {
        background-color: #302e18;
        padding: 15px;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .project-details-flex {
        flex-direction: column;
    }

    .project-gif {
        order: 2; /* This will ensure the GIF is below the text */
        max-width: 100%; /* Makes the GIF full width on smaller screens */
        max-height: none; /* Removes max height restriction for mobile */
    }

    .project-text-container {
        order: 1;
    }

    .project-links a {
        display: block; /* Stack links vertically on small screens */
        margin-bottom: 5px; /* Add some space between stacked links */
    }
}

@media only screen and (max-width: 768px) {
    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}


@media only screen and (max-width: 768px) {

    .navbar .links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .navbar .links a {
        margin: 10px 0;
        width: 100%;
        text-align: left;
    }
}

@media only screen and (max-width: 768px) {
    .experience {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 25px;
        padding: 10px;
    }

    .experience-text {
        padding: 0px;
    }

    .experience-image {
        padding: 0px;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 0; /* No extra space at the bottom */
    }

    .experience-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block; /* Ensures the image does not have extra space */
        margin-bottom: 0; /* No extra space at the bottom */
    }

    /* Additional styles to ensure the layout is tight */
    .experience-text, .experience-image {
        padding-bottom: 0;
    }

    /* Ensure that the article does not have extra space at the bottom */
    article {
        margin-bottom: auto; /* Adjust this value as needed */
    }
}



@media only screen and (max-width: 768px) {
    #about {
        flex-direction: column;
        align-items: center;
    }

    .profile-pic {
        width: 250px;
        height: 300px;
    }

    .about-content {
        width: 100%;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    .r-sections {
        grid-template-columns: 1fr;
    }
}


@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1, h2, h3 {
        font-size: smaller;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .profile-container, .about-content, .r-section, article {
        padding: 10px;
    }
}

@media only screen and (max-width: 768px) {
    .footerid {
        padding: 20px;
        text-align: center;
    }
}

.navbar-toggler {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 10px;
    color: #ecf0f1; 
    font-size: 28px; 
}

.navbar-toggler.toggled .navbar-toggler-icon {
    transform: rotate(45deg);
}

.navbar-toggler-icon {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ecf0f1;
    position: relative;
}



.navbar-toggler-icon::before, .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ecf0f1;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

@media only screen and (max-width: 768px) {
    .navbar-container {
        flex-direction: column; 
        justify-content: space-between; 
        padding: 0.5rem;
    }
    .brand-text {
        text-align: center;
        font-size: xx-small;
        font-weight: 500;
    }
    .navbar-toggler {
        display: block;
    }

    .links {
        display: none;
        flex-direction: column;
        width: 100%;
        transition: max-height 0.3s ease-out;
        overflow: hidden;
        max-height: 0;
    }

    .links.active {
        display: flex;
        flex-direction: column;
        max-height: 500px;
    }

    .links a {
        padding: 10px 20px;
        border-bottom: 1px solid #34495e;
    }
}


