@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Default - Dark Mode (Premium Style) */
    --bg-body: #050505;
    --bg-surface: #111111;
    --bg-hero: var(--bg-body);
    /* Removed blue gradient as requested */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent: #ff6b00;
    /* Signature Orange */
    --accent-indigo: #6366f1;
    --border: #262626;
    --nav-bg: rgba(5, 5, 5, 0.9);
    --footer-bg: #050505;
}

body.light {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-hero: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #ff6b00;
    --accent-indigo: #4f46e5;
    --border: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

/* --- Impactful Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
}

.logo img {
    border-radius: 8px;
    /* SIMPLE ROUNDED CORNERS AS REQUESTED */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

/* PREMIUM HEADER NAV */
nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    transition: 0.2s;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- High-Impact Hero --- */
.hero {
    min-height: 45vh;
    background: var(--bg-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 10px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

body.light .hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    /* Matching the blue bg style for title in light mode */
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin-top: 1rem;
}

/* --- Lab Grids (TIGHT Separation) --- */
.lab-container {
    max-width: 1400px;
    margin: 1rem auto 2rem;
    padding: 20px 8% 2rem;
    position: relative;
    z-index: 10;
}

/* Utility to prevent header overlap on pages without a Hero banner */
.subpage-header-gap {
    padding-top: 100px !important;
}

@media (max-width: 768px) {
    .lab-container {
        padding: 60px 5% 2rem;
    }
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* FORCED 2x2 FOR PREMIUM GRID */
    gap: 1.5rem;
}

/* Special Course Grid (2 per row) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    /* INCREASED GAP */
    margin-top: 2rem;
}

/* --- Premium Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

footer {
    padding: 1.5rem 5% 2rem;
    /* REDUCED FROM 2.5rem */
    text-align: center;
    background: var(--bg-body);
    position: relative;
    margin-top: 3.5rem;
    /* REDUCED FROM 5rem */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: var(--accent);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}


/* --- Lab Card Animations --- */
.lab-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lab-card:nth-child(1) {
    animation-delay: 0.1s;
}

.lab-card:nth-child(2) {
    animation-delay: 0.2s;
}

.lab-card:nth-child(3) {
    animation-delay: 0.3s;
}

.lab-card:nth-child(4) {
    animation-delay: 0.4s;
}

.lab-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(255, 107, 0, 0.1);
}

body.light .lab-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.lab-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.lab-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    /* Reduced from 1.4rem */
    color: var(--text-main);
}

/* --- Course Multi-Column Grid --- */
.course-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.2rem;
    /* Tightened spacing */
    margin-bottom: 1.5rem;
    list-style: none;
}

.course-points-grid li {
    font-size: 0.75rem;
    /* Further scaled down */
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.3;
    /* Tightened for density */
}

.course-points-grid li::before {
    content: '•';
    color: var(--accent);
}

/* --- Success Story Gallery (4 per row) --- */
.ss-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.ss-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    aspect-ratio: 9/16;
    /* Standard mobile screenshot aspect */
}

.ss-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Shifted to show head better */
    display: block;
    filter: grayscale(10%);
    transition: 0.3s;
}

.ss-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- Forms & Buttons --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

/* Forms & Inputs */
input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 0.3rem;
}

/* Fix for native dropdown options in dark mode */
select option {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.light select option {
    background-color: #ffffff;
    color: #0f172a;
}

body.light input,
body.light textarea,
body.light select {
    background: #fdfdfd;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-linkedin {
    background: #0077b5;
    color: white;
}

/* --- Broken Links Section --- */
.broken-link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .broken-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.broken-link-grid a {
    font-size: 0.75rem;
    color: #ef4444;
    text-decoration: none;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    text-align: center;
}

.broken-link-grid a:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* --- Official WhatsApp --- */
.wp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 1rem;
}

th,
td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.status-passed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* --- OrangeHRM Dashboard Styles --- */
.orangehrm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.orangehrm-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #eee;
    height: 100vh;
    position: fixed;
}

.orangehrm-main {
    margin-left: 260px;
    background: #f6f7fb;
    min-height: 100vh;
    padding: 2rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-surface);
    min-width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 100;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.dropdown-content a:hover {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--accent) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 992px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 0.8rem 5%;
    }

    .hamburger {
        display: flex;
        order: 1;
    }

    .theme-toggle {
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 2rem;
        transform: translateY(-150%);
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    nav.open {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    nav a {
        font-size: 1rem;
    }
}

/* --- Internal Lab Responsive Grids --- */
.lab-split-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.lab-split-uneven {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 1rem;
}

.lab-split-4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
}

/* Buttons grid */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.table-responsive table {
    margin-top: 0;
}

@media (max-width: 768px) {
    .ss-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .courses-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .lab-card {
        padding: 1.25rem;
    }

    /* Less padding on small screens to prevent overflow */

    .lab-split-2,
    .lab-split-uneven,
    .course-points-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    /* Let buttons grid stay 2x2 on mobile */
}

@media (max-width: 480px) {
    .ss-grid {
        grid-template-columns: 1fr;
    }

    .lab-split-4 {
        grid-template-columns: 1fr;
    }
}