html {
    scroll-behavior: unset; /* Disable smooth scroll */
}

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

/* Global styles for body and html */
body, html {
    height: 100%;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: rgb(255, 255, 255);
}

/* Background video settings */
#video-background {
    position: fixed !important; /* Fullscreen fixed video */
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.7;
}

/* Header styles */
header {
    padding: 20px 0;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

header h1 {
    text-transform: uppercase;
    letter-spacing: 10px;
    font-weight: bold;
    color: #000000;
}

/* Hover effect on main title */
header h1:hover {
    color: #ffffff98;
}

/* Logo container layout */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Logo image size */
#logo {
    width: 270px;
    height: auto;
}

/* Main title size */
h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Subtitle styles */
h2 {
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Navigation bar */
nav {
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999;
}

/* Navigation links list */
nav ul {
    list-style: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: transparent;
    padding: 10px 0;
    margin: 0;

    /* Hide menu by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Show menu when hover over nav */
nav:hover ul {
    opacity: 1;
    pointer-events: auto;
}

/* Navigation link buttons */
nav ul li a {
    background: rgba(0, 0, 0, 0.7); /* Dark buttons */
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Hover effect on nav links */
nav ul li a:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
}

/* About Me section */
.about-section {
    width: 100%;
    padding: 180px 100px;
    background-color: rgba(231, 223, 223, 0.534);
    box-shadow: #000000;
}

/* About section layout */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

/* Text container in About */
.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
    color: #000;
    letter-spacing: 10px;
}

.about-text p {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #000000;
}

/* Image in About section */
.about-image {
    flex: 1;
    text-align: center;
}

#dev {
    width: 300px;
    max-width: 100%;
    border-radius: 30%;
    box-shadow: 1px 4px 20px rgb(0, 0, 0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Hover effect on developer image */
#dev:hover {
    transform: scale(1.05) rotate(10deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Responsive adjustments for About section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-text h2 {
        text-align: center;
    }
}

/* General section styles */
main section {
    width: 100%;
    margin-top: 300px;
    padding: 100px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.503);
}

/* Projects section */
#Projects {
    width: 100%;
    margin-top: 0px !important;
    padding: 100px;
    background: rgba(0, 0, 0, 0.849);
    backdrop-filter: blur(5px);
    border-radius: 0;
    box-shadow: 0 0 10px rgba(231, 228, 228, 0.781);
}

#Projects h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 80px;
}

/* Skills section */
#skills {
    width: 100%;
    margin-top: 0px !important;
    padding: 10px;
    box-shadow: 0 0 10px rgba(21, 255, 0, 0.568);
    border-radius: 0;
    text-align: center;
    color: rgb(255, 255, 255);
}

#skills h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 80px;
}

#skills p {
    font-size: 1.8rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* Each skill block */
.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Gallery section */
.gallery {
    display: flex;
    overflow-x: auto;
    gap: 100px;
    padding: 40px;
    scroll-snap-type: x mandatory;
}

/* Hide gallery scrollbar */
.gallery::-webkit-scrollbar {
    display: none;
}

/* Each project card */
.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    background-color: rgba(128, 129, 128, 0.308);
    border-radius: 8px;
    box-shadow: 0 5px 8px rgba(216, 236, 216, 0.349);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Project image */
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background-color: rgb(255, 255, 255);
}

/* Project title */
.gallery-item h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0 5px;
    color: rgb(255, 255, 255);
}

/* Project description */
.gallery-item p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.4;
}

/* Project button */
.gallery-item a {
    display: inline-block;
    text-decoration: none;
    background-color: black;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.gallery-item a:hover {
    background-color: #b9b2b2c7;
    color: #000000;
}

/* Progress bar styles */
.progress-bar {
    position: relative;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.507);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: rgb(45, 148, 45);
    border-radius: 10px 0 0 10px;
    border-color: #ffffff;
}

.percentage {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

/* Paragraph styles */
p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Contact section */
#Contact {
    width: 100%;
    margin-top: 0;
    padding: 160px;
    background: rgba(0, 0, 0, 0.61);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.503);
}

#Contact h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 80px;
}

/* Form styles */
form {
    width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

form input, form textarea, form button {
    width: 100%;
    padding: 7px;
    margin-bottom: 10px;
    border-radius: 2px;
    border-color: #000000;
}

form button {
    background-color: rgb(7, 7, 7);
    color: rgb(248, 248, 248);
    cursor: pointer;
    width: 100px;
}

form button:hover {
    background: #9a9898da;
    color: #000000;
}

/* Footer */
footer {
    margin-top: 0px;
    text-align: center;
    padding: 90px;
    background-color: rgb(138, 136, 136);
    color: #ffff;
}

/* Timeline section with video background */
.video2 {
    margin: 0;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Timeline video */
#video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1.9;
}

/* Timeline container */
.timeline-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    padding: 60px 20px;
    z-index: 1;
}

/* Timeline line */
.timeline-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #1a9916d5;
}

/* Timeline items */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Timeline dots */
.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #11c220c0;
    border-radius: 50%;
}

/* Timeline text content */
.timeline-content {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 1.5rem;
    background: rgba(221, 211, 211, 0.685);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    color: #000000;
}

.timeline-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #105e06;
}

.timeline-content p {
    margin: 5px 0 0;
    font-size: 1rem;
    line-height: 1.3;
}

/* Video in timeline */
.video2 video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}
