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

body {
    font-family: 'Instrument Serif', serif;
    background-color: #3A4A5B; /* Dark grey background */
    color: #F4E58C; /* Yellow color for text */
    text-align: center;
    min-height: 100vh; /* Use min-height instead of height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1440px;
    text-align: center;
    position: relative;
    margin: 0 auto; /* Center content */
    padding: 20px; /* Add padding to ensure content doesn't touch edges */
}

header .logo {
    font-size: 28px !important; /* Updated font size for desktop */
    margin-bottom: 20px; /* Adjusted margin */
    line-height: 1.1;
}

/* Wrapper for globe and text */
.globe-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between globe and footer */
}

.globe {
    width: var(--globe-size, 600px); /* Default to 600px, can be customized */
    height: var(--globe-size, 600px); /* Default to 600px, can be customized */
}

.globe img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.globe-wrapper h2 {
    font-size: 120px !important; /* Explicit size for desktop */
    line-height: 1.1;
    position: absolute; /* Position text on top of the globe */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center text */
    margin: 0; /* Remove default margin */
    z-index: 2; /* Ensure text is above the globe */
}

/* Contact link styles */
.contact-link {
    position: absolute;
    top: calc(50% + 120px); /* Adjusted to lower by 30px (previously 80px) */
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    z-index: 2; /* Ensure it's above the globe */
}

.contact-link a {
    color: #F4E58C; /* Yellow color for text */
    text-decoration: none; /* Remove underline */
}

.contact-link a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Social Icons Container */
.social-icons {
    position: absolute; /* Position the container absolutely */
    top: calc(50% + 300px); /* Position it below the globe */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Fine-tune horizontal centering */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.social-icons a {
    display: inline-block; /* Ensure the link wraps around the image */
    transition: transform 0.3s ease; /* Add a hover effect */
}

.social-icons a:hover {
    transform: scale(1.5); /* Slightly enlarge the icon on hover */
}

.social-icons img {
    width: 50px; /* Adjust the size of the LinkedIn icon */
    height: 50px;
    object-fit: contain; /* Ensure the image scales properly */
}

/* Footer */
footer {
    margin-top: 40px; /* Add margin to separate from the globe */
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    header .logo {
        font-size: 28px !important; /* Keep the same size for mobile */
    }

    .globe {
        width: var(--globe-size-mobile, 300px); /* Default to 300px for mobile */
        height: var(--globe-size-mobile, 300px); /* Default to 300px for mobile */
    }

    .globe-wrapper h2 {
        font-size: 60px !important; /* Adjusted size for mobile */
    }

    .contact-link {
        font-size: 18px; /* Smaller font size for mobile */
        top: calc(50% + 70px); /* Adjust position for mobile */
    }

    /* Adjust LinkedIn icon positioning for mobile */
    .social-icons {
        top: calc(370px); /* Adjusted to position it below the globe on mobile */
    }
}