/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    /*background-color: #c1c1c1;*/
    /*color: #333;*/
    line-height: 1.6;
    overflow-x: auto; /* Enable horizontal scrolling when necessary */
    overflow-y: auto; /* Enable horizontal scrolling when necessary */
    /* Combine five images */
    background: 
        url('./photos/cortada_higgs-ww.jpg') no-repeat left,
        url('./photos/cortada_higgs-gg.jpg') no-repeat 25% center,
        url('./photos/cortada_higgs-bb.jpg') no-repeat 50% center,
        url('./photos/cortada_higgs-tt.jpg') no-repeat 75% center,
        url('./photos/cortada_higgs-zz.jpg') no-repeat 100% center;

    /* Individual sizes for each image */
    background-size: 
        20% 100%, /* Image 1 */
        20% 100%, /* Image 2 */
        20% 100%, /* Image 3 */
        20% 100%, /* Image 4 */
        20% 100%; /* Image 5 */
    /* Add transparency with a semi-transparent overlay */
    background-repeat: repeat-y; /* Repeat vertically */
    background-color: rgba(0, 0, 0, 0.1);
    background-blend-mode: overlay;
    height: 100vh; /* Full viewport height */
}

/* Header Section */
.header-title {
    font-size: 52px;
    font-weight: 400; /* Default weight for Yesteryear */
    text-align: center;
    margin: 20px 0;
    color: rgb(0, 0, 0); /* Dark gray with 70% opacity */
    letter-spacing: 3px;
    font-family: 'Meddon', cursive; /* Apply Yesteryear font */
}
/*
.header-title {
    font-size: 56px;
    font-weight: 800;
    text-align: center;
    margin: 20px 0;
    color: rgba(51, 51, 51, 0.9);
    letter-spacing: 2px;
}
*/
/* Divider */
.divider {
    border-bottom: 2px solid #515151;
    margin: 20px auto;
    width: 80%;
}
/* Shadowed line */
.divider.shadow {
    height: 3px;
    background-color: #000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow effect */
}
/* Rounded line */
.divider.rounded {
    height: 5px;
    background-color: #000;
    border-radius: 5px;
}
/* Gradient line */
.divider.gradient {
    background: linear-gradient(to right, #32631f, #c4e1c4); /* Gradient colors */
    height: 4px; /* Make it slightly thicker */
    border: none;
}
.divider.gradient2 {
    background: linear-gradient(to right, #0e0e0e, #bcbdbc); /* Gradient colors */
    height: 4px; /* Make it slightly thicker */
    border: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0); /*#272727;*/
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0);
}

.navbar a {
    text-decoration: none;
    font-size: 16px;
    font-weight:  500;
    color: #030303;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navbar a:hover {
    background-color: #fdff87;
    transform: scale(1.5);
}

.navbar a img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Content Section */
.content {
    display: grid;
    grid-template-rows: 1fr auto; /* Two rows: one for image and one for clock/weather */
    grid-template-columns: 300px 1fr; /* Two columns: left for image/clock/weather, right for text */
    gap: 220px;
    row-gap: 20px; /* Specifically adds vertical spacing between rows */
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    text-align: center; 
    justify-content: center;
    align-items: center;
    overflow-x: auto; /* Enable horizontal scrolling when necessary */
    overflow-y: auto; /* Enable horizontal scrolling when necessary */
}

/* Image on the Top Left */
.image-placeholder {
    grid-row: 1 / 2; /* Place it in the first row */
    grid-column: 1 / 2; /* Place it in the first column */
    background-color: #c1c1c1;
    height: 250px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #6c757d;
    font-weight: bold;
    margin-left: 70px; /* Adjust this value to move the image to the right */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}

/* Clock and Weather on the Bottom Left */
.info-section {
    grid-row: 2 / 3; /* Place it in the second row */
    grid-column: 1 / 2; /* Place it in the first column */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #eaeaea;
    border-radius: 150px;
    padding: 20px 2px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    gap: 1px; /* Reduce vertical gap */
    transform: translateX(70px); /* Move it slightly to the right */
}

.info-section #current-date {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
    margin-bottom: 1px;
}

.info-section #clock {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 1px;
}

.info-section #city-country {
    font-size: 18px;
    color: #333;
    margin-bottom: 0; /* Reduced space between clock and city */
}

.info-section #weather {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 0;
}

/* Text on the Full Right */
.text-placeholder {
    grid-row: 1 / 3; /* Span both rows */
    grid-column: 2 / 3; /* Place it in the second column */
    background-color: rgb(234, 234, 234);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    font-family: 'Square Peg', cursive;
    font-size: 21px;
    overflow-x: auto; /* Enable horizontal scrolling when necessary */
    overflow-y: auto; /* Enable horizontal scrolling when necessary */
}

/* Footer */
.footer {
    background-color: #272727;
    color: #fff;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #9a8c98;
}

.about-placeholder {
    display: flex;
    flex-direction: column;  /* Stack paragraphs vertically */
    background-color: #d5d4d4;
    padding: 2% 2%; /* Adjust padding dynamically */
    margin: 5% auto;
    border-radius: 1rem; /* Use rem for scaling */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Square Peg', cursive;
    font-size: 1.5rem;
    align-items: center;  /* Center items vertically */
    justify-content: center;  /* Center items horizontally */
    gap: 0.2rem;
    width: 90%; /* Dynamic width */
    max-width: 90vw; /* Prevent overflow beyond the viewport */
    min-width: 300px; /* Maintain readability on small screens */
    text-align: center; /* Center align the text */
    box-sizing: border-box; /* Include padding and borders in dimensions */
}


.contact-placeholder {
    display: flex;
    flex-direction: column;  /* Stack paragraphs vertically */
    background-color: rgba(234, 234, 234, 0.7);
    padding: 2% 2%; /* Adjust padding dynamically */
    margin: 5% auto;
    border-radius: 1rem; /* Use rem for scaling */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    font-family: 'Square Peg', cursive;
    font-size: 1.5rem;
    align-items: center;  /* Center items vertically */
    justify-content: center;  /* Center items horizontally */
    gap: 0.2rem;
    width: 80%; /* Dynamic width */
    max-width: 90vw; /* Prevent overflow beyond the viewport */
    min-width: 300px; /* Maintain readability on small screens */
    text-align: center; /* Center align the text */
    box-sizing: border-box; /* Include padding and borders in dimensions */
}

.contact-placeholder > * {
    flex-shrink: 0; /* Prevent shrinking of children */
    max-width: 100%; /* Prevent overflowing content */
}

.contact-placeholder p {
    /*font-weight: bold; */
    font-size: 24px;     /* Larger font size for the paragraphs */
    margin: 2px 0;       /* Reduced vertical space between the paragraphs */
}

.email-icon {
    width: 32px; /* Adjust size as needed */
    height: 32px;
    display: block; /* Center the icon vertically */
}

.github-icon {
    width: 35px; /* Adjust size as needed */
    height: 35px;
    display: block; /* Center the icon vertically */
}

.social-icons {
    display: flex; /* Makes children align in a row */
    justify-content: center; /* Centers icons horizontally */
    gap: 15px; /* Space between icons */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.social-icons a {
    display: inline-block; /* Ensures links behave properly */
}

.icon {
    width: 32px; /* Adjust size as needed */
    height: 32px;
    transition: transform 0.3s ease; /* Smooth hover animation */
}

.icon:hover {
    content: attr(alt);
    transform: scale(3.0); /* Slightly enlarge icon on hover */
}

.link-icon {
    width: 22px; /* Adjust size as needed */
    height: 18px;
}
.link-icon a {
    display: inline-block; /* Ensures links behave properly */
}

.indico-icon {
    width: 24px; /* Adjust size as needed */
    height: 14px;
}
.indico-icon a {
    display: inline-block; /* Ensures links behave properly */
}

.dp-placeholder {
    background-color: rgba(0, 0, 0, 0.0)
    height: 300px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #6c757d;
    font-weight: bold;
    margin: 50px 0;
    margin-right: 50px;
}


.links-placeholder {
    display: flex;
    flex-direction: column;  /* Stack paragraphs vertically */
    background-color: rgba(234, 234, 234, 0.7);
    padding: 2% 2%; /* Adjust padding dynamically */
    margin: 5% auto;
    border-radius: 1rem; /* Use rem for scaling */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    font-family: 'Square Peg', cursive;
    font-size: 1.5rem;
    align-items: flex-start;  /* Center items vertically */
    justify-content: center;  /* Center items horizontally */
    gap: 0.2rem;
    width: 80%; /* Dynamic width */
    max-width: 90vw; /* Prevent overflow beyond the viewport */
    min-width: 300px; /* Maintain readability on small screens */
    text-align: center; /* Center align the text */
    box-sizing: border-box; /* Include padding and borders in dimensions */
}

.links-placeholder > * {
    flex-shrink: 0; /* Prevent shrinking of children */
    max-width: 100%; /* Prevent overflowing content */
}

.links-placeholder p {
    /*font-weight: bold; */
    font-size: 24px;     /* Larger font size for the paragraphs */
    margin: 2px 0;       /* Reduced vertical space between the paragraphs */
}

.preview-link {
    position: relative;
    text-decoration: none;
    color: blue;
}

/* Style for the preview box */
.preview-box {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    height: 250px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    z-index: 1;
    overflow: hidden;
}

#pdf-preview {
    width: 100%;
    height: 100%;
}

/* Optional styling for the link */
.preview-link {
    cursor: pointer;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px;
    gap: 25px;
}
.gallery a {
    text-decoration: none;
}
.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.gallery img:hover {
    transform: scale(1.5);
}


.gallery2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 140px;
    gap: 20px;
}
.gallery2 a {
    text-decoration: none;
}
.gallery2 img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 1px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    /*transition: transform 0.2s;*/
    transition: transform 0.3s ease, z-index 0s, opacity 0s;
    cursor: pointer;
    position: relative;
}
.gallery2 img:hover {
    transform: scale();
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.5);
    z-index: 1000;
}
/* Optional: Ensure parent containers allow overflow */
.container {
    overflow-x: auto;
    overflow: visible; /* Ensure content can overflow this container */
}