/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set a clean background color and font styles */
body {
  background: #333;
  font-family: Arial, sans-serif;
  color: lightgrey;
  line-height: 1.5;
}

/* Style the header with a background color and center the content */
header {
  background-color: #171717;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* Style the navigation menu */  
nav {
  
  background-color: #171717;
  padding: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #AF0404;
  text-decoration: none;
  font-size: 18px;
  padding: 5px 10px;
}

nav ul li a:hover {
  background-color: #555;
}


/* Add spacing and a smaller font size to paragraphs */
p {
  margin-bottom: 10px;
  font-size: 16px;
}

/* Style section headings */
h2, h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Add a horizontal line below section headings */
hr {
  border: none;
  border-top: 1px solid darkgrey;
  margin-bottom: 20px;
}

/* Style the contact section */
#contact {
  text-align: center;
}

/* Style the contact section's list items */
#contact li {
  margin-bottom: 5px;
}

/* Style links */
a {
  color: #333;
  text-decoration: none;
}

/* when hovering over a */
a:hover {
  text-decoration: underline;
}
/* Contact clickable links */
#contact a {
  color: #AF0404;
  text-decoration: none;
}
/* Contact when hovering over */
#contact a:hover{
  text-decoration: underline;
}

/* CSS Reset */
body, h1, h2, h3, h4, h5, h6, p, ul, li {
  margin: 0;
  padding: 0;
}
/* list format */
ul {
  list-style: none;
}
/* skills list format */
#skills ul {
  list-style-type: disc;
  margin-left: 30px;
}

/* button construction*/
.button-container {
display: flex;
justify-content: center;
gap: 10px;
}


button {
padding: 10px 15px;
border: 1px solid #AF0404;
background-color: transparent;
color: #fff;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}

button:hover {
background-color: lightgray;
font-size: larger;
}

button.active {
background-color: #333;
}

/* expierence list format */
#experience ul ul li {
  list-style-type: disc;
  margin-left: 30px;
}

/* section design */
section {
  display: grid;
  align-content: center;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;

}

/*Scroll animation*/
.hidden {
opacity: 0;
transition: all 1s;
}

.show{
opacity: 1;
}

@media(prefers-reduced-motion){
.hidden{
  transition: none;
}
}


/* Contact design */
#contact {
  text-align: center;
  margin-top: 20px;
}

#contact h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

#contact li {
  margin-bottom: 5px;
}

/* Header Design */
.header-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Adjust the height as needed */
}

.header-image-container img {
  border-radius: 50%; /* Make the image circular */
}




/* Education design */
.education-item {
  display: flex;
  align-items: center;
}

.image-container {
  margin-right: 20px; /* Adjust the spacing between image and text */
  overflow: hidden; /* Ensure the image stays within the circular shape */
  border-radius: 50%; /* Make the image container circular */
  width: 200px; /* Adjust the size of the image container */
  height: 200px; /* Adjust the size of the image container */
}

.image-container img {
  width: 100%; /* Make the image fill the circular container */
  height: 100%; /* Make the image fill the circular container */
  object-fit: cover; /* Maintain the aspect ratio of the image */
  object-position: center; /* Center the image within the container */
}

/* Club Image */
.content-container {
  flex: 1;
}

.club-image-container {
  width: 70%; /* Adjust the width as needed */
  height: auto; /* Maintain the aspect ratio of the image */
}

.club-image-container img {
  display: block; /* Remove any default spacing */
  width: 100%; /* Make the image fill the container */
  height: auto; /* Maintain the aspect ratio of the image */
}




/* 
/* Style the navigation menu for smaller screens 
@media (max-width: 600px) {
nav ul {
  flex-direction: column;
  align-items: center;
}

nav ul li {
  margin: 10px 0;
}
}

/* Adjust the font size for smaller screens 
@media (max-width: 400px) {
body {
  font-size: 14px;
}

h2, h3 {
  font-size: 20px;
}
} */

/* Media query for mobile devices */
@media (max-width: 600px) {
section {
    width: 100%;
    padding: 10px; /* Adjust padding for mobile */
    margin: 0 auto; /* Center sections */
}

/* Adjust other elements for mobile */
nav ul {
    flex-direction: column;
    align-items: center;
}

nav ul li {
    margin: 10px 0;
}

.header-image-container img,
.image-container img,
.club-image-container img {
    width: 100%; /* Ensure images take full width of their containers */
    height: auto; /* Maintain aspect ratio */
}

.image-container {
    width: 100%; /* Adjust width to fit mobile screen */
    height: auto;
}

.education-item {
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    text-align: center; /* Center align text for readability */
}

.content-container {
    width: 100%; /* Ensure content fits within mobile screen */
}

.buttons {
    flex-direction: column; /* Stack buttons vertically */
    width: 100%;
}

button {
    width: 100%; /* Make buttons take full width */
    margin-bottom: 10px; /* Add margin between buttons */
}
}

/* Ensure no horizontal scrolling */
body {
margin: 0;
padding: 0;
overflow-x: hidden; /* Prevent horizontal scroll */
}



