/* General Setup */
body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0; 
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Navigation Bar */
nav {
    background-color: #2c3e50;
    padding: 1rem 0;
    text-align: center;
}
nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    font-weight: bold;
}
nav a:hover {
    color: #2c3e50;
}

/* Page Containers */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Home Page */
.profile-section {
    text-align: center;
}
.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c3e50;
}

/* Photo Galleries (Travel & Events) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.gallery-card {
    background: rgb(232, 232, 232);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.gallery-card .caption {
    padding: 1px;
    text-align: center;
}

/* Project Categories */
.category {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.category h2 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}
.category ul {
    list-style-type: none;
    padding: 0;
}
.category li {
    margin: 10px 0;
}
.category a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
}
.category a:hover {
    text-decoration: underline;
}

/* Project Sub-Page Files */
.file-link {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
    margin-top: 10px;
}
.file-link:hover {
    background: #2980b9;
}

/* PDF Preview Grid */
.pdf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.pdf-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.pdf-preview {
    width: 100%;
    height: 400px; /* This controls how tall the preview is */
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 4x4 Image Grid */
.grid-4x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces exactly 4 columns */
    gap: 20px; /* Space between images */
    margin-top: 30px;
    margin-bottom: 30px;
}
.grid-4x4 img {
    width: 100%;
    /* We use an aspect ratio to make them all perfect squares. 
       If your images are rectangles and you don't want them cropped, delete the next 2 lines */
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease-in-out; /* Optional: adds a smooth effect */
}

/* Optional: Makes the image pop out slightly when you hover over it */
.grid-4x4 img:hover {
    transform: scale(1.03);
}

/* Responsive design for tablets and phones */
@media (max-width: 800px) {
    .grid-4x4 {
        grid-template-columns: repeat(2, 1fr); /* Changes to 2 columns on small screens */
    }
}

/* 1x3 Vertical Image Layout */
.vertical-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Creates a large space between each photo */
    margin-top: 40px;
    margin-bottom: 50px;
}

.vertical-gallery img {
    width: 100%; /* Forces the image to fill the container width */
    height: auto; /* Keeps the natural landscape proportions */
    border-radius: 8px; /* Optional: keeps the corners slightly rounded to match your theme */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Adds a nice shadow to make the photos pop */
}

/* Presentation / Slideshow Vertical Layout */
.presentation-gallery {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the images on the page */
    gap: 50px; /* Adds nice breathing room between each slide */
    margin-top: 40px;
    margin-bottom: 50px;
}

.presentation-gallery img {
    width: 85%; /* Makes the slide take up a little less than the whole container */
    max-width: 850px; /* Prevents it from getting absurdly huge on massive desktop monitors */
    height: auto;
    border: 1px solid #ddd; /* Adds a subtle outline like a real slide */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* Adds a shadow to make the slide pop */
    border-radius: 4px;
}

/* Storyboard Grid Layout */
.storyboard-grid {
    display: grid;
    /* Auto-fit will automatically create columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.storyboard-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer; /* Changes the mouse to a pointing hand to indicate it is clickable */
    transition: transform 0.2s ease-in-out;
}

.storyboard-grid img:hover {
    transform: scale(1.03); /* Slight zoom when hovering */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Lightbox (Popup for clicking images) */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Puts it on top of everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 95%; /* Maximizes the size so text is easy to read */
    max-height: 95%;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #ccc;
}

/*Professional Collage */
.hero-collage-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
}
.hero-text {
    flex: 1;
    text-align: left;
}
.hero-images {
    flex: 1;
    position: relative;
    max-width: 400px;
    height: 450px;
}
.main-portrait {
    width: 80%;
    height: 90%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    position: absolute;
    right: 20px;
    top: 0;
}
.overlap-1 {
    width: 45%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid #2c3e50; /* Matches background color to create a cutout effect */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}
.overlap-2 {
    width: 40%;
    aspect-ratio: 4/3; /* <-- changed this from -4/4 */
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid #2c3e50;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    position: absolute;
    top: 40px;
    left: -60px; /* <-- changed this from -20px to -60px */
    z-index: 2;
}

/* Mobile Fix */
@media (max-width: 800px) {
    .hero-collage-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text { text-align: center; }
    .hero-images { margin-top: 30px; height: 350px; }
}
/* --- TYPEWRITER & FADE-IN ANIMATIONS --- */
/* Typing text container (No cursor) */
#typewriter {
    min-height: 40px; /* Prevents the page from jumping before the text types out */
    margin-bottom: 20px;
}

/* Fades in the paragraph and button gracefully */
.fade-in-content {
    opacity: 0;
    transform: translateY(15px); /* Starts slightly lower for a "float up" effect */
    /* The '1.5s' delay forces it to wait for the typing to finish first! */
    animation: fadeUp 1s ease-out 1.5s forwards; 
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}