/* Reset styles and apply box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset some default browser styles */
body, h1, p, a {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    background: url('assets/img/OPI_5532\(horizontal\).JPG') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure the body covers full viewport */
    margin: 0;
    padding: 0; /* Remove padding */
}

.container {
    display: flex;
    flex-direction: row;
    gap: 5%;
    max-width: 80%;
    height: 540px;
    text-align: center;
    background: #262a3140; /* Semi-transparent white */
    backdrop-filter: blur(10px) saturate(150%); /* Blurred background effect */
    -webkit-backdrop-filter: blur(10px) saturate(150%); /* Safari support */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile {
    margin-bottom: 60%;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ffffff80; /* Subtle outline */
}

h1 {
    font-size: 24px;
    color: #fff;
}

h2 {
    font-size: 14px;
}

p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    margin-top: 5px;
}

.icon {
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.icon-gmail {
    width: 20px;
}

.icon-djaduman {
    height: 24px;
}

.links {
    padding-top: 4.5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-button {
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    gap: 10px; /* Space between the icon and text */
    background: rgba(17, 25, 40, 0.25); /* Semi-transparent white for buttons */
    color: #fff;
    padding: 10px 62px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: medium;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.4); /* Brighter hover effect */
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.map-container {
    position: absolute;
    z-index: -1;
    top: 42%;
    left: 18%;
    max-width: 35%;
    aspect-ratio: 16 / 9;
    margin-top: 2%;
    text-align: center;
    background: rgba(38, 42, 49, 0.25); /* Semi-transparent background */
    backdrop-filter: blur(10px) saturate(150%); /* Blurred background effect */
    -webkit-backdrop-filter: blur(10px) saturate(150%); /* Safari support */
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%; /* Ensures full width scaling */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
}

.map-container:hover {
    background: rgba(255, 255, 255, 0.4); /* Brighter hover effect */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.map-container h2 {
    font-size: 18px; /* Adjust font size for responsiveness */
    color: #fff;
    margin-bottom: 15px;
}

.map-container iframe {
    filter: brightness(0.9);
    width: 100%; /* Responsive width */
    height: auto; /* Auto height to maintain aspect ratio */
    aspect-ratio: 16 / 9; /* Keep a wide aspect ratio */
    border: 0;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

iframe:hover {
    filter: brightness(1.05) contrast(1.05);
}

footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

/* Loader styling */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080; /* Adjust to your background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .loader-overlay.hidden {
    display: none;
  }  

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        max-width: 80%;
        height: 480px;
        flex-direction: row;
        gap: 5%;
    }

    .profile {
        max-width: 60%;
    }

    .links {
        padding-top: 2.5%;
    }

    .map-container {
        margin-top: 6%;
        top: 42%;
        left: 15%;
        max-width: 33%;
        aspect-ratio: 4 / 3;
    }

    footer {
        font-size: 10px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 30px;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: center;
        height: fit-content;
    }

    p {
        font-size: 12px;
    }

    .profile {
        max-width: fit-content;
        margin: auto;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .links {
        padding-top: 0;
    }

    .link-button {
        padding: 5px 35px;
    }

    .map-container {
        max-width: 90%;
        left: auto;
        top: auto;
        position: relative;
    }

    footer {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .profile {
        width: auto;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 11px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    .container {
        margin-top: 30px !important; /* Add top spacing */
        margin-bottom: 10px; /* Add bottom spacing */
        max-width: 90%; /* Slightly reduce width for better spacing */
        height: fit-content;
        padding: 15px; /* Ensure padding inside the container */
    }

    .link-button {
        font-size: 11px;
    }

    .map-container {
        height: 40%;
    }

    .map-container iframe {
        aspect-ratio: 16 / 9;
    }

    footer {
        margin-top: 0;
    }
}