* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(180deg, #3693AC 25%, #8802BD 75%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #a8edea 25%, #d4b3ff 75%);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 100px; /* Fixed height for the header */
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 80px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Active state for current page */
nav a[href="index.html"].active,
nav a[href^="./"]:not([href*="index.html"]):not([href*="#"]):not([href*="mailto:"]):not([href*="tel:"]):not([href*="http"]) {
    background: #333;
    color: white;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.welcome-message {
    position: relative;
    background: white;
    padding: 4.5rem 2.5rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    text-align: center;
    margin: 90px auto 0; /* Center horizontally and add top margin */
}

.logo-centered {
    position: absolute;
    top: -90px; /* Half of logo height */
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 2;
}

.logo-centered .logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-centered:hover .logo {
    transform: scale(1.05);
}

.welcome-message h1 {
    color: #555;
    margin: 1rem 0 1.5rem;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.welcome-message p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.email-link {
    color: #5b5bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #3a3aff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex: unset;
    }
    
    .welcome-message {
        padding: 4.5rem 1.5rem 1.5rem;
        margin-top: 60px;
    }
    
    .logo-centered {
        width: 150px;
        height: 150px;
        top: -75px; /* Half of mobile logo height */
    }
    
    .welcome-message h1 {
        font-size: 1.5rem;
        margin: 0.5rem 0 1rem;
    }
    
    .logo-centered .logo {
        max-height: 100px;
    }
}

footer {
    text-align: center;
    padding: 1rem;
    background: #f4f4f4;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
}

.back-to-top::after {
    content: '↑';
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    .logo {
        margin-bottom: 1rem;
    }
    nav ul {
        gap: 1.5rem;
    }
    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 20px;
        right: 20px;
    }
}
