body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #F0F0F0;
    color: #fff;
    text-align: center;
    z-index: 10;
    padding: 0.5rem 1rem;
    position: relative;
}

footer {
    background-color: #A9A9A9;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    pointer-events: none;
}

header h1 {
    margin: 0;
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.76);
    display: inline-block;
    opacity: 0;
    animation: fadeInText 2s forwards;
    vertical-align: middle;
}

.logos {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    vertical-align: middle;
}

.logo {
    width: auto;
    height: 50px;
    opacity: 0;
    animation: fadeInLogo 2s forwards;
    animation-delay: 2s;
}

.container {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    background-image: url('../images/homepage.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.split-container {
    display: flex;
    height: 100%;
}

.split {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-attachment: fixed;
    transition: transform 0.5s;
}

.professional::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.personal::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.split:hover::before {
    transform: scale(1.05);
}

.professional::after {
    content: '';
    position: absolute;
    top: 0%;
    right: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255, 255, 255, 0.5);
}

.button-link {
    position: relative;
    z-index: 2;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
    font-size: 1.5rem;
}

.button-link:hover {
    background-color: #fe491ca9;
    transform: scale(1.05);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);;
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    font-size: 1rem;
}

.contact-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLogo {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .professional::after {
        width: 80%;
        height: 2px;
        top: auto;
        bottom: 0;
        left: 10%;
        right: 10%;
    }

    .split::before {
        background-attachment: scroll;
    }

    header h1 {
        font-size: 2rem;
    }

    .logo {
        height: 40px;
    }

    .button-link {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}
