/* CSS Variables for consistent theming */
:root {
    --purple-primary: #6a38ff;
    --purple-light: rgb(192, 119, 255);
    --purple-dark: rgb(102, 36, 255);
    --purple-visited: rgb(198, 197, 201);
    --dark-bg: #2c282d;
    --light-text: #f0f0f0;
    --accent-orange: orange;
}

html, body {
    font: 18px 'Noto Sans', Arial, sans-serif;
    background-color: #333;
    background-image: linear-gradient(0deg, #333 50%, #2c282d 50%);
    background-size: 10px 10px;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;  /* Smooth scrolling */
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: var(--dark-bg);
    font-family: 'Noto Sans', Arial, sans-serif;
    padding-top: 103px;       /* compensates for the fixed .info-bar and header */
}

h2 {
    color: var(--light-text);
    text-align: center;
    font-size: 30px;
}

a {
    color: var(--purple-light);
}
a:visited {
    color: var(--purple-visited);
}
a:hover {
    color: var(--purple-dark);
}
a:active {
    color: var(--accent-orange);
}

/* Keyboard focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--purple-primary);
    outline-offset: 2px;
}

/* Visually Hidden - for screen readers only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form Error Message */
.form-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.95rem;
    display: none;
}

.form-error:not(:empty) {
    display: block;
}

h1 {
    text-align: center;
    color: #f0f0f0;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-bar {
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-size: 16px;
    padding: 6px 0;          /* gives it some breathing room */
  }

  .info-bar a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
  }

  .info-bar a:hover {
    text-decoration: underline;
  }

.contactstitle {
    text-align: center;
    font-size: 1.5rem;
    color: #f0f0f0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.contactstitle p,
.contactstitle h1 {
  margin: 0;
}
.compudoc h1 {
    font-size: 45px;
    font-weight: bold;
    background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 50%, #6a38ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4))
            drop-shadow(0 0 40px rgba(106, 56, 255, 0.3));
    animation: titlePulse 3s ease-in-out infinite;
    margin: 0;
}

@keyframes titlePulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4))
                drop-shadow(0 0 40px rgba(106, 56, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6))
                drop-shadow(0 0 50px rgba(106, 56, 255, 0.5));
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .compudoc h1 {
        animation: none;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4))
                drop-shadow(0 0 40px rgba(106, 56, 255, 0.3));
    }

    .success-content {
        animation: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    form button {
        transition: background 0.22s, border 0.22s;
    }

    form button:hover {
        transform: none;
    }
}



.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #f0f0f0;
    background-image: linear-gradient(0deg, rgba(145, 145, 145, 0.5), rgba(145, 145, 145, 0.5)), url('../images/background2.jpg');
    background-size: cover;
    box-sizing: border-box;
}

.emailform {
    display: flex;
}

form {
    background: rgba(45, 40, 60, 0.96);
    backdrop-filter: blur(5px);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(80,0,160,0.15), 0 2px 6px rgba(0,0,0,0.16);
    border: 2px solid rgba(106, 56, 255, 0.22);
    width: 100%;
    max-width: 420px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 2rem 1.5rem;
}

form input, form textarea {
    padding: 1rem;
    border: 1.5px solid rgba(106,56,255,0.19);
    border-radius: 11px;
    font-size: 1rem;
    background: rgba(255,255,255,0.07);
    color: #f0f0f0;
    transition: border 0.25s, box-shadow 0.25s, background 0.25s;
}

form input:focus, form textarea:focus {
    outline: none;
    border: 2px solid #6a38ff;
    box-shadow: 0 0 8px rgba(106, 56, 255, 0.28);
    background: rgba(80,0,160,0.09);
    color: #fff;
}

form textarea {
    min-height: 110px;
    max-height: 250px;
    resize: vertical;
}

form button {
    padding: 0.9rem 1.5rem;
    border: 2px solid rgba(106, 56, 255, 0.36);
    border-radius: 20px;
    background: linear-gradient(
        90deg, rgba(51, 51, 51, 0.85) 0%, rgba(80,0,160,0.75) 100%
    );
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.7rem;
    box-shadow: 0 8px 22px rgba(80,0,160,0.12);
    transition: background 0.22s, border 0.22s, transform 0.17s, box-shadow 0.28s;
}

form button:hover {
    background: linear-gradient(90deg, #6a38ff 0%, #4411aa 100%);
    border: 2.5px solid #fff;
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 24px rgba(106,56,255,0.18), 0 6px 22px rgba(80,0,160,0.15);
}

/* Menu styles */
#menu {
    display: none; /* Hidden by default */
    transition: all 0.3s ease-in-out;
}

#menu.show {
    display: block; /* Visible when the "show" class is added */
}
.hidden-link {
    display: none;
}

/* Success Message Modal */
.success-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.success-message.show {
    display: flex;
}

.success-content {
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(80, 0, 160, 0.9) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--purple-primary);
    box-shadow: 0 20px 60px rgba(106, 56, 255, 0.4);
    text-align: center;
    max-width: 500px;
    animation: slideIn 0.5s ease;
}

.success-content h2 {
    color: var(--light-text);
    font-size: 32px;
    margin-bottom: 15px;
}

.success-content p {
    color: #ddd;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-close {
    background: var(--purple-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-close:hover {
    background: var(--purple-dark);
    transform: scale(1.05);
}

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

/* Fade-in Animation for Content */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 700px) {
    body {
        width: 100vw;
        padding-top: 103px;
        padding-bottom: 0;
        overflow-x: hidden;
    }

    .mainlogo {
        width: 40vw;
    }

    .container {
        padding: 1.25rem;
        width: 100%;
    }

    form {
        width: 90vw;
        min-width: unset;
        padding: 1.1rem 0.7rem;
    }
}
