/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1b1f23; /* Dark background */
    color: #e1e4e8; /* Light grey text */
    margin: 0;
    padding: 0;
}

header {
    background: #24292e; /* Dark grey background */
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header img {
    max-width: 150px;
    height: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #e1e4e8;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #79b8ff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.hero {
    background: #2f363d; /* Slightly lighter dark grey */
    color: #e1e4e8;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.section {
    margin: 2rem 0;
}

.section h2 {
    border-bottom: 2px solid #3b4048; /* Grey border */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section p {
    margin: 1rem 0;
}

.section img {
    max-width: 100%;
    height: auto;
    border: 2px solid #3b4048;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.section a {
    color: #79b8ff; /* Bluish-grey link */
    text-decoration: none;
}

.section a:hover {
    text-decoration: underline;
}

footer {
    background: #24292e;
    color: #e1e4e8;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 2px solid #3b4048;
}

footer p {
    margin: 0;
}

footer .social-icons {
    margin-top: 1rem;
}

footer .social-icons a {
    margin: 0 10px;
}

footer .social-icons img {
    width: 30px;
    height: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    margin: 0 10px;
}

.social-icon-large {
    width: 60px;
    height: 60px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 1rem 0;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Blog Section */
.blog-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.blog-post {
    flex: 1 1 calc(33.333% - 1.5rem);
    background: #2f363d;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-post h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.blog-post p {
    margin-top: 0.5rem;
    font-size: 1rem;
}

.blog-post a {
    display: block;
    margin-top: 1rem;
    color: #79b8ff;
    font-weight: bold;
}

/* About Me Section */
#sobre-mi img {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    display: block;
    margin: auto;
    margin-bottom: 1rem;
}

/* Code Styling */
pre, code {
    background: #2f363d;
    color: #e1e4e8;
    padding: 0.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

pre {
    padding: 1rem;
    margin: 1rem 0;
}

code {
    font-size: 1em;
}

@media (min-width: 768px) {
    nav ul {
        gap: 2rem;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .blog-post {
        flex: 1 1 calc(33.333% - 2rem);
    }
}

@media (min-width: 1024px) {
    header img {
        max-width: 200px;
    }

    .hero h2 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.8rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon-large {
        width: 80px;
        height: 80px;
    }

    #sobre-mi img {
        max-width: 200px;
    }
}
