/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    color: #e0e0e0;
    scroll-behavior: smooth;
    text-align: center;
}

/* Global Section Titles */
h2 {
    font-size: 2.5em;
    color: #ffbf00;   /* Yellow color */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #ffbf00; /* Yellow underline */
    margin: 10px auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #ffbf00 0%, #d4af37 100%);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

nav ul {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Hamburger Icon for Mobile */
.menu-icon {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: white;
    padding: 10px;
}

/* Mobile/Tablet Styling (max-width: 768px) */
@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    #navbar {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    #navbar li {
        margin: 15px 0;
    }

    #navbar li a {
        padding: 15px 30px;
        font-size: 1.2em;
    }

    #navbar.show {
        display: flex;
    }

    /* Skills Section for Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile fixes for Education, Timeline, and Experience Cards */
    .education-container, .experience-card, .timeline-content {
        padding: 20px;
    }

    /* Contact Section for Mobile */
    .contact-container {
        display: block;
        text-align: center;
        padding: 20px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .resume-button {
        width: 100%;
    }

    .resume-container {
        margin-top: 20px;
    }
}

/* Larger Screen Styling */
@media screen and (min-width: 769px) {
    #navbar {
        display: flex;
        justify-content: center;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .education-container {
        display: flex;
        justify-content: space-between;
        max-width: 1000px;
        margin: 0 auto;
        padding: 40px 0;
    }

    .experience-card {
        max-width: 800px;
        margin: 40px auto;
        padding: 40px;
        border-radius: 15px;
    }
}

/* Timeline Section */
.timeline-section {
    background-color: #1a1a1a;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #d4af37;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-container.left {
    justify-content: flex-end;
}

.timeline-container.right {
    justify-content: flex-start;
}

.timeline-content {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    width: 45%;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Timeline Arrow Shape */
.timeline-container.left .timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid #333;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.timeline-container.right .timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 20px solid #333;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.9);
}

.timeline-content h3 {
    color: #ffbf00;  /* Yellow for timeline titles */
    font-size: 1.8em;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1.1em;
    color: #e0e0e0;
}

/* Skills Section */
.skills-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
    text-align: center;
}

.skill-card {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7);
}

.skill-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffbf00;  /* Yellow for skill titles */
}

.skill-card ul {
    list-style-type: none;
    padding-left: 0;
}

.skill-card ul li {
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.6em;
    color: #e0e0e0;
}

/* Education Section */
.education-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
    color: #e0e0e0;
    text-align: center;
}

.education-card {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7);
}

.education-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffbf00;  /* Yellow for education titles */
}

.education-card p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Experience Section */
.experience-section {
    background: linear-gradient(135deg, #1a1a1a, #333);
    padding: 80px 20px;
    text-align: center;
}

.experience-card {
    background-color: #333;
    border-radius: 15px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.7);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.9);
}

.experience-card h3 {
    color: #ffbf00;  /* Yellow for experience titles */
    font-size: 2em;
    margin-bottom: 20px;
}

.experience-card p {
    font-size: 1.2em;
    color: #ddd;
    margin-bottom: 20px;
}

.experience-card ul {
    list-style-type: none;
    padding-left: 0;
}

.experience-card ul li {
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.6em;
    color: #e0e0e0;
}









/* About Me Section (Responsive & Centered Title) */
.about-section {
    background: linear-gradient(135deg, #2a2a2a, #000); /* Gradient background */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f1f1f1;
    box-sizing: border-box;
}

/* About Me Title */
.about-section h2 {
    font-size: 2.5em;
    color: #ffbf00;
    margin-bottom: 20px; /* Space between title and content */
    position: relative;
    text-align: center;
}

.about-section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #ffbf00;
    margin: 10px auto;
}

/* Profile Picture Adjustment (Increased size and shifted upwards) */
.about-pic {
    width: 200px; /* Increased size for larger screens */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffbf00;
    box-shadow: 0px 5px 15px rgba(212, 175, 55, 0.6);
    margin-right: 20px;
    margin-bottom: 9px;
    position: relative;
    top: 0px; /* Bring the image a bit up */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-pic:hover {
    transform: scale(1.05);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.8);
}

/* Optional: Adjust container to ensure the photo remains aligned */
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.6);
    flex-wrap: wrap;
}

/* About Me Text */
.about-text {
    flex: 1;
    color: #f1f1f1;
    font-size: 1.4em;
    line-height: 1.6em;
    max-width: 700px;
    text-align: left; /* Left-align the text */
}

.about-section a {
    color: #ffbf00; /* Set link color to yellow */
    text-decoration: none; /* Removes the underline */
    transition: color 0.3s ease;
}

/* Hover effect for links in About Me */
.about-section a:hover {
    color: #ffffff; /* Change color on hover */
}

/* Emphasized Text */
.about-text strong {
    color: #ffbf00;
    font-weight: bold;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack image and text for mobile screens */
        text-align: center;
    }

    .about-pic {
        margin-right: 0; /* Remove the margin when stacked */
        margin-bottom: 20px; /* Add space below the image */
        width: 180px;
        height: 180px; /* Adjust image size for smaller screens */
        top: 0; /* Reset the upward shift for mobile */
    }

    .about-text {
        text-align: center; /* Center text for mobile */
        font-size: 1em; /* Reduce text size for mobile */
    }
}

/* Container for About Me on Mobile */
@media screen and (max-width: 768px) {
    .about-section {
        padding-top: 20px; /* Ensure padding at top for mobile */
    }

    .about-container {
        flex-direction: column; /* Stack profile pic and text vertically on mobile */
        align-items: center; /* Center everything */
        padding: 10px; /* Reduced padding */
    }

    /* Adjust About Me Title */
    .about-section h2 {
        font-size: 1.8em; /* Slightly smaller title size for mobile */
        margin-bottom: 20px;
    }

    .about-pic {
        top: 0; /* Reset top margin on mobile */
        margin-bottom: 20px; /* Add more space below image */
    }

    .about-text {
        text-align: center; /* Center text for mobile */
        font-size: 0.9em; /* Slightly smaller text for mobile */
        padding: 0; /* Remove extra padding for mobile */
    }

    .about-text .quote-author {
        text-align: center;
    }
}



































/* Projects Section */
.projects-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #333;
    color: #ddd;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffbf00;  /* Yellow for project titles */
}

.project-card p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.github-link {
    font-size: 1.1em;
    color: #ffbf00;  /* Changed to yellow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: #ffbf00;
}

/* Blog Section */
.blog-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
    text-align: center;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background-color: #333;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.7);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffbf00;  /* Yellow for blog titles */
}

.blog-card p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.blog-link {
    font-size: 1.1em;
    color: #ffbf00;  /* Changed to yellow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #ffbf00;
}

/* Contact Section */
.contact-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
    color: #e0e0e0;
    text-align: center;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.contact-link {
    text-decoration: none;
    font-size: 1.2em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    padding: 10px 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-link img {
    width: 30px;
    height: 30px;
}

.contact-link:hover {
    background-color: #d4af37;
    transform: translateY(-5px);
}

/* Resume Button Styling */
.resume-container {
    margin-top: 40px;
    text-align: center;
    padding: 0 20px; /* Add padding to keep the button away from the edges */
}

.resume-button {
    text-decoration: none;
    font-size: 1.5em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    padding: 15px 30px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Make sure the button doesn't overflow */
    box-sizing: border-box; /* Ensure padding is included in width */
    word-wrap: break-word; /* Ensure text doesn't overflow the button */
}

.resume-button img {
    width: 24px;
    height: 24px;
}

.resume-button:hover {
    background-color: #d4af37;
    transform: translateY(-5px);
}

/* Responsive Design for Mobile Devices */
@media screen and (max-width: 768px) {
    .resume-button {
        font-size: 1.2em; /* Reduce font size on smaller screens */
        padding: 10px 20px; /* Adjust padding to fit smaller screens */
        width: 100%; /* Ensure the button takes up full width on mobile */
    }
}


/* Disclaimer Section */
.disclaimer-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
    color: #e0e0e0;
    text-align: center;
}

.disclaimer-section h2 {
    font-size: 2.5em;
    color: #ffbf00;  /* Yellow */
    margin-bottom: 40px;
}

.disclaimer-section p {
    font-size: 1.3em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    line-height: 1.8em;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1em;
    position: relative;
}

footer p a {
    color: #ffbf00;
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}


/* Awards Section */
.awards-section {
    background-color: #1a1a1a;
    padding: 60px 20px;
    text-align: center;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.award-pic {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    display: none; /* Hide all images initially */
}

.award-pic.active {
    display: block; /* Only show the active image */
    animation: fade 1s; /* Optional fade effect */
}

/* Fade animation for smooth transitions */
@keyframes fade {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* Slideshow Navigation Dots (Optional) */
.dot-container {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot {
    background-color: #ffbf00;  /* Yellow active dot */
}


/* Mobile Optimization */
@media screen and (max-width: 768px) {
    .slideshow-container {
        max-width: 100%;
        height: auto;
    }

    .award-pic {
        height: auto;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

