/* General Body & Root Styling */
:root {
    --primary-bg: #f8f8f8;
    --secondary-bg: #ffffff;
    --text-color: #333333;
    --link-bg: #e0e0e0;
    --link-hover-bg: #d0d0d0;
    --accent-color: #4CAF50; /* A pleasant green */
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2a2a2a;
    --text-color: #f0f0f0;
    --link-bg: #3a3a3a;
    --link-hover-bg: #4a4a4a;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* Add padding for small screens */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    background-color: var(--secondary-bg);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative; /* For dark mode toggle positioning */
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Header Section */
.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent-color); /* Subtle border for profile pic */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--text-color);
}

p {
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Link List Section */
.link-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.link-item {
    margin-bottom: 15px;
}

.link-item a {
    display: block;
    background-color: var(--link-bg);
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.3s ease;
    display: flex; /* For icon alignment */
    align-items: center;
    justify-content: center;
}

.link-item a:hover {
    background-color: var(--link-hover-bg);
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    color: var(--accent-color); /* Highlight text on hover */
}

.link-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Footer Section */
footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separator */
    opacity: 0.7;
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.8em;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

footer p {
    font-size: 0.9em;
    margin-bottom: 0; /* Override default p margin */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        margin: 10px; /* Ensure some margin on very small screens */
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 1em;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .link-item a {
        font-size: 1em;
        padding: 12px 15px;
    }

    .link-icon {
        font-size: 1em;
        margin-right: 8px;
    }

    .social-icons a {
        font-size: 1.5em;
        margin: 0 8px;
    }

    .dark-mode-toggle {
        font-size: 1.3em;
        top: 15px;
        right: 15px;
    }
}