/* ---------- GENERAL DARK SPACE MODE ---------- */
body {
    margin: 0;
   font-family: "Nunito", "Segoe UI", Arial, sans-serif;
    color: #dcd7ff;
    background: radial-gradient(circle at top, #1a0047, #050014);
    overflow-x: hidden;
}

h1, h2, h3 {
    color: #bea3ff;
}

a {
    color: #9b6bff;
    text-decoration: none;
}

a:hover {
    color: #cfa9ff;
}

/* ---------- STARFIELD BACKGROUND CANVAS ---------- */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    justify-content: center;     /* centers the nav */
    align-items: center;
    gap: 40px;                   /* spacing between logo + links */
    padding: 20px 40px;
    background: rgba(10, 0, 30, 0.6);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(140, 80, 255, 0.3);
    border-bottom: 1px solid rgba(160, 100, 255, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}


.logo {
    font-size: 24px;
    color: #caa2ff;
    font-weight: bold;
    text-shadow: 0 0 10px #7b3bff;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    font-weight: 500;
}

.navbar a.active,
.navbar a:hover {
    color: #d6b8ff;
    text-shadow: 0 0 8px #9b6bff;
}

/* ---------- HERO ---------- */
.hero {
    padding: 200px 40px 240px 40px; /* top, left/right, bottom */
    text-align: center;
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 60px;
    text-shadow: 0 0 25px #7f52ff, 0 0 55px #5a2aff;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 25px auto; /* bottom margin creates spacing */
    font-size: 20px;
    opacity: 0.9;
}


.btn-primary {
    padding: 14px 35px;
    margin-top: 20px;
    background: linear-gradient(135deg, #5a2aff, #9b6bff);
    color: white;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 0 15px #7f52ff, 0 0 30px #5a2aff;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.06);
    box-shadow: 0 0 25px #cda8ff, 0 0 45px #8c5fff;
}

/* ---------- CONTENT SECTIONS ---------- */
.page-header,
.content-section {
    padding: 60px 40px;
    max-width: 1000px;
    margin: auto;
    background: rgba(10, 0, 30, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(150, 90, 255, 0.2);
    margin-top: 120px !important;
    text-align: center;

}

/* ---------- TEAM GRID ---------- */
.team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers cards */
    gap: 40px;
    padding: 60px 20px;
}


.team-card {
    width: 100%;            
    max-width: 650px;        /* 🔥 same width as contact cards */
    padding: 35px;
    background: rgba(40, 0, 80, 0.45);
    border-radius: 22px;
    box-shadow: 0 0 30px rgba(150, 80, 255, 0.35);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 45px rgba(200, 130, 255, 0.5);
}


.team-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 0 35px rgba(180, 120, 255, 0.5);
}

/* ---------- CONTACT ---------- */
/* ------- CONTACT GRID FIX (center + spacing) ------- */
.contact-grid {
    max-width: 900px;        /* keeps cards centered */
    margin: 0 auto;          /* centers the whole block */
    padding: 40px 20px;      /* breathing room from edges */
    display: grid;
    gap: 30px;               /* space between cards */
}

.contact-card {
    padding: 25px;
    background: rgba(40, 0, 80, 0.6);
    border-radius: 18px;
    box-shadow: 0 0 20px rgba(160, 90, 255, 0.35);
    backdrop-filter: blur(6px);
    width: 100%;
}


/* ---------- SECONDARY BUTTON ---------- */
.btn-secondary {
    background: rgba(120, 60, 255, 0.8);
    padding: 10px 26px;
    color: white;
    border-radius: 30px;
    display: inline-block;
    margin-top: 12px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(160, 110, 255, 1);
    box-shadow: 0 0 20px rgba(200, 150, 255, 0.6);
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 30px;
    color: #bba3ff;
    margin-top: 50px;
    opacity: 0.85;
}
