/* import necessary fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* Ensuring a smooth scrolling when scrolling throughout the page */
html {
    scroll-behavior: smooth;
}
/* Header Styles*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(45deg, #85c7fa, #e7eff5); /* Gradient Stylings*/
}
/* logo styles */
.logo {
    font-size: 2.5em;
    color: #555;
    cursor: default;
}
/* logo span styles */
.logo span {
    color: #004974;
    font-size: 1.1em;
}
/* nav bar styles */
.navigation {
    display: flex;
    gap: 35px;
}
.navigation a {
    font-size: 1.1em;
    color: #555;
    text-decoration: none; /* Text Effects */
    font-weight: 500;
    transition: .3s; /* Smooth transitions */
}
/* Smooth transitions */
.navigation a:hover { /* User Action Pseudo Class - based on user action */
    color: #004974;
    transform: translateX(-5px); /* transform stylings */
}
/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
}
.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: #004974;
}
/* media quaries for making the header and nav bar responsive */
@media (max-width: 768px) {
    header {
        padding: 10px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .hamburger {
        display: flex;
        position: absolute;
        padding-left: 380px;
        padding-top: 17px;        
    }
    .content h2{
        padding-top: 80px;
    }
    .social-icons{
        padding-top: 25px;
        padding-left: 20px;
    }
    .navigation {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background-color: #c0e0f9;
        padding: 10px 0;
    }
    .menu-toggle:checked + .hamburger + .navigation {
        display: flex;
    }    
}



/* home section styles */
#home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 100px;
    background-size: cover;
    background-position: center;    
}
/* styles for content class of home section */
.content {
    max-width: 50%;
    color: #555;
    font-weight: 450;
}
.content > h2 { /* Child Combinator */
    font-size: 3em;
    transition: .3s; /* Smooth transitions */
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3); /* Text Shadows */
}
/* High specificity */
.content h2 span {
    color: #004974;
}
.content h2::after { /* Pseudo Elements with Generated Content */
    content: "👋" ;
    color: #004974;
}
.content h2:hover { /* User Action Pseudo Class - based on user action */
    transform: translateY(-5px);
}
.content > h4 { /* Child Combinator */
    font-size: 2em;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3); /* Text Shadows */
}
.content > p { /* Child Combinator */
    padding: 20px 0 50px 0;
}
/* cv button styles */
.cv-button a {
    color: #004974;
    text-decoration: none; /* Text Effects */
    padding: 10px 40px;
    background: #fff;
    border-radius: 10px; /* Slightly rounded corners */
    border: 2px solid #004974; /* Border styling */
    font-weight: 500;
    transition: .3s; /* Smooth transitions */
}
/* Smooth transitions */
.cv-button a:hover { /* User Action Pseudo Class - based on user action */
    color: #fff;
    background: #004974;
    transform: translateX(-5px); /* transform stylings */
}
/* social media icons styles */
.social-icons {
    padding-top: 25px;
    position: relative; 
    margin-top: 20px; 
}
.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #004974;
    border-radius: 50%; /* Slightly rounded corners */
    margin-right: 22px;
    text-align: center;
    line-height: 35px;
    border: 3px solid #fff; /* Border styling */
    outline: 3px solid #004974;
    transition: .3s; /* Smooth transitions */
}
/* Smooth transitions */
.social-icons a:hover { /* User Action Pseudo Class - based on user action */
    transform: translateY(-5px); /* transform stylings */
}
.social-icons a i {
    color: #fff;
}
/* styles for Image container class of home section */
.image-container {
    max-width: 40%;
    height: 400px;
    overflow: hidden;
    border-radius: 50%; /* Slightly rounded corners */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Added margin for spacing */
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
}

/* Styles to make home section responsive */
@media (max-width: 768px) {
    #home {
        flex-direction: column; 
        align-items: center; 
        padding: 30px 20px; 
    }
    .content {
        max-width: 100%; 
        text-align: center; 
    }
    .image-container {
        max-width: 60%;
    }
}


/*About section styles*/
#about {
    padding: 90px;
    background-color: #fff;
    color: #333;
    text-align: center;
}
#about .content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
#about h4 {
    font-size: 2em;
    color: #004974;
    margin-bottom: 20px;
}
#about p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}
.about-section {
    margin-bottom: 40px;
}
.about-section > h5 { /* Child Combinator */
    font-size: 1.8em;
    color: #004974;
    margin-bottom: 20px;
}
/* styles for tile class of about section */
.tile {
    background-color: #c0e0f9;
    color: #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* Smooth transitions */
    font-size: 1.1em;
}
.tile span {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}
/* Smooth transitions */
.tile:hover { /* User Action Pseudo Class - based on user action */
    transform: scale(1.05); /* transform stylings */
}

/* Styles to make about section responsive */
@media (max-width: 768px) {
    #about .content {
        padding: 0 10px;
    }
    .tile {
        font-size: 1em;
    }
}


/* Skills section styles */
#skills {
    padding: 90px ;
    text-align: center;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#skills .content{
    padding-top: 8px;
}
/* High specificity */
#skills .content h4 {
    font-size: 2.3em;
    margin-bottom: 10px;
    color: #004974;
}
/* High specificity */
#skills .content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
}
/* Styling for the skills container class */
.skills-container {
    max-width: 800px;
    width: 100%; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.skill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1em;
    color: #333;
}
/* Styles for the progress bar */
.progress-bar {
    background-color: #c0e0f9;
    border-radius: 5px; /* Slightly rounded corners */
    flex: 1;
    margin-left: 20px;
    height: 10px;
    overflow: hidden;
    position: relative;
}
.progress {
    background-color: #004974;
    height: 100%;
    border-radius: 5px; /* Slightly rounded corners */
    width: 0; 
    transition: width 0.3s ease; /* Smooth transitions */
    animation: fillProgress 2s forwards; /* Animation keyframes for progress bar */
}
/* Animation keyframes for progress bar */
@keyframes fillProgress {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width);
    }
}


/* Projects section styles */
#projects {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 200px; 
    text-align: center;
}
#projects .content {
    padding-top: 60px;
    max-width: 600px;
    color: #555;
    font-weight: 450;
}
/* High specificity */
#projects .content h4 {
    color: #004974 ;
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
}
/* High specificity */
#projects .content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}
.project-grid {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap; 
        margin-top: 20px;    
}
.project-card {
    position: relative;
    background-color: #c0e0f9;
    padding: 20px;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); /* bow shadows */
    transition: transform 0.3s ease; /* Smooth transitions */
}
.project-card:hover { /* User Action Pseudo Class - based on user action */
    transform: scale(1.05); /* transform stylings */
}
.project-card > h5 { /* Child Combinator */
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}
.project-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}
/* styles for language label class of projects section */
.language-label {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background-color: #004974;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px; /* Slightly rounded corners */
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}
.language-label i {
    font-size: 1.2em;
}
.github-link {
    text-decoration: none;
    color: #333;
    font-size: 1em;
}
 a[href="https://github.com/MisalSilva/w2053190_PlaneManagement"] { /*  Attribute Selectors */
    color: #2cc917; 
}
 a[href="https://github.com/MisalSilva/Progress-Outcome-Predictor"] { /*  Attribute Selectors */
    color: #f14747; 
}
 a[href="https://github.com/MisalSilva/MediHelp-Web-Application"] { /*  Attribute Selectors */
    color: #dabb11; 
}
.github-link i {
    margin-right: 8px;
}
/* Smooth transitions */
.github-link:hover { /* User Action Pseudo Class - based on user action */
    color: #004974;
}



/* styles for Contact Section */
#contact {
    padding: 90px 20px;
    background-color: #f5f5f5;
    text-align: center;
    color: #333;
}
#contact .content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}
#contact h4 {
    font-size: 2em;
    color: #004974;
    margin-bottom: 20px;
}
#contact p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}
/* Contact Form Styling */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #004974;
}
.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #ccc; /* Border styling */
    border-radius: 5px; /* Slightly rounded corners */
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s; /* Smooth transitions */
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #004974;
}
.send-button {
    padding: 12px 20px;
    background-color: #004974;
    color: #fff;
    border: none; /* Border styling */
    border-radius: 5px; /* Slightly rounded corners */
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s; /* Smooth transitions */
}
/* Smooth transitions */
.send-button:hover { /* User Action Pseudo Class - based on user action */
    color: #004974;
    background-color: #c0e0f9;
}


/* styles for go to top link */
#gototop{
    text-align: center;
    color: #004974;
    font-size: 1.1em;    
}


/*styles for footer*/
footer {
    text-align: center;
    padding: 20px;
    background: #f1f1f1;
    color: #555;
}
footer p {
    margin: 0;
}
