
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
}
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-name {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #fff;
}

.first-name {
    color: #2c3e50;
}

.last-name {
    color: #2980b9;
}

/* Navigation styling */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

nav ul li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffeb3b;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hide by default */
    transition: opacity 0.3s; /* Smooth transition for opacity */
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #ff7e5f;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul.show {
        display: flex;
    }

    .menu-icon {
        display: block; /* Show the menu icon on small screens */
    }
}

/* Styles for open/close state of menu icon */
.menu-icon.open {
    opacity: 0.7; /* Slightly change opacity for the open state */
}

.menu-icon.close {
    transform: rotate(0deg); /* No rotation for the hamburger effect */
    opacity: 1; /* Normal opacity for the hamburger effect */
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* Added flex-wrap for better responsiveness */
}

.about-profile {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Added margin for better spacing on smaller screens */
}

.about-profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 4px solid #ff7e5f; /* Border to match your color theme */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-content {
    flex: 2;
    padding-left: 50px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #ff7e5f;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-content .button {
    background-color: #ff7e5f;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s;
}

.about-content .button:hover {
    background-color: #feb47b;
    transform: scale(1.05);
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .about-container {
        padding: 40px 20px;
    }
    .about-content {
        padding-left: 30px;
    }
    .about-content h2 {
        font-size: 2rem;
    }
    .about-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center; /* Center-align text on smaller screens */
    }
    .about-profile-pic {
        width: 200px;
        height: 200px;
    }
    .about-content {
        padding-left: 0;
        padding-top: 20px;
    }
    .about-content h2 {
        font-size: 1.8rem;
    }
    .about-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-profile-pic {
        width: 150px;
        height: 150px;
    }
    .about-content h2 {
        font-size: 1.5rem;
    }
    .about-content p {
        font-size: 0.9rem;
    }
}



/* Section styling */
.section {
    padding: 100px 0;
    background-color: white;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section:nth-child(odd) {
    background-color: #f9f9f9;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    width: 100px;
    height: 4px;
    background-color: #ff7e5f;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Container */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Card style for research and project items */
.card, .project-item, .certificate-item {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover, .project-item:hover, .certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card h3, .project-item h3, .certificate-item h3 {
    font-size: 1.5rem;
    color: #ff7e5f;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.card:hover h3, .project-item:hover h3, .certificate-item:hover h3 {
    color: #feb47b;
}

/* Buttons */
button, a.button {
    background-color: #ff7e5f;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover, a.button:hover {
    background-color: #feb47b;
    transform: scale(1.05);
}

/* Form */
form input, form textarea, form button {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

form button {
    background-color: #ff7e5f;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #feb47b;
}

/* Hover effects */
.card:hover .card-content, .project-item:hover .project-content {
    transform: translateY(-5px);
}

/* Certificate Timeline */
.certificate-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate-item {
    width: 100%;
    margin: 10px 0;
}

.certificate-item a {
    color: #ff7e5f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.certificate-item a:hover {
    color: #feb47b;
}



/* CV Section Styling */
.cv-section {
    background-color: #ffffff; /* Clean white background */
    padding: 60px 20px;
    text-align: center;
}

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

.cv-title {
    font-size: 2.5rem;
    color: #2c3e50; /* Darker color for a professional look */
    margin-bottom: 15px;
    font-family: 'Georgia', serif; /* Classic serif font for academic feel */
}

.cv-description {
    font-size: 1.2rem;
    color: #34495e; /* Slightly lighter color for readability */
    margin-bottom: 25px;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

.cv-download-button {
    display: inline-block;
    background-color: #2980b9; /* Elegant blue color */
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Arial', sans-serif; /* Clean sans-serif font for button */
}

.cv-download-button:hover {
    background-color: #1f5f8a; /* Slightly darker blue */
    transform: scale(1.05); /* Subtle zoom effect on hover */
}


/* Contact Section Styling */
.contact-section {
    background: linear-gradient(90deg, #f5f5f5, #e0e0e0); /* Subtle gradient for a modern look */
    color: #333;
    padding: 60px 20px;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Georgia', serif; /* Elegant serif font */
}

.contact-description {
    font-size: 1.2rem;
    color: #34495e; /* Slightly lighter color for readability */
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif; /* Clean sans-serif font */
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between icons */
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Adjust size as needed */
    height: 50px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    font-size: 1.5rem; /* Icon size */
}

.contact-item i {
    color: #2980b9; /* Icon color */
}

.contact-item:hover {
    color: #1f5f8a; /* Change color on hover */
}


/* Footer Styling */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: 'Arial', sans-serif; /* Consistent font with contact form */
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #f5f5f5; /* Light color for links */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline; /* Underline on hover for links */
}



/* Universal box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base body styling */
html {
    box-sizing: border-box;
    font-size: 100%;
    line-height: 1.3;
    text-size-adjust: 100%;
}
body {
    height: 100vh;
    margin: 0;
    padding: 30px 0;
    font-family: 'Roboto', sans-serif;
    background: #f8fbfb;
}
img, picture {
    max-width: 100%;
    display: block;
}
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
    margin: 0;
}
h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
}

/* Headings styling */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto';
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    margin: 1.38rem 0;
    color: #191C32;
}
h1 {
    font-size: 4.209rem;
    margin-top: 0;
}
h2 {
    font-size: 3.157rem;
    text-align: center;
    position: relative;
}

/* Underline for h2 */
h2::after {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 1px;
    content: '';
    background: #ff5d8f;
}

/* Timeline container */
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    max-width: 1080px;
    margin: auto;
    padding: 0 2rem 4rem;
    position: relative;
}

/* Tree line container */
.tree {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    margin: auto;
}

/* Tree line */
.tree::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    content: '';
    background: #d2e3ed;
}

/* Timeline boxes */
.timeline-left, .timeline-right {
    width: 100%;
    max-width: 500px; /* Ensure both sides have the same max-width */
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-left {
    text-align: right;
    padding-right: 2rem;
    margin-left: calc(50% + 1px); /* Align with the timeline line on the left side */
}

.timeline-right {
    text-align: left;
    padding-left: 2rem;
    margin-right: calc(50% + 1px); /* Align with the timeline line on the right side */
}

/* Markers */
.marker-l, .marker-r {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #d2e3ed;
    border-radius: 50%;
    background: #f9feff;
    transform: translateX(-50%);
}

.marker-l {
    left: -27px; /* Center the marker on the left side */
}

.marker-r {
    right: -52px; /* Center the marker on the right side */
}

/* Timeline content styling */
.timeline-content {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s ease;
    position: relative;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Timeline content text */
.timeline-content h3 {
    margin: 0.5rem 0;
}

.timeline-content span {
    font-size: 0.875rem;
    padding: 2px 8px;
    color: #fff;
    border-radius: 3px;
    background: #2ecc71;
}

.timeline-content p {
    font-size: 0.9375rem;
    margin-top: 0.5rem;
    color: #000;
}

/* Responsive styling for smaller screens */
@media only screen and (max-width: 768px) {
    /* Remove margins and adjust layout */
    .timeline-left, .timeline-right {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        text-align: center;
    }

    .timeline-left .marker-l, .timeline-right .marker-r {
        left: -20px;
        right: 10px;
    }

    /* Adjust tree line position */
    .tree::before {
        left: -20px; /* Always on the left */
        transform: none;
    }

    .marker-l, .marker-r {
        left: 15px; /* Align markers with the tree line */
    }

    /* Full width for content */
    .timeline-content {
        width: 100%;
        margin: 1rem 0;
        text-align: left;
        padding: 1rem;
    }
}


/* Skills Section Styling */
.skills-section {
    background: #f5f5f5; 
    padding: 60px 20px;
}

.skills-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    text-align: center;
}

.skills-description {
    font-size: 1.2rem;
    color: #555; 
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif; 
    text-align: center;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.skills-category {
    width: 100%;
    max-width: 300px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    background: #ffffff;
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Georgia', serif; /* Elegant serif font */
}

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

.skill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #333;
}

.skill-item i {
    font-size: 2rem;
    margin-right: 10px;
}

.skill-item p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Category Colors */
.skills-category:nth-child(1) {
    background-color: #e1f5fe; 
    border-left: 5px solid #4fc3f7; 
}

.skills-category:nth-child(2) {
    background-color: #fff3e0; 
    border-left: 5px solid #ffb74d; 
}

.skills-category:nth-child(3) {
    background-color: #e8f5e9; 
    border-left: 5px solid #66bb6a;
}

.skills-category:nth-child(4) {
    background-color: #f3e5f5;
    border-left: 5px solid #ab47bc; 
}

.skills-category:nth-child(5) {
    background-color: #e0f2f1; 
    border-left: 5px solid #26a69a; 
}

.skills-category:nth-child(6) {
    background-color: #fce4ec; 
    border-left: 5px solid #ec407a; 
}


/* Research Section Styling */
#research {
    background: #f9f9f9; 
    padding: 60px 20px;
}

#research h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Georgia', serif;
}

.research-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
}

.card {
    width: 100%;
    max-width: 300px; 
    height: 450px;
    perspective: 1000px; 
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    transform-origin: center;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back side when facing away */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
}

.card-front {
    background: #ffffff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-back {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    transform: rotateY(180deg);
    padding: 15px;
}

.card-back img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.card-front h3, .card-back h3 {
    margin: 0;
    font-size: 1.4rem; /* Increased font size for better visibility */
    font-weight: bold;
}

.card-front p {
    font-size: 1rem; /* Increased font size for better readability */
    line-height: 1.4;
}

.card-back h3 {
    margin-top: 10px;
    font-size: 1.2rem; /* Adjusted font size for the back title */
}



/* Experience Section Styling */
/* .experience-section {
    background: #f4f4f4; 
    padding: 60px 20px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Georgia', serif;
}

.experience-timeline {
    position: relative;
    padding: 20px 0;
}

.experience-item {
    position: relative;
    margin-bottom: 60px;
}

.experience-date {
    position: absolute;
    top: 0;
    right: 0;
    background: #69696a;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    z-index: 1;
}

.experience-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 40px; 
    position: relative;
}

.job-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.company-name {
    font-size: 1.2rem;
    color: #555;
    margin: 5px 0 20px;
}
.company-location {
    font-size: 1.2rem;
    color: #555;
    margin: 5px 0 20px;
}

.job-description {
    margin: 0;
    padding: 0;
    list-style: disc;
    padding-left: 20px;
}

.job-description li {
    margin-bottom: 10px;
} */

/* Experience Section Styling */
.experience-section {
    background: #f4f4f4; 
    padding: 60px 20px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Georgia', serif;
}

.experience-timeline {
    position: relative;
    padding: 20px 0;
}

.experience-item {
    position: relative;
    margin-bottom: 60px;
}

.experience-date {
    position: absolute;
    top: 0;
    right: 0;
    background: #69696a;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    z-index: 1;
}

.experience-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 40px; /* Adjust to create space for the date */
    position: relative;
}

.job-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.company-name, .company-location {
    font-size: 1.2rem;
    color: #555;
    margin: 5px 0 20px;
}

.job-description {
    margin: 0;
    padding: 0;
    list-style: disc;
    padding-left: 20px;
}

.job-description li {
    margin-bottom: 10px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .experience-item {
        margin-bottom: 40px;
    }

    .experience-date {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .experience-content {
        margin-top: 30px; /* Adjust to create space for the date */
    }

    .job-title {
        font-size: 1.2rem;
    }

    .company-name, .company-location {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .experience-date {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .experience-content {
        margin-top: 20px; /* Adjust to create space for the date */
        padding: 15px;
    }

    .job-title {
        font-size: 1rem;
    }

    .company-name, .company-location {
        font-size: 0.9rem;
    }
}


/* Certificate */

#certificates {
    background: #f9f9f9;
    padding: 60px 20px;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.certificate-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.certificate-item:hover {
    transform: translateY(-10px);
}

.certificate-item img {
    max-width: 50px;
    margin-bottom: 15px;
}

.certificate-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.certificate-item p {
    font-size: 0.9rem;
    color: #555;
}


