/* === Base Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Body Styling === */
body {
    font-family: 'Georgia', serif;
    background-color: #1c1c1c;
    color: #e0e0e0;
    line-height: 1.7;
    padding: 3rem 2rem;
    background-image: linear-gradient(to bottom, #1a1a1a 0%, #121212 100%);
    text-align: center;
}

/* === Typography === */
h1, h2 {
    font-family: 'Playfair Display', serif;
    color: #d4c2aa;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

h1 {
    font-size: 3rem;
    animation: fadeIn 1.5s ease-out;
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid #444;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* === Header === */
header {
    margin-top: 2rem; /* Extra space above header */
}

.header {
    margin: 0 auto 4rem auto;
    padding: 3rem;
    max-width: 800px;
    background-color: rgba(34, 34, 34, 0.6);
    border: 2px solid #444;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.header:hover {
    transform: scale(1.02);
}

/* === About Section === */
.about {
    margin: 4rem auto;
    max-width: 800px;
    padding: 2rem;
}

.images {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid #3e3e3e;
    border-radius: 10px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    filter: grayscale(40%) brightness(0.9);
}

.profile-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    filter: grayscale(0%) brightness(1.1);
}

/* === Projects and Social Sections === */
.projects,
.socials {
    margin: 4rem auto;
    max-width: 800px;
    padding: 2rem;
}

.projects ul,
.socials ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.projects li,
.socials li {
    margin: 1rem 0;
}

a {
    color: #b8a68d;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-size: 1.1rem;
}

a:hover {
    color: #d6c0a0;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* === Social Icons === */
.fab {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

li:hover .fab {
    transform: scale(1.2) rotate(5deg);
    color: #c6b2a3;
}

/* === Footer === */
footer {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem 1rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 1s ease-in forwards;
    opacity: 0;
    animation-delay: 0.3s;
    margin-bottom: 3rem;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .images {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        max-width: 90%;
    }

    .header, .about, .projects, .socials {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }

    footer {
        font-size: 0.8rem;
    }
}
