/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #6599C9;
    --dark-blue: #5588B8;
    --light-blue: #77AADD;
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Logo */
.logo-container {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.logo {
    max-width: 200px;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* Typography */
.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--gray-300);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Contact info */
.contact-info {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    text-align: center;
}

.email-contact {
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.email-link {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(101, 153, 201, 0.1);
    border: 1px solid rgba(101, 153, 201, 0.2);
}

.email-link:hover {
    color: var(--light-blue);
    background-color: rgba(101, 153, 201, 0.15);
    border-color: rgba(101, 153, 201, 0.3);
    transform: translateY(-1px);
}

.email-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--gray-700);
    border-radius: 8px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: var(--gray-900);
}

.social-link-inline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(101, 153, 201, 0.2);
}

.social-link-inline:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Background pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-blue) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--primary-blue) 0%, transparent 50%);
    background-size: 100px 100px;
    animation: subtleFloat 60s ease-in-out infinite;
}

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

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.03;
    }
    25% {
        transform: translateY(-3px) translateX(2px);
        opacity: 0.025;
    }
    50% {
        transform: translateY(-5px) translateX(-1px);
        opacity: 0.02;
    }
    75% {
        transform: translateY(-2px) translateX(-3px);
        opacity: 0.025;
    }
}


/* Success message styles */
.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-weight: 500;
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .subtitle {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .logo {
        filter: brightness(0) invert(1);
    }
    
    .email-link {
        border-color: var(--white);
    }
    
    .social-link-inline {
        border-color: var(--white);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-pattern {
        animation: none;
    }
}
