/* General Styles */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: #f4f4f4;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 80px;
}

/* Header and Navigation */
header {
    background: #7ec4ec;
    color: black;
    padding: 20px;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-around; /* Space between left and right containers */
    align-items: center;
}

.nav-left h1 {
    margin: 0;
}

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

.nav-right ul li {
    margin: 0 15px;
}

.nav-right ul li a {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-right ul li a:hover {
    color: white;
    text-shadow: 0 0 5px #e6e6e6, 0 0 10px #e6e6e6, 0 0 15px #e6e6e6; /* Glowing effect */

}

/* Sections */
section {
    border-radius: 0 0 85px 85px;
}


#name-and-tagline {
    background-color: rgb(205, 226, 253);
    margin-bottom: 125px;
}

#name-and-tagline h1 {
    font-size: 2.5rem;
    margin-bottom: -5px;
}

#name-and-tagline h1, #name-and-tagline h3, #name-and-tagline p, #name-and-tagline .cta-button {
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Slight movement */
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button Styles */
.cta-buttons {
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 25px;
    margin: 10px;
    background-color: #0ba1f8; /* Dark background */
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

.cta-button:hover {
    background-color: #2e76a0; /* Change to a nice bright color on hover */
    transform: translateY(-3px); /* Slight lift effect */
}

.cta-button:active {
    background-color: #255e80; /* Darker orange when clicked */
    transform: translateY(0); /* Return to original position */
}

#name-and-tagline span {
    text-align: center;
    display: inline-block;
    overflow: hidden; /* Ensures the text stays hidden until revealed */

}

/* Project Section */
#projects {
    padding: 40px 20px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 20px;
    flex: wrap;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px); /* Slight hover effect */
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Makes sure image fills the area without distortion */
    border-bottom: 2px solid #eee;
}

.project-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.project-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    flex-grow: 1;
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.project-heading {
    font-size: 2rem;
    margin-top: -3px;
}


/* Skills Section */
#skills {
    text-align: center;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.skills-heading {
    font-size: 2rem;
    margin-top: -10px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-card {
    width: 180px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin: 0;
}


/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding-left: 20px;
    border-left: 4px solid #0ba1f8;
}

.timeline-item {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 25px;
    width: 16px;
    height: 16px;
    background: #0ba1f8;
    border-radius: 50%;
}

.timeline-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #0ba1f8;
    margin-bottom: 5px;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

.company-image {
    width: auto;
    height: 125px;
    border-radius: 10px;
}

/* Social Icons */
.nav-right ul li a i {
    font-size: 1.65rem; /* Adjust the size of the icons (default is 1.25rem) */
    margin-right: 5px; /* Space between icon and text */
}

/* Education and Hobbies Sections */
#education, #hobbies {
    background-color: #ffffff;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#education ul, #hobbies ul {
    list-style: none;
    margin-right: 40px;
}

/* About Me Section */
#about-me {
    background-color: #ffffff;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#about-me h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

#about-me p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    padding: 10px;
}

#about-me p br {
    margin-bottom: 20px;
}

/* Adding a subtle border and background color to the section for separation */
#about-me {
    border-left: 5px solid #7ec4ec;
    background-color: #f9fbff;
}

.footer-social-icons ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.footer-social-icons ul li {
    margin: 0 15px;
}
.footer-social-icons ul li a i {
    font-size: 1.8rem; /* Adjust icon size */
    color: black; /* Color of the icons */
    transition: transform 0.3s ease;
}

.footer-social-icons ul li a:hover i {
    color: #0077b5; /* LinkedIn blue color on hover */
    transform: scale(1.1); /* Slightly enlarge icon on hover */
}

.hobbies-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hobby-card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hobby-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.hobby-card h3 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.hobby-card p {
    font-size: 0.9rem;
    color: #555;
}

.certifications-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 90%;
    margin: auto;
    margin-bottom: 20px;
}

.certification-item {
    background: #f5f5f5;
    padding: 15px;
    border-left: 5px solid #0073e6;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.certification-item h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.certification-item p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #666;
}

.certifications-heading{
    font-size: 2rem;
}

.experience-heading{
    font-size: 2rem;
    margin-top: 35px;
}

/* Footer */
footer {
    margin-top: auto;
    background: #7ec4ec;
    color: black;
    padding: 10px;
    width: 100%;
    position: relative;
}
