/* =========================================
   GLOBAL RESET
========================================= */
:root {
  --neon-cyan: #00ffc6;
  --neon-pink: #ff0080;
  --dark-bg: #0a0a0a;
  --card-bg: #111;
  --text-main: #e8e8e8;
  --text-muted: #a0a0a0;
  --border-glow: rgba(0, 255, 198, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Padauk', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s;
}
a:hover {
    color: var(--neon-cyan);
}

/* =========================================
   CONTAINERS & SECTIONS
========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 80px 0;
}

.section.dark {
    background: #050505;
}

.section-header {
    text-align: center;
    margin: 0 0 40px;
    padding: 0 20px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--neon-cyan);
    display: inline-block;
    border-bottom: 2px solid var(--neon-pink);
    padding-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.95rem;
}

/* =========================================
   NAVIGATION (NAVBAR)
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-glow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-cyan);
}
.logo span { 
    color: var(--neon-pink); 
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-toggle-btn {
    background: var(--neon-pink);
    color: var(--dark-bg);
    border: none;
    padding: 5px 10px;
    margin-left: 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.85rem;
}
.lang-toggle-btn:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    margin-top: 80px;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,255,198,0.02) 0%, rgba(0,0,0,0) 100%);
}

.profile-img-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 198, 0.3);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 198, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 198, 0.6); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 198, 0.3); }
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    color: var(--neon-pink);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-bio {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    display: inline-block;
}

.btn-primary {
    background: var(--neon-pink);
    color: white;
    border-color: var(--neon-pink);
}
.btn-primary:hover {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}
.btn-secondary:hover {
    background: rgba(0, 255, 198, 0.1);
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 15px var(--border-glow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--neon-pink);
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   COURSES SECTION (CLASSES)
========================================= */
.courses-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.course-item:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.15);
}

.course-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-item:hover .course-img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--neon-cyan);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.course-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
}
.course-meta i {
    margin-right: 5px;
}

.course-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--neon-pink);
    padding-left: 15px;
}

.syllabus-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ccc;
    white-space: nowrap;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.price {
    font-size: 1.3rem;
    color: var(--neon-cyan);
    font-weight: 700;
}
.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #666;
    margin-left: 5px;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-info {
    padding: 20px;
    border: 1px solid rgba(0, 255, 198, 0.1);
    border-radius: 10px;
    background: #0d0d0d;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-block {
    padding: 20px;
    border: 1px solid rgba(255, 0, 128, 0.1);
    border-radius: 10px;
    background: #0d0d0d;
}

.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: 0.3s;
}
.social-links a:hover { 
    color: var(--neon-pink); 
    transform: scale(1.1); 
}


/* =========================================
   FOOTER
========================================= */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: #050505;
    color: #bbb;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   ADMIN PANEL & MODAL STYLES
========================================= */
.admin-controls {
    display: none; /* Hidden */
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto 20px;
    text-align: right;
}

.admin-controls.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

#admin-active-tag {
    color: var(--neon-pink); 
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-admin {
    background: #222;
    border: 1px dashed var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    border-radius: 5px;
    font-size: 0.85rem;
}

.btn-admin:hover {
    background: rgba(0, 255, 198, 0.1);
}

.delete-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

body.admin-mode .delete-btn {
    display: flex;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #111;
    margin: 10vh auto;
    padding: 30px;
    border: 1px solid var(--neon-cyan);
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,255,198,0.2);
    animation: fadeIn 0.3s ease;
}

.modal h3 {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--neon-pink);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   MOBILE RESPONSIVE
========================================= */
@media(max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 70px; /* Below navbar */
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        border-top: 1px solid var(--border-glow);
        padding: 10px 5%;
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        display: flex;
    }

    .nav-links a, .lang-toggle-btn {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }
    .lang-toggle-btn {
        padding: 8px;
    }

    .course-item {
        /* Mobile: vertical stack */
        flex-direction: column;
    }
    .course-img-wrapper {
        height: 200px;
    }
}

@media (min-width: 768px) {
    /* Desktop: Horizontal layout for courses */
    .course-item {
        flex-direction: row;
        height: 320px;
    }
    .course-img-wrapper {
        width: 40%;
        height: 100%;
    }
    .course-content {
        width: 60%;
        overflow-y: auto;
    }
    .hero h1 { font-size: 3rem; }
}
