/* GENERAL */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: #080808;
    color: #fff;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}

img {
    -webkit-filter: none !important;
    filter: none !important;
}

/* TRANSITION */

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

.solid-nav {
    background-color: #2d2026;
    backdrop-filter: none;
    transition: background 0.2s ease-in-out;
}

/* NAV-BAR */

nav{
    position: fixed; 
    top: 0;
    left: 0;
    width: 100dvw;
    z-index: 1000;
    background-color: #ffffff14;
    backdrop-filter: blur(2.4rem);
    -webkit-backdrop-filter: blur(2.4rem);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center; 
    transition: background 0.2s ease-in-out;
}

.navbar-nav li{
    display: inline-block;
    list-style: none;
    margin: 0.625rem 1.25rem;
}

.navbar-nav li a{
    color: #ffffff7e !important;
    text-decoration: none;
    font-size: 1.125rem; 
    font-weight: 500;
    position: relative;
}

.navbar-nav li a {
    color: #ffffff7e !important;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.navbar-nav li a::after {
    content: '';
    width: 0;
    height: 0.1875rem;
    background: #fff !important;
    position: absolute;
    left: 0;
    bottom: -0.05rem;
    transition: 0.25s;
    display: block; 
}

.navbar-nav li a:hover{
    color: #fff !important;
}

.navbar-nav li a:hover::after {
    width: 100%; 
}

/* LOGO */

.logo-container {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    width: 60px;
    height: 60px;
    background: #fff2da !important;
    border-radius: 50%;
    border: 3px solid #7a5d68 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bitter', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #7a5d68 !important;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.r {
    top: 2px;
    left: 10px;
    position: absolute;
    transition: transform 1s ease-in-out;
}

.second {
    opacity: 0;
    animation: moveR 1s ease-in-out forwards 0.5s;
}

@keyframes moveR {
    from {
        transform: translate(0, 0);
        opacity: 0;
    }
    to {
        transform: translate(17px, 10px);
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .logo-container {
        right: 1rem; 
        left: auto; 
        transform: translateY(-50%);
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }

    .logo {
        width: 40px; 
        height: 40px; 
        font-size: 1.2rem; 
        border-width: 2px;
    }

    .r {
        top: 3.5px;
        left: 8.5px;
        position: absolute;
        transition: transform 1s ease-in-out;
    }

    @keyframes moveR {
        from {
            transform: translate(0, 0);
            opacity: 0;
        }
        to {
            transform: translate(10px, 5px);
            opacity: 1;
        }
    }

    .hide-logo {
        opacity: 0;
        pointer-events: none;
    }
}

/* HOME */

#home{
    min-height: 100dvh;
    background-image: url(/assets/website_background.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#home h1 {
    margin-top: 27dvh;
    margin-bottom: 1dvh;
    font-weight: 600; 
}

#home .fs-1 {
    color: #ffffffc3; 
}

#home .fs-1:hover {
    color: #fff;
}

#home .position-absolute {
    bottom: 4dvh; 
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff7e;
}

#home .position-absolute:hover {
    color: #fff; 
    transform: translateX(-50%) translateY(-0.3125rem); 
}

.visitor-counter {
    font-size: 1.45rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    #home {
        background-attachment: scroll;
        background-size: cover;
    }

    #home h1{
        margin-top: 20dvh;
    }
}

/* ABOUT */

#about {
    min-height: 100dvh;
    background-color: #13080d;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about h1{
    font-size: 3rem;
    font-weight: 700;
    margin-top: 6rem;
}

#about .container{
    max-width: 80rem;
}

#about .btn {
    width: 12rem;
    padding: 1rem 2rem;
    background-color: #22141b; 
    color: #fff;
    font-weight: 600;
    border: 0.1rem solid #be7fa4;
}

#about .btn:hover {
    background-color: #be7fa4;
    transform: scale(1.1);
}

@media (min-width: 992px) { /* Applies to desktops (lg and up) */
    #about p {
        text-align: justify;
    }
}

@media (max-width: 991px) { /* Applies to tablets and smaller */
    #about p {
        text-align: left;
    }
}

/* EXPERIENCE */
/* General Section Styling */
#experience {
    background-color: #2a1b23; 
    color: #e5d0e3; 
    padding: 50px 0;
}

/* Card Styling */
.card {
    background-color: #301922; 
    color: #e5d0e3;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.subheader {
    margin: 0;
    color: #ffffff93;
}

.dateheader {
    margin: 0;
    color: #ffffff50;
}

/* Work Experience & Education Titles */
#experience h4 {
    color: #dd78b3; 
}

/* List Styling */
#experience ul {
    padding-left: 20px;
}

/* Timeline Line */
#experience ul.list-unstyled {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #dd78b3;
}

@media (min-width: 992px) { /* Applies to desktops (lg and up) */
    #experience .content {
        width: 50%;
        text-align: justify;
        margin-left: 0; 
    }
}

@media (max-width: 991px) { /* Applies to tablets and smaller */
    #experience .content {
        width: 100%;
    }
}

/* Responsive Spacing */
@media (max-width: 768px) {
    #experience ul.list-unstyled {
        border-left: none;
        padding-left: 0;
    }
}

/* Projects Section */
.project-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.project-card:hover {
    transform: scale(1.05);
}

/* Project Images */
.project-image {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    max-width: 100%;
    transition: transform 0.3s ease-in-out;
}

.project-card:hover .project-image {
    transform: scale(1.02); 
}

/* Overlay with Project Title */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 10px;
    color: #e5d0e3; 
    font-weight: bold;
}

.overlay h5{
    font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-image {
        height: 150px; 
    }
}

/* MODAL STYLING */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}
.modal-dialog {
    max-width: 700px; 
    width: 90%; 
}

.modal-content {
    background-color: #211217;
    color: #e5d0e3;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px; 
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin: 15px 0; 
    
}

/* Skills List Styling */
.skills-list {
    margin-top: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.441);
    font-style: italic;
}

/* Modal Title */
#modalTitle {
    font-size: clamp(1.4rem, 4dvw, 1.8rem);
    color: #dd78b3;
}

/* Modal Description */
#modalDescription {
    font-size: 1rem;
    margin: 10px 0;
    line-height: 1.5;
    padding: 0 10px;
}

.github-link {
    position: absolute;
    top: 27px;
    left: 26px;
    font-size: 1.2rem;
    color: #f7b5db; 
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.github-link i {
    font-size: 1.1rem;
}

.github-link:hover {
    color: #dd78b3; 
}

.close {
    position: absolute;
    top: 11px;
    right: 22px;
    font-size: 35px;
    color: #f7b5db;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.close:hover {
    color: #dd78b3;
}

#projectModal .fa-solid{
    padding-right: 10px;
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
    .modal-img {
        height: 40%;
    }
}


/* CONTACT */
#contact {
    width: 100%;
    height: 94dvh;
    background: url(assets/contact_background.jpeg);
    background-size: contain;
    background-position: right;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#contact .container-fluid {
    background: #412a34;
    height: 100%;
}

.contact-title {
    font-size: clamp(3rem, 10dvw, 16rem);
    text-align: center;
    font-weight: 400;
    margin-top: clamp(0.5rem, 3vh, 2rem);
    margin-bottom: min(1rem, 8vh, 10rem);
}

#contact h2{
    font-size: clamp(2rem, 4dvw, 4rem);
    font-weight: 400;
    color: #ffffffb9;
}

#contact p{
    font-size: clamp(1rem, 2dvw, 2rem);
    font-weight: 400;
    color: #ffffff5e;
    text-decoration: none;
}

@media (max-width: 1838px) {
    #contact {
        background-size: cover;
        background-position: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) { 
    #contact {
        background: contain;
    }
}


@media (max-width: 768px) { 
    #contact {
        height: 36rem;
        width: 100%;
        background: none; 
        background-color: #412a34; 
    }

    #contact .container-fluid{
        text-align: center;
    }

    .col-md-7 {
        display: none;
    }
}


/* CREDITS */
#credits p{
    color: #ffffffab;
}