/* =========================
   Global
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; 
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #fff;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Links */
a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

/* =========================
   Header
========================= */
header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo-img {
    height: 40px;
    object-fit: contain;
}
header .logo {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-right: auto;
}

/* Nav */
header nav {
    display: flex;
    position: relative;
    z-index: 1000;
}
header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}
header nav a {
    font-size: 15px;
    font-weight: 500;
    padding: 6px 10px;
    white-space: nowrap;
}
header nav a:hover {
    color: #1a252f;
}

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #2c3e50;
}

/* Dropdown */
    .dropdown {
        width: 100%;
        text-align: right; 
        margin-top: -5px;

    }

    .dropdown > a {
        display: inline-block; 
        width: auto;       
        text-align: right; 
        padding-right: 0; 
    }
    
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;          
    right: 0;            
    min-width: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 8px 0;
    z-index: 1000;
}
.dropdown-menu li {
    list-style: none;
}
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    transition: background 0.2s;
}


.dropdown:hover .dropdown-menu {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    
        /*header nav a {
        font-weight: 650;
    }*/
    
    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        text-align: right;     
        width: 100%;          
        display: none; 
    }
    .dropdown-menu li {
        width: 100%;           
    }
    .dropdown-menu a {
        display: block;
        padding: 8px 0;
        text-align: right;     
   
    }
    
 

.dropdown-menu.open {
    display: block; 
}

}




/* =========================
   Title Section
========================= */
.title-section {
    text-align: center;
    padding: 60px 20px 40px;
    min-height: 500px;
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('/uploads/heropic.jpeg') center/cover no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.title-section h1 {
    font-size: 28px;
    margin-bottom: 6px;
}
.title-section p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* =========================
   Filters / Search
========================= */
.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}
.filters input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}
.filters input:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 6px rgba(44,62,80,0.2);
}
.filters .btn {
    padding: 10px 18px;
    background: #2c3e50;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #2c3e50;
}
.filters .btn:hover {
    background: #fff;
    border: 1px solid #2c3e50;
    color: #2c3e50;
}

.filters select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}
.filters select:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 6px rgba(44,62,80,0.2);
}

/* Clear Skill Button Styling */
#clearSkill {
    background-color: #fff;  
    color: #2c3e50;                              
    transition: all 0.3s;
    padding: 10px 18px;
    border: 1px solid #2c3e50;
}

#clearSkill:hover {
    background-color: #2c3e50;  
    color: #fff;
}


@media (max-width: 768px) { 
    .filters select {
        width: 100%;
    }
}


/* =========================
   Profiles Grid
========================= */
.profiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    align-items: stretch;
    min-height: 230px;
}

/* Profile Card */
.profile-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}
.profile-card .profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid #2c3e50;
    object-fit: cover;
    margin: 0 auto 10px;
}
.profile-card h3 {
    margin-bottom: 4px;
    font-size: 18px;
}
.profile-card .title {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}
.profile-card .location {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}
.profile-card .skills {
    margin-bottom: 5px;
}
.profile-card .skill {
    display: inline-block;
    background: #f1f1f1;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
    color: #2c3e50;
}
.profile-card .no-skills {
    font-size: 12px;
    color: #999;
}

/*Ratings*/
.profile-rating-summary {
    margin: 15px 0 15px 0;
    font-size: 14px;
    display: flex;
    flex-direction: column; 
    align-items: center;    
}


.profile-rating-summary .stars {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
}

.profile-rating-summary .stars i {
    color: gold;
    margin-right: 2px;
    font-size: 12px;
}

/* Total ratings */
.profile-rating-summary p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #555;
}

/* No ratings yet */
.profile-rating-summary p,
.profile-rating-summary h3 {
    font-weight: normal;
    color: #777;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #2c3e50;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    margin-top: auto;
}
.btn:hover {
    background: #fff;
    border: 1px solid #2c3e50;
    color: #2c3e50;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 20px 0 50px;
}

/* =========================
   Footer
========================= */
footer {
    background: #fff;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #555;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-img {
    margin-top: 15px;
    height: 20px;
}

/* =========================
   Responsive
========================= */

/* Tablet */
@media (max-width: 992px) {
    .profiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px 20px;
        width: 100%;
    max-width: 1200px;
    }
    .filters {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }
    .filters input, .filters .btn {
        width: 100%;
    }

    /* Header */
    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1100;
    }
    header nav {
    display: none;
    width: 100%;
 
    background: #fff;
    position: absolute;
    top: 65px;
    left: 0;
    border-top: 1px solid #ddd;
    padding: 15px 0;
    flex-direction: column;
    align-items: flex-end; 
    padding-right: 20px;   
    }
    header nav.active {
        display: flex;
    }
    header nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: flex-end; 
    }
    header nav a {
            font-size: 15px;
    font-weight: 500;
        padding: 8px 0;
    }
}

/* Mobile*/
@media (max-width: 768px) {
    .profiles {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 10px 20px;
        width: 100%;
    max-width: 1200px;
    }
    
    .filters input, .filters .btn { font-size: 16px; padding: 10px 14px; }
    
    .title-section {
        padding: 40px 15px 30px;
        min-height: 420px;
    }
    .title-section h1 { font-size: 24px; }
    .title-section p { font-size: 15px; }
    .profile-card { padding: 18px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    body { font-size: 15px; }
    .filters input, .filters .btn { font-size: 16px; padding: 10px 14px; }
    .profile-card h3 { font-size: 17px; }
    .profile-card .title, .profile-card .location { font-size: 13px; }
    .profiles {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 20px;
        width: 100%;
    max-width: 1200px;
    }
}
