/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #0a192f;
    --color-secondary: #112240;
    --color-accent: #64ffda;
    --color-accent-blue: #57cbff;
    --color-text: #e6f1ff;
    --color-text-muted: #8892b0;
    --color-white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, #0d1f3c 100%);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background Grid */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, 30px) rotate(0.5deg);
    }
}

/* Subtle floating particles effect via pseudo-elements */
.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.background-animation::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-blue) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    animation-delay: -5s;
}

.background-animation::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(-10px, 10px);
    }
    75% {
        transform: translate(15px, 15px);
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Header & Logo */
.header {
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(100, 255, 218, 0.3));
}

/* Content Section */
.content {
    animation: fadeInUp 1s ease-out 0.2s both;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent-blue) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.contact h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.email-link {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: translateX(-101%);
    transition: var(--transition);
    z-index: -1;
}

.email-link:hover {
    color: var(--color-primary);
}

.email-link:hover::before {
    transform: translateX(0);
}

.email-link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Footer */
.footer {
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.location {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.legal {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        gap: 2rem;
    }

    .logo {
        width: 140px;
    }

    .description {
        font-size: 1rem;
    }

    .email-link {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .logo {
        width: 120px;
    }

    .tagline {
        letter-spacing: 0.03em;
    }

    .contact h2 {
        font-size: 0.85rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .grid {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .background-animation {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .logo {
        filter: none;
    }

    h1 {
        background: none;
        -webkit-text-fill-color: black;
        color: black;
    }

    .tagline,
    .email-link,
    .location::before {
        color: black;
    }
}
