/* style.css */
* {
    box-sizing: border-box;
    text-decoration: none;
}


/* styles.css */
/* ... (Existing CSS) ... */

/* Section Transitions */
section {
    transition: opacity 0.5s ease, transform 0.5s ease; /* Adjust duration as needed */
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Move down slightly */
}

section.active { /* Class added by JavaScript when section is in viewport */
    opacity: 1;
    transform: translateY(0); /* Move back to original position */
}

/* Specific Section Animations (Optional) */
/* You can add more specific animations for each section if you want */
#hero {
    /* Example: different animation for hero section */
    transition: opacity 1s ease, transform 1s ease;
}

#about {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#skills {
    transition: opacity 0.9s ease, transform 0.9s ease;
}

#certifications {
    transition: opacity 1.1s ease, transform 1.1s ease;
}

#projects {
    transition: opacity 1.3s ease, transform 1.3s ease;
}

#contact {
    transition: opacity 1.5s ease, transform 1.5s ease;
}


/* ... (Rest of CSS) ... */

body {
    font-family: Courier New;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Sticky Navigation */
#sticky-nav {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #333;
    z-index: 100;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.sticky-nav-scrolled {
    background-color: rgba(51, 51, 51, 0.9);
}

#sticky-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

#sticky-nav li {
    display: inline;
    margin: 0 1rem;
}

#sticky-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: color 0.3s ease;
}

#sticky-nav a:hover {
    color: #007bff;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
}

/* Hero Section */
#hero {
    background-image: url('heros.jpeg'); /* Replace with a hero image */
    background-size: cover;
    background-position: center;
    color: black;
    padding: 5rem 0;
    text-align: center;
}

h1 {
    font-weight: 800;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background-color: red; /* Blue button */
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 20px;
    margin-top: 1rem;
}

/* About Section */
#about .section-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h2 {
    color: green;
}

.profile-pic {
    float: left;
    margin-right: 20px;
    border-radius: 50%;
    max-width: 150px;
}

/* Skills Section */
#skills .section-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #eee;
    border-radius: 5px;
}

/* Certifications Section - Improved */
#certifications .section-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: 0 auto;
}

.certification-slides {
    overflow: hidden;
}

.certification-slide {
    display: none;
    text-align: center;
}

.certification-slide img {
    max-width: 50%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Next & previous buttons - Adjusted */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.view-certificate {
    display: inline-block;
    padding: 8px 15px;
    background-color: black;
    color: white;
    text-decoration: none; /* Removed underline */
    border-radius: 4px;
    transition: background-color 0.2s;
}

.view-certificate:hover {
    background-color: green;
}

/* Projects Section */
#projects .section-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.project {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
}

.project-image {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 8px;
}

/* Contact Section */
#contact .section-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav li {
        display: block;
        margin: 0.5rem 0;
    }

    .profile-pic {
        float: none;
        margin: 0 auto 1rem;
        display: block;
    }

    .project-image,
    .certification-slide img {
        max-width: 100%;
    }
}