* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SF Pro Display", sans-serif;
    transition: all 0.3s linear;
}

body {
    width: 100vw !important;
}

.navbar {
    margin: 10px;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    height: 85px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
body.dark .dropdown {
  background-color: #333;
  border: 1px solid #555;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown a {
  color: #fff;
  border-bottom-color: #555;
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.navbar h1 {
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-left: 10px;
}

.navbar a {
    color: black;
    text-decoration: none;
    margin: 10px;
    transition: color 0.3s;
    display: flex;
    position: relative;
}

.navbar .nav-links a {
    color: #2c3e50;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.navbar .nav-links a:nth-child(-n + 6)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1.5px;
    width: 0%;
    background-color: rgba(0, 0, 0, 0.889);
    transition: width 0.3s ease;
}

.navbar .nav-links a:nth-child(-n + 6):hover::after {
    width: 100%;
}


.navbar .btn.login:hover {
    background-color: rgb(241, 240, 240);
    color: rgb(19, 19, 19);
    border: 1px solid black;
}

.navbar .btn.signup {
    border: 1px solid black;
    display: inline-block;
    box-sizing: border-box;
    outline: none;
    background-color: black;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 5px;
    margin-right: 5px;
    font-weight: 500;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

.navbar .btn.signup:hover {
    background-color: white;
    color: black;
}

.navbar .nav-links {
    display: flex;
    padding: 0 10px;
}

/* PROFILE SECTION */
.profile-section {
    padding: 30px;
    background: #f4f4f4;
    font-family: "Segoe UI", sans-serif;
}

.profile-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px;


}



.sidebar {
    margin-left: 0;
   
    color: #060606;
   
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
    text-align: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.profile-pic {
    width: 250px;
    height: 250px;


    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.edit-btn {
    display: inline-block;
    background: #0f0f0f;
    color: #fff;
    padding: 8px 16px;
    margin: 10px auto;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    border: none;
}

.edit-btn:hover {
    background: #727374;
}

#uploadPic {
    display: none;
}

.sidebar h2 {
    font-size: 24px;
    margin-top: 10px;
}

.sidebar p {
    font-size: 16px;
    opacity: 0.85;
    margin: 10px 0;
}

.dark-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .sidebar {
        width: 100%;
        max-width: none;
    }
}




/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }

    .main-content {
        padding: 20px;
    }
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {

    color: #333;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h1 {
    font-size: 36px;
    color: #222;
}

.profile-header p {
    font-size: 18px;
    color: #555;
}

/* Layout */
.main-content {
    display: flex;
    flex-wrap: wrap;
    /* Allows cards to wrap to the next line if space is insufficient */
    gap: 30px;
    /* Space between cards */
    justify-content: space-around;
    /* Adjust based on alignment needs */
}

/* Cards */
.profile-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1d1d1d;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

/* Lists */
.detail-list {
    list-style: none;
    padding-left: 0;
    flex-grow: 1;
}

.detail-list li {
    padding: 8px 0;
    font-size: 16px;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-list li::before {
    content: "✔";
    margin-right: 10px;
    font-size: 14px;
    color: #18a558;
}

/* Input & Buttons */
input[type="text"] {
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin: 10px 0;
    font-size: 14px;
}

button {
    padding: 10px 14px;
    background-color: #000000;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #8c8d8d;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background: #eee;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar-inner {
    height: 100%;
    background: #111212;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

/* Certificate links */
a.certificate-link {
    color: #020202;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a.certificate-link:hover {
    color: #808081;
}

/* footer CSS */
.footer {
    display: flex;
    flex-wrap: wrap;
    /* allow wrapping on smaller screens */
    align-items: flex-start;
    justify-content: space-around;
    background-color: black;
    color: white;
    padding: 20px;
    border-start-start-radius: 10px;
    border-start-end-radius: 10px;
    position: relative;
    padding-bottom: 60px;
    /* for space at bottom */
    gap: 20px;
    /* spacing between items */
}

/* Titles */
.footer h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* General links */
.footer a {
    color: white;
    text-decoration: none;
    margin: 5px 0;
}

.footer a:hover {
    color: #f0f0f0;
}

/* Social section */
.footer .social {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer .social h1 {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.footer .social svg {
    width: 36px;
    height: 36px;
    object-fit: cover;
    margin: 5px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid white;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social svg:hover {
    transform: scale(1.05);
    background-color: rgba(245, 244, 244, 0.466);
    border: 1px solid rgba(245, 244, 244, 0.466);
}

/* Contact section */
.footer .contact {
    display: flex;
    flex-direction: column;
}

.contact a {
    color: #b3b3b3;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
    color: white;
}

/* Form section */
.footer .form {
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

.footer .form input,
.footer .form textarea {
    border: none;
    outline: none;
    padding: 10px;
    margin: 5px 0;
    width: 220px;
    border-radius: 5px;
}

.footer .form button {
    border: none;
    outline: none;
    background-color: blue;
    color: white;
    padding: 10px;
    margin-top: 5px;
    width: 120px;
    cursor: pointer;
    border-radius: 5px;
}

.footer .form button:hover {
    background-color: white;
    color: blue;
}

/* Copyright text */
.footer .copy {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    font-size: 14px;
}

/* RESPONSIVENESS */
@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .social,
    .footer .contact,
    .footer .form {
        width: 100%;
        align-items: center;
    }

    .footer .form input,
    .footer .form textarea {
        width: 80%;
    }

    .footer .form button {
        width: 60%;
    }

    .footer .copy {
        font-size: 12px;
        position: static;
        margin-top: 20px;
    }
}




#profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Profile Section Styles */
.profile-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profile-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #282828;
}

.change-photo-btn {
    background: black;
    border: none;
    color: #f1f1f3;
    font-size: 14px;
    margin-top: 8px;
    cursor: pointer;
}

.profile-name {
    font-size: 32px;
    font-weight: bold;
    margin-top: 12px;
}

.profile-email {
    color: #656667;
    font-size: 16px;
}

.detail-section {
    margin-top: 20px;
    text-align: left;
}

.detail-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
}

.detail-content {
    color: #333;
}

.profile-input,
.profile-textarea {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-button {
    flex: 1;
    padding: 8px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    color: white;
}

.edit-button {
    background: #101010;
}

.save-button {
    background: #10b981;
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.change-photo-btn {
    margin-top: 8px;
    background: #050505;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Skills Section */
.detail-section {
    text-align: left;
    margin-top: 20px;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
}

.detail-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.detail-title {
    font-weight: 600;
    font-size: 1.2em;
    color: #1e293b;
    margin-bottom: 15px;
    border-left: 4px solid #363636;
    padding-left: 10px;
}

/* Skills list */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.skill-item {
    background: #e0f2fe;
    color: #313232;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

.skill-item:hover {
    background: #646565;
    transform: translateY(-2px);
}

.remove-skill {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.remove-skill:hover {
    color: #b91c1c;
}

/* Add skill form */
.add-skill-container {
    display: flex;
    gap: 8px;
}

.profile-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #f9fafb;
    transition: border 0.2s ease, background 0.2s ease;
}

.profile-input:focus {
    border: 1px solid #666667;
    background: #ffffff;
    outline: none;
}

/* Add Button */
.add-skill-btn {
    background: linear-gradient(90deg, #333333, #505051);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.add-skill-btn:hover {
    background: linear-gradient(90deg, #adaeae, #5d5d5eb9);
}

.profile-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Certificates Section */
.certificates-section {
    flex: 1;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
}

.certificates-section:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.certificates-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    border-left: 4px solid #252525;
    padding-left: 10px;
    margin-bottom: 18px;
}

/* Certificates List */
.certificates-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.certificate-item {
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.certificate-item span {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

/* Remove Button */
.remove-certificate {
    background: #fee2e2;
    border: none;
    cursor: pointer;
    color: #dc2626;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.remove-certificate:hover {
    background: #fecaca;
}

/* Add Certificate Form */
.add-certificate-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.add-certificate-container input {
    flex: 1;
    min-width: 180px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #f9fafb;
    transition: border 0.2s ease;
}

.add-certificate-container input:focus {
    border: 1px solid #535454;
    outline: none;
    background: #ffffff;
}

/* Add Button */
.add-certificate-btn {
    background: linear-gradient(90deg, #2f2f2f, #464747);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.add-certificate-btn:hover {
    background: linear-gradient(90deg, #adaeae, #5d5d5eb9);
}

/* Layout Fix */
.content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.content-center {
    display: block;
    padding-left: 100px;
}

/* Courses Section */
.courses-section {
    flex: 1;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
}

.courses-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.courses-section h2 {
    font-weight: 600;
    font-size: 1.2em;
    color: #1e293b;
    margin-bottom: 15px;
    border-left: 4px solid #232323;
    padding-left: 10px;
}

/* Course list */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 15px;
}

.course-item {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.course-title {
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

/* Progress bar container */
.progress-container {
    background: #f1f5f9;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #3e3e3e, #424243);
    width: 0%;
    transition: width 0.4s ease;
}

/* Add course form */
.add-course-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.add-course-container input {
    flex: 1;
    min-width: 160px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #f9fafb;
    transition: border 0.2s ease, background 0.2s ease;
}

.add-course-container input:focus {
    border: 1px solid #212222;
    background: #ffffff;
    outline: none;
}

/* Add button */
.add-course-btn {
    background: linear-gradient(90deg, #222223, #525252);
    color: rgb(250, 246, 246);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.add-course-btn:hover {
    background: linear-gradient(90deg, #adaeae, #5d5d5eb9);
}