:root {
    --accent: #00f2ff;
    --accent-vibrant: #7000ff;
    --bg: #050505;
    --glass: rgba(255, 255, 255, 0.03);
    --text-dim: #a1a1aa;
    --error: #ff4d4d;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background-color: var(--bg);
    color: white;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-glow {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050505 100%);
    z-index: -2;
}
.bg-glow::after {
    content: '';
    position: absolute;
    top: -10%; left: -10%; width: 40%; height: 40%;
    background: var(--accent-vibrant);
    filter: blur(150px);
    opacity: 0.15;
    animation: drift 20s infinite alternate;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(100%, 100%); }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.glass-nav {
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
}

.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -1px; text-decoration: none; color: white;}

nav ul { list-style: none; display: flex; }
nav a { color: var(--text-dim); text-decoration: none; margin-left: 1.5rem; transition: 0.3s; font-size: 0.8rem; }
nav a:hover { color: white; }
.nav-cta { background: white; color: black !important; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 600; font-size: 0.8rem;}

.hero {
    padding: 120px 10% 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; line-height: 1; margin-bottom: 25px; }
.gradient-text { background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero p { color: var(--text-dim); max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; }

.btn-primary, .btn-secondary, .btn-outline, .btn-signin {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}
.btn-primary:hover { 
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(0, 242, 255, 0.6);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: white;
    color: black;
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline:hover {
    background: var(--accent);
    color: black;
}

.btn-signin {
    background: linear-gradient(90deg, var(--accent-vibrant), var(--accent));
    color: white;
    width: 100%;
    box-shadow: 0 5px 20px rgba(112, 0, 255, 0.3);
}

.link-arrow {
    color: var(--text-dim);
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.link-arrow:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.stats {
    background: var(--glass);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    margin: 60px 0;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 30px;
}

.stat-item {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-dim);
    font-size: 1rem;
}

.flagship-programs,
.expert-services,
.certification-courses,
.goalbest-certification,
.our-services {
    padding: 80px 10%;
}

.flagship-programs h2,
.expert-services h2,
.certification-courses h2,
.goalbest-certification h2,
.our-services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.program-cards,
.course-cards,
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.bento-card, 
.service-item,
.course-card,
.service-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s ease;
}

.bento-card:hover, 
.service-item:hover,
.course-card:hover,
.service-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.s-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.bento-card h3, 
.service-item h3,
.course-card h3,
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bento-card p, 
.service-item p,
.course-card p,
.service-card p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 20px;
}

.course-card ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

.goalbest-certification table {
    width: 100%;
    border-collapse: collapse;
}

.goalbest-certification th,
.goalbest-certification td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.goalbest-certification th {
    background-color: rgba(255, 255, 255, 0.05);
}

.application-form-container {
    max-width: 550px;
    margin: 60px auto;
    padding: 40px 50px;
    background: var(--glass);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.application-form-container h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    color: var(--text-dim);
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.7;
}

.contact-heading {
    text-align: center;
    margin-bottom: 30px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    width: 400px;
    padding: 40px;
    background: var(--glass);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.error-message {
    background-color: rgba(255, 77, 77, 0.1);
    color: var(--error);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--error);
    margin-bottom: 20px;
    display: none;
}

/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a2e;
    margin: 15% auto; 
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: white;
}

#secret-key-input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5em;
}

#confirm-key-btn {
    width: 100%;
}


/* Responsive */
@media (max-width: 768px) {
    .program-cards,
    .course-cards,
    .service-cards {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 3.5rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-vibrant), var(--accent));
    border-radius: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--accent);
    color: black;
    border: none;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    background: white;
}
