/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #a6a4a4;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #4bbc06, hsl(308, 92%, 35%));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 20px 10%;
    margin-top: 20px;
}

main h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #333;
}

main p {
    text-align: justify;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #a252ba;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #388E3C;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.portfolio-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.portfolio-item h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

.portfolio-item p {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

form input,
form textarea,
form button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #388E3C;
}

/* Dark Mode */
body.dark {
    background-color: #222;
    color: #ddd;
}

body.dark header,
body.dark footer {
    background: #111;
}

body.dark .btn {
    background: #444;
    color: #ddd;
}

body.dark .portfolio-item {
    background: #333;
}

body.dark form input,
body.dark form textarea {
    background: #333333;
    color: #ddd;
    border: 1px solid #555;
}

body.dark form button {
    background: #555;
}

.tocolor {
    background-color: #D3D3D3;
}
figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 200px;
    height: auto;
    text-align: center;
}

figure img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 5px solid #ccc;
}