/* Define CSS Variables for Easy Theme Management */
:root {
    --primary-color: #0077b6; /* A strong blue */
    --secondary-color: #00b4d8; /* A lighter blue */
    --background-color: #e0f7fa; /* Light cyan for a fresh background */
    --text-color: #333; /* Dark gray for text */
    --highlight-color: #90e0ef; /* Light blue for highlights */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    list-style: none;
    margin: 0;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    border-radius: 0 0 10px 10px;
}

.navbar li {
    display: inline;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar a:hover {
    background-color: var(--highlight-color);
    color: var(--primary-color);
}

/* Profile Image Styling */
.profile-image {
    text-align: center;
    margin-top: 40px;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.profile-image img {
    width: 220px;
    height: auto;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-image figcaption {
    margin-top: 15px;
    font-size: 18px;
    color: #555;
}

/* Section Styling */
section {
    padding: 30px;
    margin: 30px auto;
    max-width: 900px;
    background-color: #fff; /* Keep the section background white for contrast */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

section h2 {
    font-size: 30px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

section p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Hobby Images - Responsive Grid Layout */

.hobby-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.hobby-images img {
    width: 250px; /* Ensure all images have the same width */
    height: 170px; /* Ensure all images have the same height */
    object-fit: cover; /* This ensures the image fits within the specified width and height without distorting */
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-images img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hover Effects for Image Changes */
.image-1:hover {
    content: url('./Imgs/fort.gif');
}

.image-2:hover {
    content: url('./Imgs/sa.gif');
}

.image-3:hover {
    content: url('./Imgs/giphy.gif');
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: start;
}

input[type="text"] {
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 10px;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    display: inline-block;
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--highlight-color);
    color: var(--primary-color);
}

/* Adjust the content layout to make space for the sidebar */
body {
    padding-left: 220px; /* Add space to the left for the sidebar */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .profile-image img {
        width: 150px;
    }

    section {
        padding: 15px;
        margin: 10px auto;
    }
}

html {
    scroll-behavior: smooth;
}
