:root {
    --bg: #101f10;
    --text: #e3f9e1;
    --accent: #4caf50;
    --section-bg: #1a2b1a;
    --parallax-bg: rgba(0, 0, 0, 0.5); /* Dark background for parallax sections */
}

[data-theme="light"] {
    --bg: #ffffff;
    --text: #222222;
    --accent: #4caf50;
    --section-bg: #f8f9fa;
    --parallax-bg: rgba(255, 255, 255, 0.7); /* Light background for parallax sections */
}

body {
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--bg);
    color: var(--text);
}

header.hero {
    background: url('../images/hem_2024.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.navbar-nav {
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.navbar-brand {
    margin-right: auto;
}

.ms-auto {
    margin-left: auto;
    padding-right: 40px; /* Adjust padding as needed */
    display: flex;
    align-items: center;
}

.theme-switch {
    margin-left: 20px; /* Adjust margin as needed */
    display: flex;
    align-items: center;
}

.theme-switch img {
    margin: 0 0.4rem; /* Adjust margin as needed */
    display: inline-block; /* Ensure images are inline */
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 1rem;
}

section {
    padding: 3rem 0;
    background-color: var(--section-bg);
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline li {
    padding: 20px 30px;
    background: var(--section-bg);
    border-radius: 6px;
    width: 50%;
    position: relative;
    list-style: none;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.timeline li:nth-child(odd) {
    left: 0;
}

.timeline li:nth-child(even) {
    left: 50%;
}

.timeline li::before {
    content: '';
    position: absolute;
    top: 22px;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--accent);
    border: 4px solid var(--bg);
    border-radius: 50%;
    z-index: 1;
}

.timeline li:nth-child(even)::before {
    left: -10px;
}

.timeline time {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: bold;
}

.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('/assets/images/hero-medtech.png'); /* Replace with your image path */
    background-attachment: fixed; /* Parallax effect */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.45);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-in-out;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 0.8rem 1.8rem;
    background-color: #ff8c42;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e76a22;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .navbar-nav .nav-item {
        margin: 0 10px; /* Increase the margin between the icons */
    }

    .navbar-nav .nav-link {
        padding: 10px; /* Increase the padding around the icons */
    }
}

.decorative-section {
    height: 100px; /* Adjust the height as needed */
    background-color: var(--section-bg); /* Use a background color that matches your theme */
    border-top: 2px solid var(--accent); /* Add a top border for decoration */
}

.footer {
    animation: slideUp 1s ease-in-out;
    background-color: var(--bg);
    color: var(--text);
    padding: 2rem 0;
    border-top: 2px solid var(--accent);
}

.footer a {
    color: var(--text);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer h5 {
    margin-bottom: 1rem;
}

.footer .list-inline-item {
    margin-right: 0.5rem;
}

.footer .list-inline-item a {
    font-size: 1.5rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.social-menu {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px 0 0 10px;
    z-index: 1000;
    /*background-color: transparent; /* Initially transparent */
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease; /* Smooth transition */
}

.social-menu:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Dark background on hover */
}

.icons-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    color: aqua;
    font-size: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    position: relative; /* Ensure the pseudo-element is positioned relative to the icon */
}

.social-icon:hover {
    transform: scale(1.7); /* Scale up to 24px */
    background-color: rgba(255, 255, 255, 0.2);
}

.social-icon::after {
    content: attr(data-platform);
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.social-icon:hover::after {
    opacity: 1;
}

.text-column {
    display: flex;
    align-items: center;
}

.share-to {
    font-family: 'Roboto', sans-serif;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: aqua;
    font-size: 14px;
    text-align: center;
    transform: rotate(0deg);
    letter-spacing: 8px;
    font-weight: bold; /* Make the text bold */
}

/* Add shadow and hover effect to buttons */
.btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.fi {
    width: 1.5em;
    height: 1em;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    vertical-align: middle;
}

.parallax {
    position: relative;
    overflow: hidden;
    height: auto; /* Adjust the height as needed */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transform: translateZ(-1px) scale(2);
}


.parallax.intro {
    height: 50vh; /* OVERWRITE - Adjust height as needed */
}

.parallax .trapeze {
    position: relative;
    background-color: var(--parallax-bg);
    padding: 1rem;
    z-index: 5;
    transform: skew(-20deg); /* Skew to create the parallelogram effect */
    margin: 2rem 0;
}

.trapeze-inner {
    transform: skew(20deg); /* cancels out skew for readability */
    padding: 2rem;
}

.trapeze-reverse {
    position: relative;
    background-color: var(--parallax-bg);
    padding: 1rem;
    z-index: 5;
    transform: skew(20deg); /* Skew to create the parallelogram effect */
    margin: 2rem 0;
}

.trapeze-reverse-inner {
    transform: skew(-20deg); /* cancels out skew for readability */
    padding: 2rem;
}

.parallax .rectangle {
    position: relative;
    /* background-color: rgba(0, 0, 0, 0.5); /* Slightly darker transparent background */
    background-color: var(--parallax-bg);
    z-index: 5;
    padding: 2rem 1rem;
    margin: 2rem 0;
    overflow: visible;
}

/* Overlay for opacity */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(216, 215, 176, 0.5); /* Adjust opacity here */
    z-index: 1;
}

/* Blending gradient */
.parallax.sidebyside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 45%, rgba(135, 132, 27, 0.56) 50%, transparent 55%);
    opacity: 0.8; /* Make this softer or stronger as needed */
    z-index: 1;
    pointer-events: none;
}

/* Portfolio item customization*/
.portfolio-item {
    border: 2px solid var(--accent); /* Add a border with the accent color */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Ensure content doesn't overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Ensure the portfolio item takes full height */
}

.portfolio-item:hover {
    transform: scale(1.05); /* Slightly scale up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.8); /* Add a shadow on hover */
}

.portfolio-item img, .portfolio-item video, .portfolio-item iframe {
    width: 100%; /* Ensure media elements take full width */
    height: 50%; /* Maintain aspect ratio */
    border-bottom: 2px solid var(--accent); /* Add a border at the bottom of media elements */
    /*flex-grow: 1;  Allow card body to grow and fill available space */
}

.portfolio-item .card-body {
    padding: 1rem; /* Add padding inside the card body */
    background-color: var(--section-bg); /* Use the section background color */
    color: var(--text); /* Use the text color */
    flex-grow: 1; /* Allow card body to grow and fill available space */
    /*height: 50%; /* Maintain aspect ratio */
}

.portfolio-item .card-title {
    font-size: 1.5rem; /* Increase the font size of the title */
    margin-bottom: 0.5rem; /* Add some space below the title */
}

.portfolio-item .card-text {
    font-size: 1rem; /* Set the font size of the text */
    line-height: 1.5; /* Improve readability */
}

/* Add shadow to cards */
.card {
    box-shadow: 10px 14px 11px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 10px 26px 28px rgba(0, 0, 0, 0.85);
}

/* testimonial */
.testimonial{
    padding: 70px 30px 50px;
    margin: 50px 30px 30px;
    border: 1px solid #ea816b;
    position: relative;
}

.testimonial .pic{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #c7373c;
    overflow: hidden;
    margin: 0 auto;
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
}

.testimonial .pic img{
    width: 100%;
    height: auto;
}

.testimonial .description{
    font-size: 15px;
    color: #5e595b;
    line-height: 27px;
    text-align: center;
    margin: 0;
    position: relative;
}
.testimonial .description:before{
    content: "\f10d";
    font-family: "Font Awesome 5 Free", serif; font-weight: 900;
    font-size: 25px;
    color: #d7d7d7;
    position: absolute;
    top: 0;
    left: -20px;
}
.testimonial .title{
    display: inline-table;
    padding: 10px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ea816b;
    font-size: 20px;
    font-weight: 700;
    color: #c7373c;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
}
.testimonial .post{
    font-size: 15px;
    color: #671a36;
}
.owl-theme .owl-controls{
    width: 100%;
    height: 50px;
    opacity: 1;
    position: absolute;
    top: 38%;
}
.owl-theme .owl-controls .owl-buttons div{
    width: 50px;
    height: 50px;
    line-height: 40px;
    border-radius: 0;
    background: transparent;
}
.owl-prev{
    position: absolute;
    left: -5%;
}
.owl-next{
    position: absolute;
    right: -5%;
}
.owl-prev:after,
.owl-next:after{
    content: "\f104";
    font-family: "Font Awesome 5 Free", serif; font-weight: 900;
    font-size: 30px;
    color: #c7373c;
    opacity: 1;
}
.owl-next:after{ content: "\f105"; }

@media only screen and (max-width: 479px){
    .testimonial{ padding: 70px 10px 30px; }
    .testimonial .description:before{ top: -20px }
    .testimonial .title{ font-size: 12px; }
    .testimonial .post{ font-size: 11px; }
}

@media (max-width: 768px) {
    .rectangle .row {
        flex-direction: column;
    }
}