/* GENERAL */


@import url('https://fonts.googleapis.com/css2?family=Moderustic:wght@300..800&display=swap');

*{
    margin: 0;
    padding: 0;
}

.index-body {
    font-family: "Moderustic", sans-serif;
    background-color: rgba(31, 30, 30, 0.507);
    background-image: linear-gradient(rgba(31, 30, 30, 0.507), rgba(31, 30, 30, 0.507)), url('assets/background_img.jpg');
    background-size: cover;
}

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(187, 178, 178);
}

h1 {
    color: white; 
}
 
h3 {
    color: white;
}

/* TRANSITION */

a, 
.btn, .contact-button {
    transition: all 300ms ease;
}

/* DESKTOP NAV*/

nav, 
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh; 
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a, .contact-button {
    color: white;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover, .contact-button:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181,181,181);
}

.logo {
    font-size: 2rem;
    color: white;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU*/

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0%;
    background-color: rgb(31, 30, 30);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: lock;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links a:hover, .menulinks.open:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    text-decoration-color: rgb(181,181,181);
}

.menu-links.open {
    max-height: 300px;
    background: rgba(22, 37, 18, 0) 0.1rem;
    transition: all 0.3 ease-in-out;
}

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

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

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

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
    scroll-margin-top: 150px;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 500px;
    margin: auto 0;
    margin-right: 50px;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.section__text__p3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.section__text__separator {
    margin-top: -1rem;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 3rem;
    text-align: center;
}

.about-title {
    padding-bottom: 30px;
}

.about-text-details-container {
    transition: all 300ms ease;
}

.about-text-details-container:hover {
    padding: 1.5rem;
    flex: 1;
    background: rgb(22, 37, 18) 0.1rem;
    border: rgb(255,255,255) 0.1rem solid;
    border-radius: 2rem;
    border-color: rgb(163, 163, 163);
    text-align: center;
    transition: all 300ms ease;
}


#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICON */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 9rem;
    border-radius: 2rem;
    text-align: center;
}

.btn-color-2 {
    border: rgb(51, 51, 51) 0.1rem solid;
    color: rgb(53,53,53);
}

.btn-color-1:hover, .btn-color-2:hover {
    cursor: pointer;
}

.btn-color-2:hover {
    background: rgba(22, 37, 18, 0.26);
    color: white;
    border: rgb(255,255,255) 0.1rem solid;
}

.btn-color-1{
    background: rgba(22, 37, 18, 0.26) 0.1rem;
    color: white;
    border: white 0.1rem solid;

}
.btn-color-1:hover {
    background: rgb(255, 255, 255);
    color: rgb(53,53,53);
    border: rgb(53,53,53) 0.1rem solid;
}

.btn-color-2 {
    background-color: none;
}

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION */

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers, 
.about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
    width: 430px;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: rgba(31, 53, 26, 0.26);
    border-radius: 2rem;
    border: white 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
    transition: all 300ms ease;
}

.details-container:hover {
        border: rgb(255,255,255) 0.1rem solid;
        background: rgb(22, 37, 18) 0.1rem;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.about__pic-container {
    height: 100rem;
    width: 100rem;
    margin: auto 0;
}

#about-text {
    color: rgb(255, 255, 255);
    font-size: 2rem;
}

/* EXPERIENCE SECTION */

.experience-sub-title {
    color: rgb(181, 181, 181);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

#experience {
    position: relative;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* PROJECTS SECTION */

#projects {
    position: relative;
}

.project-img {
    display: flex;
    border-radius: 2rem;
    width: 100%;
    height: 100%;
}

.project-title {
    margin: 1rem;
}

#projects-heading {
    text-align: center;
    align-items: center;
}

.project-heading-btn {
    width: 250px;
    margin-top: 10px;
}


/* CONTACT SECTION */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(181,181,181) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgba(31, 53, 26, 0.26);
    margin: 2rem auto;
    padding: 0.5rem;
    transition: all 300ms ease;
}

.contact-info-upper-container:hover{
    border: rgb(255,255,255) 0.1rem solid;
    background: rgb(22, 37, 18) 0.1rem;
    transition: all 300ms ease;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.linkedin-icon {
    height: 2.7rem;
}

.github-icon {
    margin-top: 4px;
    height: 2.2rem;
}

.contact-button {
    color: white;
    text-decoration: none;
    text-decoration-color: white;
}

.contact-button:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181,181,181);
}

/* MODAL SECTION */

.modal-content.modal-with-bg {
    background-image: linear-gradient(rgba(31, 30, 30, 0.507), rgba(31, 30, 30, 0.507)), url('assets/modal_image.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

.modal-header, .modal-footer {
    /*background: rgb(22, 37, 18);*/
    background: rgba(31, 53, 26, 0.26);
}

.modal-title, .col-form-label {
    color: white;
}

/* LOADING DOTS */

.loading-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    animation: pulse 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 1; }
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* PROJECTS PAGE SECTION */
 
.projects-body {
    background-image: linear-gradient(rgba(31, 30, 30, 0.507), rgba(31, 30, 30, 0.507)), url('assets/under-development-2.jpg');
}

#project-links {
    font-size: 2.5rem;
    float: left;
    
}

/* Initial Center Position */
.middle-nav {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 55%;
  transform: translateY(-50%);
  transition: all 1s ease-out; /* Smooth transition */
}

/* Position Top */
.nav-top {
  position: fixed;
  top: 5%;
  left: 25%;
  width: 100%;
  transform: none;
  z-index: 1000;
}

#project-links .active {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181,181,181);
}

/* FADING IN */
.custom-fade {
    animation: fadeIn 2s;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

