/* ==========================================================================
   HOME PAGE SPECIFIC STYLES
   --------------------------------------------------------------------------
   Applies to: index.html ONLY
   Contains: Layout grids for the full-screen landing area, title text placement, 
             the circular profile picture, and social media icon animations.
   ========================================================================== */

/* Main landing header container */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-color: rgba(51, 49, 49, 0.481);
    background-position: center;
    background-size: cover;
    position: relative;
    text-align: center;
}

/* --- Title Layout Blocks --- */
.text-box {
    position: absolute;
    top: 29%;                 /* Controls vertical position of the name block */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: white;
}

.text-box h1 {
    font-size: 2.0rem;        /* UPDATED: Shrunk to match original small name size */
    font-weight: 700;
    color: #ffffff;
    margin-top: 40px;         /* UPDATED: Reduced from 90px to pull text up and close the gap */
    transition: all 0.3s ease;
}

.text-box p {
    margin: 10px 0 20px;      /* UPDATED: Reduced from 40px to tighten up space below subtext */
    font-size: 13px;          /* UPDATED: Shrunk slightly to match original clean look */
}

/* --- Image & Paragraph Layout Blocks --- */
.image-container {
    position: absolute;
    top: 50%;                 /* UPDATED: Changed from 51% to pull the image container up cleanly */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;         /* UPDATED: Tighter top spacing */
}

.circular-image {
    width: 120px;             /* UPDATED: Reduced from 150px to bring back your original small profile size */
    height: 120px;            /* UPDATED: Matched height to width perfectly */
    background: url('images/myphoto.jpg') no-repeat center/contain;
    border-radius: 50%;
    margin-top: 60px;         /* UPDATED: Reduced from 105px to completely fix the blank space issue */
}

.image-container p {
    color: white;
}

/* Text formatting for the introduction sentences */
.profile-text {
    margin: 0;
    font-size: 0.9rem;        /* UPDATED: Shrunk text to clean up intro description size */
    font-weight: bold;
    color: #ffffff; 
    transition: all 0.3s ease;
}

/* --- Social Network Links --- */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 8px;          /* UPDATED: Tighter gap under the description */
}

.social-icons a {
    display: inline-block;
}

.social-icon {
    width: 35px;              /* UPDATED: Reduced from 45px to keep icons small and crisp */
    height: auto;
    margin: 0 8px;            /* UPDATED: Slightly narrowed the gaps between individual icons */
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   Home Page Media Queries (Mobile & Tablet Optimization)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Shrink layout targets for mobile phones --- */
    .text-box h1 {
        font-size: 1.4rem;    /* UPDATED: Balanced for small screens */
    }

    .image-container {
        padding: 0 15px;
        margin-top: 15px;
        text-align: center;
    }

    .profile-text {
        font-size: 0.85rem;   /* UPDATED: Balanced readable size for mobile */
    }

    .social-icons {
        margin-top: 15px;
    }

    .circular-image {
        width: 100px;         /* UPDATED: Scaled down proportionally for mobile viewports */
        height: 100px;        /* UPDATED: Matched height to width */
        margin-top: 50px;     /* UPDATED: Balanced top spacing */
    }
}

@media (min-width: 768px) {
    /* --- Shrink layout targets for tablet screens --- */
    .text-box h1 {
        font-size: 2.0rem;    /* UPDATED: Matched your desktop base size */
    }

    .image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .profile-text {
        font-size: 1.1rem;    /* UPDATED: Scaled clean tablet text size */
        margin-top: 8px;
    }
}

@media (min-width: 1024px) {
    /* --- Shrink layout targets for wide desktop screens --- */
    .text-box h1 {
        font-size: 2.4rem;    /* UPDATED: Kept large screens under control so it doesn't get massive */
    }
}