body {
    margin: 0;
    height: 100vh;
    
    /* Gradient: Transparent Blue to Black */
    background: linear-gradient(to bottom, #01315f, #000000);
    
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parent1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 60px;
    grid-row-gap: 0px; 
    margin: 50px;
}

.gridSection1 { 
    grid-area: 1 / 1 / 2 / 2; 
    border-radius: 20px;
    /* Ensure the image fits its container */
    width: 100%;
    height: auto;
    object-fit: cover; 

}
.gridSection2 { 
    grid-area: 1 / 2 / 2 / 3; 
    margin-top: 100px;
    color: white;
}

.downloadResume{
    background-color: #01315f;
    border-color: white;
    border-radius: 10px;
    padding: 10px;
    color:  white;
}

/* Photo Grid Home Page */
.masonry-grid {
  column-count: 3; /* Default: 3 columns */
  column-gap: 1rem;
  margin: 50px;
}

.item {
  break-inside: avoid; /* Prevents images from being sliced between columns */
  margin-bottom: 1rem;
}

.item img {
  width: 100%;
  border-radius: 8px;
  display: block; /* Removes tiny gap under images */
}

/* Responsive adjustments for Grid */
@media (max-width: 800px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* --- BUTTON STYLES --- */
.downloadResume {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px; 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; 
    padding: 16px 40px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-right: 15px;
    margin-bottom: 15px;
}

.downloadResume:hover {
    background: dodgerblue;
    border-color: dodgerblue;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 25px rgba(30, 144, 255, 0.6), 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.downloadResume i { transition: transform 0.3s ease; }
.downloadResume:hover i { transform: translateY(3px); }

/* --- NEW RESPONSIVE FIXES FOR HERO SECTION --- */
/* When screen is smaller than 768px (Tablets & Phones) */
@media (max-width: 768px) {

    /* 1. Fix the Hero Section (Bio & Photo) */
    .parent1 {
        display: flex;             /* Switch from Grid to Flexbox for easier stacking */
        flex-direction: column;    /* Stack items vertically */
        margin: 20px;              /* Reduce margin */
        gap: 30px;                 /* Add space between image and text */
    }

    /* Reset grid areas since we aren't using grid on mobile */
    .gridSection1, 
    .gridSection2 {
        grid-area: auto;
        width: 100%;
    }

    /* Remove the huge top margin from the text section on mobile */
    .gridSection2 {
        margin-top: 0; 
        text-align: center; 
    }
    
    /* Make the Resume Button full width centered on mobile */
    .downloadResume {
        display: flex;
        justify-content: center;
        width: auto; 
        margin-right: 0;
    }
}