/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* old Edge/IE */
}

html::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, new Edge */
}

/* =========================
   BACKGROUND + GRID
========================= */
body {
    min-height: 100vh;
    color: #d6e6ff;
    overflow-x: hidden; /* belt-and-suspenders alongside the layout fixes below */

    background-color: #050814;

    background-image:
        linear-gradient(rgba(0, 170, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.10) 1px, transparent 1px);

    background-size: 45px 45px;

    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    animation: pageFadeIn 0.8s ease forwards, gridMove 12s linear infinite;
}

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

body.fade-out {
    animation: pageFadeOut 0.5s ease forwards;
}

@keyframes pageFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 45px 45px; }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(0, 120, 255, 0.15),
        rgba(0, 0, 0, 0.85)
    );
    pointer-events: none;
}

/* =========================
   HEADER
========================= */
.site-header {
    width: 100%;
    padding: 18px clamp(16px, 5vw, 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;

    background: rgba(5, 10, 30, 0.7);
    border-bottom: 1px solid rgba(0, 170, 255, 0.25);

    box-shadow: 0 0 25px rgba(0, 150, 255, 0.2);

    backdrop-filter: blur(10px);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0; /* lets this shrink instead of forcing the header to overflow */
}

.logo2 {
    width: clamp(64px, 10vw, 150px);
    height: clamp(64px, 10vw, 150px);
    object-fit: contain;
    flex-shrink: 0; /* keeps the logo square instead of squishing it */

    filter: drop-shadow(0 0 2px rgb(0, 217, 255));
}

.brand-text h1 {
    font-size: clamp(1.4rem, 4vw, 55px);
    color: #4db8ff;
    text-shadow: 0 0 20px rgba(77, 184, 255, 0.7);
    margin: 0;
}

.brand-text p {
    font-size: clamp(0.8rem, 1.6vw, 18px);
    color: #a9c7ff;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* =========================
   CONTACT CARD
========================= */
.contact-container {
    margin-top: 60px;
    width: 90%;
    max-width: 850px;

    padding: clamp(24px, 4vw, 40px);

    background: rgba(10, 20, 50, 0.65);
    border: 1px solid rgba(0, 170, 255, 0.25);

    border-radius: 15px;

    box-shadow: 0 0 30px rgba(0, 140, 255, 0.25);

    backdrop-filter: blur(12px);
}

.contact-container h1 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: #4db8ff;

    text-shadow: 0 0 15px rgba(77, 184, 255, 0.6);
}

.subtitle {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 25px;
    color: #a9c7ff;
}

/* =========================
   FORM
========================= */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input, textarea {
    padding: 12px;
    border-radius: 8px;

    background: rgba(5, 10, 30, 0.85);
    border: 1px solid rgba(0, 170, 255, 0.3);

    color: #d6e6ff;
    width: 100%;

    outline: none;

    transition: 0.25s ease;
}

input:focus, textarea:focus {
    border-color: #4db8ff;
    box-shadow: 0 0 12px rgba(77, 184, 255, 0.6);
}

/* =========================
   BUTTON
========================= */
button {
    padding: 12px;
    border: none;
    border-radius: 8px;

    background: linear-gradient(90deg, #0066ff, #00c3ff);
    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s ease;

    box-shadow: 0 0 18px rgba(0, 150, 255, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(0, 180, 255, 0.7);
}

/* =========================
   FOOT INFO
========================= */
.info {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #8fb7ff;
}

/* HOME BUTTON */
.home-btn {
    padding: 10px 18px;

    color: #d6e6ff;
    text-decoration: none;
    font-weight: bold;

    border: 1px solid rgba(0, 170, 255, 0.4);
    border-radius: 8px;

    background: rgba(10, 20, 50, 0.6);

    box-shadow: 0 0 12px rgba(0, 150, 255, 0.3);

    transition: 0.3s ease;
    white-space: nowrap;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.7);
    border-color: #4db8ff;
}

/* Mobile header: stack logo above text, centered, with the button
   centered below — written here (after global.css) so it wins over
   whatever that file's own .site-header rule at this width is doing. */
@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo2 {
        width: clamp(70px, 22vw, 110px);
        height: clamp(70px, 22vw, 110px);
    }

    .home-btn {
        margin: 0 auto;
    }
}