/* Resetting default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General styles */
body {
    font-family: 'Open Sans', Arial, sans-serif, sans-serif;
    color: #333;
    background-color: #000;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Navigation Bar */
nav {
    width: 100%;
    background-color: #000; /* Black background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 30px 20px; /* Adjusted padding */
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: #f0a500;
    font-weight: bold;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #f0a500;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin-right: 40px;
    align-items: center;
}

nav ul li a {
    font-family: 'Open Sans', Arial, sans-serif;
    text-decoration: none;
    color: #f0a500;
    font-weight: bold;
    transition: color 1s ease, transform 1s ease;
    letter-spacing: 2px;
    text-shadow: 10px 10px 5px rgba(0, 0, 0, 0.3);
}

nav ul li a:hover {
    color: #f0a500;
    transform: scale(1.2); /* Slightly enlarge the text on hover */
    transition: 0.2s ease;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    nav ul li {
        margin-bottom: 20px;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

}


/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url() no-repeat center center/cover;
    color: #fff;
    text-align: center;
    background-color: black;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 span {
    color: #f0a500;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #f0a500;
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
    }

    .hero-social-icons {
        margin-top: 20px;
    }

    .hero-social-icons .social-icon {
        font-size: 1.8em;
        margin: 0 10px;
    }
}

/* About Me Section */
.about-me {
    padding: 100px 20px;
    background-color: #fff;
    background-color: #000;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    color: #f0a500;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    color: white;
}

.about-text .btn {
    background-color: #333;
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.about-text .btn:hover {
    background-color: #555;
}

.about-image {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
    align-self: flex-start; /* Align the image to the top */
    order: 1; /* Ensure the image appears first on smaller screens */
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center; 
    }

    .about-image {
        margin-left: 0;
        margin-top: 20px;
    }

    .about-text {
        max-width: 100%;
    }
}

/* Education Section */
.education {
    padding: 100px 20px;
    background-color: #f9f9f9;
    background-color: #000;
}

.education h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    color: #f0a500;
    text-transform: uppercase;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.timeline-item {
    display: flex;
    align-items: center;  /* Adjusted to align items in the center */
    margin-bottom: 10px;
    position: relative;
}

.timeline-item .timeline-icon {
    width: 40px;
    height: 40px;
    /* background-color: #3498db; */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.5rem;
    position: relative;
    top: 50%;  /* Add this to move it to the middle */
    transform: translateY(-50%);  /* Adjust to center it */
}


.icon-color-1 {
    background-color: #3498db;
}

.icon-color-2 {
    background-color: #e74c3c;
}

.icon-color-3 {
    background-color: #f0a500;
}

/* .timeline-item:nth-child(even) .timeline-icon { 
    background-color: #e74c3c;
}*/


.timeline-item .timeline-content {
    background-color: #fff;
    background-color: #000;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item .timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #333;
    color: #f0a500;
    font-weight: bold;
}

.timeline-item .timeline-content h3 span {
    font-size: 0.9rem;
    color: #999;
    color: white;
    font-weight: normal;
    margin-left: 10px;
}

.timeline-item .timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
    color: white;
}

.timeline-item .timeline-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 2;
    margin: 0;
}

.timeline-item::before {
    content: none;
}

.timeline-item:last-child::before {
    height: 50%;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        /* align-items: flex-start; */
        text-align: center;
    }

    .timeline-item .timeline-icon {
        margin-bottom: 10px;
        top: 0;
        transform: translateY(0);
    }

    .timeline-item .timeline-content {
        padding-left: 20px;
    }
}

/* Skills Section */
.skills {
    background-color: #000;
    padding: 20px 20px;
    color: #fff;
    text-align: center;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    color: #f0a500;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.skills-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 40px; /* Space between items vertically and horizontally */
}

.skill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    flex-wrap: wrap; /* Ensure elements wrap if necessary */
}

.skill-name {
    font-size: 1.2rem;
    flex-basis: 30%; /* Ensure the skill name doesn't take up too much space */
    text-align: left;
}

.progress {
    flex-basis: 60%; /* Ensure the progress bar takes most of the space */
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
    position: relative;
    min-width: 100px; /* Minimum width for the progress bar */
}

.progress-bar {
    height: 100%;
    background-color: #f0a500;
    border-radius: 5px 0 0 5px;
    position: absolute;
    top: 0;
    left: 0;
}

.skill-percent {
    font-size: 1.2rem;
    flex-basis: 10%; /* Ensure the percentage doesn't take up too much space */
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-bars {
        grid-template-columns: 1fr; /* Stack items in one column on smaller screens */
    }

    .skill {
        flex-direction: row; /* Keep items in a single row on small screens */
        align-items: center;
        justify-content: space-between;
        text-align: center;
    }

    .progress {
        width: 100%; /* Make progress bars take up the full width */
        margin: 0 auto; /* Keep consistent margins */
    }

    .skill-name {
        flex-basis: 40%; /* More space for the skill name */
    }

    .skill-percent {
        flex-basis: 20%; /* Ensure the percentage is visible */
        text-align: right;
    }
}


/* Work Experience Section */
.work-experience {
    padding: 120px 20px;
    background-color: #fff;
    background-color: #000;
}

.work-experience h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    color: #fff;
    color: #f0a500;
    text-transform: uppercase;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1900px;
    /* margin: 0 auto; */
    /* padding: 0; */
}

.timeline-item2 {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    position: relative;
    max-width: 1200px;
}

.timeline-item2 .timeline-icon {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.timeline-item2:nth-child(even) .timeline-icon {
    background-color: #e74c3c;
}

.timeline-item2 .timeline-content {
    background-color: #f7f8fa;
    padding: 20px;
    border-radius: 30px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item2 .timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
}

.timeline-item2 .timeline-content h3 span {
    font-size: 0.9rem;
    color: #999;
    font-weight: normal;
}

.timeline-item2 .timeline-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.timeline-item::before {
    content: none;
}

.timeline-item2:last-child::before {
    height: 50%;
}

.timeline-item2:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .timeline-item2 {
        flex-direction: column;
        /* align-items: flex-start; */
        text-align: center;
    }

    .timeline-item2 .timeline-icon {
        margin-bottom: 10px;
    }

    .timeline-item2 .timeline-content {
        width: 100%;
        padding-left: 20px;
        text-align: left;
    }

    .timeline-item2::before {
        top: 25px;
        left: calc(50% - 1px);
        height: calc(100% - 50px);
    }
}


/* Projects Section */
.projects {
    padding: 100px 20px;
    background-color: #f9f9f9;
    background-color: #000;
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #f0a500;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-item {
    background-color: #f9f9f9;
    background-color: #000;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
}

.project-item h3 {
    font-size: 1.5rem;
    margin: 15px 20px 10px 20px;
    color: #333;
    color: #f0a500;
}

.project-item p {
    font-size: 1rem;
    margin: 0 20px 20px 20px;
    color: #666;
    color: white;
    line-height: 1.6;
}
.project-item .btn {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 10px 20px;
    background-color: #333;
    background-color: #f0a500;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-item .btn:hover {
    background-color: #f0a500;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-item h3 {
        font-size: 1.25rem;
    }

    .project-item p {
        font-size: 0.9rem;
    }

    .project-item .btn {
        font-size: 0.9rem;
    }
}
/* Blogs Section */
.blogs {
    padding: 100px 50px;
    background-color: #fff;
    background-color: #000;
    text-align: center;
}

.blogs h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    color: #f0a500;
    text-transform: uppercase;
}

.blog-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    background-color: #000;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.blog-item img {
    width: 40%;
    height: auto;
    display: block;
}

.blog-content {
    padding: 20px;
    width: 60%;
}

.blog-meta {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
    color: #f0a500;
    font-weight: bold;
}

.blog-excerpt {
    font-size: 1rem;
    color: white;
}

.blog-item:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.blogs .btn {
    display: inline-block;
    background-color: #f0a500; /* Medium green color */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Add margin to move the button lower */
}

.blogs .btn:hover {
    background-color: #f0a500;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
    }

    .blog-item img {
        width: 100%;
        border-radius: 30px 30px 0 0;
    }

    .blog-content {
        width: 100%;
        padding: 20px;
    }

    .blog-content h3 {
        font-size: 1.5rem;
    }
}

/* Certifications Section */
.certifications {
    padding: 100px 20px;
    background-color: #f9f9f9;
    background-color: #000;
    text-align: center;
}

.certifications h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    color: #f0a500;
    text-transform: uppercase;
    
}

.certification-list {
    display: grid; /* Ensure the grid is visible */
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    gap: 20px;
    margin-top: 20px;
}

.certification-item {
    background-color: #fff;
    background-color: #000;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certification-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.certification-item p {
    font-size: 1rem;
    color: #333;
    color: white;
    margin-top: 10px;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certification-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns per row on smaller screens */
    }

    .certifications h2 {
        text-align: center; /* Center the certification heading */
        width: 100%; /* Ensure it takes the full width */
        margin: 0 auto; /* Center the heading with margin below */
        align-items: center;
    }
}

@media (max-width: 480px) {
    .certification-list {
        grid-template-columns: 1fr; /* 1 column per row on mobile screens */
    }
    
}

/* Contact Me Section */
.contact {
    padding: 100px 20px;
    background-color: #fff;
    background-color: #000; 
    text-align: center;
    color: #fff;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #060000;
    color: #f0a500;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.contact-tagline {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: #050505;
    color: white;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-item {
    flex: 1;
    max-width: 23%;
    text-align: center;
    margin: 20px 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background-color: #040404;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    width: 30px;
    height: auto;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #070707;
    color: white;
    text-transform: uppercase;
}

.contact-item p {
    font-size: 1rem;
    color: #020202;
    color: white;
}

/* Social Icons in Contact Section */

.social-heading {
    font-size: 1.5rem; /* Heading size */
    color: #333;
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.social-icon {
    color: black;
    color: #f0a500;
    font-size: 2em; /* Increase the size of the icons */
    margin: 0 30px; /* Increase the space between icons */
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #f0a500;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }

    .contact-item {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .social-icons {
        margin-top: 20px;
    }
}

.animate__animated.animate__fadeInUp {
    animation-duration: 1.5s; /* 4 seconds duration */
}




/* General adjustments for smaller screens */
@media (max-width: 768px) {
    
    /* Ensure sections are taking up full width */
    .section {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Hero Section Adjustments */
    #hero h1 {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
        margin-bottom: 10px;
    }
    
    #hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Button adjustments */
    .btn {
        width: 100%; /* Make buttons full-width on smaller screens */
        padding: 15px;
        font-size: 1rem;
    }

    /* Work Experience Section Adjustments */
    .work-experience{
        padding: 60px 20px;
    }

    .work-experience .timeline-item2 {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%; /* Make sure it utilizes full width */
    }
    
    .work-experience h2 {
        font-size: 2rem;
        text-align: center;
    }

    .timeline-item2 p {
        font-size: 1rem;
        line-height: 1.5;
        /* text-align: left; */
        text-align: center;
    }


    .work-experience h3 {
        text-align: center; /* Center the h3 heading text */
        width: 100%; /* Ensure it takes full width */
        margin: 0 auto 10px auto; /* Center the heading and add margin below */
    }

    /* Blog Section Adjustments */
    #blogs {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .blog-item {
        margin-bottom: 30px;
        width: 100%;
        text-align: center;
    }

    .blog-item img {
        width: 100%;
        height: auto;
    }

    .blog-item h3 {
        font-size: 1.5rem;
    }

    .blog-item p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Contact Me Section Adjustments */
    #contact {
        padding: 20px;
        text-align: center;
    }
    
    #contact .contact-info {
        margin-bottom: 20px;
    }
    
    #contact .social-icons {
        margin-top: 20px;
    }
}

/* Adjust Project Section 
.project-item {
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.project-item img {
    width: 100%;
    height: auto;
    margin: 0 auto; 
}

.project-item h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    text-align: left;
}

.project-item p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}
    */

.projects .project-item {
    text-align: center; /* Center all text content */
    margin: 0 auto; /* Center the entire project item block */
    padding: 20px 0; /* Add some padding for spacing */
}

.projects .project-item img {
    margin: 0 auto; /* Center the image */
    width: 100%; /* Ensure the image takes full width */
    height: auto; /* Maintain aspect ratio */
}

.projects .project-item h3,
.projects .project-item p,
.projects .project-item .btn {
    text-align: center; /* Center the heading, paragraph, and button */
    margin: 10px auto; /* Center content and add spacing */
    width: 100%; /* Ensure full width for text elements */
}

/* Centering Button Text */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}