/* ===============================
   GLOBAL SITE STYLES - CrimsonNexus
   =============================== */

/* Custom color variables */
:root {
    --crimson-600: #DC2626;
    --crimson-500: #EF4444;
    --crimson-400: #F87171;
    --crimson-300: #FCA5A5;
}

/* Base body setup with radial pattern and dark theme */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    color: var(--crimson-300);
    background-image: radial-gradient(#202020 1px, transparent 0);
    background-size: 40px 40px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/* Paragraphs */
p {
    color: var(--crimson-300); /* replaces text-gray-300 */
}

/* Navigation links */
.nav-link {
    transition: all 0.3s ease;
    color: var(--crimson-300);
}

.nav-link:hover {
    color: var(--crimson-400);
}

.nav-link.active {
    color: var(--crimson-400);
    background-color: rgba(55, 65, 81, 0.8); /* gray-800 with transparency */
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Section spacing */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--crimson-600);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--crimson-700, #b91c1c);
    transform: scale(1.03);
}

/* Cards & Boxes */
.card {
    background-color: rgba(31, 41, 55, 1); /* gray-800 */
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.5);
}

/* Form Inputs */
input, textarea {
    background-color: rgba(55, 65, 81, 1); /* gray-700 */
    border: 1px solid rgba(75, 85, 99, 1); /* gray-600 */
    color: #fff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--crimson-500);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

/* Footer */
footer {
    border-top: 1px solid rgba(55, 65, 81, 1); /* gray-700 */
    color: var(--crimson-400);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}

/* Modal Popup */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.modal-content {
    background-color: rgba(17, 24, 39, 1); /* gray-900 */
    border: 1px solid var(--crimson-600);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

button {
    cursor: pointer;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }

    .btn-primary {
        width: 100%;
    }
}

