* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "ArchyEDT-Bold", sans-serif;

}

body {
    background-color: #17282f;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #17282f; /* Dark background */
    padding: 20px 40px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.274);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo-space {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px; /* Increased the height of the logo */
}

.nav-links {
    list-style: none;
}

.nav-links li {
    display: inline;
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: #f4f5ef; /* Light color for the text */
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
    padding-bottom: 5px; /* Adds space for the hover line */
    display: inline-block;
}

.nav-links a:hover {
    color: #b69d74; /* Color change on hover */
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    background: #5f4b42; /* Gold line color */
    transition: width 0.3s;
    bottom: 0;
    left: 0;
}

.nav-links a:hover::after {
    width: 100%; /* Expands the hover line on hover */
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 90vh;
    background: linear-gradient(to bottom, rgba(23, 40, 47, 0.8), rgba(23, 40, 47, 0.8)), url('img/pexels-pixabay-357514.jpg') no-repeat center/cover;
    padding: 60px 20px;
    
}

.hero-content {
    max-width: 800px;
}

.hero-image {
    border-radius: 50%;
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 5px solid #5f4b42;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    color: #f4f5ef;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-in-out;
}

.hero-description {
    font-size: 2.3rem;
    color: #b69d74;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-in-out;
}

.cta-button {
    background-color: #5f4b42;
    color: #f4f5ef;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    animation: fadeInUp 1.4s ease-in-out;
}

.cta-button:hover {
    background-color: #b69d74;
}

.about-me {
    padding: 60px 20px;
    text-align: center;
    background-color: #1c313a;
    color: #f4f5ef;
    animation: fadeIn 1s ease-in-out;
}

.about-me h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #b69d74;
}

.about-me p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.skills {
    padding: 60px 20px;
    text-align: center;
    background-color: #1c313a;
    color: #f4f5ef;
    animation: fadeIn 1.2s ease-in-out;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #b69d74;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-item {
    background-color: #17282f;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item h3 {
    font-size: 2.5rem;
    color: #b69d74;
    margin-bottom: 15px;
}

.skill-item p {
    font-size: 1.7rem;
}

.certificates {
    padding: 60px 20px;
    background-color: #17282f;
    color: #e0e0e0;
    text-align: center;
}

.certificates h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #b69d74;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for the grid */
    gap: 20px;
}

.certificate-item {
    background-color: #1c313a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.certificate-item h3 {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.certificate-item p {
    font-size: 1rem;
    color: #b69d74aa;
    
}

.certificate-item:hover {
    transform: translateY(-10px);
    background-color: #213e4a;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(1, 1fr); /* Stack items on smaller screens */
    }
}

footer {
    background-color: #17282f; /* Dark background */
    color: #ECF0F1; /* Light text color */
    text-align: center;
    padding: 20px;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 20px;
    flex-direction: row;
}

.footer-map {
    flex: 1;
    min-width: 300px; /* Ensures the map doesn't get too small */
}

.footer-info {
    flex: 1;
    text-align: left;
}

.footer-info p {
    margin-bottom: 10px;
}

iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-map {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
.Toma {
    color: #b69d74;
}

.Toma:hover {
    color: #5f4b42;
}

#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #17282f; /* Background color */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#load {
    position: relative;
    width: 600px;
    height: 36px;
    overflow: visible;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

#load div {
    position: absolute;
    width: 40px;
    height: 73px;
    opacity: 0;
    font-family: Helvetica, Arial, sans-serif;
    animation: move 2s linear infinite;
    color: #b69d74;
}

#load div:nth-child(2) { animation-delay: 0.2s; }
#load div:nth-child(3) { animation-delay: 0.4s; }
#load div:nth-child(4) { animation-delay: 0.6s; }
#load div:nth-child(5) { animation-delay: 0.8s; }
#load div:nth-child(6) { animation-delay: 1s; }
#load div:nth-child(7) { animation-delay: 1.2s; }

@keyframes move {
    0% { left: 0; opacity: 0; }
    35% { left: 41%; transform: rotate(0deg); opacity: 1; }
    65% { left: 59%; transform: rotate(0deg); opacity: 1; }
    100% { left: 100%; transform: rotate(-180deg); opacity: 0; }
}

/* Hide the main content initially */
#main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.flag-link {
    display: inline-block;
    margin-left: 20px;
    position: relative;
}

.flag-img {
    width: 40px;  
    height: auto;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border 0.3s, transform 0.3s;
    
}

.flag-link:hover .flag-img {
    border-color: #b69d74;
    transform: scale(1.1); 
}
@media (min-width:950px) and (max-width:1200px){
    .logo-space{
        height: 40px;
    }
    .nav-links a {
        font-size: 20px;
        padding-bottom: 3px; 
    }
    .flag-img{
        width: 25px;
    }
    .flag-link{
        margin-left: 10px;
    }
    .nav-links li {
        margin-left: 15px;
    }
}

@media (min-width:0px) and (max-width:950px){
     
    @media (max-width: 768px) {
        .nav-links {
            display: none;
            flex-direction: column;
            background-color: #17282f;
            position: absolute;
            top: 60px;
            right: 20px;
            width: 200px;
            border-radius: 5px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            margin: 10px 0;
        }

        .burger {
            display: flex;
        }
    }
}
/* 583*/
body {
    margin: 0;
    font-family: "ArchyEDT-Bold", sans-serif;
    background-color: #17282f;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #17282f;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.274);
}

.logo-space {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #f4f5ef;
    font-size: 25px;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #b69d74;
}

.flag-img {
    height: 25px;
    border-radius: 5px;
    transition: transform 0.3s, border 0.3s;
}

.flag-link:hover .flag-img {
    transform: scale(1.1);
    border: 2px solid #b69d74;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #f4f5ef;
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 950px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #17282f;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        border-radius: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        padding-left: 20px;
    }
.flag-cont{
    display: flex;
}
.flag-img{
    width: 30px;
    height: auto;
}
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .burger {
        display: flex;
    }

    .burger.active div:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .burger.active div:nth-child(2) {
        opacity: 0;
    }

    .burger.active div:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    .nav-links.active {
        animation: slideIn 0.3s forwards;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (min-width:950px) and (max-width:1200px){
    .logo-space{
        height: 40px;
    }
    .nav-links a {
        font-size: 20px;
        padding-bottom: 3px; 
    }
    .flag-img{
        width: 25px;
    }
    .flag-link{
        margin-left: 10px;
    }
    .nav-links li {
        margin-left: 15px;
    }
}
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .footer-logo img {
        margin-top: 20px;
        width: 290px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.6rem;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .about-me h2 {
        font-size: 2rem;
    }

    .about-me p {
        font-size: 1rem;
    }

    .skills h2 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .skill-item h3 {
        font-size: 2rem;
    }

    .skill-item p {
        font-size: 1.5rem;
    }

    .certificates-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .certificate-item h3 {
        font-size: 1.3rem;
    }

    .certificate-item p {
        font-size: 1rem;
    }
    
}