* {
    /* Global styles */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.degularbold {
    font-family: "degular", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.degularregular {
    font-family: "degular", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.degularsemibold {
    font-family: "degular-display", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.degulartextregular {
    font-family: "degular-text", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.degularlight {
    font-family: "degular-light", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.degulardisplaybold {
    font-family: "degular-display-bold", sans-serif;
    font-weight: 700;
    font-style: normal;
}

body {
    --background-color: white;
    --text-color: black;
    --navbar-background-color: #eeeeee;
    --footer-background-color: #e2e2e2;
    --horizontal-line-color: rgb(49, 49, 49);
    --year-text-color: rgb(49, 49, 49);
    --ball-fill-color: rgb(28, 156, 129);
    --link-color: rgba(0, 0, 0, 0.5);
    --link-hover-color: rgba(0, 0, 0, 0.7);
    --border-gradient-color-light: rgb(173, 173, 173);
    --border-gradient-color-dark: rgba(255, 255, 255, 0);
    --btn-primary-bg: rgb(42, 143, 109);
    --btn-primary-outline: rgb(42, 143, 109);
    --scrollbar-bg: #eeeeee;
    --scrollbar-thumb: #cccccc;
    --scrollbar-thumb-hover: #bbbbbb;
    background-color: var(--background-color);
    color: var(--text-color);
}

.navbar {
    position: sticky;
    top: 0;
    min-height: 80px;
    z-index: 1000;
    background-color: var(--navbar-background-color) !important;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.navbar-brand {
    font-size: 25px;
}

.nav-link {
    color: var(--link-color);
}

.nav-link:hover {
    color: var(--link-hover-color);
}

section {
    padding: 20px;
    background-color: var(--background-color);
}

.footer {
    padding: 20px 0;
    background-color: var(--footer-background-color) !important;
}

.dark {
    --background-color: #141319;
    --horizontal-line-color: white;
    --year-text-color: white;
    --ball-fill-color: white;
    --text-color: #f5f5f5;
    --navbar-color: #0B0B14;
    --footer-background-color: #0B0B14;
    --link-color: #f5f5f5;
    --link-hover-color: #ddd;
    --border-gradient-color-light: rgb(255, 255, 255);
    --border-gradient-color-dark: rgba(255, 255, 255, 0);
    --btn-primary-bg: rgb(42, 143, 109);
    --btn-primary-outline: rgb(42, 143, 109);
    --scrollbar-bg: #030303;
    --scrollbar-thumb: #384742;
    --scrollbar-thumb-hover: #ffffff;
}

body.dark .navbar.custom-navbar-bg {
    background-color: var(--navbar-color) !important;
}

/* Button styles */
.btn {
    outline: none;
    box-shadow: 0 0 5px var(--btn-primary-outline) !important;
    background-color: var(--text-color);
    color: var(--background-color);
}

.btn-primary:focus {
    box-shadow: 0 0 5px rgb(42, 143, 109);
}

.btn-primary:hover {
    background-color: rgb(42, 143, 109);
}

.btn-primary:active {
    background-color: rgb(19, 85, 63) !important;
}

/* Ball styles */
#about .container {
    overflow: hidden;
}

.svg-container {
    width: 100%;
    overflow: hidden;
}

#svg {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
}

.ball {
    fill: var(--ball-fill-color);
    visibility: hidden;
}

text {
    fill: var(--year-text-color);
    font-size: 11px;
    visibility: hidden;
}

.theLine {
    fill: none;
    stroke: transparent;
    stroke-width: 10px;
}

/* Intro Video */

#intro.video-background .intro-container {
    background-color: transparent;
    position: relative;
    z-index: 2;
}

#intro.video-background {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: url('assets/FallBackImage.png') no-repeat center center;
    background-size: cover;
}

.intro-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 10px;
}

/* Media queries */
@media (max-width: 992px) {
    #intro h1 {
        font-size: 30px;
    }

    #intro p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    #intro h1 {
        font-size: 28px;
        margin-bottom: 10px !important;
    }

    #intro p {
        font-size: 11px;
    }
}

@media (max-width: 1366px) {
    #intro h1 {
        font-size: 25px;
        margin-bottom: -5px;
    }
    #intro p {
        font-size: 15px;
        margin-bottom: -10px;
    }
}

.content-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.content-inner {
    text-align: center;
}

.video-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 10px;
    width: 50px;
    height: 50px;
    border: none;
    background-color: transparent;
    background-image: url('assets/Pause_Button.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 40%;
    transition: opacity 0.3s ease;
}

.video-toggle-btn:hover {
    opacity: 100%;
}

.video-toggle-btn.playing {
    background-image: url('assets/Play_Button.svg');
}

#intro.video-background .intro-container h1,
#intro.video-background .intro-container p {
    color: white;
}

#portfolio {
    position: relative;
    height: auto;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
            var(--border-gradient-color-dark) 0%,
            var(--border-gradient-color-light) 50%,
            var(--border-gradient-color-dark) 100%);
    z-index: 3;
}

#portfolio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
            var(--border-gradient-color-dark) 0%,
            var(--border-gradient-color-light) 50%,
            var(--border-gradient-color-dark) 100%);
    z-index: 3;
}

#portfolio .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
}

#portfolio h2 {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    #portfolio h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    #portfolio h2 {
        font-size: 1.75rem;
    }
}

#portfolio .btn {
    position: relative;
    z-index: 2;
}

.parallax-section {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel {
    width: 100%;
    margin: 0 auto;
}

.carousel-cell {
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.parallax-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
            var(--border-gradient-color-dark) 0%,
            var(--border-gradient-color-light) 50%,
            var(--border-gradient-color-dark) 100%);
    z-index: 3;
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.flickity-button {
    padding: 5px;
}

.flickity-prev-next-button {
    background: transparent !important;
}

.flickity-button.previous {
    left: 5% !important;
}

.flickity-button.next {
    right: 5% !important;
}


.flickity-prev-next-button .flickity-button-icon {
    fill: white;
}

.parallax-section .carousel {
    margin-bottom: 20px;
}

.parallax-section .container {
    position: relative;
    z-index: 2;
}

.parallax-section h2 {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .parallax-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .parallax-section h2 {
        font-size: 1.75rem;
    }
}

.parallax-section p {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .parallax-section p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .parallax-section p {
        font-size: 0.8rem;
    }
}

/* Contact Text Boxes */
.form-control {
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--text-color);
}

/* Additional styles for the contact form */
.contact-section {
    text-align: center;
}

.contact-section form {
    max-width: 500px;
    margin: 0 auto;
}

.form-control:focus {
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--text-color);
    outline: none;
    box-shadow: 0 0 5px rgb(44, 143, 146) !important;
}

.form-control::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.form-btn {
    margin-top: 10px;
}

/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* For the main scrollbar of the page */
body::-webkit-scrollbar {
    width: 10px;
    background: var(--scrollbar-bg);
}

body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* For Firefox */
* {
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
    scrollbar-width: auto;
}