/* --- CSS VARIABLES & THEMES --- */
:root {
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

/* LIGHT THEME */
[data-theme="light"] {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --nav-text: #0f172a;
    --primary: #2563eb;
    --secondary: #9333ea;
    --accent: linear-gradient(90deg, #2563eb, #9333ea);
    --border: #cbd5e1;
    --hero-erp-bg: #1e1b4b;
    --hero-lms-bg: #312e81;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --ticker-bg: #b45309;       /* Dark Yellow / Amber */
    --ticker-text: #ffffff;
}

/* DARK THEME */
[data-theme="dark"] {
    --bg: #130924;
    --card-bg: #22123b;
    --text: #ffffff;
    --nav-bg: rgba(19, 9, 36, 0.9);
    --nav-text: #ffffff;
    --primary: #c084fc;
    --secondary: #f472b6;
    --accent: linear-gradient(90deg, #f472b6, #c084fc);
    --border: rgba(255, 255, 255, 0.15);
    --hero-erp-bg: #0f172a;
    --hero-lms-bg: #2e1065;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --ticker-bg: #d97706;       /* Dark Yellow Amber Gold */
    --ticker-text: #0f172a;
}

/* CONTRAST THEME */
[data-theme="contrast"] {
    --bg: #000000;
    --card-bg: #000000;
    --text: #ffff00;
    --nav-bg: #000000;
    --nav-text: #ffff00;
    --primary: #ffffff;
    --secondary: #ffff00;
    --accent: #ffff00;
    --border: 2px solid #ffff00;
    --hero-erp-bg: #000000;
    --hero-lms-bg: #111111;
    --card-shadow: none;
    --ticker-bg: #ffff00;
    --ticker-text: #000000;
}

/* GLOBAL STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    transition: var(--transition);
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: auto; }

/* HEADER & NAVIGATION */
header {
    padding: 15px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 44px; width: auto; }
.brand-title { font-weight: 800; font-size: 1.25rem; color: var(--nav-text); letter-spacing: -0.5px; }
.brand-title span { color: var(--primary); }

.nav-links { list-style: none; display: flex; align-items: center; gap: 18px; }
.nav-links a { text-decoration: none; color: var(--nav-text); font-weight: 700; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

.nav-btn-erp { background: #2563eb; padding: 8px 16px; border-radius: 8px; color: #ffffff !important; }
.nav-btn-lms { background: #9333ea; padding: 8px 16px; border-radius: 8px; color: #ffffff !important; }

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed; bottom: 25px; left: 25px; z-index: 2000;
    background: #25d366; color: #ffffff; padding: 12px 22px;
    border-radius: 30px; font-weight: 800; font-size: 0.9rem;
    text-decoration: none; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.whatsapp-float:hover { transform: translateY(-3px); background: #1eb954; }

/* HAMBURGER */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background-color: var(--text); border-radius: 2px; }

/* FLOATING THEME SWITCHER */
.theme-switcher {
    position: fixed; bottom: 25px; right: 25px; z-index: 2000;
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 6px; border-radius: 30px; display: flex; gap: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.theme-switcher button { padding: 6px 14px; border-radius: 20px; border: none; cursor: pointer; background: transparent; color: var(--text); font-weight: 700; font-size: 0.8rem; }
.theme-switcher button.active { background: var(--primary); color: #ffffff; }

/* DARK YELLOW TICKER RIBBON */
.news-ticker { overflow: hidden; white-space: nowrap; padding: 12px 0; background: var(--ticker-bg); color: var(--ticker-text); font-weight: 700; border-bottom: 1px solid var(--border); }
.ticker-track { display: inline-block; animation: scroll 32s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track span { margin: 0 35px; font-size: 0.9rem; }

/* HERO SPLIT */
.hero-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 50px 0; }
.split-card {
    border-radius: 24px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
    border: 1px solid var(--border); box-shadow: var(--card-shadow); position: relative; overflow: hidden;
    min-height: 400px; transition: var(--transition);
}
.erp-card { background: var(--hero-erp-bg); color: #ffffff; }
.lms-card { background: var(--hero-lms-bg); color: #ffffff; }

.card-text-content { z-index: 2; transition: var(--transition); }
.badge { display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; width: fit-content; }
.split-card h1 { font-size: 2.2rem; margin-bottom: 15px; }
.split-card p { font-size: 1rem; opacity: 0.9; line-height: 1.6; margin-bottom: 20px; }
.quote { border-left: 3px solid var(--primary); padding-left: 15px; font-style: italic; opacity: 0.85; margin-bottom: 25px; }

/* HOVER SITE PREVIEW FRAME */
.preview-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92); z-index: 5; opacity: 0; pointer-events: none;
    transition: var(--transition); display: flex; flex-direction: column; padding: 15px;
}
.preview-tag { color: #f59e0b; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; text-align: center; }
.preview-overlay iframe { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 12px; }
.split-card:hover .preview-overlay { opacity: 1; pointer-events: auto; }

/* TEAMS CLASSROOM FILTER SECTION */
.filter-section { padding: 40px 0; }
.filter-card {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 40px; border-radius: 24px; box-shadow: var(--card-shadow); text-align: center;
}
.filter-controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; text-align: left; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.form-group select {
    width: 100%; padding: 14px 18px; border-radius: 12px;
    background: var(--bg); color: var(--text); border: 1px solid var(--border);
    font-size: 1rem; font-family: var(--font-main); font-weight: 600; outline: none;
}
.teams-result-box {
    padding: 20px; border-radius: 16px; background: rgba(0,0,0,0.15);
    border: 1px dashed var(--border); display: flex; flex-direction: column; align-items: center;
}

/* BUTTONS */
.btn-primary, .btn-secondary, .btn-outline { display: inline-block; padding: 14px 26px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: var(--transition); text-align: center; }
.btn-primary { background: #2563eb; color: #ffffff; }
.btn-secondary { background: #c084fc; color: #130924; }
.btn-outline { border: 2px solid var(--primary); color: var(--text); }

/* HORIZONTAL SLIDERS */
.slider-section { padding: 40px 0; }
.slider-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.slider-controls { display: flex; gap: 10px; }
.slider-btn { background: var(--card-bg); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.slider-btn:hover { background: var(--primary); color: #ffffff; }

.horizontal-slider { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 15px; scrollbar-width: none; }
.horizontal-slider::-webkit-scrollbar { display: none; }

/* GALLERY & SERVICE CARDS */
.career-card { min-width: 300px; max-width: 300px; background: var(--card-bg); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; flex-shrink: 0; box-shadow: var(--card-shadow); transition: var(--transition); }
.img-wrapper { overflow: hidden; height: 200px; }
.career-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.career-card:hover img { transform: scale(1.08); }
.card-info { padding: 20px; }

.service-card { min-width: 320px; max-width: 320px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; flex-shrink: 0; box-shadow: var(--card-shadow); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.service-img-container { height: 180px; overflow: hidden; }
.service-img-container img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.service-card:hover .service-img-container img { transform: scale(1.08); }
.service-body { padding: 25px; }

/* YOUTUBE SLIDER CARDS */
.video-card-slide { min-width: 350px; max-width: 350px; flex-shrink: 0; background: var(--card-bg); border-radius: 20px; border: 1px solid var(--border); padding: 15px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; justify-content: space-between; }
.video-card-slide h4 { margin-top: 12px; font-size: 1rem; color: var(--text); text-align: left; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.video-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; }
.yt-fallback-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 700; color: var(--primary); text-decoration: none; text-align: left; }

/* PARTNERS / ECOSYSTEM GRID */
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.ecosystem-card { background: var(--card-bg); border: 1px solid var(--border); padding: 35px; border-radius: 20px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.ecosystem-card h3 { font-size: 1.6rem; margin: 15px 0 10px 0; }
.ecosystem-card p { font-size: 0.95rem; opacity: 0.85; line-height: 1.6; margin-bottom: 25px; }
.partner-badge { background: rgba(37, 99, 235, 0.2); color: var(--primary); font-weight: 800; font-size: 0.75rem; padding: 4px 12px; border-radius: 12px; text-transform: uppercase; width: fit-content; }

/* FOOTER & MODAL */
footer { padding: 50px 0 25px 0; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); text-align: center; }
.footer-content { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.footer-brand img { height: 44px; margin-bottom: 10px; }
.footer-content a { color: var(--text); text-decoration: none; font-size: 0.9rem; }

.modal { display: none; position: fixed; z-index: 3000; padding-top: 80px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; max-width: 85%; max-height: 75%; border-radius: 16px; }
#modal-caption { text-align: center; color: #fff; margin-top: 15px; font-weight: 600; }
.close-modal { position: absolute; top: 25px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-split-grid, .filter-controls-grid { grid-template-columns: 1fr; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 75px; right: -100%; width: 280px; height: calc(100vh - 75px);
        background: var(--card-bg); border-left: 1px solid var(--border);
        flex-direction: column; padding: 40px 20px; gap: 25px; transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .slider-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}