:root {
    --primary-color: #000080; /* Navy Blue */
    --secondary-color: #ffffff; /* Brilliant white background */
    --accent-color: #D30000; /* Dark Red */
    --gold: #d4af37; /* Golden touches */
    --background-color: #ffffff;
    --text-color: #000080; /* Navy Blue */
    --white: #ffffff;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 50% 0%, #fffdf0 0%, #ffffff 60%);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 235, 150, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none; z-index: 9999;
}

.navbar {
    position: fixed; top: 0; width: 100%; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; transition: all 0.3s ease; box-sizing: border-box;
    border-bottom: 2px solid var(--gold); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.nav-links a { color: var(--primary-color); text-decoration: none; margin-left: 2rem; font-weight: 600; letter-spacing: 1px; position: relative; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--accent-color); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-links .btn-portal { margin-left: 1.5rem; }

.btn-portal, .btn-primary, .btn-submit, .btn-action {
    border: 1.5px solid var(--accent-color) !important; /* Smooth line border for buttons */
}

.btn-portal {
    background: var(--primary-color);
    color: var(--white) !important; padding: 0.8rem 2rem; border-radius: 30px; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 128, 0.3); transition: transform 0.3s, box-shadow 0.3s;
}
.btn-portal:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(211, 0, 0, 0.4); }

.hero {
    height: 100vh; display: flex; align-items: center; padding: 0 5%;
    background: radial-gradient(circle at top right, rgba(255, 250, 230, 0.8), rgba(255,255,255,0.9)), url('../assets/hero_bg.webp') center/cover;
    color: var(--secondary-color); position: relative;
}

.hero-content {
    max-width: 650px; animation: fadeInUp 1s ease; margin-top: 50px; background: rgba(255, 255, 255, 0.85);
    padding: 2rem; border-radius: 15px; border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; color: var(--primary-color); }
.hero-content h1 span { color: var(--accent-color); }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 1; line-height: 1.6; color: var(--primary-color); }

.btn-primary {
    display: inline-block; background: var(--primary-color); color: var(--white); padding: 1rem 2.5rem; border-radius: 30px; font-weight: 700; text-decoration: none; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(0, 0, 128, 0.3); transition: all 0.3s;
}
.btn-primary:hover { background: var(--accent-color); color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); }

.features { padding: 5rem 5%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; background: var(--white); }
.feature-card {
    background: var(--white); padding: 2.5rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(212,175,55,0.15); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center;
    margin: 10px; border: 2px solid var(--accent-color); outline: 4px solid var(--secondary-color); outline-offset: -8px; position: relative;
}
.feature-card::before { content: ''; position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4); }

.feature-card i {
    font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem;
    /* circles around the icons pictures */
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    padding: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
}
.feature-card h3 { margin-bottom: 1rem; font-weight: 800; color: var(--accent-color); }
.feature-card p { color: var(--secondary-color); line-height: 1.6; font-weight: 500; }

.footer { background: var(--secondary-color); color: var(--white); padding: 4rem 5% 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; border-top: 5px solid var(--gold); }
.footer-col { flex: 1; min-width: 250px; margin-bottom: 2rem; padding-right: 2rem; }
.footer-col h4 { color: var(--gold); margin-bottom: 1.5rem; font-size: 1.3rem; }
.footer-col p { line-height: 1.5; color: #000; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.85rem; }
.footer-col a { color: #000; text-decoration: none; font-weight: 500; font-size: 0.85rem; }
.footer-col i { color: var(--gold); margin-right: 10px; }

.qr-code { width: 140px; height: 140px; background: var(--white); padding: 10px; border-radius: 10px; border: 3px solid var(--gold); }
.footer-bottom { width: 100%; text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #bbb; }

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

/* Tests overrides */
.page-header { background: var(--secondary-color) !important; color: var(--gold) !important; border-bottom: 5px solid var(--accent-color);}
.test-item { border: 2px solid var(--accent-color) !important; outline: 4px solid var(--secondary-color); outline-offset: -8px; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15) !important; position: relative; background: #fff; margin: 10px; }
.test-item::before { content: ''; position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; background: var(--gold); border-radius: 50%; }
.test-item h4 { color: var(--accent-color) !important; font-weight: 800;}

/* Login box overrides */
.login-container { background: transparent !important; position: relative; }
.login-container::before { content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 235, 150, 0.15) 0%, rgba(255, 255, 255, 0) 60%); pointer-events: none; z-index: -1; }
.login-box { border: 2px solid var(--accent-color); outline: 4px solid var(--secondary-color); outline-offset: -8px; background: rgba(255,255,255,0.95) !important; box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2) !important; position: relative; }
.login-box::before { content: ''; position: absolute; top: -5px; right: -5px; width: 25px; height: 25px; background: var(--gold); border-radius: 50%; }
.login-box h2 { color: var(--secondary-color) !important; }
