@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;600;700&family=Roboto+Slab:wght@400;700&family=Roboto:wght@400;500;700;900&display=swap');

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

html {
    font-size: 62.5%;
    font-family: 'Roboto Mono', monospace;
}

.home-body {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.grid-container {
    font: 100 1.5rem 'Roboto', sans-serif;
    max-width: 980px;
    margin: auto;
    padding: 20px;
}

a {
    text-decoration: none;
    display: inline;
    color: black;
    transition: color 0.3s ease;
}

a:hover {
    color: #47cfac;
}

header {
    width: 100%;
    height: 100px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    background: linear-gradient(135deg, #47cfac 0%, #37a39c 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .header-icons-container {
    width: 100%;
    height: 50px;
    display: grid;
    background-color: #47cfac;
}

header .header-icons-container .header-icons {
    width: 100px;
    height: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    justify-self: end;
}

header .header-icons span {
    color: white;
}

nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 90px;
    align-items: center;
}

nav .nav-logo-container {
    margin-left: 50px;
}

nav .nav-logo-container img {
    width: 50px;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

nav .nav-logo-container img:hover {
    transform: scale(1.1);
}

nav .profile-link {
    font: 100 1.5rem 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 50px;
}

nav .profile-link a {
    color: black;
    border-bottom: 1px solid black;
    transition: border-color 0.3s ease, color 0.3s ease;
}

nav .profile-link a:hover {
    color: #47cfac;
    border-color: #47cfac;
}

.home-main {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    height: 100%;
    background-image: url(../assets/img/Cover.png);
    background-repeat: no-repeat;
    background-size: cover;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.home-main section {
    display: grid;
    grid-column: 2;
    justify-items: center;
    height: 350px;
    margin-top: 80px;
}

.home-main-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 3.0rem;
    font-weight: 700;
    letter-spacing: 10px;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideIn 1.5s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.home-main-button {
    width: 110px;
    height: 50px;
    background-color: #47cfac;
    display: grid;
    align-items: center;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.home-main-button:hover {
    background-color: #37a39c;
    transform: translateY(-5px);
}

.home-main-button a {
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}

.blogs-main {
    display: grid;
}

.blogs-news-container {
    background-color: #e6e9ed;
    padding: 0 50px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blogs-main-new {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 2fr;
}

.blogs-news-img-container {
    margin-top: 1rem;
    grid-column: 1;
}

.blogs-news-img-container img {
    width: 15%;
    transition: transform 0.3s ease;
}

.blogs-news-img-container img:hover {
    transform: scale(1.05);
}

.blogs-news-info-container {
    margin-top: 1.9rem;
    font: 200 2rem 'Roboto', sans-serif;
    grid-column: 2;
}

.blogs-news-info-container p {
    margin-bottom: 35px;
}

.blogs-posts-container {
    padding: 0 50px 40px;
}

.blogs-posts-container h3 {
    border-bottom: 1px solid #cdd2da;
    padding-bottom: 20px;
    text-align: center;
    font-weight: 700;
    color: #333;
}

.blogs-button {
    border: 1px solid #47cfac;
    padding: 10px 15px;
    font-size: 1.2rem;
    background-color: white;
    color: #47cfac;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blogs-button:hover {
    background-color: #47cfac;
    color: white;
}

.blogs-posts-container .post-container {
    display: inline-block;
    padding-left: 10px;
    max-width: 30%;
    margin-bottom: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blogs-posts-container .post-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blogs-posts-container .post-container p {
    margin-bottom: 35px;
}

.blogs-posts-container .post-container img {
    width: 100%;
    border-radius: 10px;
}

footer {
    position: fixed;
    bottom: 0; /* Ensure the footer is fixed at the bottom */
    left: 0; /* Ensure the footer starts from the left edge */
    width: 100%; /* Ensure the footer spans the full width */
    background-color: #22272d;
    border-top: 2px solid #47cfac;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15px; /* You can adjust the height as needed */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}


footer p {
    color: white;
    margin: 0;
    animation: fadeInUp 1.5s ease-in-out;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.blogpost-img-container {
    margin: 10px 50px 10px;
    width: 40%;
    /* padding: 0 50px 40px; */
}

.blogpost-img-container img {
    width: 50%;
}

.blogpost-main-container {
    padding: 0 50px 40px;
}

.blogpost-main-container h3 {
    border-bottom: 1px solid #cdd2da;
    padding-bottom: 20px;
}

.blogpost-main-container article h1 {
    font-size: 3.5rem;
}

.contact-main-container {
    font: 100 1.1rem 'roboto mono', monospace;
    padding: 0 50px 40px;
    width: 100%;
    background-color: #cdd2da;
    text-align: center;
    padding-bottom: 2rem;
}

.contact-main-container div {
    display: inline-block;
    width: 49.5%;
    height: 100%;
}

.contact-main-container div a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-main-container div a:hover {
    color: #47cfac;
}

.contact-main-container div p {
    padding-top: 10px;
}

.contact-main-container .contact-left, .contact-right {
    text-align: initial;
    margin-top: 2rem;
}

.contact-main-container img {
    margin-top: 1rem;
    width: 12%;
}

.profile-main-container {
    font: 400 1.8rem 'roboto mono', monospace;
    padding: 70px 40px;
    background-color: #e6e9ed;
    margin-bottom: 50px;
}

.profile-main-container img {
    width: 320px;
    margin-right: 30px;
    border-radius: 10px;
}

.profile-main-container .profile-container {
    display: flex;
}

.profile-main-projects {
    padding: 0 50px 40px;
}

.profile-main-projects h3 {
    font: 700 2.8rem 'roboto mono', monospace;
    border-bottom: 1px solid #cdd2da;
    padding: 35px;
    text-align: center;
    font-weight: 700;
    color: #333;
}

.projects-main-container {
    font: 200 1.8rem 'roboto mono', monospace;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-container {
    padding: 0 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
