/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* Header (Restored to Original Full Height) */
header {
    background: url('header.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
    padding: 100px 20px;
    color: black;
    font-size: 36px;
    font-weight: bold;
}

/* Ensure all pages have the same header size */
header h1 {
    margin: 0;
    font-size: 42px;
}

/* Navigation Bar */
nav {
    background: #222;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FFD700;
}

/* Page Layout with Correct Margins */
section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 50px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Home Page Layout - Horizontal */
.main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 80px auto;
    padding: 50px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.profile img {
    width: 250px;
    border-radius: 10px;
    margin-right: 40px;
}

.intro {
    max-width: 500px;
    margin-right: 50px;
}

.contact-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    flex-grow: 1;
}

.contact-form h3 {
    margin-bottom: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background: #004488;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background: #002a66;
}

/* Personal Life Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust image layout to ensure proper alignment */
.hover-box {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure images fill the box while maintaining aspect ratio */
.hover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.hover-box:hover img {
    transform: scale(1.05);
}

/* Full Shadow Effect on Hover */
.hover-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-box:hover::before {
    opacity: 1;
}

/* Centered Text with Full Shadow */
.hover-box p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: white;
    text-align: center;
    padding: 15px;
    margin: 0;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.6); /* Full overlay shadow effect */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.hover-box:hover p {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        text-align: center;
    }

    .profile img {
        margin-bottom: 20px;
    }

    .contact-form {
        max-width: 100%;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        align-items: center;
    }
    
    .hover-box {
        width: 100%;
        height: 300px;
    }
}



