/* --- Global Resets & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Container --- */
.container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.3em;
    margin-top: 0;
    margin-bottom: 1em;
}

h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.75em;
    color: #34495e;
}

p {
    margin-bottom: 1em;
    color: #555;
}

#about .about-detail {
    color: #030000;
    margin: 0;
}

#about-me .about-detail {
    color: #030000;
    margin: 0;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: #2980b9;
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.8em;
}

strong {
    font-weight: 700;
    color: #34495e;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- Header --- */
.site-header {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 1.5rem 0 1rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-message {
    margin-bottom: 1.5rem;
}

.welcome-message h2 {
    color: #ffffff;
    font-size: 2rem;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.site-header nav ul {
    display: flex;
    justify-content: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header nav li {
    margin-bottom: 0;
}

.site-header nav a {
    color: #ecf0f1;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.3em 0;
}

.site-header nav a:hover,
.site-header nav a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Content Sections --- */
.content-section {
    padding: 2.5rem 0;
}

.content-section.alt-bg {
    background-color: #ffffff;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

/* --- Skills Section Specifics --- */
#skills h2 {
    margin-bottom: 1.5rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 1rem;
}

.tech-stack,
.project-placeholder {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.alt-bg .tech-stack,
.alt-bg .project-placeholder {
    background-color: #f8f9fa;
}

.tech-stack h3,
.project-placeholder h3 {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.tech-stack .badges-wrapper {
    line-height: 1.8;
}

.tech-stack img {
    margin: 4px 4px 4px 0;
    vertical-align: middle;
}

.project-placeholder .project-list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.project-placeholder li {
    margin-bottom: 0.6em;
}

/* --- Contact Section Specifics --- */
.contact-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#contact a {
    display: inline-block;
    line-height: 1;
}

#contact img {
    vertical-align: middle;
    transition: opacity 0.2s ease;
}

#contact a:hover img,
#contact a:focus img {
    opacity: 0.85;
}

/* --- Footer --- */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.25em;
    color: #bdc3c7;
}

.site-footer a {
    color: #ecf0f1;
    font-weight: bold;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Basic Responsiveness --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .welcome-message h2 {
        font-size: 1.8rem;
    }
    .site-header {
        padding-top: 1rem;
        padding-bottom: 0.8rem;
        margin-bottom: 1.5rem;
    }
    .content-section {
        padding: 2rem 0;
    }
    .skills-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 95%;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    .welcome-message h2 {
        font-size: 1.6rem;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .site-header nav ul {
        gap: 15px;
    }
    .site-header nav a {
        font-size: 1rem;
    }
    .contact-links {
        justify-content: center;
    }
    .tech-stack img {
        margin: 3px 3px 3px 0;
    }
}
