/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    align-items: center;
}

header .logo img {
    height: 80px; /* Increased size of the logo */
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #0078D4;
}

/* Hero Section with Background Image */
.hero {
    position: relative; /* Ensure relative positioning for the overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    background: url('1603131355616.jfif') no-repeat center center/cover;
    text-align: center;
    padding: 170px 20px 60px;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay to darken background image */
    z-index: 1; /* Ensures the overlay is behind the content */
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures content is above the overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about, #services, #contact {
    position: relative; /* Ensures these sections are on a higher layer than the hero section */
    z-index: 3; /* Elevates these sections above the hero background */
    background-color: #f4f4f4; /* Ensures no transparency issues */
    padding: 40px 20px;
}

h2, h3 {
    color: #ffffff; /* Consistent heading color for contrast */
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-photo {
    margin-top: 10px;
    border-radius: 50%;
    height: 300px; /* Double the size of the photo */
    width: 300px; /* Ensures the photo remains a circle */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

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

#about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #0078D4;
}

#about p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

#about h3 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

#about ul {
    list-style-type: disc;
    padding-left: 20px;
}

#about li {
    margin-bottom: 15px;
}

#about strong {
    color: #0078D4;
}

/* Certifications Section */
.certifications {
    padding: 40px 30px;
    background: #333;
    text-align: center;
}

.certifications h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.certification-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.cert-item {
    border: 1px solid #ddd;
    padding: 10px;
    background: #333;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item img {
    width: 100%;
    display: block;
    border-radius: 5px;
}

.cert-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.certification-link {
    text-align: center;
    margin-top: 20px;
}

.certification-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0078D4;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.certification-link a:hover {
    background-color: #005a9e;
}

/* Contact Section */
#contact {
    padding: 70px 30px;
    background: #ffffff;
    text-align: center;
}

#contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-links a {
    color: #0078D4;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #0078D4;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-links a:hover {
    background: #0078D4;
    color: #ffffff;
}

/* Footer */
footer {
    background: #333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 1px solid #555;
}
