body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1e1e1e;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Ensures the video covers the full screen */
    transform: translate(-50%, -50%);
    z-index: -1; /* Push it behind other content */
}

.hero {
    position: relative;
    min-height: 100vh; /* Full screen height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.hero-content {
    position: relative; /* Ensures text appears above the video */
    z-index: 1;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Bold for emphasis */
    font-size: 5rem;
    color: lightcyan;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5); /* Shadow for better visibility */
}

.custom-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, #0e6aa3, #61dafb, #0e6aa3);
    background-size: 300% 300%; /* Larger size for smooth animation */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: gradient-shift 6s ease infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.custom-button:hover {
    transform: scale(1.05); /* Slight scale on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.custom-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.projectImg {
    min-width: 100%;
    max-width: 100%;
    min-height: 140px;
    max-height: 140px;
    object-fit: cover;
}

/* Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%; /* Start position */
    }
    50% {
        background-position: 100% 50%; /* Shift gradient */
    }
    100% {
        background-position: 0% 50%; /* Return to start */
    }
}

.section-title {
    font-size: 2rem;
    color: lightcyan;
    margin-bottom: 20px;
}

.section-title-2 {
    font-size: 1.4rem;
    color: lightcyan;
    margin-bottom: 20px;
}

.description {
    font-size: 1.2rem;
    color: #dcdcdc;
}

.description-long {
    font-size: 1.2rem;
    color: #dcdcdc;
    max-width: 50%;
    margin: 0 auto;
    text-align: center;
}

.about {
    position: relative;
    min-height: 100vh; /* Full-screen height */
    display: flex;
    align-items: flex-end; /* Push content to the bottom */
    background: url('../img/aboutBackground.png') center/cover no-repeat; /* Background image */
}

.about-overlay {
    width: 100%;
    background: rgba(30, 30, 30, 0.8); /* Semi-transparent gray background */
    padding: 20px 0; /* Add padding for spacing */
}

.about-content {
    display: flex;
    justify-content: space-between; /* Align text and button side-by-side */
    align-items: center; /* Center align vertically */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
    color: #dcdcdc;
}

.text-section {
    flex: 2; /* Take more space for the text */
}

.button-section {
    flex: 1; /* Take less space for the button */
    text-align: right; /* Align button to the right */
}

.footer {
    text-align: center;
    padding: 20px 0;
    background-color: #121212;
}

.footer-text {
    color: #dcdcdc;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }
}

.navbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: lightcyan;
    text-decoration: none;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    text-decoration: none;
    font-size: 1rem;
    color: #dcdcdc;
    transition: color 0.3s ease;
}

.navbar-menu a:hover {
    color: #61dafb;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #dcdcdc;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(30, 30, 30, 0.9);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px 0;
        border-radius: 5px;
    }

    .navbar-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

.hamburger.open .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.os-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.logo {
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.logo-link {
    text-decoration: none;
    color: #dcdcdc;
}

.alpha {
    font-size: 0.7rem; /* Smaller size */
    color: lightcyan; /* Match the title color */
    border: 1px solid lightcyan; /* Add border */
    padding: 4px 4px; /* Padding for readability */
    line-height: 1; /* Ensure the text height matches the content */
    display: inline-block; /* Ensure proper box alignment */
    vertical-align: super; /* Align as superscript */
    margin-left: 5px; /* Add space from the main title */
    transform: translateY(-10%); /* Slightly adjust position to align visually */
    border-radius: 3px; /* Optional: Add rounded corners */
}

#intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    background-color: #1e1e1e;
    color: #dcdcdc;
    text-align: center;
}

#intro .section-title {
    font-size: 2rem;
    color: lightcyan;
    margin-bottom: 10px;
}

#intro .description {
    font-size: 1.2rem;
    max-width: 800px; /* Optional: Limit the width of the text for better readability */
}

ul {
    font-size: 1.2rem;
    max-width: 800px;
}

.general {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    background-color: #1e1e1e;
    color: #dcdcdc;
    text-align: center;
}

.general .section-title {
    font-size: 2rem;
    color: lightcyan;
    margin-bottom: 10px;
}

.general .description {
    font-size: 1.2rem;
    max-width: 800px; /* Optional: Limit the width of the text for better readability */
}

/* Parent Container */
.box-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Individual Box */
.box {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures content is evenly spaced */
    background-color: #1e1e1e;
    color: #dcdcdc;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    max-width: 250px;
    min-width: 250px;
    min-height: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
}

.box img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #2a2a2a;
    margin-bottom: 15px;
}

.box h3 {
    font-size: 1.5rem;
    color: lightcyan;
    margin-bottom: 10px;
}

.box p {
    font-size: 1rem;
    color: #dcdcdc;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center tags horizontally */
    align-items: center;
    gap: 8px; /* Space between tags */
    text-align: center;
    padding: 10px 0;
    margin-top: 0; /* Push tags to the bottom */
}

.tags span {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    color: white;
    background-color: #0e6aa3;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tags span:hover {
    background-color: #61dafb;
    transform: scale(1.05);
}

.projectTags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px; /* Space between tags */
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Push tags to the bottom */
}

.projectTags span {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    color: white;
    background-color: #0e6aa3;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.projectTags span:hover {
    background-color: #61dafb;
    transform: scale(1.05);
    cursor: pointer;
}


/* Button Stays at the Bottom */
.box .learn-more {
    margin-top: 0;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background-color: #0e6aa3;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover Effect for Buttons */
.box .learn-more:hover {
    background-color: #61dafb;
    transform: scale(1.05);
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

/* Anchor tags and button together at the bottom of the card */
.box-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .box-container {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 90%; /* Take full width on smaller screens */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack text and button */
        align-items: center;
        text-align: center;
    }

    .text-section {
        margin-bottom: 15px;
    }

    .button-section {
        text-align: center;
    }
}

.features {
    display: flex;
    flex-direction: column;
    align-items: center;         /* Center containers horizontally */
    background-color: #1e1e1e;
    padding: 60px 20px;
    box-sizing: border-box;
    gap: 10px;                   /* Space between rows */
}

.features-container {
    display: flex;
    flex-direction: row;         /* Default: text left, image right */
    justify-content: center;     /* Center content horizontally if desired */
    align-items: center;
    width: 90%;
    max-width: 1200px;
    gap: 20px;                   /* Space between text and image */
    margin-bottom: 25px;
}

/* Every even .features-container row reverses the order: 
   text will be on the right, image on the left. */
.features-container:nth-child(even) {
    flex-direction: row-reverse;
}

.features-text {
    flex: 1;
    color: #dcdcdc;
}

.features-text .section-title {
    font-size: 2rem;
    color: lightcyan;
    margin-bottom: 20px;
}

.features-text .description {
    font-size: 1.2rem;
    color: #dcdcdc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.features-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-image img {
    width: 100%; /* Ensures uniform width */
    max-width: 500px; /* Set a maximum width */
    height: 300px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensures images fill the defined area without distortion */
    border: 2px solid #2a2a2a;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column !important;
    }

    .features-container:nth-child(even) {
        flex-direction: column !important;
    }
    
    /* When stacked vertically, the order is top (text) and bottom (image) 
       for odd rows, and top (image) then bottom (text) for even rows due 
       to row-reverse. You can override this if needed, or accept the vertical stacking. */
    
    .features-text .section-title {
        font-size: 1.5rem;
    }
    
    .features-text .description {
        font-size: 1rem;
    }
}