/* Base Styling */
.wrapper {
    background-color: #f4f4f9;
    width: 1200px;
    border: 1px solid #ced4de;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
}
body {
    background: linear-gradient(to bottom, #e0fbfc, #98c1d9); /* Light gradient for professionalism */
    font-family: 'Helvetica', sans-serif; /* Consistent fonts */
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-in-out; /* Smooth adjustments for background changes */
}

.banner {
    background-color: #0077b6;
    width: 100%;
    max-width: 1200px;
    min-height: 80px;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
    color: white;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.content {
    background-color: #edf2f4;
    width: 1100px;
    padding: 20px;
    margin: 20px auto;
    border: 1px solid #ced4de;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.img-container {
    text-align: center;
    margin: 40px auto;
}

/* Updated iframe styling */
iframe {
    width: 100%; /* Allow iframe to resize within its container */
    max-width: 1100px; /* Original width constraint */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    border: 2px solid #ced4de;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

p {
    color: #333;
    font-family: 'Helvetica', sans-serif;
    font-size: 1.3em;
    line-height: 1.6;
    margin: 10px;
    text-align: center;
}
h1{
    color: #B0C4DE; /* Strong contrast */
    font-family: 'Helvetica', sans-serif;
    font-size: 60px;
    margin: 10px;
    transition: all 0.3s ease-in-out;
}
h2 {
    color: #118ab2;
    font-family: 'Helvetica', sans-serif;
    font-size: 1.5em;
    margin: 20px 0;
    text-align: center;
}

h3, h1 {
    text-align: center;
}
h3{
    font-size: 1.5em;
}
.bio h3 {
    text-align: left;
    color: #4b6a8a;
    font-size: 1.2em; /* Slightly smaller font size for bio */
}

.bio{
    text-align: left;
    padding: 10px;
    outline: 2px solid #B0C4DE;
    margin: 10px auto;
}
.link-container{
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}

.header-container{}


/* 3d box layout
/* Styling for the 3D Modeling + Animation box */
.modeling-animation-box {
    background-image: url('Modeling_img.jpg'); 
    background-size: cover; /* Ensure the image fills the box */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; 
    color: white; /* Keep text color white for contrast */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Strong shadow for visibility */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    font-size: 2em; 
    font-weight: bold; 
    border-radius: 15px; /
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover animations */
    position: relative; /* Positioned relative for the overlay effect */
    overflow: hidden; /* Ensure overlay stays within the box boundaries */
}

/* Stronger dimming via overlay */
.modeling-animation-box::after {
    content: ""; /* Pseudo-element for the dimming overlay */
    position: absolute; /* Positioned over the content */
    top: 0;
    left: 0;
    width: 100%; /* Covers the entire box */
    height: 100%; /* Covers the entire box */
    background-color: rgba(0, 0, 0, 0.3); /* Stronger dimming (0.6 opacity black) */
    z-index: 1; /* Ensure overlay is below the text */
}

/* Ensure text is above the overlay */
.modeling-animation-box h3 {
    position: relative; /* Relative positioning keeps text above overlay */
    z-index: 2; /* Places text on top of overlay */
}

/* Hover effect for the modeling-animation box */
.modeling-animation-box:hover {
    transform: scale(1.05); /* Slightly enlarge the box on hover */
    box-shadow: 0 0 30px 10px rgba(0, 123, 191, 0.9); /* Add a glow effect on hover */
}


/* Styling for Programming box */
.programming-box {
    background-image: url('Asteroids.png');
    background-size: 100% 101%; /* Ensure the image fills the box */
    background-position: left center; /* Center the background image */
    background-repeat: no-repeat;
    color: white; /* Keep text color white for contrast */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Strong shadow for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    border-radius: 15px; /
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover animations */
    position: relative; /* Positioned relative for the overlay effect */
    overflow: hidden; /* Ensure overlay stays within the box boundaries */
}

/* Stronger dimming via overlay */
.programming-box::after {
    content: ""; /* Pseudo-element for the dimming overlay */
    position: absolute; /* Positioned over the content */
    top: 0;
    left: 0;
    width: 100%; /* Covers the entire box */
    height: 100%; /* Covers the entire box */
    background-color: rgba(0, 0, 0, 0.1); /* Stronger dimming (0.6 opacity black) */
    z-index: 1; /* Ensure overlay is below the text */
}

/* Ensure text is above the overlay */
.programming-box h3 {
    position: relative; /* Relative positioning keeps text above overlay */
    z-index: 2; /* Places text on top of overlay */
}

/* Hover effect for the modeling-animation box */
.programming-box:hover {
    transform: scale(1.05); /* Slightly enlarge the box on hover */
    box-shadow: 0 0 30px 10px rgba(0, 123, 191, 0.9); /* Add a glow effect on hover */
}


/* Responsive Design for iPhones (max-width: 480px) */
@media (max-device-width: 480px) {
    body, html {
        height: auto; /* Allow the content to dictate height */
        min-height: 100%; /* Ensure content fills the screen */
        overflow-y: scroll; /* Enable vertical scrolling */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        margin: 0;
        padding: 0;
    }

    .wrapper {
        overflow: auto;
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center align content */
        gap: 30px; /* Add a larger gap between sections */
        padding: 15px; /* Padding for consistency */
        width: 100%; /* Full width for smaller screens */
        min-height: 100%; /* Ensure content covers the full height */
        box-sizing: border-box; /* Include padding in size calculations */
    }

    .banner {
        text-align: center; /* Center align the text */
        font-size: 1.5rem; /* Adjust header text size */
        padding: 15px; /* Add padding inside the banner */
        max-width: 100%; /* Ensure it fits the viewport */
        background-color: #0077b6; /* Add cyan-ish background for the header */
        color: white; /* Make text readable */
        border-radius: 10px; /* Add slightly rounded edges */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    }

    .banner h1 {
        font-size: 1.8rem; /* Adjust `h1` for better readability */
        margin: 0; /* Remove unnecessary margins */
        word-wrap: break-word; /* Prevent long text from overflowing */
    }

    .link-container {
        flex-direction: column; /* Stack portrait and links vertically */
        gap: 30px; /* Add spacing between sections */
        padding: 10px; /* Adjust padding for mobile */
        max-width: 100%; /* Ensure it doesn’t overflow */
    }

    .headshot-container {
        text-align: center;
    }

    .headshot-container img {
        width: 80%; /* Reduce to fit within mobile screens */
        max-width: 400px; /* A square size for the headshot */
        aspect-ratio: 1 / 1; /* Ensure it remains square */
        border-radius: 10px; /* Slight rounding for softer edges */
        margin-bottom: 20px; /* Add space below the image */
        border: 4px solid #0077b6; /* Add a border for visual appeal */
        object-fit: cover; /* Ensure the image covers the square box */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    }

    .headshot-container h2 {
        font-size: 1rem; /* Adjust name size */
        text-align: center; /* Center-aligned for better layout */
        margin: 10px 0; /* Space between name and bio */
    }

    .bio h3 {
        font-size: 0.9rem; /* Make bio text slightly smaller */
        text-align: center;
        margin: 5px 0; /* Space between bio lines */
    }

    .portfolio-links {
        flex-direction: column; /* Stack for small screens */
        gap: 20px; /* Add spacing around portfolio links */
        align-items: center;
    }

    .link-box {
        width: 80%; /* Match width of the portrait */
        max-width: 250px; /* Same max width as portrait */
        aspect-ratio: 1/1; /* Forces the box to stay square */
        padding: 10px; /* Adjust padding for better spacing */
        border-radius: 10px; /* Match portrait corners */
        text-align: center; /* Keep contents centered */
        display: flex;
        flex-direction: column; /* Align things vertically */
        justify-content: center; /* Center contents inside the box */
        align-items: center; /* Center horizontally */
        background-color: #0077b6; /* Box background color */
        color: white; /* Text color */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow */
        transition: transform 0.3s ease, background-color 0.3s ease;
    }


    .link-box:hover {
        background-color: #005f8c; /* Slightly darker background on hover */
        transform: scale(1.05); /* Slight scale-up on hover for interactivity */
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
    }

    .link-box h3 {
        font-size: 1.2rem; /* Make text inside the link box readable */
    }

    .resume-link {
        left: 90px;
        display: inline-block;
        position: relative;
        justify-content: center; /* Vertically center in case of larger containers */
        text-align: center; /* Ensure text alignment */
        padding: 10px 20px;
        margin: 0 auto; /* Center the entire link horizontally on the screen */
    }

    .resume-icon {
        position: relative; /* Allows offset adjustments */
        top: 10px; /* Moves the icon down 20px */
    }

    .resume-link:hover {
        background-color: #0077b6; /* Cyan background on hover */
        color: white; /* White text on hover */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
        border-color: #005f8c; /* Darker border on hover */
    }
}


/* Style for Resume Link */
.resume-link {
    width: 124px;
    height: 24px;
    display: inline-flex; /* Makes the link and icon inline-flex for alignment */
    align-items: center; /* Vertically align text and icon */
    text-decoration: none; /* Remove link underline */
    color: #0077b6; /* The cyan-blue text color matching the theme */
    font-weight: bold; /* Make the text bold */
    font-size: 1.2em; /* Slightly larger font size for emphasis */
    gap: 8px; /* Space between the icon and text */
    padding: 10px;
    border: 2px solid #0077b6; /* Add a border matching the theme */
    border-radius: 8px; /* Slight rounding for softer look */
    transition: all 0.3s ease-in-out; /* Add smooth animations for hover effects */
}

.resume-link:hover {
    background-color: #0077b6; /* Cyan background on hover */
    color: white; /* White text on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    border-color: #005f8c; /* Darker border on hover */
}

.resume-icon {
    max-height: 32px; /* Reasonable size for the icon */
    max-width: 32px; /* Keep it square */
    margin: 0;
    padding: 0;
}
