:root {
  --bg: #0a1326;
  --surface: #111827;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --border: rgba(226, 232, 240, 0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ================================================================ */
/* LOGIN PAGE STYLES
/* ================================================================ */

.login-body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.login-container {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 150px;
    height: auto;
}

.login-title {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.login-error {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 14px;
    background: #ffebee;
    padding: 10px;
    border-radius: 6px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-group {
    text-align: left;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
}

.login-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.login-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.login-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.login-btn:hover {
    background: #5a6fd9;
}

.login-demo {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #7f8c8d;
}

.login-demo strong {
    color: var(--primary);
}

.login-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #7f8c8d;
}

/* ================================================================ */
/* NAVBAR STYLES
/* ================================================================ */

.navbar {
    background: rgba(15, 23, 42, 0.35);
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar-logo {
    flex-shrink: 0;
}

.navbar-logo a {
    color: #0C217D;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar-links-inner {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: white;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
    min-width: 90px;
    display: inline-block;
    box-sizing: border-box;
}

.nav-link-active {
    background: rgba(59, 130, 246, 0.25);
}

.nav-link-inactive {
    background: transparent;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.15);
}

.nav-profile-trigger {
    position: relative;
    flex-shrink: 0;
}

.nav-profile-btn {
    color: white;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    background: rgba(59, 130, 246, 0.25);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #1e293b;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nav-profile-menu a {
    display: block;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
}

.nav-profile-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
}

.nav-profile-divider {
    height: 1px;
    background: #334155;
    margin: 6px 0;
}

.nav-logout-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 16px;
    color: #ef4444;
    cursor: pointer;
}

.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.nav-login-btn {
    color: white;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    background: rgba(59, 130, 246, 0.25);
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background: rgba(59, 130, 246, 0.4);
}

/* ================================================================ */
/* MOBILE NAVBAR (Hamburger)
/* ================================================================ */

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    margin-right: 0;
}

.mobile-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--surface);
    margin-top: 1rem;
    padding: 1rem 0;
    border-radius: 8px;
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: white;
    text-decoration: none;
    text-align: center;
}

.mobile-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
}

.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.mobile-menu .nav-logout-btn {
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.8rem 1rem;
}

.mobile-menu form {
    margin: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .navbar-links {
        display: none !important;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.show {
        display: flex;
    }
}

/* ================================================================ */
/* FOOTER STYLES
/* ================================================================ */

.footer {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 5%;
    color: #94a3b8;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ================================================================ */
/* HOME PAGE STYLES
/* ================================================================ */

.hero {
    padding: 8rem 5% 10rem;
    background: linear-gradient(rgba(10, 19, 38, 0.85), rgba(10, 19, 38, 0.85)), center/cover no-repeat;
    color: white;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
    display: inline-block;
}

.hero .btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.modules {
    padding: 4rem 5%;
    background: var(--bg);
}

.modules h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.module-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.module-icon {
    font-size: 3.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.module-content {
    flex: 1;
}

.module-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.module-desc {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.card p {
    color: var(--muted);
    line-height: 1.6;
}

.card .date {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.card .read-more {
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.cta {
    padding: 6rem 5%;
    background: var(--surface);
    text-align: center;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.cta p {
    font-size: 1.3rem;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    background: var(--primary);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: inline-block;
}

.hero-buttons .btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1.2rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: inline-block;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.blog, .case-studies {
    padding: 4rem 5%;
    background: var(--bg);
}

.blog h2, .case-studies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
}

.testimonial-author {
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--text);
}

/* ================================================================ */
/* ABOUT PAGE STYLES
/* ================================================================ */

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 1rem 4rem;
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto;
}

.about-story {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--muted);
}

.about-story p {
    margin-bottom: 1.8rem;
}

.about-stats {
    margin: 5rem 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    min-width: 200px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--muted);
}

.about-cta {
    text-align: center;
    margin-top: 4rem;
}

.about-cta h2 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.about-cta .btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    display: inline-block;
}

/* ================================================================ */
/* CONTACT PAGE STYLES
/* ================================================================ */

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1rem 4rem;
}

.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

.contact-layout {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    flex: 1;
    min-width: 280px;
}

.contact-form-card h2 {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.contact-form button {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    color: var(--muted);
}

.contact-info h2 {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-social a {
    color: var(--muted);
    font-size: 1.8rem;
}

.contact-social a:hover {
    color: var(--primary);
}

/* ================================================================ */
/* PRICING PAGE STYLES
/* ================================================================ */

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem 4rem;
}

.pricing-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.pricing-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 3rem;
}

.pricing-toggle {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-toggle-label {
    font-size: 1.2rem;
    margin: 0 1rem;
    color: var(--muted);
    display: inline-block;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.pricing-plans {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    transition: all 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.recommended {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-price span {
    font-size: 1rem;
    color: var(--muted);
}

.price-yearly {
    display: none;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 0.5rem;
}

.plan-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.custom-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 1024px) {
    .pricing-plans {
        flex-wrap: nowrap;
    }
}

/* ================================================================ */
/* MODULES PAGE STYLES
/* ================================================================ */

.modules-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem 4rem;
}

.modules-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.modules-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
}

.modules-hero p {
    font-size: 1.3rem;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.modules-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.modules-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.modules-icon {
    font-size: 3.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.modules-content h3 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.modules-content p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
}

/* Force hide mobile menu on desktop */

/* ================================================================ */
/* LANGUAGE SWITCHER
/* ================================================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
}
.lang-flag {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.lang-flag:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}
.lang-flag.active {
    color: var(--primary);
    background: rgba(99,102,241,0.15);
    font-weight: 600;
}
.lang-divider {
    color: var(--border);
    font-size: 0.8rem;
}

/* ================================================================ */
/* LOGIN PAGE - Dark theme
/* ================================================================ */
.login-body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}
.login-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.login-checkbox {
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}
.login-forgot {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}
.login-forgot:hover {
    color: #818cf8;
}
