/* Base styles and variables */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #2d3436;
    --link-color: #2b6cb0;
}

/* General styling */
body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Navigation styling */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

nav a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

nav a:hover {
    color: var(--primary-color);
    background-color: transparent;
}

nav a:active {
    transform: scale(0.95);
}

/* Horizontal rule styling */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 2rem auto;
    width: 80%;
}

/* Image styling */
img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: 4px solid var(--primary-color);
    margin: 2rem 0;
}

img:hover {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

/* Section styling */
section {
    margin: 3rem 0;
    padding: 0 1rem;
}

/* Responsive scaling */
@media (max-width: 768px) {
    img {
        width: 150px;
        height: 150px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    img {
        width: 100px;
        height: 100px;
    }
}

/* Dark mode button styling */
#dark-mode {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background-color: transparent;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

#dark-mode:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#dark-mode:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Contact link styling */
.contact-link {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.contact-link:hover::after {
    width: 80%;
}