* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a:focus {
    color: #3498db;
}

.edit-btn, .cta-btn, button, .pagination-btn {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-btn:hover, .cta-btn:hover, button:hover, .pagination-btn:hover {
    background-color: #2980b9;
}

.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.admin-controls {
    display: flex;
    gap: 1rem;
}

.admin-controls.hidden {
    display: none;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #ecf0f1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
}

.work, .about, .testimonials, .contact {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work h2, .about h2, .testimonials h2, .contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.project-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination.hidden {
    display: none;
}

.testimonial-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: left;
    margin-top: 20px;
}

.skills li {
    background-color: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact input, .contact textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact textarea {
    resize: vertical;
    min-height: 100px;
}

.contact button {
    align-self: flex-start;
}

.success-message {
    margin-top: 1rem;
    color: #2ecc71;
    text-align: center;
}

.success-message.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: #fff;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #3498db;
}

.social-icon .fallback-text {
    display: none;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.social-icon i {
    display: inline-block;
}

.social-icon i:not(:last-child) {
    margin-right: 0.5rem;
}

.social-icon.no-fontawesome .fallback-text {
    display: inline;
}

.social-icon.no-fontawesome i {
    display: none;
}

.editor {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.editor form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor label {
    font-weight: bold;
    color: #2c3e50;
}

.editor input, .editor textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.back-btn, .preview-btn {
    display: inline-block;
    margin: 1rem 0;
    text-decoration: none;
    color: #3498db;
}
p#about-text {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .skills {
        justify-content: center;
    }
}
