/* Variables for theming */
:root {
    --primary-color: #f0a500;
    --secondary-color: #444;
    --background-color: #fff;
    --text-color: #333;
    --project-bg-color: #f9f9f9; /* Light mode project background */
}

body.dark-mode {
    --background-color: #222020;
    --text-color: #e0e0e0;
    --secondary-color: #555;
    --project-bg-color: #383333; /* Dark mode project background */
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}
html {
    scroll-behavior: smooth;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(68, 68, 68, 0.8) ;
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
}

nav .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8em;
    padding: 15px 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    bottom: 5px;
    transition: 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
#hero {
    background-image: url('../Images/photo.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(211, 25, 195, 0.7) 0%, transparent 0%, rgba(25, 10, 153, 0.7) 100%);
    animation: hero-animation 10s infinite;
}

@keyframes hero-animation {
    0% { left: -50%; }
    50% { left: 0%; }
    100% { left: -50%; }
}

#hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero h1 .typed-text {
    color: var(--primary-color);
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
    border-radius: 50px;
}

.btn::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: transform 0.4s;
    transform: skewX(-45deg);
    z-index: -1;
}

.btn:hover::after {
    left: 0;
    transform: skewX(0deg);
}


.btn:hover {
    background-color: #c07800;
}

/*NO animation Button */
.btn-no-animation {
    position: relative; /* Ensure positioning doesn't interfere */
    overflow: hidden;   /* Same as other buttons for consistency */
   
}


.btn-no-animation::after {
    content: none;
}


.btn-no-animation:hover {
    color: inherit; /* Prevent color change on hover */
    background-color: var(--primary-color); /* Or set to a specific color */
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    50% { top: 15px; opacity: 0.5; }
    100% { top: 25px; opacity: 0; }
}


/* Theme Toggle */
/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1001;
}

/* Hide default checkbox */
.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The switch container */
.theme-toggle label {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    cursor: pointer;
    background-color: #20262c; /* Default background for dark mode */
    border-radius: 30px;
    transition: background-color 0.5s ease;
}

/* The slider knob */
.theme-toggle label::after {
    content: '';
    position: absolute;
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 0.2em; /* Start on the left by default for dark mode */
    bottom: 0.3em;
    box-shadow: inset 8px -4px 0px 0px #ececd9, -4px 1px 4px 0px #dadada;
    background: #ececd9; /* Light knob for dark mode */
    transition: transform 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
    z-index: 2;
}

/* Crescent moon effect */
.theme-toggle label::before {
    content: '';
    position: absolute;
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 0.4em; /* Slightly right for crescent effect */
    bottom: 0.3em;
    background: #20262c; /* Matches dark mode background */
    clip-path: circle(50% at 30% 50%); /* Crescent shape */
    z-index: 1; /* Behind the main knob */
    transition: opacity 0.5s ease, clip-path 0.5s ease;
}

/* Decoration (optional glowing effect) */
.theme-toggle .decoration {
    position: absolute;
    content: '';
    height: 2px;
    width: 2px;
    border-radius: 50%;
    right: 20%;
    top: 15%;
    background: #e5f041e6;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    box-shadow: -7px 10px 0 #e5f041e6, 8px 15px 0 #e5f041e6, -17px 1px 0 #e5f041e6,
        -20px 10px 0 #e5f041e6, -7px 23px 0 #e5f041e6, -15px 25px 0 #e5f041e6;
}

/* Light mode (checked state) */
.theme-toggle input:checked + label {
    background-color: #5494de; /* Light mode background */
}

/* Sun knob */
.theme-toggle input:checked + label::after {
    transform: translateX(1.8em); /* Move knob to the right */
    background: #f5df2b; /* Yellow knob for light mode */
    box-shadow: inset 15px -4px 0px 15px #f5df2b, 0 0 10px 0px #f5df2b; /* Light mode glow */
}

/* Hide crescent moon in light mode */
.theme-toggle input:checked + label::before {
    opacity: 0; /* Hide moon in light mode */
}

/* Decoration checked state */
.theme-toggle input:checked ~ .decoration {
    transform: translateX(-20px);
    width: 10px;
    height: 10px;
    background: white;
    box-shadow: -12px 0 0 white, -6px 0 0 1.6px white, 5px 15px 0 1px white,
        1px 17px 0 white, 10px 17px 0 white;
}

/* Dark mode (default unchecked state) */
.theme-toggle input:not(:checked) + label {
    background-color: #20262c; /* Dark mode background */
}

/* Knob stays on the left for dark mode */
.theme-toggle input:not(:checked) + label::after {
    transform: translateX(0); /* Knob stays on the left */
    background: #ececd9; /* Light knob for dark mode */
    box-shadow: inset 8px -4px 0px 0px #ececd9, -4px 1px 4px 0px #dadada; /* Dark mode shadow */
}





/* About Me Section */
#about {
    background-image: url('Images/cleveland.jpg'); /* background image */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    color: #fff;
}
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 32, 32, 0.8); /* Dark overlay */
    z-index: -1;
}
#about h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.about-content {

     position: relative;
      z-index: 2;
    
}

.about-content img {
    flex: 1 1 300px; /* Allow the image to grow and shrink */
    max-width: 300px;
    margin: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 50%;
}

.about-text {
    flex: 2 1 500px; /* Adjust based on desired text width */
    margin: 20px;
    text-align: left;
}
.about-text h3 {
    font-size: 1.8em;
    margin-top: 30px;
    color: var(--primary-color);
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    margin-bottom: 10px;
    font-size: 1em;
}

.about-text ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
}







/* Skills Section */
.skills {
    margin-top: 30px;
}

.skill-bar {
    margin-bottom: 15px;
}

.skill-bar span {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.progress-bar {
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.progress {
    height: 15px;
    background: var(--primary-color);
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s;
}
skill-bar:hover .progress {
    background: #c07800;
}

/* Call-to-Action Section */
#call-to-action {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--secondary-color);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#call-to-action h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#call-to-action p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#call-to-action .btn {
    font-size: 1.2em;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

#call-to-action .btn:hover {
    background-color: #c07800;
}

#call-to-action .btn i {
    margin-left: 10px;
}



/* Projects Section */
#projects {
    padding: 50px 20px;
    text-align: center;
}

#projects h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project {
    background-color: var(--project-bg-color);
    margin: 15px;
    width: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    z-index: 1;
}

.project:hover {
    transform: scale(1.05);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    text-align: left;
    z-index: 2;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-color);
}

.project .btn {
    display: inline-block;
}


#hero-video {
    width: 100%; /* Ensures the video is responsive */
    height: 200px; /* Matches the height of your images */
    object-fit: cover; /* Ensures the video content scales properly */
    border-radius: 10px; /* Optional: Matches the rounded corners of images */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Matches image shadows */
}


/* Contact Section */

body.contact-page {
    background-color: var(--background-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
#contact {
    padding: 50px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

#contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

#contact label {
    color: var(--text-color);
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    display: block;
}

#contact input,
#contact textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

#contact button {
    align-self: center;
    width: 50%;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer .social-icons a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s;
}

footer .social-icons a:hover {
    color: var(--primary-color);
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-content,
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        background-color: var(--secondary-color);
        position: absolute;
        top: 65px;
        left: -100%;
        width: 100%;
        transition: 0.5s;
    }

    nav ul.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
    #call-to-action h2 {
        font-size: 2em;
    }

    #call-to-action p {
        font-size: 1em;
    }

    #call-to-action .btn {
        font-size: 1em;
        padding: 12px 24px;
    }
}
/* Hire Me Section */
#hire {
    position: relative;
    padding: 80px 20px;
    background-image: url('../Images/hire-background.jpg'); /* Add a relevant background image */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

#hire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 32, 32, 0.8); /* Dark overlay */
}

#hire h2 {
    font-size: 3em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

#hire p {
    font-size: 1.2em;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

#hire form {
    max-width: 600px;
    margin: auto;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

#hire label {
    color: #fff;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    display: block;
}

#hire input,
#hire textarea,
#hire select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1em;
}

#hire input::placeholder,
#hire textarea::placeholder {
    color: #666;
}

#hire input:focus,
#hire textarea:focus,
#hire select:focus {
    outline: none;
    box-shadow: 0 0 10px var(--primary-color);
}

#hire button {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#hire button:hover {
    background-color: #c07800;
}

#hire input[type="file"] {
    padding: 5px;
    background-color: transparent;
    color: #fff;
}

#hire input[type="file"]::file-selector-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

#hire input[type="file"]::file-selector-button:hover {
    background-color: #c07800;
}

/* Form Progress Bar */
.form-progress-bar {
    width: 0%;
    height: 5px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
    transition: width 0.3s;
    border-radius: 5px;
}

/* Error State */
#hire input.error,
#hire textarea.error,
#hire select.error {
    border: 2px solid red;
}

#hire input.error:focus,
#hire textarea.error:focus,
#hire select.error:focus {
    outline: none;
    box-shadow: 0 0 10px red;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #hire h2 {
        font-size: 2.5em;
    }

    #hire form {
        padding: 20px;
    }
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image,
    .about-text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .about-text {
        text-align: center;
    }
}
/* Hide Conditional Fields */
.field-group {
    display: none;
}

/* Class to Show Fields */
.field-group.show {
    display: block;
}
html {
    scroll-behavior: smooth;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--secondary-color);
    width: 80%;
    max-width: 500px;
    position: relative;
    border-radius: 10px;
}

.close-button {
    color: var(--text-color);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
}
