body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #8ea5b3;
    color: #333;
    line-height: 1.6;
}

main {
     padding: 20px;
}

/* Header navigation */
header {
    background-color: #0077cc;
    padding: 10px 0;
    text-align: center;
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    margin-right: 15px;
    border-radius: 20%;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

nav a:hover {
    color: hsl(0, 0%, 4%);
}

/* Base styles for nav */
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 20px;
    color: white;
    background-color: #0077cc;
}

#menu-toggle {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    background-color: #0077cc;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: inline-block;
    font-weight: bold;
}


/* NAVIGATION */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0077cc;
    padding: 15px 20px;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links li a i {
    margin-right: 6px;
}

/* Mobile styles */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}


.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    animation: bgChange 30s infinite;
    position: relative;
}


.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 10px #000;
  padding: 20px;
}

.overlay h1 {
  font-size: 3em;
  margin: 0;
}

.overlay h3 {
  font-size: 1.5em;
  margin: 10px 0;
  font-weight: 300;
}

.overlay p {
  font-size: 1.2em;
  max-width: 600px;
  margin: auto;
  margin-top: 20px;
}

@keyframes bgChange {
    0% {background-image: url(../images/about_me.jpg);}
    16% {background-image: url(../images/anime15.jpg);}
    32% {background-image: url(../images/education-photo.jpg);}
    48% {background-image: url(../images/interest.jpg);}
    64% {background-image: url(../images/logo.jpeg);}
    80% {background-image: url(../images/about_me.jpg);}
    100% {background-image: url(../images/about_me.jpg);}
  }
  

/* Footer styles */
footer {
    border-radius: 10px;
    position: relative;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top:10;
    background-image: url('../images/footer_image.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay to improve readability */
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay */
  z-index: -1;
  border-radius: 0;
}

/* Social icons styling */
footer .social-icons a {
  margin: 0 12px;
  color: #f0f8ff;
  text-decoration: none;
  font-weight: 500;
}

footer .social-icons a:hover {
  text-decoration: underline;
}

/* Smooth scroll for navigation */
html {
  scroll-behavior: smooth;
}


/*RESPONSIVENESS @MEDIA QUERIES*/

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    text-align: right;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #0077cc;
  }

  #menu-toggle:checked + .menu-icon + nav .nav-links {
    display: flex;
  }
}

/* Responsive menu */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #0077cc;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}