/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* ==========================================================================
   Galaxy Background
   ========================================================================== */

.galaxy-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

/* ==========================================================================
   Galaxy Toggle Button
   ========================================================================== */

.galaxy-toggle {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 100;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 9999px;
    color: var(--cyber-blue, #4FC3F7);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
}

.galaxy-toggle.visible {
    display: flex;
}

.galaxy-toggle:hover {
    background: rgba(79, 195, 247, 0.15);
    border-color: rgba(79, 195, 247, 0.5);
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
}

.galaxy-toggle.active {
    background: rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.6);
    color: #fff;
}

.galaxy-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.galaxy-toggle:hover i {
    transform: rotate(15deg) scale(1.1);
}

.galaxy-toggle .toggle-text {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .galaxy-toggle {
        top: 4.5rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .galaxy-toggle .toggle-text {
        display: none;
    }

    .galaxy-toggle {
        padding: 0.75rem;
        border-radius: 50%;
    }
}

/* ==========================================================================
   Hero Section - Transparent for Galaxy Background
   ========================================================================== */

/* Hide body grid pattern when galaxy is enabled */
body.galaxy-enabled::before,
body.galaxy-enabled::after {
    display: none !important;
}

/* Make hero section transparent to show galaxy */
body.galaxy-enabled .cyber-section {
    background: transparent !important;
}

/* Ensure content is readable over galaxy */
body.galaxy-enabled .cyber-section:first-of-type .text-center {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Floating Element Animation
   ========================================================================== */

/* Floating Element Animation */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Form Messages
   ========================================================================== */

.success-message,
.error-message {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-message.show,
.error-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Button disabled state */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
