:root {
    --primary-bg-color: #121212;
    --secondary-bg-color: #a400ff;
    --tertiary-bg-color: #191919;
    --primary-color: #eee;
    --primary-color-hover: #7b06b8;
    --secondary-color: #333;
    --tertiary-color: #7b06b8;
}

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

body {
    font-family: Arial, sans-serif;
    background: var(--primary-bg-color);
    color: var(--primary-color);
    margin: 0;
    text-align: center;
}

h1 {
    padding: 25px;
}

h2 {
    padding: 18px;
}

h2 a {
    text-decoration: none;
    color: inherit;
}
.text-primary {
    color: var(--primary-color) !important;
}

.button-primary {
    color: white;
    background-color: var(--tertiary-color) !important;
    opacity: 1 !important;
}
.button-primary:hover {
    color: white !important;
    background-color: var(--primary-color-hover) !important;
}
.button-secondary {
    border-style: solid;
    background-color: transparent;
    border-color: var(--primary-color) !important;
}
.button-secondary:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
}
.button-secondary i,
.button-primary i {
    margin-right: 10px;
}
.button-tertiary:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
}

.primary {
    color: white;
    background-color: var(--primary-color) !important;
}
.primary-text {
    color: var(--primary-color) !important;
}

.secondary {
    color: white;
    background-color: var(--secondary-color) !important;
}
.secondary-text {
    color: var(--secondary-color) !important;
}


.slider{
    color: var(--primary-color);
    background-color: var(--tertiary-bg-color);
}

.slider div{
    height:24px;
    color: white;
    background-color: var(--tertiary-color)!important;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}


.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .overlay {
    opacity: 1;
}



.panel {
  padding: 0 18px;
  margin-bottom: 18px;
  background-color: var(--primary-bg-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.project {
    text-align: center;
    margin-bottom: 65px;
}

/* Hide submenu by default */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  margin-top: 5px;
  list-style: none;
  padding: 0;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Show submenu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Optional styling */
.dropdown-menu li {
  padding: 8px 16px;
}

.dropdown-menu li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}


.accordion {
    background-color: var(--primary-bg-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

.active,
.accordion:hover {
    background-color: var(--tertiary-bg-color) !important;
}

/* Video Banner */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

/* Navigation Bar */
nav {
    top: 0px;
    position: fixed;
    width: 100%;
    min-height: 4rem;
    background: var(--tertiary-bg-color);
    opacity: 0.8;
    padding: 8px 16px;
    box-shadow:
        0 2px 5px 0 rgba(0, 0, 0, 0.16),
        0 2px 10px 0 rgba(0, 0, 0, 0.12);
    z-index: 1;
    align-content: center;
}

.wide {
    letter-spacing: 4px;
}

#home {
    float: left;
    padding: 8px 16px;
}

.container {
    padding: 0.01em 16px;
    padding-top: 7rem;
    padding-bottom: 3rem;
    width: 100%;
    margin: auto;
}

nav ul {
    list-style: none;
    float: right;
    padding: 0;
}

nav ul li {
    padding: 8px 16px;
    float: left;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Section Styling */
section {
    padding: 80px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

@media screen and (max-width: 768px) {
    section {
        padding: 10px;
    }
}
/* Slider Container */
.card-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 100px;
    padding-top: 50px;
}

.card-slider::-webkit-scrollbar {
    display: none;
}

/* Card Container */
.card {
    position: relative;
    flex: 0 0 90%;
    scroll-snap-align: start;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Card Background */
.card .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.card .background img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

/* Fade Overlay */
.card .fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 80%);
    z-index: 2;
}

/* Card Content */
.card .content {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.card .title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.card .subtitle {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.card .description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card .role {
    font-size: 1em;
    font-style: italic;
    margin-bottom: 20px;
}

/* Outlined Tag Styles */
.card .tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.card .tag {
    padding: 5px 10px;
    border: 2px solid #6a0dad;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.card .tag:hover {
    background-color: rgba(106, 13, 173, 0.2);
}

/* Carousel at the bottom inside each card */
.card .carousel-container {
    overflow-x: auto;
    padding: 10px;
    margin-top: 20px;
}

.card .carousel {
    display: flex;
    gap: 10px;
}

.card .carousel img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.tags {
    margin-top: 10px;
}

.tags span {
    display: inline-block;
    background: var(--tertiary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
}

.link {
    text-decoration: none;
    color: var(--tertiary-color);
}

/* Footer */
footer {
    background: #222;
    color: var(--primary-color);
    padding: 20px;
}