/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8); /* Light white background */
    z-index: 9999; /* High z-index to cover everything */
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Logo Styling */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-weight: 700;
    color: black;
    font-size: 30px;
    margin: 0;
    display: flex;
    align-items: center;
}

.logo p {
    color: black;
    font-weight: 600;
    margin-top: 2px;
    width: 100%;
    margin: 0; /* Remove extra space */
    line-height: .4 /* Adjust spacing between lines */
}

.verified-icon {
    height: 24px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Toggle Button for Mobile Menu */
.toggle-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: none;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: black;
    margin: 3px 0;
    transition: 0.3s;
}
/* Toggle Button Animation */
.toggle-button.opened .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.toggle-button.opened .bar:nth-child(2) {
    opacity: 0;
}

.toggle-button.opened .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* Navigation Links Styling */
.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    flex: 1;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    color: black;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0047BA;
}

/* Contact Button Styling */
.contact-button {
    color: black;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #0047BA;
    border-radius: 50px;
    background-color: transparent;
    cursor: pointer;
}

.contact-button:hover {
    background-color: transparent;
    color: black;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .toggle-button {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }
}

/* Home Section with Background Image */
.home-section {
    background: url('Images/Background.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 50px;
    color: black;
    margin-top: 60px;
    position: relative;
}

/* Home Content Layout */
.home-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-align: center;
    align-items: center;
}

/* Left Section - Profile Photo + Social Icons */
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 485px;
    height: 550px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    background-color: #333;
    font-size: 24px;
    margin: 0 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.social-icons a[href*="wa.me"] { background-color: #25D366; }
.social-icons a[href*="mailto:"] { background-color: #D44638; }
.social-icons a[href*="instagram"] { background-color: #E1306C; }
.social-icons a[href*="twitter"] { background-color: #1DA1F2; }
.social-icons a[href*="linkedin"] { background-color: #0077B5; }

.social-icons a:hover {
    color: #fff;
    opacity: 0.9;
}

/* Right Section - Portfolio Text + Download CV Button */
.right-section h1 {
    font-size: 60px; /* Adjust the size as needed */
    font-weight: 800;
    line-height: 1.2;
    margin: 10px 0; /* Adjust spacing */
}

h2.typing-text {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #0047BA;
    width: fit-content; /* Ensures the cursor ends close to the text */
    animation: typing 3s steps(22) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 13ch; } /* Match the number of characters in "Hey, It's Me" */
}

@keyframes blink-caret {
    50% { border-color: transparent; }
}

.description {
    font-size: 20px;
    margin-bottom: 20px;
    color: #555;
    text-align: center;
}

.download-cv {
    background-color: #0047BA;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-cv:hover {
    background-color: #003087;
}

/* About Section */
.about-section {
    background-color: #0047BA;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 20px;
}

.about-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.about-content {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: auto;
}

/* Experience Section */
.experience-section {
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.98);
    opacity: 0.9;
}

.experience-section:hover {
    transform: scale(1);
    opacity: 1;
}

.experience-title {
    font-size: 28px;
    font-weight: 700;
    color: #0047BA;
    text-align: center;
    margin-bottom: 30px;
}

/* Experience Timeline */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Company Logo */
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Timeline Content */
.timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    flex: 1;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.designation {
    font-size: 16px;
    color: #555;
    margin: 3px 0;
}

.date-range,
.location {
    font-size: 14px;
    color: #777;
}

/* Education Section */
.education-section {
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.98);
    opacity: 0.9;
}

.education-section:hover {
    transform: scale(1);
    opacity: 1;
}

.education-title {
    font-size: 28px;
    font-weight: 700;
    color: #0047BA;
    text-align: center;
    margin-bottom: 30px;
}

/* Education Timeline */
.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education-timeline .timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.education-timeline .company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.education-timeline .timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    flex: 1;
}

.education-timeline .company-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.education-timeline .designation {
    font-size: 16px;
    color: #555;
    margin: 3px 0;
}

.education-timeline .date-range {
    font-size: 14px;
    color: #777;
}
/* Skills Section Styling */
.skills-section {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 20px;
}

.skills-title {
    font-size: 28px;
    font-weight: 700;
    color: #0047BA;
    margin-bottom: 20px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-button {
    background-color: #0047BA;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap; /* Ensure text doesn't break into multiple lines */
}

.skill-button:hover {
    background-color: #003087;
}
/* Certifications Section Styling */
.certifications-section {
    background: url('Images/cert\ background.png') no-repeat center center/cover;
    padding: 50px 20px;
    text-align: center;
    color: white;
}

.certifications-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.certificate-card {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0047BA;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 18%;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.certificate-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.certificate-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.view-certificate-button {
    background-color: #0047BA;
    color: white;
    font-size: 14px;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-certificate-button:hover {
    background-color: #003087;
}

/* Skills Section Styling */
.skills-section {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 20px;
}

.skills-title {
    font-size: 28px;
    font-weight: 700;
    color: #0047BA;
    margin-bottom: 20px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-button {
    background-color: #0047BA;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap; /* Ensure text doesn't break into multiple lines */
}

.skill-button:hover {
    background-color: #003087;
}


/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .skill-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .skill-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Certifications Section Styling */
.certifications-section {
    background: url('Images/cert\ background.png') no-repeat center center/cover;
    padding: 50px 20px;
    text-align: center;
    color: white;
}

.certifications-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.certificate-card {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0047BA;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 18%;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.certificate-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.certificate-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.view-certificate-button {
    text-decoration: none; /* Remove underline */
    background-color: #0047BA; /* Background color */
    color: white; /* Text color */
    font-size: 14px; /* Font size */
    padding: 10px 15px; /* Padding */
    border: none; /* Remove border */
    border-radius: 25px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    display: inline-block; /* Align properly without line breaks */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.view-certificate-button:hover {
    background-color: #003087; /* Darker blue on hover */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 1024px) {
    .certificate-card {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .certificate-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .certificate-card {
        width: 90%;
    }

    .view-certificate-button {
        font-size: 12px;
        padding: 8px 12px;
    }
}
/* Projects Section Styling */
.projects-section {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.projects-title {
    font-size: 36px;
    font-weight: 700;
    color: black;
    margin-bottom: 40px;
    text-align: center;
}

/* Projects Container */
.projects-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animation Styling */
.animation-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Projects Cards */
.projects-cards {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Individual Project Card */
.project-card {
    background-color: #E5F9F7;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-info {
    text-align: center;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: #0047BA;
    margin-bottom: 10px;
}

.project-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.project-button {
    background-color: #0047BA;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-button:hover {
    background-color: #003087;
}
/* Updated Achievements Section Styling */
.achievements-section {
    position: relative;
    padding: 50px 20px;
    text-align: center;
    color: white;
    overflow: hidden;
    border-radius: 15px; /* Optional rounded corners */
}

.achievements-section dotlottie-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover; /* Ensures the animation scales properly */
}

.achievements-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: black; /* Black text color for heading */
    text-align: center; /* Ensures heading is centered */
}

.achievements-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

.achievement-card {
    background-color: #0047BA; /* Primary color */
    color: white;
    border-radius: 15px;
    box-shadow: none; /* Shadow removed */
    width: 250px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievement-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.achievement-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.achievement-image:hover {
    transform: scale(1.1);
}

.achievement-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}
/* Blog Section Styling */
.blog-section {
    background-color: #E5F9F7; /* Updated background color */
    padding: 50px 20px;
    text-align: center;
}

.blog-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

.blog-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    text-align: left;
}

.blog-heading {
    font-size: 20px;
    font-weight: 700;
    color: #0047BA;
    margin-bottom: 10px;
}

.blog-snippet {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.read-more-button {
    font-size: 14px;
    font-weight: 600;
    color: #0047BA;
    text-decoration: none;
    border: 2px solid #0047BA;
    border-radius: 25px;
    padding: 8px 20px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
}

.read-more-button:hover {
    background-color: #0047BA;
    color: white;
}
/* Gallery Section Styling */
.gallery-section {
    position: relative;
    padding: 50px 20px;
    background-color: #E5F9F7;
    text-align: center;
    overflow: hidden;
}

.gallery-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0047BA;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 71, 186, 0.7), rgba(0, 123, 255, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.5s ease;
}

.download-cv, .project-button, .read-more-button {
    text-decoration: none; /* Ensures no underline */
}

.contact-section {
    background-color: #0047BA; /* Primary color */
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
}

.contact-info p i {
    margin-right: 10px;
    color: white;
}

.contact-info a {
    color: #E5F9F7;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #dfe8f7;
}
.contact-container .social-icons {
    display: flex;
    justify-content: flex-start; /* Align icons to the left */
    margin-top: 20px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    font-size: 24px;
    margin: 0 10px;
    color: white;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: #E5F9F7;
    transform: scale(1.2);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: #0047BA;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    background-color: #0047BA;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #003087;
}
.footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}


/* Responsive Design for Smaller Screens */
@media (max-width: 1024px) {
    /* Adjust navbar padding for tablets */
    .navbar {
        padding: 10px 30px;
    }

    .logo h1 {
        font-size: 26px;
    }

    .nav-links {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Stack navbar items vertically */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    /* Reduce the size of profile image */
    .profile-photo {
        width: 300px;
        height: 350px;
    }

    /* Adjust text size for smaller screens */
    .description {
        font-size: 18px;
    }

    .download-cv {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Adjust home section layout for mobile */
    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .left-section,
    .right-section {
        max-width: 100%;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .experience-section,
    .education-section {
        max-width: 90%;
        padding: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
    }

    .timeline-content {
        text-align: center;
    }

    .company-logo {
        margin-bottom: 10px;
    }
}
/* Responsive Home Section for Tablets */
@media (max-width: 1024px) {
    .home-section {
        flex-direction: column;
        padding: 20px;
        height: auto; /* Allow height to adjust for content */
    }

    .home-content {
        flex-direction: column;
        align-items: center;
    }

    .left-section,
    .right-section {
        max-width: 80%;
    }

    .profile-photo {
        width: 350px;
        height: 400px;
    }

    .social-icons {
        margin-top: 15px;
    }

    .description {
        font-size: 18px;
        text-align: center;
    }

    .download-cv {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Responsive Home Section for Mobile */
@media (max-width: 768px) {
    .home-section {
        padding: 15px;
        text-align: center;
    }

    .home-content {
        flex-direction: column;
    }

    .profile-photo {
        width: 280px;
        height: 320px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .description {
        font-size: 16px;
    }

    .download-cv {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* Responsive Home Section for Extra Small Screens */
@media (max-width: 480px) {
    .home-section {
        padding: 10px;
    }

    .profile-photo {
        width: 240px;
        height: 280px;
    }

    .social-icons {
        gap: 10px; /* Reduce spacing between icons */
    }

    .description {
        font-size: 14px;
    }

    .download-cv {
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .skill-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .skill-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}
/* Responsive Design for Smaller Screens */
@media (max-width: 1024px) {
    .certificate-card {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .certificate-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .certificate-card {
        width: 90%;
    }

    .view-certificate-button {
        font-size: 12px;
        padding: 8px 12px;
    }
}
/* Responsive Design */
@media (max-width: 1024px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .projects-cards {
        grid-template-columns: 1fr;
    }

    .animation-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .project-card {
        padding: 15px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 14px;
    }

    .project-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .achievement-card {
        width: 200px;
        padding: 15px;
    }

    .achievement-title {
        font-size: 18px;
    }

    .achievement-detail {
        font-size: 14px;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-card {
        width: 90%;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 30px 10px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        width: 100%;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .achievement-card {
        width: 200px;
        padding: 15px;
    }

    .achievement-image {
        height: 120px;
    }

    .achievement-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .achievement-card {
        width: 100%;
    }

    .achievement-image {
        height: 100px;
    }

    .achievement-title {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info, .contact-form {
        min-width: 100%;
        text-align: center;
    }

    .contact-container .social-icons {
        justify-content: center; /* Center icons for smaller screens */
    }
}

