/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Define dark mode color variables */
:root {
    --primary-bg-color: #333;
    --primary-text-color: #f4f4f4;
    --highlight-color: #ffcc00;
    /* Yellow for highlights */
    --secondary-text-color: #bbb;
    --link-color: #ff9900;
    /* Orange for links and accents */
}

/* Overall page styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--primary-bg-color) !important;
    color: var(--primary-text-color) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-text-color);
}

header p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
}

/* Main content area */
main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Project section styles */
.project {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* Align the content to the top */    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.project-media{
    padding-top:10px;
}

.project-text {
    max-width: 600px;
    margin-top: 0; /* Remove any margin if necessary */
    flex-grow: 0; /* Ensure it doesn’t take up extra space */
}

.about h2
.project h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-text-color) !important;
}

section.about h2 {
    color: var(--primary-text-color) !important;
}

.project ul {
    list-style-type: none;
    padding-left: 20px;
}

.project li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--secondary-text-color);
}

/* About section styles */
.about {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-text-color);
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    color: var(--primary-text-color);
    width: 100%;
}

.highlight {
    color: var(--highlight-color) !important;
}

.carousel-inner {
    max-width: 750px;
    /* Match the video width */
    height: 420px;
    /* Set a fixed height to prevent resizing */
    margin: 0 20px;
    overflow: hidden;
    /* Ensure content stays within bounds */
    display: flex;
    align-items: center;
    /* Vertically center the carousel content */
}

.carousel-item img,
.carousel-item video {
    max-width: 100%;
    width: 750px;
    max-height: 100%;
    height: 420px;
    border-radius: 15px;
    /* Adjust the value for the desired roundness */
    object-fit: contain;
    /* Keep aspect ratio intact */
}

/* Link and Highlight styling */
a {
    color: var(--link-color) !important;
    text-decoration: none;
}

a:hover {
    color: var(--highlight-color) !important; /* Slightly darker orange for hover effect */
    text-decoration: underline;
}

/* Style for links near section headers */
.section-link {
    margin-left: 10px;
    font-size: 1rem; /* Adjust size as needed */
    text-decoration: none; /* Optional: remove underline */
}

.section-link:hover {
    text-decoration: underline; /* Optional: add underline on hover */
}

/* About Section Styles */
.about {
    max-width: 800px;  /* Restrict width for better readability */
    text-align: left;  /* Align text to the left */
    margin: 0px auto; /* Center the section horizontally */
    border-radius: 8px;  /* Optional: rounded corners for a softer look */
}

.about p {
    font-size: 1.1rem; /* Slightly larger font size for readability */
    line-height: 1.7;   /* Improve line spacing */
    color: #f4f4f4; /* Light text color */
}