/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('images/glazer.jpg') no-repeat center center fixed; /* Background image */
    background-size: cover; /* Ensures the image covers the whole page */
    color: #333;
    display: flex;
    flex-direction: column; /* Flex layout for sticky footer */
    min-height: 100vh; /* Full viewport height */
}

main {
    flex: 1; /* Allow main content to grow and push the footer down */
}

/* Navbar */
header {
    background: #333;
    color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    max-width: 100%;
}

nav .logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%; /* Circular logo */
}

nav .center-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: white;
    font-family: 'Impact', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00d1ff;
}

/* Hero Section */
#hero {
    margin-top: 60px; /* To account for fixed navbar */
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.7), rgba(85, 85, 85, 0.7));
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

#hero a {
    color: white;
    background: #007BFF;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

#hero a:hover {
    background: #0056b3;
}

/* Sections */
section {
    padding: 2rem;
    margin: 1rem auto;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.8); /* White background with transparency */
    border-radius: 10px; /* Rounded corners */
}

section h2 {
    margin-bottom: 1rem;
    text-align: center;
}

/* Certifications Section */
#certifications {
    text-align: center;
    margin: 3rem auto;
}

#certifications-box:hover {
    
    transform: scale(1.03);
}

/* Button Styling */
#toggle-certifications {
    background-color: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#toggle-certifications:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Hidden Grid Container */
#certification-container {
    display: none; /* Initially hidden */
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid layout */
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#certification-container.visible {
    display: grid;
}

.certification-box {
    background-image: url('images/lili.jpg'); /* Background image */
    background-size: cover; /* Ensure image covers the box */
    background-position: center; /* Center the image */
    color: white; /* Text color for readability */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

    /* Ensures all boxes have same dimensions */
    width: 100%;
    min-height: 200px; /* Fixed height for all boxes */
    display: flex; /* Center content */
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Prevents hover causing layout shift */
    will-change: transform;
    position: relative;
}

/* Hover Effect */
.certification-box:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Ensures hovered box comes above others */
}

.certification-box.active {
    background-image: url('images/lili.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border: none;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.certification-box.active h4,
.certification-box.active p {
    color: white;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Social Links Section */
#profiles {
    text-align: center;
    margin: 2rem auto;
}

#profiles h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #333;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links img {
    width: 50px; /* Adjust icon size */
    height: 50px;
    border-radius: 50%; /* Makes icons circular */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}
