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

/* Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #121212;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 1000;
}

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

    .navbar .logo {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
        font-weight: bold;
        color: #ffffff;
        text-decoration: none;
    }

    .navbar .nav-links {
        list-style: none;
        display: none;
    }

    @media (min-width: 769px) {
        .navbar .nav-links {
            display: flex; /* Show on desktop */
        }
    }

        .navbar .nav-links li {
            margin-left: 20px;
        }

        .navbar .nav-links a {
            text-decoration: none;
            color: #ffffff;
            font-weight: 500;
            transition: color 0.3s ease;
            font-size: clamp(0.9rem, 1.8vw, 1.2rem);
        }

            .navbar .nav-links a:hover {
                color: #1E90FF;
            }

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        align-items: center;
        z-index: 999;
    }

        .navbar .nav-links.active {
            display: flex; /* Show nav links when toggled */
        }

        .navbar .nav-links li {
            margin: 15px 0; /* Vertical spacing for mobile */
        }
}

/* Video Section */
.video-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding: 0px 0;
}


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

/* Video Placeholder */
#video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/scrap-forge.png') no-repeat center center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .video-section {
        height: 50vh;
    }

    #video-placeholder {
        height: 50vh !important;
        background-attachment: scroll; /* Fix for mobile scrolling */
    }
}


.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    font-size: clamp(2rem, 5vw, 3rem);
}

    .video-overlay h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 10px;
    }

    .video-overlay p {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

/* Sections Styling */
section {
    padding: 30px 0;
}

.about-section {
    background: #240c39;
}
.favourite-project-section, .projects-section, .contact-footer {
    background: #1e1e1e;
}
.title-section {
    background: #121212;
    padding: 0px 0;
}
    .title-section h2 {
        text-align: center;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        position: relative;
        color: #ffffff;
    }
    .title-section p {
        text-align: center;
        font-size: clamp(0.8rem, 2vw, 1rem);
        position: relative;
        color: #ffffff;
    }

    .about-section h2, .favourite-project-section h2, .projects-section h2, .contact-footer h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        position: relative;
        color: #ffffff;
    }

        .about-section h2::after, .favourite-project-section h2::after, .projects-section h2::after, .contact-footer h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: #1E90FF;
            margin: 10px auto 0;
            border-radius: 2px;
        }

    /* Favourite Project Styling */
    .favourite-project-section .project {
        text-align: center;
    }

        .favourite-project-section .project a {
            display: inline-block;
            overflow: hidden;
            border-radius: 10px;
            transition: transform 0.3s ease;
        }

            .favourite-project-section .project a img {
                width: 100%;
                max-width: 400px;
                height: auto;
                display: block;
            }

            .favourite-project-section .project a:hover {
                transform: scale(1.05);
            }

        .favourite-project-section .project p {
            margin-top: 15px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            color: #cccccc;
        }

/* Projects Grid Styling */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-item {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    margin-top: 10px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #ffffff;
}

@media (max-width: 480px) {
    .project-item {
        padding: 10px;
    }
}

    .project-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

    .project-item:hover img {
        transform: scale(1.1);
    }

    .project-item p {
        margin-top: 10px;
        font-size: clamp(0.9rem, 2vw, 1rem);
        color: #cccccc;
    }

    .project-item a {
        text-decoration: none;
    }

.project-title-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}


/* Contact Footer Styling */
.contact-footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
}

    .contact-footer a {
        color: #1E90FF;
        text-decoration: none;
        margin: 0 10px;
        transition: color 0.3s ease;
    }

        .contact-footer a:hover {
            color: #ffffff;
        }

.project-tag {
    padding: 0.5rem;
    border-radius: 10px;
}

.project-tag-container {
    display: flex;
    justify-content: center;
}

/* Navbar Toggle Button */
.nav-toggle {
    display: none;
    
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #fff;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        display: none;
    }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            margin: 15px 0;
        }
}
