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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
}

/* Watermark implementation */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../assets/img/vaalea_logo_nimella.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

/* Subtle float animation */
@keyframes float {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.02); 
    }
}

body::before {
    animation: float 20s ease-in-out infinite;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: #053344;
    background: linear-gradient(135deg, #053344 0%, #0a5c7a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

h1:hover {
    background: linear-gradient(135deg, #0a5c7a 0%, #12789c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    transform: translateX(2px);
    letter-spacing: 0px;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    display: inline-block;
}

.tagline::after {
    content: '_';
    position: absolute;
    right: -12px;
    animation: blink 1.2s infinite;
    color: #0a5c7a;
    font-weight: bold;
}

.intro {
    margin-bottom: 3rem;
}

.intro p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.contact a {
    color: #053344;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    border-bottom: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

.contact a:hover {
    border-bottom-color: #053344;
    letter-spacing: 0.5px;
    transform: scale(1.02) translateY(-1px);
    color: #0a5c7a;
}

footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: #999;
    font-family: 'Courier New', Courier, monospace;
}

/* Responsive watermark sizing - Desktop */
@media (min-width: 1024px) {
    body::before {
        width: 500px;
        height: 500px;
    }
}

/* Responsive watermark sizing - Tablet */
@media (max-width: 1024px) {
    body::before {
        width: 350px;
        height: 350px;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    body {
        padding: 1.5rem;
    }
    
    /* Mobile watermark */
    body::before {
        width: 250px;
        height: 250px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .contact a {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Staggered fade-in animations */
main {
    animation: fadeIn 0.8s ease;
}

header {
    animation: fadeIn 0.6s ease;
}

.intro {
    animation: fadeIn 0.8s ease 0.2s both;
}

.contact {
    animation: fadeIn 0.8s ease 0.4s both;
}

footer {
    animation: fadeIn 0.8s ease 0.6s both;
    transition: all 0.3s ease;
}

footer:hover {
    opacity: 0.7;
    transform: scale(1.01);
}

/* Interactive watermark on hover - removed since image has its own opacity */

/* Accessibility - Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .tagline::after {
        animation: none;
        opacity: 1;
    }
    
    body::before {
        animation: none;
    }
}