/* =====================================================
   TETTEVI GROUP - Ultra Premium Dark Mode Stylesheet
   Fully Responsive | God Mode Design
   ===================================================== */

:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a25;
    --bg-hover: #22222f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255,255,255,0.08);
    --success: #10b981;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #f97316 100%);
    --gradient-text: linear-gradient(90deg, #a78bfa, #f97316);
    --shadow: 0 10px 40px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Preloader */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg-dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-logo img { width: 80px; animation: pulse 1.5s infinite; }
.loader-bar { width: 200px; height: 3px; background: var(--bg-elevated); border-radius: 3px; margin-top: 24px; overflow: hidden; }
.loader-progress { height: 100%; width: 0; background: var(--gradient); animation: load 1.2s ease-in-out forwards; }
@keyframes load { to { width: 100%; } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* Top Bar */
.top-bar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar-left a { color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.top-bar-left a:hover { color: var(--primary-light); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-hover); display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 0.9rem;
}
.social-icons a:hover { background: var(--primary); color: #fff; }
.theme-btn {
    background: var(--bg-hover); border: none; width: 36px; height: 36px;
    border-radius: 50%; color: var(--text-primary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.theme-btn:hover { background: var(--primary); color: #fff; }

/* Header */
.main-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
[data-theme="light"] .main-header { background: rgba(248,250,252,0.9); }
.main-header.scrolled { box-shadow: var(--shadow); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; }
.logo img { height: 48px; width: auto; max-width: 180px; object-fit: contain; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu > li > a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--text-primary); background: var(--bg-hover); }
.nav-menu > li > a.active { color: var(--primary-light); }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: var(--transition); box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.9rem; }
.dropdown-menu a:hover { background: var(--bg-hover); color: var(--primary-light); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,58,237,0.4); }
.btn-outline {
    background: transparent; border: 1.5px solid var(--border); color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-google:hover { background: #f5f5f5; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

/* Hero Slider - God Mode */
.hero-slider {
    position: relative; height: 92vh; min-height: 560px; max-height: 920px; overflow: hidden;
}
.slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
    background-size: cover; background-position: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(5,5,12,0.92) 0%, rgba(10,10,20,0.75) 45%, rgba(124,58,237,0.35) 100%);
}
.slide-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 780px; padding: 12vh 24px 0;
    /* push text slightly below true center toward middle of viewport */
    padding-top: clamp(18vh, 22vh, 28vh);
    justify-content: flex-start;
}
.slide-content .slide-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; background: rgba(124,58,237,0.25);
    border: 1px solid rgba(167,139,250,0.4); border-radius: 50px;
    color: #e9d5ff; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 20px; width: fit-content; letter-spacing: 0.4px;
}
.slide-content h1 {
    font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700; line-height: 1.15; margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.slide-content h1 span {
    background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.slide-content p {
    font-size: clamp(1rem, 2.2vw, 1.25rem); color: #e2e8f0;
    margin-bottom: 28px; max-width: 560px; line-height: 1.65;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.slider-nav {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 12px;
}
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
    background: transparent; cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--primary); border-color: var(--primary); width: 36px; border-radius: 6px; }
.slider-arrows { position: absolute; top: 50%; width: 100%; z-index: 10; pointer-events: none; }
.slider-arrows button {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 1.2rem; cursor: pointer; pointer-events: all; transition: var(--transition);
}
.slider-arrows .prev { left: 24px; }
.slider-arrows .next { right: 24px; }
.slider-arrows button:hover { background: var(--primary); }

/* Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .badge {
    display: inline-block; padding: 6px 16px; background: rgba(124,58,237,0.15);
    color: var(--primary-light); border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-header h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700;
}
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Service Cards */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition); group: true;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 50px rgba(124,58,237,0.2); }
.service-card .card-img { height: 220px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service-card:hover .card-img img { transform: scale(1.08); }
.service-card .card-body { padding: 28px; }
.service-card .icon {
    width: 56px; height: 56px; border-radius: 14px; background: rgba(124,58,237,0.15);
    display: flex; align-items: center; justify-content: center; color: var(--primary-light);
    font-size: 1.4rem; margin-bottom: 16px;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }
.service-card .card-link { color: var(--primary-light); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link:hover { gap: 10px; }

/* About Preview */
.about-preview {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-preview .img-wrap {
    position: relative; border-radius: var(--radius); overflow: hidden;
}
.about-preview .img-wrap img { width: 100%; height: 500px; object-fit: cover; }
.about-preview .img-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.6), transparent);
}
.about-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px;
}
.stat-item {
    background: var(--bg-elevated); padding: 20px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); text-align: center;
}
.stat-item .number { font-size: 2rem; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item .label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* Team */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px;
}
.team-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-align: center; transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.team-card .team-img {
    height: 320px; overflow: hidden; position: relative;
}
.team-card .team-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card .team-info { padding: 24px; }
.team-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.team-card .role { color: var(--primary-light); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.team-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Blog Cards */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px;
}
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card .blog-img { height: 200px; overflow: hidden; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-card .blog-body { padding: 24px; }
.blog-card .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a:hover { color: var(--primary-light); }
.blog-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 12px; overflow: hidden;
}
.faq-question {
    width: 100%; padding: 20px 24px; background: none; border: none;
    color: var(--text-primary); font-size: 1.05rem; font-weight: 600;
    text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question i { transition: transform 0.3s; color: var(--primary-light); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-secondary); }

/* Contact Form */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
}
.contact-info-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 36px;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-item {
    display: flex; gap: 16px; margin-bottom: 24px;
}
.contact-item .icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(124,58,237,0.15);
    display: flex; align-items: center; justify-content: center; color: var(--primary-light); flex-shrink: 0;
}
.contact-form {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 1rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    width: 100%; max-width: 420px; padding: 36px; position: relative;
    transform: scale(0.95); transition: var(--transition);
}
.modal.auth-split {
    max-width: 860px !important;
    padding: 0 !important;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    font-size: 1.5rem; color: var(--text-muted); cursor: pointer;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.auth-tab {
    flex: 1; padding: 12px; background: var(--bg-elevated); border: none;
    border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 600; cursor: pointer;
}
.auth-tab.active { background: var(--primary); color: #fff; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-divider {
    text-align: center; margin: 20px 0; position: relative; color: var(--text-muted); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.g-recaptcha { margin: 16px 0; transform: scale(0.95); transform-origin: left; }

/* AI Chat – God Mode */
.ai-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    font-family: var(--font);
}
.ai-chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s;
}
.ai-chat-toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 32px rgba(124, 58, 237, 0.55);
}
.ai-chat-toggle .pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 2s infinite;
    pointer-events: none;
}
.ai-chat-widget.open .ai-chat-toggle .pulse { display: none; }
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}
.ai-chat-box {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: min(520px, calc(100dvh - 120px));
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}
.ai-chat-box.open { display: flex; }
.ai-chat-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #7c3aed 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #fff;
}
[data-theme="light"] .ai-chat-header {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}
.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.ai-chat-header strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
}
.ai-chat-header .status {
    font-size: 0.72rem;
    color: #86efac;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-chat-header .status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}
.ai-chat-header button {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ai-chat-header button:hover { background: rgba(255, 255, 255, 0.25); }

.ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px 0;
    flex-shrink: 0;
}
.ai-chip {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: inherit;
}
.ai-chip:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(124, 58, 237, 0.1);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.ai-msg {
    margin-bottom: 12px;
    max-width: 90%;
    animation: fadeInUp 0.35s ease;
}
.ai-msg p {
    margin: 0;
    line-height: 1.55;
    font-size: 0.9rem;
}
.ai-msg.bot {
    background: var(--bg-elevated);
    padding: 12px 14px;
    border-radius: 14px 14px 14px 4px;
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.ai-msg.user {
    background: var(--primary);
    color: #fff;
    padding: 12px 14px;
    border-radius: 14px 14px 4px 14px;
    margin-left: auto;
}
.ai-msg.typing {
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    width: fit-content;
}
.ai-msg.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing-dot 1.2s infinite ease-in-out;
}
.ai-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.ai-chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--border);
    gap: 8px;
    flex-shrink: 0;
    background: var(--bg-card);
}
.ai-chat-input input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 0;
}
.ai-chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}
.ai-chat-input button {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--gradient);
    border: none;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-chat-input button:hover { opacity: 0.9; }

@media (max-width: 768px) {
    .ai-chat-widget {
        bottom: 18px;
        right: 16px;
    }
    .ai-chat-toggle {
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }
    .ai-chat-box {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 80px;
        width: auto;
        max-width: none;
        height: min(70dvh, 560px);
        border-radius: 16px;
    }
    .ai-chat-messages { padding: 12px; }
    .ai-chat-suggestions { padding: 10px 12px 0; }
}
@media (max-width: 400px) {
    .ai-chat-box {
        left: 8px;
        right: 8px;
        bottom: 76px;
        height: min(68dvh, 520px);
    }
}

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px;
    border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 1.1rem; cursor: pointer; opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 9980;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* Footer */
.main-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); margin-top: 80px; }
.footer-top { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.footer-about p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg-hover);
    display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--primary-light); }
.badge { background: var(--accent); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--text-secondary); font-size: 0.95rem; }
.contact-list i { color: var(--primary-light); margin-top: 3px; }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 24px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }

/* Page Hero */
.page-hero {
    padding: 120px 0 80px; text-align: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(249,115,22,0.1));
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary-light); }

/* User Menu */
.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 8px; background: var(--bg-hover);
    border: none; padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-primary); cursor: pointer;
}
.user-dropdown {
    position: absolute; top: 100%; right: 0; min-width: 200px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); box-shadow: var(--shadow);
}
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); }
.user-dropdown a:hover { background: var(--bg-hover); color: var(--primary-light); }

/* Responsive */
@media (max-width: 1024px) {
    .about-preview { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar-left { display: none; }
    /* Desktop nav hidden on mobile – mobile drawer handles menu */
    .desktop-nav { display: none !important; }
    .mobile-toggle { display: flex; z-index: 1001; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-slider { height: 78vh; min-height: 480px; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .slider-arrows { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-actions .btn-outline { display: none; }
    .services-grid, .blog-grid, .team-grid { grid-template-columns: 1fr; }
}

/* Admin/User Dashboard shared */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; background: var(--bg-elevated); border-right: 1px solid var(--border);
    padding: 24px 0; position: fixed; height: 100vh; overflow-y: auto;
}
.sidebar .logo { padding: 0 24px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar nav a {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
    color: var(--text-secondary); font-weight: 500;
}
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(124,58,237,0.1); color: var(--primary-light); border-right: 3px solid var(--primary); }
.main-content { flex: 1; margin-left: 260px; padding: 32px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px;
}
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.3rem; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-card .stat-label { color: var(--text-secondary); font-size: 0.9rem; }
.table-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th, .table-card td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.table-card th { background: var(--bg-elevated); font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.table-card tr:hover td { background: var(--bg-hover); }
.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-draft { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.badge-new { background: rgba(124,58,237,0.15); color: var(--primary-light); }

@media (max-width: 900px) {
    .sidebar { width: 70px; }
    .sidebar .logo span, .sidebar nav a span { display: none; }
    .main-content { margin-left: 70px; }
}

/* ========== GOD MODE AUTH MODAL ========== */
.auth-modal {
    max-width: 440px; width: calc(100% - 32px);
    padding: 32px 28px 36px;
    background: var(--bg-card);
    border: 1px solid rgba(124,58,237,0.25);
    box-shadow: 0 25px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(167,139,250,0.1);
}
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-logo { height: 52px; width: auto; margin: 0 auto 12px; }
.auth-welcome { color: var(--text-secondary); font-size: 0.95rem; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 24px; background: var(--bg-elevated); padding: 5px; border-radius: 12px; }
.auth-tab {
    flex: 1; padding: 12px 10px; background: transparent; border: none;
    border-radius: 9px; color: var(--text-secondary); font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition); font-size: 0.9rem;
}
.auth-tab.active { background: var(--gradient); color: #fff; box-shadow: 0 4px 15px rgba(124,58,237,0.35); }
.auth-tab:not(.active):hover { color: var(--text-primary); background: var(--bg-hover); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; width: 100%; }
.toggle-pass {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px;
}
.toggle-pass:hover { color: var(--primary-light); }
.auth-options {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; font-size: 0.85rem;
}
.remember-me { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); cursor: pointer; }
.remember-me input { width: auto; accent-color: var(--primary); }
.forgot-link { color: var(--primary-light); }
.forgot-link:hover { text-decoration: underline; }
.btn-auth { padding: 14px 24px; font-size: 1rem; margin-top: 8px; }
.auth-form .form-group label { display: flex; align-items: center; gap: 8px; }
.auth-form .form-group label i { color: var(--primary-light); font-size: 0.85rem; }
.auth-form .g-recaptcha { margin: 12px 0; transform: scale(0.92); transform-origin: 0 0; }
@media (max-width: 480px) {
    .auth-modal { padding: 24px 18px 28px; max-height: 92vh; overflow-y: auto; }
    .auth-form .g-recaptcha { transform: scale(0.85); }
}

/* ========== MOBILE OVERFLOW & RESPONSIVE FIXES ========== */
html, body { max-width: 100vw; overflow-x: hidden; }
*, *::before, *::after { max-width: 100%; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.section { overflow-x: hidden; }
.services-grid, .blog-grid, .team-grid, .about-preview, .contact-grid, .footer-grid, .stats-row, .form-row {
    width: 100%; max-width: 100%;
}

@media (max-width: 1024px) {
    .about-preview { grid-template-columns: 1fr !important; gap: 32px; }
    .about-preview .img-wrap img { height: 320px; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px; }
}

@media (max-width: 768px) {
    .top-bar { padding: 6px 0; }
    .top-bar-left { display: none !important; }
    .navbar { height: 64px; }
    .logo img { height: 40px; max-width: 140px; }
    .nav-actions .btn-sm { padding: 7px 12px; font-size: 0.8rem; }
    .hero-slider { height: 78vh; min-height: 480px; max-height: none; }
    .slide-content { padding: 0 16px; max-width: 100%; }
    .slide-content h1 { font-size: clamp(1.75rem, 7vw, 2.6rem); }
    .slide-content p { font-size: 0.95rem; margin-bottom: 22px; }
    .slider-arrows { display: none; }
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 36px; padding: 0 8px; }
    .services-grid, .blog-grid, .team-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .service-card .card-img, .blog-card .blog-img { height: 180px; }
    .team-card .team-img { height: 280px; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
    .footer-top { padding: 48px 0 28px; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
    .page-hero { padding: 90px 0 50px; }
    .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); padding: 0 8px; }
    .form-row { grid-template-columns: 1fr !important; }
    .back-to-top { bottom: 20px; left: 16px; width: 42px; height: 42px; }
    .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-item .number { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .nav-actions .btn-outline { display: none; }
    .slide-content .slide-badge { font-size: 0.75rem; padding: 6px 12px; }
    .btn { padding: 11px 18px; font-size: 0.9rem; }
    .contact-info-card, .contact-form { padding: 22px 16px; }
    .faq-question { padding: 16px; font-size: 0.95rem; }
    .faq-answer-inner { padding: 0 16px 16px; font-size: 0.9rem; }
}

/* Prevent horizontal scroll on tables */
.table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-card table { min-width: 480px; }

/* Dashboard mobile */
@media (max-width: 900px) {
    .sidebar { width: 64px; }
    .sidebar .logo span, .sidebar nav a span { display: none; }
    .main-content { margin-left: 64px; padding: 20px 14px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .stats-row { grid-template-columns: 1fr; }
    .main-content { margin-left: 0; padding: 16px 12px; }
    .sidebar { transform: translateX(-100%); z-index: 2000; }
}

/* Honeypot - hide from humans */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.recaptcha-wrap {
    margin: 12px 0 4px;
    min-height: 0;
    overflow: hidden;
}
.g-recaptcha-box {
    transform-origin: 0 0;
}
.g-recaptcha-box:empty { display: none; }
/* Hide Google's "ERROR for site owner" red box if it appears */
.g-recaptcha-bubble-arrow,
iframe[src*="recaptcha"][title*="error"] { max-width: 100%; }

/* Extra polish upgrades */
.main-header {
    background: rgba(10, 10, 15, 0.92);
}
[data-theme="light"] .main-header {
    background: rgba(255, 255, 255, 0.94);
}
.service-card, .blog-card, .team-card, .contact-info-card, .contact-form, .faq-item {
    backdrop-filter: blur(8px);
}
.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #f97316 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.slide-content .btn-outline {
    border-color: rgba(255,255,255,0.45);
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.slide-content .btn-outline:hover {
    background: rgba(255,255,255,0.18);
    border-color: #fff;
}
.page-hero {
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.navbar { gap: 12px; }
.logo img {
    filter: drop-shadow(0 2px 8px rgba(124,58,237,0.25));
}

/* Suppress Google reCAPTCHA "ERROR for site owner" UI when key type is wrong */
.grecaptcha-badge { visibility: hidden !important; }
div[style*="border: 1px solid"][style*="rgb(255"][style*="100"] {
  /* red error boxes from recaptcha */
}
.rc-anchor-error-msg-container,
.rc-anchor-error-message,
div.g-recaptcha > div > div[style*="color: rgb(255"] {
  display: none !important;
}

/* ========== GOD MODE SPLIT AUTH MODAL ========== */
.auth-modal.auth-split {
    max-width: 860px;
    width: calc(100% - 24px);
    padding: 0;
    display: flex;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: none;
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}
[data-theme="dark"] .auth-modal.auth-split {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.auth-left {
    width: 42%;
    min-width: 260px;
    background: linear-gradient(160deg, #1a0a2e 0%, #2d1b4e 40%, #7c3aed 100%);
    padding: 40px 32px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(249,115,22,0.25), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(167,139,250,0.3), transparent 45%);
    pointer-events: none;
}
.auth-left-inner { position: relative; z-index: 1; color: #fff; }
.auth-left-logo {
    height: 48px;
    width: auto;
    margin-bottom: 28px;
    filter: brightness(1.1);
}
.auth-left-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #fff;
}
.auth-left-title span {
    background: linear-gradient(90deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-left-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 28px;
}
.auth-left-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-left-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}
.auth-left-features i { color: #fbbf24; }

.auth-right {
    flex: 1;
    padding: 36px 36px 32px;
    background: #fff;
    overflow-y: auto;
    max-height: 90vh;
}
[data-theme="dark"] .auth-right {
    background: var(--bg-card);
}

.auth-split .auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}
[data-theme="dark"] .auth-split .auth-tabs { background: var(--bg-elevated); }
.auth-split .auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: var(--transition);
}
.auth-split .auth-tab.active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
[data-theme="dark"] .auth-split .auth-tab.active {
    background: var(--gradient);
    color: #fff;
}

.auth-split .form-group { margin-bottom: 14px; }
.auth-split .form-group label { display: none; } /* icon inputs self-label via placeholder */

.input-icon {
    position: relative;
}
.input-icon-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px 0 0 8px;
    border: 1px solid #e2e8f0;
    border-right: none;
    color: #64748b;
    font-size: 0.9rem;
    z-index: 1;
}
[data-theme="dark"] .input-icon-left {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-muted);
}
.input-icon input {
    padding-left: 56px !important;
    padding-right: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    width: 100%;
}
[data-theme="dark"] .input-icon input {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-primary);
}
.input-icon input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.input-icon .toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    z-index: 2;
}
.input-icon .toggle-pass:hover { color: #7c3aed; }

.form-row-names {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.85rem;
}
.remember-me {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
}
[data-theme="dark"] .remember-me { color: var(--text-secondary); }
.remember-me input { width: auto; margin-top: 2px; accent-color: #7c3aed; }
.remember-me a { color: #7c3aed; text-decoration: underline; }
.forgot-link { color: #7c3aed; }
.check-group { margin-bottom: 10px; }

.auth-split .btn-auth {
    height: 48px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
    background: #0f172a;
    color: #fff;
    border: none;
}
.auth-split .btn-auth:hover {
    background: #1e293b;
    transform: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
[data-theme="dark"] .auth-split .btn-auth {
    background: var(--gradient);
}
.auth-split .btn-google {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}
[data-theme="dark"] .auth-split .btn-google {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-primary);
}
.auth-split .auth-divider {
    margin: 16px 0;
    color: #94a3b8;
}
.auth-split .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    border: none;
    font-size: 1.3rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-split .modal-close:hover { background: rgba(0,0,0,0.12); color: #0f172a; }
[data-theme="dark"] .auth-split .modal-close {
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-success { background: rgba(16,185,129,0.15); color: #059669; }
.alert-error { background: rgba(239,68,68,0.12); color: #dc2626; }

/* Split modal responsive */
@media (max-width: 720px) {
    .auth-modal.auth-split {
        flex-direction: column;
        max-width: 420px;
        max-height: 92vh;
    }
    .auth-left {
        width: 100%;
        min-width: 0;
        padding: 24px 20px;
    }
    .auth-left-title { font-size: 1.35rem; }
    .auth-left-text { display: none; }
    .auth-left-features { display: none; }
    .auth-left-logo { height: 40px; margin-bottom: 12px; }
    .auth-right {
        padding: 24px 20px 28px;
        max-height: none;
    }
    .form-row-names { grid-template-columns: 1fr; }
}

/* ========== MOBILE DRAWER (Print People style) ========== */
.mobile-drawer {
    display: none;
}
.mobile-drawer-backdrop {
    display: none;
}

@media (max-width: 768px) {
    .desktop-nav { display: none !important; }

    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background: var(--bg-dark);
        z-index: 10050;
        padding: 16px 18px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
        opacity: 1;
        visibility: visible;
    }
    .mobile-drawer.active {
        transform: translateX(0);
    }
    .mobile-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 10040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        touch-action: none;
    }
    .mobile-drawer-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-top: 4px;
    }
    .mobile-drawer-logo img {
        height: 36px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
    }
    .mobile-drawer-close {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        color: var(--text-primary);
        font-size: 1.15rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .mobile-drawer-close:hover { background: var(--bg-hover); }

    .mobile-search {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: 50px;
        padding: 12px 18px;
        margin-bottom: 28px;
    }
    .mobile-search i { color: var(--text-muted); font-size: 0.95rem; }
    .mobile-search input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-primary);
        font-size: 0.95rem;
    }
    .mobile-search input::placeholder { color: var(--text-muted); }

    .mobile-section-label {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        color: var(--text-muted);
        margin-bottom: 12px;
        padding-left: 4px;
    }

    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 28px;
    }
    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 10px;
        border-radius: 12px;
        color: var(--text-primary);
        font-weight: 500;
        font-size: 1rem;
        text-decoration: none;
        background: transparent;
        border: none;
        width: 100%;
        cursor: pointer;
        text-align: left;
        transition: background 0.2s;
    }
    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        background: rgba(124, 58, 237, 0.12);
        color: var(--text-primary);
    }
    .mni-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-light);
        font-size: 1rem;
        flex-shrink: 0;
    }
    .mobile-nav-item.active .mni-icon {
        background: rgba(124, 58, 237, 0.2);
        border-color: rgba(124, 58, 237, 0.35);
        color: var(--primary-light);
    }
    .mni-chevron {
        margin-left: auto;
        color: var(--text-muted);
        font-size: 0.75rem;
        transition: transform 0.25s;
    }
    .mobile-nav-toggle.open .mni-chevron {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 54px;
    }
    .mobile-submenu.open {
        max-height: 200px;
    }
    .mobile-submenu a {
        display: block;
        padding: 10px 12px;
        color: var(--text-secondary);
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .mobile-submenu a:hover {
        color: var(--primary-light);
        background: rgba(124, 58, 237, 0.08);
    }

    .mobile-quick-contact {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }
    .mqc-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 16px 8px;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: 14px;
        color: var(--text-primary);
        font-size: 0.8rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }
    .mqc-btn i {
        font-size: 1.25rem;
        color: var(--primary-light);
    }
    .mqc-btn:hover {
        background: var(--bg-hover);
        border-color: rgba(124, 58, 237, 0.35);
    }

    /* Body scroll lock when menu open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        left: 0;
        right: 0;
        touch-action: none;
    }
    html.menu-open {
        overflow: hidden !important;
    }

    /* Hide old nav-menu mobile rules conflict */
    .nav-menu:not(.desktop-nav) {
        /* handled by .mobile-drawer */
    }
    .mobile-toggle { display: flex; z-index: 1001; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Slider text a bit lower on mobile too */
    .slide-content {
        padding-top: clamp(16vh, 20vh, 24vh) !important;
        justify-content: flex-start !important;
    }
}

@media (min-width: 769px) {
    .mobile-drawer,
    .mobile-drawer-backdrop { display: none !important; }
    .desktop-nav { display: flex !important; }
}

/* ========== ANIMATIONS & MOTION ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.slide.active .slide-content > * {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slide.active .slide-content > *:nth-child(1) { animation-delay: 0.1s; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: 0.25s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: 0.4s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: 0.5s; }

.service-card, .blog-card, .team-card {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.3s ease;
}
.service-card:hover, .blog-card:hover, .team-card:hover {
    transform: translateY(-10px);
}

.btn {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::after {
    opacity: 1;
    animation: shimmer 1.2s ease;
}

.stat-item .number {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.stat-item {
    transition: transform 0.35s ease, border-color 0.3s;
}
.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.4);
}

/* Smoother page transitions */
.page-hero h1 {
    letter-spacing: -0.03em;
    font-weight: 700;
}
.slide-content h1 {
    letter-spacing: -0.03em;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .slide.active .slide-content > *, .service-card, .blog-card, .team-card, .btn-primary::after {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== LEGAL PAGES (Privacy / Terms) – God Mode ========== */
.legal-page {
    max-width: 820px;
}
.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.legal-meta i { color: var(--primary-light); }

.legal-intro {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.legal-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
    font-size: 1.05rem;
}
.legal-intro a { color: var(--primary-light); text-decoration: underline; }

.legal-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 48px;
}
.legal-toc h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.legal-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 1;
}
@media (min-width: 640px) {
    .legal-toc ol { columns: 2; column-gap: 32px; }
}
.legal-toc li {
    margin-bottom: 8px;
    break-inside: avoid;
}
.legal-toc a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: color 0.2s;
}
.legal-toc a:hover { color: var(--primary-light); }

.legal-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    letter-spacing: -0.02em;
    margin: 40px 0 14px;
    padding-top: 8px;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
}
.legal-body h2:first-of-type { border-top: none; margin-top: 0; }
.legal-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--text-primary);
}
.legal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
    font-size: 0.98rem;
}
.legal-body ul {
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--text-secondary);
}
.legal-body ul li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.98rem;
    list-style: disc;
}
.legal-body a {
    color: var(--primary-light);
}
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text-primary); font-weight: 600; }

.legal-contact {
    margin-top: 16px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.legal-contact p {
    margin-bottom: 12px;
}
.legal-contact p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .legal-meta { flex-direction: column; gap: 10px; }
    .legal-toc { padding: 20px; }
    .legal-body h2 { margin-top: 32px; }
}
