/* Basic reset and styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* Navigation bar */
.navbar {
    background-color: #333;
    padding: 1rem 2rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ffa500;
}

/* Dropdown container */
.navbar .dropdown {
    position: relative; /* Allows positioning of the dropdown menu */
}

/* Dropdown menu */
.navbar .dropdown-menu {
    position: absolute;
    top: 100%; /* Positions the dropdown below the parent */
    left: 0;
    background-color: #333;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    display: none; /* Hides the menu by default */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 10;
}

/* Dropdown menu items */
.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    font-weight: normal;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #ffa500;
    color: #333;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block; /* Displays the menu when hovering over the parent */
}


/* Container and image styling */
.container {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.image-container {
    margin-bottom: 30px;
}

.center-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333;
}

/* About section */
.about-section {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section h1 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.about-section p {
    font-size: 1rem;
    color: #555;
}

/* Block Quotes */
blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #ffa500;
    font-style: italic;
    color: #555;
}

blockquote p {
    margin: 0;
    line-height: 1.6;
}
/* Collapsible content */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.collapsible-content.expanded {
    max-height: 10000px; /* A large enough value to accommodate your content */
}

/* Toggle button */
.toggle-button {
    position: absolute; /* Position the button in the corner */
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1rem;
    transition: background-color 0.3s ease;
}

.toggle-button:hover {
    background-color: #ffa500;
}

/* About section (updated to handle relative positioning) */
.about-section {
    position: relative; /* Enables absolute positioning for child elements */
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Clickable project container */
.project-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Aligns text content */
}

/* NEW: Ensure the link is styled as a block element */
.project-link {
    display: block; /* Ensures the <a> behaves as a block-level element */
    text-decoration: none; /* Prevents underlines on the link */
    color: inherit; /* Inherits color from the container */
}

/* Hover effect applied to the project container via the link */
.project-link:hover .project-container {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Project title styling */
.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Project description styling */
.project-description {
    font-size: 0.9rem;
    color: #555;
}

/* Default image styling */
img {
    width: 100%; /* Images will take the full width of their container */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensures images fit within their container */
    border-radius: 8px; /* Optional: Rounded corners */
    display: block; /* Removes inline spacing caused by images */
    margin: 0 auto; /* Centers images horizontally */
}

