@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

body {
    background: url('../images/background-image.png') no-repeat center center fixed;
    background-size: cover;
    
}
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 55.7vh;
    margin: 20px;
}

main {
    flex: 1; /* Takes up all the available space */
}

/* ------------------------- HEADER SECTION ------------------------------------------------ */
#header-section {
    position: relative;
    width: 100%;
    height: 60vh;
    background: url('../images/header-image.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    overflow: hidden; /* Ensures animation starts off-screen */
}

/* Dark Overlay for Better Readability */
#header-section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(36, 54, 66, 0.5);
}

/* Ensuring text is properly aligned */
#header-content {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 800px;
}

/* TEXT STYLING */
#header-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    opacity: 0; /* Start hidden */
    transform: translateX(-100%); /* Slide in from the left */
    animation: slideInLeft 1.2s ease-out forwards;
}

#header-section p {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0;
    transform: translateX(100%); /* Slide in from the right */
    animation: slideInRight 1.2s ease-out forwards;
    animation-delay: 0.3s; /* Delayed effect for better sync */
}


/* ANIMATION KEYFRAMES */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*------------------------------------------- About Me Section -----------------------------------------*/
.profile-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the whole section */
    position: relative;
    width: 80%;
    margin: 80px auto; /* Adds space above and centers it */
    flex-wrap: wrap; /* Makes it responsive for smaller screens */
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #1a7260;
    object-fit: cover;
    z-index: 2;
}

.line {
    width: 120px; /* Adjust this for longer/shorter lines */
    height: 2px;
    background-color: #1a7260;
    margin: 0 15px;
}

.text-box {
    border: 2px solid #1a7260;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: rgba(238, 238, 238, 0.5);
    max-width: 500px;
    text-align: center; /* Centers text */
}

hr {
    width: 30%;
    border: 3px solid #387478; 
    margin: 20px auto; /* Centers it */
    display: block; /* Ensures it respects margin */
}

#projects-section h2{
    color: #629584; 
    text-decoration: underline; 
    text-decoration-color: #dbf3e3;
}

li a{
    text-decoration: none;
    color: #52535c;
    font-size: larger;
}

#gallery img{
	width:120px;
	margin:12px 20px;
	-moz-transition: -moz-transform 0.5s ease-in;
	-webkit-transition: -webkit-transform 0.5s ease-in;
	-o-transition: -o-transform 0.5s ease-in;

}

#gallery img:hover{
	-moz-transform: scale(5);
	-webkit-transform: scale(5);
	-o-transform: scale(5);
}

.centre-div {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    text-align: center; /* Centers text */
    flex-direction: column; /* Stacks items vertically */
    background-color: rgba(232, 248, 237, 0.5);
    padding: 5px;
    border-radius: 10px;
}

.text-box a{
    text-decoration: none;
    color: #52535c;
    text-align: left;
}

footer{
    background-color: #243642;

  
}

#contact-page{
    margin: 86px;
}

#contact-page p{
    font-size: larger;
    margin: 5px;
}

#contact-page ul{
    color: #1a7260;
    margin: 10px;
}

#under-construction-items{
    padding: 17px;
    text-align: center;
    background-color: rgba( 232, 248, 237, 0.5);
    border-radius: 17px;
    border: 1px solid #dbf3e3;
    
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .line {
        width: 2px;
        height: 50px;
        margin: 10px 0;
    }
}

@media (max-width: 1024px) {
    #header-section {
        height: 50vh;
    }
    #header-section h1 {
        font-size: 3rem;
    }
    #header-section p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    #header-section {
        height: 45vh;
    }
    #header-section h1 {
        font-size: 2.5rem;
    }
    #header-section p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    #header-section {
        height: 40vh;
        padding: 10px;
    }
    #header-section h1 {
        font-size: 2rem;
    }
    #header-section p {
        font-size: 1rem;
    }
}
