/* =====================================================
   4XTRADES - Premium Trading Platform Styles
   Dual Theme: Light (default) + Dark
   ===================================================== */

/* =====================================================
   CSS Variables - LIGHT THEME (Default)
   ===================================================== */
:root {
    --primary-green: #00C853;
    --secondary-green: #00E676;
    --red-accent: #FF1744;

    /* Light Theme Colors */
    --bg: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-rgb: 255, 255, 255;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 200, 83, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);

    --navbar-bg: rgba(255, 255, 255, 0.9);
    --navbar-text: #0F172A;
    --navbar-scrolled: rgba(255, 255, 255, 0.95);

    --footer-bg: #F1F5F9;
    --footer-text: #475569;

    --input-bg: #F8FAFC;
    --input-border: #E2E8F0;
    --input-text: #0F172A;
    --input-placeholder: #94A3B8;

    --btn-outline-text: #0F172A;
    --btn-outline-hover-text: #FFFFFF;

    --loader-bg: #FFFFFF;
    --scrollbar-track: #F1F5F9;
    --scrollbar-thumb: #CBD5E1;

    --card-hover-shadow: 0 15px 40px rgba(0, 200, 83, 0.12);

    --timeline-border: #FFFFFF;
    --dot-border-bg: #FFFFFF;

    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================
   CSS Variables - DARK THEME
   ===================================================== */
[data-theme="dark"] {
    --bg: #0A0A0A;
    --bg-secondary: #0F1629;
    --bg-card: #111827;
    --bg-card-rgb: 17, 24, 39;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(0, 200, 83, 0.4);

    --glass-bg: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --navbar-bg: rgba(10, 10, 10, 0.9);
    --navbar-text: #FFFFFF;
    --navbar-scrolled: rgba(10, 10, 10, 0.95);

    --footer-bg: #111827;
    --footer-text: #9CA3AF;

    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-text: #FFFFFF;
    --input-placeholder: #6B7280;

    --btn-outline-text: #FFFFFF;
    --btn-outline-hover-text: #0A0A0A;

    --loader-bg: #0A0A0A;
    --scrollbar-track: #0A0A0A;
    --scrollbar-thumb: #111827;

    --card-hover-shadow: 0 15px 40px rgba(0, 200, 83, 0.2);

    --timeline-border: #0A0A0A;
    --dot-border-bg: #0A0A0A;
}

/* =====================================================
   Reset & Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-green);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gray {
    color: var(--text-secondary);
}

/* =====================================================
   Utility Classes
   ===================================================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   Glassmorphism Card
   ===================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: var(--card-hover-shadow);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: #0A0A0A;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
    color: #0A0A0A;
}

.btn-outline {
    background: transparent;
    color: var(--btn-outline-text);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: #0A0A0A;
    transform: translateY(-3px);
}

.btn-glow {
    animation: btnGlow 2s infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(0, 200, 83, 0.6); }
}

/* =====================================================
   Theme Toggle Button
   ===================================================== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.15);
}

.theme-toggle i {
    transition: transform 0.4s ease, opacity 0.3s ease;
    position: absolute;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--navbar-scrolled) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

/* =====================================================
   Language Switcher - Professional Dropdown
   ===================================================== */

.lang-switcher-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-language-switcher {
    margin-left: 12px;
}

/* Trigger Button */
.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lang-switcher-btn:hover,
.lang-switcher-wrapper.open .lang-switcher-btn {
    background: rgba(0, 200, 83, 0.12);
    border-color: var(--primary-green, #00C853);
    color: var(--primary-green, #00C853);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.08);
}

.lang-flag {
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
}

.lang-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lang-caret {
    transition: transform 0.22s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.lang-switcher-wrapper.open .lang-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Panel */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 148px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
}

.lang-switcher-wrapper.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Dropdown Options */
.lang-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: rgba(0, 200, 83, 0.1);
    color: var(--primary-green, #00C853);
}

.lang-option.active {
    color: var(--primary-green, #00C853);
    background: rgba(0, 200, 83, 0.08);
    font-weight: 600;
}

.lang-full {
    flex: 1;
}

.lang-check {
    color: var(--primary-green, #00C853);
    flex-shrink: 0;
    stroke-width: 3;
}

.auth-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav .nav-link {
    color: var(--navbar-text) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 200, 83, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-btn {
    padding: 8px 20px !important;
    border-radius: 8px !important;
    margin-left: 10px;
}

.nav-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: #0A0A0A !important;
}

.nav-btn.btn-primary::after {
    display: none;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--bg);
    transition: background-color 0.4s ease;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.06) 0%, transparent 50%);
    animation: rotateBg 30s linear infinite;
}

[data-theme="dark"] .hero-bg::before {
    background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.1) 0%, transparent 50%);
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Floating Symbols */
.floating-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-symbol {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(0, 200, 83, 0.15);
    animation: floatSymbol 10s infinite ease-in-out;
}

[data-theme="dark"] .floating-symbol {
    color: rgba(0, 200, 83, 0.2);
}

.floating-symbol:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-symbol:nth-child(2) { top: 60%; left: 85%; animation-delay: 2s; }
.floating-symbol:nth-child(3) { top: 30%; left: 70%; animation-delay: 4s; }
.floating-symbol:nth-child(4) { top: 70%; left: 20%; animation-delay: 6s; }
.floating-symbol:nth-child(5) { top: 40%; left: 50%; animation-delay: 8s; }

@keyframes floatSymbol {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.6; }
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: pulse 5s infinite ease-in-out;
}

[data-theme="dark"] .glow-orb {
    opacity: 0.4;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    top: 10%;
    right: -100px;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-green);
    bottom: 10%;
    left: -50px;
    animation-delay: 2.5s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

/* pulse animation defined above — opacity handled via .glow-orb rules */

/* Hero Chart SVG */
.hero-chart-grid { stroke: var(--border-color); }
.hero-chart-text { fill: var(--text-muted); }

/* =====================================================
   Why Choose Us Section
   ===================================================== */
.why-card {
    padding: 40px 30px;
    text-align: center;
    height: 100%;
}

.why-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.08), rgba(0, 230, 118, 0.08));
    border-radius: 20px;
    border: 1px solid rgba(0, 200, 83, 0.15);
    transition: var(--transition);
}

[data-theme="dark"] .why-card .icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 230, 118, 0.1));
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.why-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    transform: rotateY(180deg);
}

.why-card .icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-green);
    transition: var(--transition);
}

.why-card:hover .icon-wrapper i {
    color: #0A0A0A;
}

.why-card h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.why-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* =====================================================
   Services Section
   ===================================================== */
.services-section {
    background: var(--bg-secondary);
    transition: background-color 0.4s ease;
}

/* Services section uses var(--bg-secondary) which is theme-aware, no override needed */

.service-card {
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 83, 0.08);
    border-radius: 15px;
    transition: var(--transition);
}

[data-theme="dark"] .service-card .service-icon {
    background: rgba(0, 200, 83, 0.1);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    transform: scale(1.1);
}

.service-card .service-icon i {
    font-size: 1.8rem;
    color: var(--primary-green);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: #0A0A0A;
}

.service-card h5 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =====================================================
   Stats Section
   ===================================================== */
.stats-section {
    background: rgba(0, 200, 83, 0.03);
    position: relative;
    transition: background-color 0.4s ease;
}

[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.05), rgba(0, 230, 118, 0.05));
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.stats-section::before { top: 0; }
.stats-section::after { bottom: 0; }

.stat-card {
    text-align: center;
    padding: 40px 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   Journey/Timeline Section
   ===================================================== */
.journey-section {
    position: relative;
    background: var(--bg);
    transition: background-color 0.4s ease;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green), var(--secondary-green));
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-content {
    width: 45%;
    padding: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    border: 4px solid var(--bg);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.5);
    z-index: 2;
    transition: border-color 0.4s ease;
}

.timeline-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    opacity: 0.3;
    margin-bottom: 10px;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-content { width: calc(100% - 60px); margin-left: 60px !important; }
    .timeline-dot { left: 20px; }
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials-section {
    background: var(--bg);
    transition: background-color 0.4s ease;
}

/* Testimonials section uses var(--bg) which is theme-aware, no override needed */

.testimonial-card {
    padding: 40px;
    margin: 20px;
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-green);
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}

.testimonial-avatar i {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.testimonial-role {
    color: var(--primary-green);
    font-size: 0.9rem;
}

.swiper-pagination-bullet {
    background: var(--text-muted) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-green) !important;
    opacity: 1 !important;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    background: rgba(0, 200, 83, 0.04);
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 230, 118, 0.05));
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.06) 0%, transparent 50%);
    animation: rotateBg 40s linear infinite;
}

[data-theme="dark"] .cta-section::before {
    background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 { margin-bottom: 30px; }

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--footer-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img { height: 35px; }

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary-green);
    color: #0A0A0A;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =====================================================
   Auth Pages (Login/Register)
   ===================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    transition: background-color 0.4s ease;
}

.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.auth-toggle-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.auth-card {
    width: 100%;
    max-width: 500px;
    padding: 50px 40px;
    position: relative;
    transform: none !important;
}

.auth-card.glass-card:hover {
    transform: none !important;
}

.register-card {
    max-width: 640px;
    padding: 42px 38px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.auth-logo h3 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--input-text) !important;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
    color: var(--input-text) !important;
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

/* Fix browser autofill overriding input colors */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--input-text);
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset;
    border-color: var(--input-border);
    transition: background-color 5000s ease-in-out 0s;
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-green);
}

/* Password Requirements Checklist */
.password-requirements {
    margin: -4px 0 18px;
    padding: 14px;
    background: rgba(0, 200, 83, 0.045);
    border: 1px solid rgba(0, 200, 83, 0.16);
    border-radius: 12px;
    font-size: 0.84rem;
}

.password-requirements .req-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.password-requirements .req-title i {
    color: var(--primary-green);
    font-size: 0.95rem;
}

.password-requirements .req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.password-requirements .req-list li {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: color 0.2s ease;
    font-size: 0.8rem;
    line-height: 1.25;
}

.password-requirements .req-list li i {
    font-size: 0.82rem;
    flex-shrink: 0;
}

.password-requirements .req-list li.req-passed {
    color: var(--primary-green);
    border-color: rgba(0, 200, 83, 0.28);
    background: rgba(0, 200, 83, 0.08);
}

.password-requirements .req-list li.req-passed i {
    color: var(--primary-green);
}

.password-requirements .req-list li.req-failed {
    color: var(--text-muted);
}

.password-requirements .req-list li.req-failed i {
    color: var(--red-accent);
}

/* Light theme select dropdown */
select.form-control {
    appearance: auto;
}

select.form-control option {
    background: var(--bg);
    color: var(--text-primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    cursor: pointer;
    accent-color: var(--primary-green);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-green);
    font-weight: 600;
}

.forgot-link {
    display: block;
    text-align: right;
    margin-top: -15px;
    margin-bottom: 25px;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* OTP Input Styles */
.otp-input-wrapper {
    position: relative;
}

.otp-input {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 12px;
    padding: 16px 18px;
    font-family: 'Courier New', Courier, monospace;
}

.otp-input::placeholder {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: normal;
    font-family: var(--font-family);
}

/* OTP Email Display */
.otp-email-display {
    text-align: center;
    padding: 12px 18px;
    margin-bottom: 25px;
    background: rgba(0, 200, 83, 0.06);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

[data-theme="dark"] .otp-email-display {
    background: rgba(0, 200, 83, 0.08);
}

.otp-email-display i {
    color: var(--primary-green);
    margin-right: 6px;
}

/* Resend Link */
.resend-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
}

.resend-link:hover {
    color: var(--secondary-green);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    border: none;
}

.alert-success {
    background: rgba(0, 200, 83, 0.1);
    color: #059669;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

[data-theme="dark"] .alert-success {
    color: var(--primary-green);
}

.alert-danger {
    background: rgba(255, 23, 68, 0.1);
    color: var(--red-accent);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #D97706;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

[data-theme="dark"] .alert-warning {
    color: #FFC107;
}

/* =====================================================
   Dashboard
   ===================================================== */
.dashboard-page {
    min-height: 100vh;
    padding: 40px 0;
    background: var(--bg);
    transition: background-color 0.4s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-logo img { height: 40px; }

.dashboard-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 50px;
}

.dashboard-welcome h2 { margin-bottom: 10px; }

.dashboard-welcome p {
    color: var(--text-secondary);
}

.coming-soon-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 25px;
}

.coming-soon-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.coming-soon-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =====================================================
   Profile Page
   ===================================================== */
.profile-card {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 40px;
}

.profile-card-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-card-header h4 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-header p {
    margin-bottom: 0;
}

.profile-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

/* =====================================================
   Typed.js Cursor
   ===================================================== */
.typed-cursor {
    color: var(--primary-green);
    font-weight: 100;
}

/* =====================================================
   Scroll to Top Button
   ===================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: #0A0A0A;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
}

/* =====================================================
   Loading / Splash Screen
   ===================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loader-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease, background-color 0.4s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Logo Animation */
.loader-logo {
    margin-bottom: 24px;
    animation: loaderLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.loader-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0, 200, 83, 0.3));
}

.loader-logo-fallback {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes loaderLogoIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Welcome Text Animation */
.loader-welcome {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    opacity: 0;
    animation: loaderTextIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.loader-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 35px;
    opacity: 0;
    animation: loaderTextIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes loaderTextIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 3px;
    background: var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    animation: loaderTextIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.loader-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    border-radius: 10px;
    animation: loaderProgress 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
}

@keyframes loaderProgress {
    0% { width: 0%; }
    40% { width: 50%; }
    70% { width: 80%; }
    100% { width: 100%; }
}

/* Glow Pulse behind logo */
.loader-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.15) 0%, transparent 70%);
    animation: loaderGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loaderGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* Old spinner kept for reference, unused */
.loader-spinner {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   Responsive Design — Mobile Center Alignment
   ===================================================== */

/* ---- Tablet & Below (≤991px) ---- */
@media (max-width: 991px) {
    /* Fix: hamburger icon dropping to a second line on some phones.
       Bootstrap's navbar > .container is a flex row that wraps by
       default, so once (logo + brand text + language switcher +
       toggler) together get wider than the viewport, the toggler
       button wraps onto its own row. We keep wrapping enabled (the
       open mobile menu relies on wrapping to drop to its own full
       row) but let the brand text shrink/truncate instead of
       overflowing, so the toolbar row itself never needs to wrap. */
    .navbar > .container {
        flex-wrap: wrap;
    }

    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
        margin-right: auto;
    }

    .navbar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-language-switcher,
    .navbar-toggler {
        flex-shrink: 0;
    }

    /* Always give the open mobile menu its own full-width row
       instead of squeezing into the toolbar row next to the toggler */
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
    }

    /* Navbar Mobile Menu */
    .navbar-collapse {
        background: var(--navbar-bg);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid var(--glass-border);
        transition: background-color 0.4s ease, border-color 0.4s ease;
    }

    /* Kill Bootstrap's default height slide animation on open/close.
       That animation left the rounded card background/border visible
       for ~0.35s while it was still expanding/collapsing, showing an
       empty box before the links appeared/disappeared. Toggling is
       now instant instead. */
    .navbar-collapse.collapsing {
        transition: none;
        -webkit-transition: none;
    }

    .navbar-nav {
        align-items: center;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link {
        text-align: center;
        padding: 12px 20px;
    }

    .nav-btn {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
        width: 100%;
    }

    .theme-toggle {
        margin: 10px auto;
    }

    /* Auth Toggle (top-right on mobile) */
    .auth-toggle-wrapper {
        top: 15px;
        right: 15px;
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
    /* Kill AOS scroll-animations on mobile: without this, elements sit
       off-screen/invisible (their pre-animation state) until the AOS
       script finishes loading over the network, which is what caused
       the page to look "uncentered" for a while before snapping into
       place. On mobile everything should just render in its final
       position immediately. */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    /* General Section Spacing */
    .section-padding { padding: 60px 0; }

    /* ---- Hero Section ---- */
    .hero-section {
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-logo {
        margin-left: auto;
        margin-right: auto;
        animation: none;
        transform: none;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Typed cursor centering */
    .typed-cursor {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* ---- Section Titles ---- */
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        text-align: center;
    }

    .section-subtitle {
        text-align: center;
        font-size: 1rem;
        padding: 0 10px;
    }

    /* ---- Why Cards ---- */
    .why-card {
        text-align: center;
        padding: 30px 20px;
    }

    .why-card .why-icon {
        margin-left: auto;
        margin-right: auto;
    }

    /* ---- Service Cards ---- */
    .service-card {
        text-align: center;
        padding: 30px 20px;
    }

    .service-card .service-icon {
        margin-left: auto;
        margin-right: auto;
    }

    /* ---- Stats ---- */
    .stats-section .stat-card {
        text-align: center;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-card .stat-icon {
        margin-left: auto;
        margin-right: auto;
    }

    /* ---- Timeline ---- */
    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-dot {
        left: -6px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
    }

    /* ---- Testimonials ---- */
    .testimonial-card {
        text-align: center;
        padding: 25px 20px;
    }

    .testimonial-card .testimonial-avatar {
        margin-left: auto;
        margin-right: auto;
    }

    .swiper {
        padding-bottom: 50px;
    }

    /* ---- CTA Section ---- */
    .cta-section {
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* ---- Footer ---- */
    .footer {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .footer-title {
        text-align: center;
        margin-top: 10px;
    }

    .footer-links {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .footer-links li {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    /* ---- Auth Pages (Login / Register) ---- */
    .auth-card {
        padding: 35px 22px;
        margin: 0 10px;
    }

    .auth-header {
        text-align: center;
    }

    .auth-header h2 {
        font-size: 1.6rem;
    }

    .auth-header p {
        font-size: 0.95rem;
    }

    .auth-footer {
        text-align: center;
    }

    .auth-footer p {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    /* Register — stacked form fields */
    .auth-card .row > div {
        margin-bottom: 0;
    }

    /* ---- Dashboard ---- */
    .dashboard-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .dashboard-header-right {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .dashboard-header-right .btn {
        width: 100%;
        max-width: 200px;
    }

    .coming-soon-card {
        padding: 40px 20px;
        text-align: center;
    }

    .coming-soon-card h2 {
        font-size: 1.8rem;
    }

    .coming-soon-card p {
        font-size: 1rem;
    }

    .coming-soon-features .col-md-4 {
        margin-bottom: 20px;
    }

    /* Profile Page Mobile */
    .profile-card {
        padding: 25px 18px;
    }

    .profile-card-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .profile-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .profile-card-footer .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ---- Small Mobile (≤576px) ---- */
@media (max-width: 576px) {
    /* Keep the navbar (logo + language switcher + hamburger) on one
       line on narrow phones by trimming a bit of size/spacing. */
    .navbar-brand img {
        height: 32px;
    }

    .navbar-brand span {
        font-size: 1.15rem;
    }

    .nav-language-switcher {
        margin-left: 8px;
    }

    .lang-switcher-btn {
        padding: 5px 8px;
        height: 32px;
        gap: 4px;
    }

    .navbar-toggler {
        padding: 6px 10px;
    }

    /* Hero */
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* Stats */
    .stat-card {
        padding: 20px 12px;
    }

    .stat-card h2 {
        font-size: 2rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px 15px;
        margin: 10px;
    }

    /* Auth Pages */
    .auth-card {
        padding: 30px 18px;
        border-radius: 18px;
    }

    .auth-header h2 {
        font-size: 1.4rem;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.6rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo span {
        font-size: 1.4rem;
    }

    /* Loader / Splash */
    .loader-logo img {
        height: 60px;
    }

    .loader-logo-fallback {
        font-size: 2.2rem;
    }

    .loader-welcome {
        font-size: 1.3rem;
    }

    .loader-tagline {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .loader-progress {
        width: 160px;
    }

    /* Dashboard */
    .coming-soon-card h2 {
        font-size: 1.5rem;
    }

    .coming-soon-card .coming-icon {
        font-size: 3rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.7rem;
    }

    /* Scroll-to-top button */
    .scroll-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* =====================================================
   Particles.js Container
   ===================================================== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* =====================================================
   Animations
   ===================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-green); }

/* Selection Color */
::selection {
    background: var(--primary-green);
    color: #0A0A0A;
}
