/* Page styling  */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;

    font-family: 'Courier New', monospace;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;

    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;

    color: #302532;

    background: linear-gradient(
        135deg,
        #f8d7e6 0%,
        #f0b2cc 50%,
        #cd7da5 100%
    );

    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* particals */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;
}

#stats,
.count-particles {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.count-particles {
    background: #553653;
    position: absolute;

    top: 48px;
    left: 0;

    width: 80px;

    color: #F8EDF2;
    font-size: 0.8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;

    padding-bottom: 2px;

    font-family: 'Courier New', monospace;
    font-weight: bold;

    z-index: 1;
}

.js-count-particles {
    font-size: 1.1em;
}

#stats {
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}

.count-particles {
    border-radius: 0 0 3px 3px;
}

/* navigation */
nav {
    text-align: center;
    padding: 15px;
    margin-top: -50px;

    position: relative;
    z-index: 2;
}

#nav_bar {
    padding: 0;
    margin: 0;
}

#nav_bar .nav_button {
    display: inline-block;
    list-style: none;
    margin: 0 12px;
}

a {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;

    color: #553653;
    text-decoration: none;

    transition: color 0.3s ease,
                opacity 0.3s ease;
}

a:hover {
    color: #FFFFFF;
    opacity: 0.85;
}

/* Headings */

h1, h2, h3 {
    font-family: 'Courier New', monospace;
    color: #553653;
    text-align: center;
    font-weight: bold;
}

h1 {
    font-size: 38px;

    position: relative;
    z-index: 1;

    margin-top: 30px;
    margin-bottom: 25px;
}

h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

h3 {
    font-size: 22px;
    margin-bottom: 12px;
}


/* main stuff */

main {
    text-align: center;

    position: relative;
    z-index: 1;

    width: 100%;
    padding: 10px 0 30px;
}

p {
    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.7;

    color: white;

    text-align: center;

    margin: 0 0 15px;
    padding: 0;
}


/* slide show */

.slideshow-container {
    max-width: 1000px;
    width: 90%;

    position: relative;

    margin: 30px auto;

    overflow: hidden;

    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(48, 37, 50, 0.18);
}


/* Individual slides */

.mySlides {
    display: none;
    width: 100%;
}


/* Text and image layout */

.text-img-container {
    display: flex;

    flex-direction: row-reverse;

    align-items: stretch;
    justify-content: center;

    width: 100%;
    min-height: 400px;

    gap: 0;

    overflow: hidden;

    border-radius: 25px;

    background: #553653;
}


/* slide show text */

.text {
    color: #FFFFFF;

    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.7;

    padding: 30px;
    width: 66.67%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background-color: #553653;
}

.text p {
    display: block;
    width: 100%;

    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.7;

    margin: 0 0 15px;
    padding: 0;

    color: #FFFFFF;
}


/*  slideshow imgs */

.image {
    width: 33.33%;

    min-height: 400px;

    object-fit: cover;

    display: block;
}


.dot {
    height: 12px;
    width: 12px;

    margin: 0 5px;

    background-color: rgba(85, 54, 83, 0.4);

    border-radius: 50%;

    display: inline-block;

    transition: background-color 0.3s ease,
                transform 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.active {
    background-color: #553653;
}

/*  fade animation */

.fade {
    animation-name: fadeEffect;
    animation-duration: 1s;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}


/* embeded youtube sectction */
.video-section {
    width: 90%;
    max-width: 950px;

    margin: 60px auto;
    padding: 35px 20px;

    text-align: center;
}


/* Video heading */

.video-heading h2 {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: bold;

    color: #553653;

    margin-bottom: 12px;
    letter-spacing: 0;
}

.video-heading p {
    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: normal;
    line-height: 1.7;

    color: #553653;

    margin-bottom: 30px;
}


/* Video wrapper */

.video-container {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 20px;
    border: 3px solid #553653;

    box-shadow:
        0 5px 20px rgba(85, 54, 83, 0.2);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}


/* Video hover effect */

.video-container:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 30px rgba(85, 54, 83, 0.3);
}


/* Responsive video */

.video-container iframe {
    width: 100%;
    height: 100%;

    border: none;

    display: block;
}


/* footer */

footer {
    text-align: center;

    padding: 20px 10px;

    position: relative;
    z-index: 2;

    width: 100%;
}

.home-buttons {
    display: inline-block;

    margin: 0 8px;

    color: #553653;

    transition: transform 0.3s ease,
                opacity 0.3s ease;
}

.home-buttons i {
    color: #553653 !important;
}

.home-buttons:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

/* scrollbar  */

::-webkit-scrollbar {
    width: 0.4em;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(85, 54, 83, 0.45);
    border-radius: 10px;
}


/* diffrent screens - tablet  */
@media screen and (max-width: 900px) {

    .slideshow-container {
        width: 95%;
    }

    .text {
        font-size: 16px;
        padding: 20px;
    }

    .text p {
        font-size: 16px;
    }

    .text-img-container {
        min-height: 350px;
    }

    .image {
        min-height: 350px;
    }

    h1 {
        font-size: 35px;
    }
}


/* diffrent screens - mobile  */

@media screen and (max-width: 700px) {

    nav {
        margin-top: 0;
        padding-top: 15px;
    }

    #nav_bar .nav_button {
        margin: 5px 7px;
    }

    a {
        font-size: 14px;
    }

    h1 {
        font-size: 30px;
        margin-top: 25px;
    }

    h2,
    .video-heading h2 {
        font-size: 23px;
    }

    p,
    .text p,
    .video-heading p {
        font-size: 15px;
        line-height: 1.6;
    }

    .slideshow-container {
        width: 92%;
        margin: 20px auto;
    }

    .text-img-container {
        flex-direction: column;
        min-height: auto;
    }

    .text {
        width: 100%;
        min-height: 220px;

        font-size: 15px;
        padding: 25px;
    }

    .text p {
        font-size: 15px;
    }

    .image {
        width: 100%;
        height: 280px;
        min-height: 280px;

        object-fit: cover;
    }

    .video-section {
        width: 95%;
        padding: 20px 5px;
        margin: 35px auto;
    }

    .video-container {
        border-radius: 12px;
    }

    footer {
        padding: 20px 5px;
    }

    .home-buttons {
        margin: 5px 7px;
    }
}



/* diffrent screens - small mobile   */

@media screen and (max-width: 400px) {

    h1 {
        font-size: 26px;
    }

    h2,
    .video-heading h2 {
        font-size: 21px;
    }

    .text {
        font-size: 14px;
        padding: 18px;
    }

    .text p,
    p,
    .video-heading p {
        font-size: 14px;
    }

    .image {
        height: 220px;
        min-height: 220px;
    }

    #nav_bar .nav_button {
        margin: 5px;
    }

    a {
        font-size: 13px;
    }
}



/* accessability  */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* tabs  */

.tabs-section,
.collapsible-section,
.projects-section {
    width: 90%;
    max-width: 850px;
    margin: 35px auto;
    text-align: center;
}

.tabs-section h2,
.collapsible-section h2,
.projects-section h2 {
    color: #F8EDF2;
    font-family: 'Courier New', monospace;
}

.tab-buttons,
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tab-button,
.filter-button {
    background-color: #F8EDF2;
    color: #553653;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease,
                transform 0.3s ease;
}

.tab-button:hover,
.filter-button:hover {
    background-color: #C987A8;
    transform: translateY(-2px);
}

.tab-button.active,
.filter-button.active {
    background-color: #C987A8;
    color: #302532;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
    margin-top: 15px;
    background: #553653;
    border: 1px solid rgba(85, 54, 83, 0.2);
    border-radius: 10px;
    color: #ffffff;
    line-height: 1.6;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}


/* colapsable sections  */

.about-details {
    background: #553653;
    border: 1px solid rgba(85, 54, 83, 0.2);
    border-radius: 10px;
    margin: 15px 0;
    padding: 15px;
    text-align: left;
    color: #F8EDF2;
}

.about-details summary {
    color: #F8EDF2;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
}

.about-details summary:hover {
    color: #C987A8;
}

.details-content {
    padding: 10px;
    line-height: 1.6;
}

.details-content ul {
    line-height: 1.8;
}
li,ul
{
    list-style-type: none;
}


/* animation */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* mobile stuff  */
@media screen and (max-width: 600px) {

    .tab-buttons,
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button,
    .filter-button {
        width: 100%;
    }

    .project-card {
        width: 100%;
    }

    .tabs-section,
    .collapsible-section,
    .projects-section {
        width: 92%;
    }
}

