/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;800&display=swap');

/* Base Styles */
body {
    font-family: 'Figtree', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

:root {
    --bg: #f4f4f9;
    --text: #333;
    --card: #fff;
    --accent: #1e90ff;
}

body.dark-mode {
    --bg: #121212;
    --text: #f4f4f9;
    --card: #1e1e1e;
    --accent: #80d0ff;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72, #2a5298, #50c878, #ff5722);
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.header-img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

h1 {
    margin: 10px 0;
    font-size: 2.5em;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 30px 20px;
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text);
}

#projects {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.project {
    transition: transform 0.3s ease;
    background-color: var(--card);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.project h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: var(--text);
}

.project p {
    font-size: 1em;
    color: #666;
}

.project a {
    color: var(--accent);
    text-decoration: none;
}

.project:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.centered-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    background-color: var(--card);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

form label {
    font-size: 1em;
    color: var(--text);
    align-self: flex-start;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

form textarea {
    height: 150px;
}

.small-button {
    width: 120px;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.small-button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 1em;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Dark mode toggle button */
.toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--card);
    border: 1px solid #ccc;
    color: var(--text);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
}

.toggle-btn:hover {
    background-color: #ddd;
}

@media (min-width: 600px) {
    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: hotpink;
    }
}

@media (min-width: 1024px) {
    .container {
        background-color: aquamarine;
    }
}