/* Reset some default styles for consistency */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation styles */
header.nav__cont {
    background: #222;
    padding: 1rem 0;
}

ul.nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.user img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #007bff;
}

.navbtn {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0.2rem 0;
    border-radius: 20px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.navbtn:hover {
    background: #007bff;
    color: #fff;
}

.fa-solid {
    margin-right: 0.5rem;
}

/* Theme toggler and navbar button */
#navbarbtn, #theme-toggler {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #007bff;
    color: #fff;
    padding: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#theme-toggler {
    right: 4rem;
}

/* Section headings */
.heading {
    text-align: center;
    font-size: 2.2rem;
    margin: 2rem 0 1rem 0;
    color: #007bff;
    font-weight: 700;
}

.heading span {
    color: #222;
}

/* Home section */
.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: #fff;
    padding: 2rem 0;
}

.home .content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home h3 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.home p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.home .btn {
    background: #007bff;
    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.home .btn:hover {
    background: #0056b3;
}

.home .share {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.home .share a {
    color: #007bff;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.home .share a:hover {
    color: #0056b3;
}

/* About section */
.about {
    background: #f1f3f6;
    padding: 2rem 0;
}

.about .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about .box-container {
    display: flex;
    gap: 1.5rem;
}

.about .box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.2rem 2rem;
    text-align: center;
    min-width: 120px;
}

.about .box h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

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

.about .content {
    max-width: 400px;
}

.about .content h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.about .content span {
    color: #007bff;
    font-weight: 600;
}

.about .content p {
    color: #555;
    margin-bottom: 1rem;
}

.about .content .btn {
    background: #007bff;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.about .content .btn:hover {
    background: #0056b3;
}

/* Progress bars */
.progress {
    margin: 1rem 0;
    min-width: 220px;
}

.progress h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: space-between;
}

.progress .bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    position: relative;
}

.progress .bar span {
    display: block;
    height: 100%;
    background: #007bff;
    border-radius: 10px;
    width: 90%;
    transition: width 0.7s;
}

.progress .bar-1-2 span { width: 75%; }
.progress .bar-2-1 span { width: 95%; }
.progress .bar-2-2 span { width: 85%; }
.progress .bar-2-3 span { width: 80%; }

/* Services section */
.services {
    background: #fff;
    padding: 2rem 0;
}

.services .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.services .box {
    background: #f1f3f6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 220px;
    max-width: 320px;
    transition: box-shadow 0.2s;
}

.services .box:hover {
    box-shadow: 0 4px 16px rgba(0,123,255,0.12);
}

.services .box i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 0.7rem;
}

.services .box h3 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.services .box p {
    color: #555;
    font-size: 1rem;
}

/* Portfolio section */
.portfolio {
    background: #f1f3f6;
    padding: 2rem 0;
}

.portfolio .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.portfolio .box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    min-width: 220px;
    max-width: 320px;
    transition: box-shadow 0.2s;
    position: relative;
}

.portfolio .box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.portfolio .box .content {
    padding: 1rem;
    text-align: center;
}

.portfolio .box .work-link {
    color: #007bff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.2s;
}

.portfolio .box .work-link:hover {
    color: #0056b3;
}

.portfolio .box h3 {
    font-size: 1rem;
    color: #222;
    margin-top: 0.5rem;
}

/* Contact section */
.contact {
    background: #fff;
    padding: 2rem 0;
}

.contact form {
    max-width: 400px;
    margin: 0 auto;
    background: #f1f3f6;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact .box {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
    color: #222;
    transition: border 0.2s;
}

.contact .box:focus {
    border: 1.5px solid #007bff;
    outline: none;
}

.contact .btn {
    background: #007bff;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact .btn:hover {
    background: #0056b3;
}

/* Credits */
.credits {
    text-align: center;
    padding: 1rem 0;
    background: #222;
    color: #fff;
    font-size: 1rem;
    margin-top: 2rem;
}

.credits span {
    color: #007bff;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 900px) {
    .about .row,
    .services .box-container,
    .portfolio .box-container {
        flex-direction: column;
        align-items: center;
    }
    .about .box-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    header.nav__cont {
        padding: 0.5rem 0;
    }
    .user img {
        width: 70px;
        height: 70px;
    }
    .home h3 {
        font-size: 1.3rem;
    }
    .heading {
        font-size: 1.4rem;
    }
    .about .box,
    .services .box,
    .portfolio .box {
        min-width: 160px;
        max-width: 95vw;
        padding: 1rem;
    }
    .contact form {
        padding: 1rem;
    }
}