/* General Reset */
body, h1, h2, p, ul, li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f9;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

html {
  font-size: 100%; /* Default 16px */
}

/* Header Styles */
header {
  background: #0077b6;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #fff;
}

.site-title {
  margin-top: 10px;
  font-size: 24px;
}

/* Navigation Styles */
header {
  position: relative; /* Ensure the header is positioned relative for absolute positioning of dropdown */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between button and title */
  position: relative; 
}


.button-label {
  visibility: hidden; /* Hide the label by default */
  position: absolute; /* Position the label absolutely */
  left: 0%; /* Center the label horizontally */
  transform: translateX(-50%); /* Adjust for centering */
  bottom: -50%; /* Position it above the button */
  background-color: #0077b6; /* Background color for the label */
  color: white; /* Text color for the label */
  padding: 5px; /* Padding for the label */
  border-radius: 3px; /* Rounded corners for the label */
  white-space: nowrap; /* Prevent label from wrapping */
  transition: visibility 0s, opacity 0.3s ease; /* Smooth transition */
  opacity: 0; /* Start with opacity 0 */
  font-size: 15px; /* Font size for the button */

}

.menu-button:hover .button-label {
  visibility: visible; /* Show the label on hover */
  opacity: 1; /* Fade in the label */
}
.menu-button {
  background-color: #0077b6; /* Button background color */
  color: white; /* Button text color */
  border: none; /* Remove default border */
  padding: 10px 20px; /* Padding for the button */
  font-size: 25px; /* Font size for the button */
  border-radius: 1px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Transition for hover effects */
  position: absolute; /* Position the button absolutely */
  left: 0; /* Move the button to the left edge */
}

.menu-button:hover {
  background-color: #0384c9; /* Darker background on hover */
  transform: scale(1.2); /* Slightly enlarge on hover */
}

.dropdown-menu {
  display: none; /* Hide dropdown by default */
  position: absolute; /* Position dropdown absolutely */
  background-color: #0077b6; /* Match the header background */
  min-width: 10px; /* Set a minimum width */
  z-index: 1; /* Ensure it appears above other content */
  left: 0; /* Align dropdown with the left edge of the button */
  top: 30%; /* Position it below the button */
}

.dropdown-menu.active {
  display: block; /* Show dropdown when active */
}

.nav-links {
  list-style: none; /* This hides the bullets */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

.nav-links li {
  padding: 10px 15px; /* Padding for dropdown items */
}

.nav-links li a {
  text-decoration: none;
  color: white; /* Text color for dropdown links */
  display: block; /* Make the link fill the entire list item */
}

.nav-links li a:hover {
  background-color: #0384c9; /* Background color on hover */
}
/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px;
  background-color: #e9ecef;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #555;
}

/* About Section */
.about {
  background-color: #f9f9f9;
  padding: 20px;
}

.about .container {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.about h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.about p {
  font-size: 1.1em;
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  max-width: 300px;
  flex: 1 1 200px; /* Allow cards to grow and shrink */
}

.card h2 {
  font-size: 1.5em;
}

.card p {
  font-size: 1em;
  margin: 10px 0;
}

.card .btn {
  display: inline-block;
  text-decoration: none;
  background: #0077b6;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 10px;
}

.card .btn:hover {
  background: #0056b3;
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 2rem 1rem;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icon {
  font-size: 1.5rem;
  color: #0077b6;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  color: #023e8a;
  transform: scale(1.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #0077b6;
  color: white;
  font-size: 0.9rem;
  margin-top: 40px;
}
footer {
  text-align: center;
  padding: 20px;
  background: #0077b6; /* Footer background color */
  color: white; /* Text color */
  font-size: 0.9rem;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.social-links {
  display: flex;
  justify-content: center; /* Center the icons */
  gap: 20px; /* Space between icons */
  margin: 10px 0; /* Margin above and below the icons */
}

.social-icon {
  color: white; /* Icon color */
  font-size: 1.5rem; /* Icon size */
  transition: color 0.3s ease, transform 0.3s ease; /* Transition for hover effects */
}

.social-icon:hover {
  color: #f7fafb; /* Change color on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Optional: Add media queries for responsiveness */
@media (max-width: 576px) {
  .social-icon {
    font-size: 1.2rem; /* Smaller icons on mobile */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .social-icon {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column; /* Stack links vertically */
    align-items: center;
  }

  .quick-links {
    flex-direction: column; /* Stack cards vertically */
  }

  .card {
    flex: 1 1 100%; /* Full width on smaller screens */
    max-width: none; /* Remove max-width */
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .social-icon {
    font-size: 1.5rem;
  }

  .card h2 {
    font-size: 1.3em; /* Adjust card title size */
  }

  .card p {
    font-size: 0.9em; /* Adjust card paragraph size */
  }
}

/* Specific Sections */
#about-me, #portfolio, #certificates, #gallery, #contact {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 200px; /* Adjust height as needed */
  object-fit: cover; /* Ensures the image covers the area */
}