html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.6;
    color: #fff;
    background: url('billy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 0px;
    margin-top: 0px;
    opacity: 1;
    transition: opacity .8s ease-in-out;
}

a {
    color: #ffffff;         /* Your desired link color */
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #ff6600;         /* Color on hover */
}

#about {

    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}
.about-boxes-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-start; /* Align tops of boxes */
}

.about-box,
.Skills-Box,
.Program-Box{
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px 20px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    /* Remove width, margin, and display properties */
    box-sizing: border-box;
}

.about-box-heading {
    display: inline-block;
    background-color: rgba(1, 1, 1, 0.3);
    border-radius: 15px;
    padding: 12px 24px;
    color: #fff;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 20px;
    margin-top: 35px;
    margin-left: 90px;
}
.about-image-hover {
    display: block;
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}

.about-image-hover:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.about-image-container {
    position: relative;
    width: 400px;
    max-width: 100%;
    margin-top: 24px;
}

.about-image-container .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    color:rgba(0, 0, 0, 0);
    font-size: 18px;
    text-align: left;
    box-sizing: border-box;
    opacity: 1;
    pointer-events: none;
    border-radius: 15px;
    transform: scale(1);
    transition: background 0.3s, color 0.3s, transform 0.3s ease-in-out;
}

.about-image-container .overlay,
.about-image-container .overlay p,
.about-image-container .overlay a {
    white-space: normal !important;
    word-break: break-word;
}

.about-image-container .overlay p:last-child {
    margin-top: auto;
    width: 100%;
    text-align: left;
}

.about-image-container:hover .about-image-hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.about-image-container:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
    color: rgb(255, 255, 255);
    transform: scale(1.1);
}
/* Style overlay links to match overlay text */
.about-image-container .overlay a {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s;
}

.about-image-container .overlay a:hover {
    color: #ffd700; /* or any highlight color you like */
    text-decoration: underline;
}

.about-image-container .overlay {
    pointer-events: auto;
}

.about-image-container .overlay a {
    pointer-events: auto;
}
.spacer {
    height: 10px; /* Adjust the height as needed */
    background: transparent; /* Optional: keep it invisible */
}
.spacer1 {
    height: 200px; /* Adjust the height as needed */
    background: transparent; /* Optional: keep it invisible */
}

#logo {
    display: block;
    margin: 0 auto; /* Center the logo horizontally */
    width: 200px; /* Adjust size as needed */
    height: auto;
    opacity: 0.8; /* Slight transparency */
    transition: opacity 0.3s ease-in-out;
}

#logo:hover {
    opacity: 1; /* Fully visible on hover */
}

#header h1 {
    margin-top: 10px; /* Add spacing below the logo */
    text-align: center; /* Center the headers */
}

#portfolio {

    background-size: cover;
    background-position: 50% 42%;
    background-repeat: no-repeat;

}
.portfolio-item:hover img {
    transform: scale(1.1); /* Slightly zoom in the image */
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.portfolio-item:hover .overlay {
    background: rgba(0, 0, 0, 0.7); /* Darken the overlay */
    color: rgb(0, 162, 255); /* Change text color to yellow */
    transform: scale(1.1); /* Slightly zoom in the image */
    transition: transform 0.3s ease-in-out; /* Smooth transition */
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out; /* Smooth transition */
}

#header {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgb(0, 0, 0));
    color: #fff;
    padding: 10px 0;
    line-height: .2;
    text-align: center;
}

h1 {
    font-size: 70px;
    padding: 0px;
    margin-bottom: 5px;
}

h2 {
    font-size: 30px;
    padding: 0px;
    margin-top: 35px;
    margin-bottom: 15px;
}
h3 {
    padding: 10px;
}
nav {
    display: flex; /* Arrange buttons horizontally */
    justify-content: center; /* Center the buttons */
    gap: 20px; /* Space between buttons */
    margin-bottom: 60px;
}

nav a {
    text-decoration: none; /* Remove default link underline */
}

nav img {
    max-width: 100%;
    width: 400px; /* Adjust image width as needed */
    height: auto; /* Maintain aspect ratio */
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    padding-top: 40px;
    margin: 0;
    list-style: none;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    padding: 20px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #ddd;
    color: #000;
}

.back-button {
    position: absolute; /* Position the button relative to its nearest positioned ancestor */
    top: 20px; /* Distance from the top */
    Right: 20px;
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;

}

.back-button:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
}

section {
    padding: 0 0px;
    margin: 0px;
}

.gallery {
    display: flex;
    justify-content: space-around;
}

.portfolio-item {
    position: relative;
    display: inline-block;
    width: 31%; /* Adjust width as needed */
    height: auto;
}

.portfolio-item img {
    display: block;
    width: 100%; /* Ensure the image fits the container */
    height: auto;
    border-radius: 15px;
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cover the entire image */
    display: flex; /* Center text */
    align-items: flex-end; /* Align text to the bottom */
    justify-content: flex-start; /* Align text to the left */
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 18px;
    text-align: left;
    box-sizing: border-box;
    border-radius: 15px;
    opacity: 1; /* Ensure the overlay is visible */
    pointer-events: none; /* Prevent interaction with the overlay */
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #111111;
    color: #fff;
}

.background-video {
    position: fixed; /* Fix the video to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the video covers the entire viewport */
    z-index: -1; /* Place the video behind all other content */
}

.scroll-image h2 {
    margin-top: 90px; /* Add spacing below the back button */
    font-size: 30px;
    text-align: left; /* Adjust alignment as needed */
    color: #fff; /* Ensure text is readable */
}

#Page1 {
    position: relative; /* Ensure content is positioned above the video */
    z-index: 1; /* Place content above the video */
    color: #fff; /* Ensure text is readable */
}

#Page1, #Page2, #Page3 {
    margin: 0;
    padding: 0;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    overflow: hidden; /* Prevent scrolling */
    position: relative; /* Enable positioning for child elements */
    background-image: url('b3.jpg'); /* Replace with your image */
    background-repeat: no-repeat;
    background-size: cover; /* Ensure the image fits the screen */
    background-position: center; /* Center the image */
}

.dropdown {
    position: absolute;
    top: 80px; /* Distance from the top */
    right: 50px; /* Distance from the right */
}

.dropbtn {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.dropbtn:hover {
    background-color: #ddd;
    color: #000;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position the dropdown content below the button */
    right: 0; /* Align the dropdown content with the button */
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 30px;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 10px;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/*---------------------------------------------------------------------------------------------*/
/*Design*/

#logod {
    display: block;
    margin: 10 auto; /* Center the logo horizontally */
    width: 300px; /* Adjust size as needed */
    height: auto;
    opacity: 0.8; /* Slight transparency */
    transition: opacity 0.3s ease-in-out;
}

#header h4 {
    margin-top: 10px; /* Add spacing below the logo */
    text-align: center; /* Center the headers */
    font-size: 50px;
    padding-top: 50px;
}

.back-button-des {
    position: absolute; /* Position the button relative to its nearest positioned ancestor */
    top: 5px; /* Distance from the top */
    Right: 50px;
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;

}

.back-button-des:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
}

#logod {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

h4 {
    margin-left: 50px;
}

#contact h4 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    margin-left: 40px;
    display: inline-block;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 15px;
    padding: 12px 24px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-box#contact-box {
    background-color: rgba(30, 30, 30, 0.5);
}

.portfolio-section-heading {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 12px 24px;
    color: #fff;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 20px;
    margin-top: 35px;
    margin-left: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.program-image-container {
    position: relative;
    cursor: pointer;
}

.program-image-container .program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 8px 16px;
    border-radius: 15px 0 15px 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
    pointer-events: none;
}

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

.Program-Box {
    overflow: visible;
}

.program-image-container .program-overlay {
    z-index: 2;
}