body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

header {
    background-color: #efe9f8;
    text-align: center;
    padding: 20px 15px 15px;
    border-bottom: 2px solid #e2d9f3;
}

button {
    padding: 5px 12px;
    font-size: 0.85rem;
    background: #6a0dad;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #5a0c9d;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: #2e2e2e;
}

header p {
    font-size: 1.1rem;
    color: #666;
}

section {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

h2 {
    font-size: 1.8rem;
    border-left: 4px solid #6a0dad;
    padding-left: 10px;
    margin-bottom: 1rem;
    color: #2e2e2e;
}

.project {
    background-color: #efe9f8;
    border-left: 4px solid #6a0dad;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.project h3 {
    margin-top: 0;
    color: #6a0dad;
}

.project a,
#contact a {
    color: #6a0dad;
    text-decoration: none;
}

.project a:hover,
#contact a:hover {
    text-decoration: underline;
}

.project ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.project ul li {
    display: inline-block;
    background-color: #e9ddf9;
    color: #6a0dad;
    margin: 3.5px;
    padding: 5px 12px;
    border-radius: 18px;
    font-size: 0.9rem;
}

.project img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project img.carousel-slide {
    width: 100%;
    max-width: 690px;
    height: 360px;
    object-fit: cover;
    display: none;
}

@media (max-width: 768px) {
    .project img.carousel-slide {
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .carousel {
        max-width: 100%;
        overflow: hidden;
    }
}

.project img.carousel-slide.active {
    display: block;
}

.carousel-controls {
    text-align: center;
    margin-top: 8px;
}

.carousel-controls button {
    font-size: 1.2rem;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    display: inline-block;
    background-color: #e9ddf9;
    color: #6a0dad;
    margin: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 60px;
    padding-bottom: 40px;
}

body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark header,
body.dark .project {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark h2,
body.dark .project h3,
body.dark a,
body.dark header h1,
body.dark header p {
    color: #bb86fc;
}

body.dark ul li {
    background-color: #2a2a2a;
    color: #bb86fc;
}

body.dark button {
    background: #bb86fc;
    color: #000000;
}

body.dark button:hover {
    background: #9b67e6;
}