/* Existing universal box sizing */
* {
    box-sizing: border-box;
}

/* Merged body styles */
body {
    margin: 0;
    font-family: 'Quicksand', 'Segoe UI', sans-serif; /* merged fonts */
    background: url('/resources/landingpage/abbackground.webp') no-repeat center center fixed;
    background-size: cover;
    color: #fff; /* from contact page */
    display: flex;
    flex-direction: column; /* from contact page */
    align-items: center; /* from contact page */
    justify-content: center; /* from contact page */
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* Existing splash screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Main content */
#main-content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-in, visibility 1s ease-in;
    opacity: 0;
    visibility: hidden;
}

/* Rain animation and container (existing) */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.raindrop {
    position: absolute;
    background-color: rgba(173, 216, 230, 0.8);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform-origin: top center;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-50px) var(--raindrop-skew-initial, skewX(0deg)) var(--raindrop-x-offset-initial, translateX(0px));
        opacity: 1;
    }
    to {
        transform: translateY(100vh) var(--raindrop-skew, skewX(0deg)) var(--raindrop-x-offset, translateX(0px));
        opacity: 0.3;
    }
}

/* Merged contact page glass card style */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(255, 122, 198, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px;
}

/* Typewriter heading style */
.typewriter {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ff7ac6;
    text-shadow: 0 0 10px #ff7ac6;
    margin-bottom: 25px;
    display: inline-block;
    border-right: 3px solid #ff7ac6;
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    min-height: 4rem;
}

/* Contact links */
.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    cursor: pointer;
    position: relative;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contact-link img {
    height: 24px;
    width: 24px;
    margin-right: 12px;
}

/* Home link */
a.home-link {
    display: inline-block;
    color: #ff7ac6;
    text-decoration: none;
    margin-top: 30px;
    font-weight: bold;
}

a.home-link:hover {
    text-decoration: underline;
}

/* Copied notification style */
.copied {
    position: absolute;
    right: 15px;
    background: #ff7ac6;
    color: #1e1e2f;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copied.show {
    opacity: 1;
}

/* Existing glass container (keep for other usages) */
.glass-container {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: -20px;
    border: 3px solid #3A6DA0;
    box-shadow: 0 0 15px rgba(41, 76, 112, 0.7);
}

.tagline-text {
    color: white;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}

.location-text {
    color: white;
    font-size: 1.2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pin-icon {
    width: 20px;
    height: auto;
}

.links-container {
    width: 100%;
    position: relative;
}

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.social-buttons.hidden {
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.social-buttons.visible {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.social-buttons a {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex: 0 0 auto;
    min-width: 200px;
}

.social-buttons a:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.social-buttons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.toggle-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.toggle-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rainbow-text-fill {
    background-size: 400% 400%;
    background-image: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red, violet);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 5s linear infinite;
}

.birthday-button {
    animation: subtle-color-change 3s ease-in-out infinite alternate,
                subtle-pulse 2s ease-in-out infinite alternate;
    border: 1px solid rgba(255, 105, 180, 0.5);
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

@keyframes subtle-color-change {
    0% { background-color: rgba(255, 105, 180, 0.2); }
    100% { background-color: rgba(173, 216, 230, 0.2); }
}

@keyframes subtle-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    box-sizing: border-box;
    z-index: 1;
    flex-wrap: wrap;
}

.current-time,
.current-time-de {
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.current-time img,
.current-time-de img {
    width: 30px;
    height: 20px;
    display: block;
}

.motd {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    animation: pulse 2s infinite alternate;
    max-width: 50%;
    word-wrap: break-word;
    color: white;
}

@keyframes pulse {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

@media (min-width: 601px) {
    .header-container {
        flex-wrap: nowrap;
    }

    .current-time {
        text-align: left;
    }

    .current-time-de {
        margin-left: 10px;
    }

    .motd {
        text-align: right;
        margin-left: auto;
        margin-right: 0;
    }

    .glass-container {
        margin: auto;
    }

    .social-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        align-items: center;
        padding-top: 120px;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        position: static;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .current-time,
    .current-time-de {
        font-size: 16px;
        position: static;
        margin: 5px auto;
        padding: 8px;
        max-width: fit-content;
    }

    .current-time-de {
        margin-left: 0;
    }

    .motd {
        font-size: 14px;
        width: 95%;
        max-width: none;
        position: static;
        margin: 10px auto;
        padding: 10px;
        text-align: center;
        box-sizing: border-box;
    }

    .glass-container {
        padding: 10px;
        width: 100%;
        margin-top: 0;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .social-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .social-buttons a {
        justify-content: center;
        min-width: 0;
    }
}

.typing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-bottom: 10px;
}

.typing-text {
    font-size: 34px;
    font-weight: bold;
    overflow: hidden;
    display: inline-block;
    color: #3A6DA0;
    text-shadow:
        0 0 5px #3A6DA0,
        0 0 10px rgb(36, 66, 97),
        0 0 15px rgba(25, 47, 68, 0.51);
}

.cursor {
    font-size: 34px;
    font-weight: bold;
    color: #3A6DA0;
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
    margin-left: 0.05em;
    position: relative;
    z-index: 1;
}

@keyframes blink-caret {
    from, to { color: transparent; }
    50% { color: #3A6DA0; }
}