/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* General Styles for the Body */
:root {
    --primary-color: #f11912;
    --primary-color-dark: #c9302c;
    --text-color: #333;
    --footer-color:#333;
    --label-color: #555;
    --background-color: #f4f4f4;
    --border-color: #ccc;
    --focus-border-color: var(--primary-color);
    --link-color: #ff4500;
    --link-hover-color: #e03e00;
    --form-background-color: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 20px;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center; /* Center the navigation bar */
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2; /* Ensure the nav is above the hero content */
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px; /* Position the hamburger menu on the top left */
    z-index: 3; /* Ensure the menu toggle is above the hero content */
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure the hero content is below the nav */
}

.scroll-down {
    display: inline-block;
    margin-top: 20px;
    font-size: 24px;
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Additional Styles for Other Sections */
.about-section {
    padding: 60px 20px;
    background-color: var(--background-color);
    text-align: center;
}

.about-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-section a{
    color: var(--link-color);
    text-decoration: none;
    border: 2px solid #ff4500;
    border-radius: 10px;
    font-weight: bold;
    padding: 10px 20px;
}

.about-section a:hover {
    background-color: var(--link-color);
    color: white;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.projects-section {
    padding: 60px 20px;
    background-color: var(--form-background-color);
    text-align: center;
}

.projects-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary-color);
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--primary-color);
}

.project-card p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

.project-link:hover {
    color: var(--link-hover-color);
}

.portfolio-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.portfolio-link:hover {
    background-color: var(--primary-color-dark);
}

footer {
    padding: 20px;
    background-color: var(--footer-color);
    color: white;
    text-align: center;
}

.footercontainer {
    max-width: 1200px;
    margin: 0 auto;
}

.footercontainer h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--link-hover-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav{
        background: none;
    }

    .nav-list {
        position: absolute;
        top: 60px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease-in-out;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 20px 0;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        margin: 10px 0;
    }
}