h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: #007acc;
}

h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: #007acc;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}


#education {
    background-color: #fff;
    padding: 60px;
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 14px rgba(0,0,0,0.09);
    border-radius: 10px;
    max-height: 400px;

}

.education-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: -20px 0;
    max-width: 900px;
}

.education-logo {
    width: 80px;
    height: auto;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #007acc;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

.education-details {
    flex: 1;
}

.school-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.education-timestamp {
    font-size: 1em;
    color: #807d7d;
    margin-bottom: 8px;
}

.education-description {
    font-size: 1.1em;
    color: #444;
    line-height: 1.5;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f4f8; /* Light background color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1557683304-673a23048d34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxOTcwMjR8MHwxfGFsbHwzfHx8fHx8fHwxNjE3NzkzNTYz&ixlib=rb-1.2.1&q=80&w=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleY(-1);
    z-index: -1;
}



header {
    background: linear-gradient(rgba(0, 122, 204, 0.9), rgba(0, 122, 204, 0.9)), 
                url('header-background.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    animation: slideIn 1.5s ease-out;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 3em;
}

header p {
    font-size: 1.2em;
    margin: 20px 0;
}
@keyframes slideIn {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background-color: #005f99;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.8em;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffcc00;
}

section {
    background-color: #fff;
    padding: 60px;
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.911); /* Slight transparency */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    border-radius: 10px;

    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease-out forwards;
}

section:nth-child(2) {
    animation-delay: 0.3s;
}

section:nth-child(3) {
    animation-delay: 0.6s;
}

section:nth-child(4) {
    animation-delay: 0.9s;
}

section:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.skill-card {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: float 3s infinite;
}

.skill-card:nth-child(odd) {
    animation-delay: 0.5s;
}

.skill-card:nth-child(even) {
    animation-delay: 1s;
}

.skill-card img {
    width: 50px;
    height: auto;
    margin-bottom: 5px;
}

.skill-card h3 {
    text-align: center;
    font-size: 01em;
    margin: 0;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.projects-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    border-radius: 8px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;

}

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

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card .description {
    padding: 20px;
    text-align: left;
}

.project-card h3 {
    margin: 0 0 10px;
    font-size: 1.3em;
    color: #333;
}

.project-card p {
    margin: 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

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

.button-container {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
}

.project-card a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 0.9em;
    color: #fff;
    background-color: #007acc;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.project-card a:hover {
    background-color: #005f99;
}
.button-container a {
    color: #fff;
    background-color: #007acc;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button-container a:hover {
    background-color: #005f99;
}

footer {
    text-align: center;
    padding: 40px;
    background-color: #007acc;
    color: #fff;
}

.about-section {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    background-color: #fffcfcde;
    padding: 30px;
    border-radius: 8px;

}

.about-section img {
    position: fixed;
    top:80px;
    right:30px;
    border-radius: 10%;
    width: 400px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-section div.text-content {
    flex: 1;
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    padding: 20px;
    min-height: 400px;
    max-width: 450px; 
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007acc;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1;
}


.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: -1%;
}

.timeline-item:nth-child(even) {
    left: 51%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: #fff;
    border: 4px solid #007acc;
    top: 20px;
    border-radius: 50%;
    /* z-index: 1; */
}

.timeline-item:nth-child(even)::after {
    left: -12.5px;

}

.timeline-item h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #007acc;
}

.timeline-item p {
    margin: 5px 0;
    font-size: 1em;
    color: #555;
}

.timeline-item .experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-item .company-logo {
    width: 65px; 
    height: auto;
    margin-top: -50px;
    margin-right: 15px;
    border-radius: 50%; 
    border: 2px solid #007acc; 
    padding: 5px; 
    background-color: #fff; 
}

.timeline-item .experience-details {
    flex: 1;
}

.timeline-item .company-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.timeline-item .timestamp {
    font-size: 1.3em;
    color: #807d7d;
}

.timeline-item .experience-description {
    margin-top: 10px;
    font-size: 1.2em;
    color: #1f1919;
    line-height: 1.6;
}

.fly-in {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.fly-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-section {
    background-color: #f1f1f1;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* max-width: auto; */
    /* margin: 0 auto; */
}

.contact-section h2 {
    color: #007acc;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.1em;
    color: #3a3838;
    margin-bottom: 40px;
}

.contact-info {

    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-link {
    font-size: 1.1em;
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #ffcc00;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    font-size: 1em;
    color: #333;
    text-align: left;
    position: relative;
    top:0;
    left:10%;
    /* margin-left: 300px; */
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007acc;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 12px 30px;
    font-size: 1em;
    color: #fff;
    background-color: #007acc;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: fit-content;
    margin: 0 auto;
}

.contact-form button:hover {
    background-color: #005f99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.drop-down {
    opacity: .7; 
    transform: translateY(-50px); 
}

.drop-down.visible {
    opacity: 1;
    transform: translateY(0); 
    animation: dropDown 0.6s ease-out forwards; 
}

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

.company-logo {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
}

.resume-button-container {
    text-align: right;
    
}


.resume-button {
    width: 150px;
    height: 60px;
    border: 3px solid #315cfd;
    border-radius: 45px;
    transition: all 0.3s;
    cursor: pointer;
    background: #007acc;
    font-size: 1.2em;
    font-weight: 550;
    position: absolute;
    right: 23px;
    top: 70px;
    color: white; 
}

.resume-button:hover {
    background: white;
    color: black;
    font-size: 1.2em;
    
}

