/* Policy color */
.policy {
    color:#333;
    font-size:10px;
    margin-top:30px;
}

/* Sticky Header Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #333;
    color: white;
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sticky-header .menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.sticky-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.sticky-header .auth-buttons .btn {
    margin-left: 10px;
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
}

.sticky-header .auth-buttons .btn:hover {
    background-color: #0056b3;
    color: white;
}

.user-info {
    margin:10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Working with image in sticky header */ 
.profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}
.profile-image:hover {
    border: 2px solid #0056b3;;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: inline-block; /* Ensure block-level for transform to work */
    position: relative; /* Set relative positioning for transform effect */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

.nav-links a:hover {
    color: #0056b3; /* Change color on hover */
    transform: translateY(-3px); /* Move up slightly on hover */
}

.logout-btn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: inline-block; /* Ensure block-level for transform to work */
    position: relative; /* Set relative positioning for transform effect */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

.logout-btn:hover {
    color: #0056b3; /* Change color on hover */
    transform: translateY(-3px); /* Move up slightly on hover */
}

/* Burger Menu */
.burger-menu {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #007bff;
        position: absolute;
        top: 50px;
        right: 20px;
        padding: 10px;
        border-radius: 5px;
    }

    .nav-links.show {
        display: flex;
    }

    .burger-menu {
        display: block;
    }
}

.nav-links {
    transition: all 0.3s ease;
}

.cool_burger {
    margin-left: 50px;
}

/* Style for Account Options Modal */
#profileModal .modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

#profileModal .list-group-item a,
#profileModal .list-group-item button {
    display: inline-block;
    width: 100%;
    padding: 10px 15px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#profileModal .list-group-item a:hover,
#profileModal .list-group-item button:hover {
    background-color: #0056b3;
    color: #ffffff; /* Ensures text remains white on hover */
}

/* Optional: Adjust button alignment */
#profileModal .list-group-item {
    padding: 0;
    margin-bottom: 10px;
    border: none; /* Remove border around list items */
}

.main {
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers horizontally */
    align-items: flex-start; /* Aligns items at the top */
    width: 100%;
    height: 100%;
    background: url("best_main_1920.jpg") no-repeat fixed center;
    background-size: cover; /* Ensures the background covers the whole area */
    background-color: #007bff;
    min-height: 100vh; /* Ensures full viewport height */
    gap: 20px; /* Space between the two sections */
  }
  

/* Profile container styling */
.wrap {
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Shared styles for contain_prof and profile_sections */
.contain_prof, .profile_sections {
    
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; /* Include padding in the width */
    text-align: center;
}

/* Title and paragraph styling */
.contain_prof h1, .profile_sections h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.contain_prof p, .profile_sections label {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

/* Profile image */
.contain_prof img {
    max-width: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Buttons */
.contain_prof button, .profile_sections button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contain_prof button:hover, .profile_sections button:hover {
    background-color: #45a049;
}

/* Responsive layout */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
        align-items: center;
    }

    .contain_prof, .profile_sections {
        width: 100%;
    }
}

/* Homepage buttons styling */
.cover {
    margin-top: 50px; /* Moves the square lower on the page */
    background: #444; /* Slightly lighter gray square */
    border-radius: 20px; /* Rounded corners */
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px; /* Fixed width */
    height: 350px; /* Increased height to fit the title */
    text-align: center;
}

.square-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px; /* Space between title and buttons */
    color: #fff;
}

.button-container {
    text-align: center;
}

.styled-button {
    display: inline-block;
    width: 150px; /* Fixed button width for uniform size */
    padding: 15px 0; /* Vertical padding only to ensure consistent height */
    margin: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: #007bff; /* Button color */
    border: none;
    border-radius: 50px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none; /* Removes link underline */
    transition: all 0.3s ease;
    text-align: center; /* Centers text inside buttons */
}

.styled-button:hover {
    background: #0056b3; /* Hover color */
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Footer styling */
footer {
    background-color: #333; /* Dark gray background */
    color: white; /* Default text color */
    padding: 20px 10px;
    border-top: 1px solid #444; /* Subtle border */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section {
    flex: 1 1 25%; /* Each section takes 25% of the row */
    padding: 10px;
}

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: white; /* Headings in white */
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: white; /* Link text in white */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.footer-section ul li a:hover {
    color: #0056b3; /* Hover color in blue */
    text-decoration: underline; /* Optional underline for hover */
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-section {
        flex: 1 1 50%; /* Stack two sections per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .footer-section {
        flex: 1 1 100%; /* Stack all sections in one column on very small screens */
    }
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.footer-copyright hr {
    border: 0; /* Remove default border style */
    height: 2px; /* Increase the thickness */
    background: #555; /* Brighter gray for better visibility */
    margin-bottom: 10px;
    width: 80%; /* Adjust the width of the line */
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8; /* Optional: Slight transparency for a polished look */
}

.footer-copyright p {
    font-size: 0.9em;
    margin: 0;
    color: #bbb; /* Subtle text color */
}


/* Profile cards */
/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Profile Card Styles */
.profile-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.profile-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Profile Image */
.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
}

/* Profile Details */
.profile-details {
    text-align: center;
}

.profile-details h5 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.profile-details p {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
    line-height: 1.4;
}

.profile-details a {
    margin-top: 10px;
    display: inline-block;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.profile-details a:hover {
    background-color: #0056b3;
}

.about {
    margin-top: 100px; /* Moves the square lower on the page */
    margin-bottom: 30px;
    background: white; /* Slightly lighter gray square */
    border-radius: 20px; /* Rounded corners */
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%; /* Set to 80% of the container width for responsiveness */
    max-width: 500px; /* Prevent the width from growing too large */
    height: auto; /* Automatically adjust height based on content */
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about {
        margin-top: 50px; /* Reduce the margin for smaller screens */
        width: 90%; /* Set width to 90% on smaller screens */
    }
}

@media (max-width: 576px) {
    .about {
        margin-top: 30px; /* Further reduce margin on very small screens */
        width: 95%; /* Set width to 95% on very small screens */
        padding: 20px; /* Reduce padding for small screens */
    }
}


/* Profile Sections Styling */
.wrap {
    margin-bottom: 30px;
}

.center {
    width: 100%;
    max-width: 1200px; /* Adjust max-width to suit your design */
    margin: 0 auto;
    padding: 20px;
}
/* Styling for ratings section */
.ratings {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ratings h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

.ratings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ratings ul li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ratings ul li strong {
    color: #007bff;
    font-weight: bold;
}

.ratings ul li p {
    font-size: 0.9em;
    color: #555;
    margin: 8px 0;
}

.ratings ul li small {
    font-size: 0.8em;
    color: #999;
}

/* Styling for Rating Form */
.ratings form {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.ratings form button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.ratings form button:hover {
    background-color: #0056b3;
}

/* Error and success messages */
.text-danger {
    color: #dc3545;
    font-weight: bold;
    margin-top: 10px;
}

.text-success {
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .center {
        padding: 10px;
    }

    .wrap.contain_prof, .ratings {
        padding: 15px;
    }

    .ratings form button {
        padding: 8px 12px;
    }

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

@media (max-width: 480px) {
    .ratings ul li {
        padding: 12px;
    }

    .ratings form button {
        padding: 8px 12px;
    }

    .ratings .text-success, .ratings .text-danger {
        font-size: 0.9em;
    }
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.page-links a {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #007bff;
}

.page-links a:hover {
    background-color: #007bff;
    color: white;
}

.current-page {
    margin: 0 10px;
    font-weight: bold;
}

.page-links .first, .page-links .last {
    font-weight: bold;
}

/* star styling */
.stars {
    display: inline-block;
}

.star {
    font-size: 20px; /* Adjust size */
    color: gold; /* Filled star color */
}

.empty {
    color: #ccc; /* Empty star color */
}


/*rating form container */
.rating-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.rating-form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.rating-form-container p {
    font-size: 14px;
    margin-bottom: 10px;
}

.text-danger {
    color: #e74c3c;
    font-weight: bold;
}

.text-success {
    color: #27ae60;
    font-weight: bold;
}

.rating-form-container label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.rating-form-container select,
.rating-form-container textarea,
.rating-form-container button {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.rating-form-container select:focus,
.rating-form-container textarea:focus,
.rating-form-container button:focus {
    border-color: #007bff;
    outline: none;
}

.rating-form-container textarea {
    resize: none;
}

.rating-form-container button {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rating-form-container button:hover {
    background-color: #0056b3;
}

.rating-form-container button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.rating-form-container p.center {
    text-align: center;
    color: #777;
}

/* Ratings button */
.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}


/* skills detail */
.skill-container {
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
}

.skill-name {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.skill-field {
    font-size: 1.2rem;
    color: #555;
}

.skill-description {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

.skill-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 20px;
}

/* skills list */
/* Skills container styling */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Increase width of cards */
    gap: 20px;
    padding: 20px;
    text-align: center;
}

/* Skill card styling */
.skill-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 300px; /* Limit max width for better control */
}

.skill-card:hover {
    transform: translateY(-10px);
}

/* Image styling */
.skill-image {
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Skill description styling - make it smaller */
.skill-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Button styling */
.btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* settings.html */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

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

.skill-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-image {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 10px;
    border-radius: 20%;
}

.skill-name {
    font-size: 1.1em;
    margin: 5px 0;
}

.skill-field {
    font-size: 0.9em;
    color: #777;
}

.save-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.save-button:hover {
    background-color: #0056b3;
}