/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Ensure the background covers the entire page */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2; /* Light gray for background */
    color: #333; /* Neutral text color for readability */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    background-image: url('../image/backgroundimagemain.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow-y: scroll;
    overflow-x: hidden;
    zoom: 140%;
}

/* Navbar Styles */
.navbar {
    background-color: #A41034; /* Dark red */
    color: #fff; /* White text for contrast */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 100%;
    max-height: 65px; /* Optional: Set a maximum height */
    width: auto; /* Maintain aspect ratio */
}

/* Navigation Links */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #fff; /* White for consistency */
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: #004a99; /* 30% Accent */
    border-radius: 5px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #004080; /* Solid background color */
    color: #fff;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Profiles Section */
.profile-header {
    display: flex; /* Use flexbox for horizontal alignment */
    align-items: center; /* Vertically align items */
    gap: 15px; /* Add spacing between items */
}

.profile-image {
    width: 80px; 
    height: 80px;
    border-radius: 50%;
    margin-right: 15px; 
    object-fit: cover; 
}

/* Style the LinkedIn link as a blue box */
.linkedin-link {
    display: inline-block; 
    background-color: #004a99; 
    color: #fff; 
    text-decoration: none; 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: background-color 0.3s, transform 0.3s; 
}

/* Add hover effect for the LinkedIn link */
.linkedin-link:hover {
    background-color: #003366; 
    transform: translateY(-2px); 
}

.profile-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-card h2 {
    margin-top: 0;
    color: #004080;
    font-size: 1.5rem;
}

.profile-card p {
    margin: 10px 0;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #004080;
    color: #fff;
    padding: 20px 10px;
    text-align: center;
}

.footer-content {
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: #f0a500;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.social-media a img {
    width: 28px;
    height: auto;
    margin: 0 10px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-media a img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.home-link {
    position: absolute;
    top:30px;
    right: 80px;
    color: #ffffff;
    text-decoration: underline;
    font-size: 1rem;
    font-weight: bold;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0);
    padding: 5px 10px;
    border-radius: 4px;
}

.home-link:hover {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
}
.last-card {
    background-color: #f7f7f7; /* Light gray background */
}