/* ============================================
   EZANVEL SOLUTIONS - Futuristic AI Brand
   ============================================ */

:root {
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-elevated: #1a2234;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.3);
    --success: #10b981;
    --border: rgba(148, 163, 184, 0.12);
    --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #0f172a 40%, #1e1b4b 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 40px var(--accent-glow);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-header {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.site-header.scrolled { background: rgba(10, 14, 23, 0.95); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
}

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

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: color var(--transition), background var(--transition);
}

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

.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 0.5rem 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    list-style: none;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text);
}
.dropdown a:hover { background: rgba(6, 182, 212, 0.1); color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .btn-header { display: none; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-elevated);
        border-left: 1px solid var(--border);
        padding: 5rem 1.5rem 1.5rem;
        transition: right var(--transition);
        overflow-y: auto;
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        margin-left: 1rem;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .has-dropdown:hover .dropdown,
    .has-dropdown.open .dropdown { max-height: 500px; }
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, var(--secondary-glow) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero .section-label { margin-bottom: 1rem; }

.hero h1 {
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---- Sections ---- */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

/* ---- Problems / Pain points ---- */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.problem-card {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.problem-card::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

/* ---- Services ---- */
.services-list { margin-top: 2rem; }

.service-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 80px;
}

.service-block:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .service-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
}

.service-block:nth-child(even) .service-block-content { order: 2; }
.service-block:nth-child(even) .service-block-features { order: 1; }
@media (max-width: 768px) {
    .service-block:nth-child(even) .service-block-content,
    .service-block:nth-child(even) .service-block-features { order: unset; }
}

.service-block h3 {
    color: var(--text);
    margin-bottom: 0.75rem;
}

.service-block-features ul {
    list-style: none;
}

.service-block-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.service-block-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

/* ---- Industries ---- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.industry-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}

.industry-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.industry-card span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

/* ---- Why Choose Us ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.why-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.why-card h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ---- Case Study ---- */
.case-study {
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.case-study h3 { color: var(--text); margin-bottom: 1rem; }

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Forms ---- */
.form-section {
    padding: 4rem 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-group.full { grid-column: 1 / -1; }

.consultation-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.lead-magnet {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.lead-magnet h3 { color: var(--accent); margin-bottom: 0.5rem; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: #6ee7b7; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #fca5a5; }

/* ---- CTA ---- */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
}

.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section .section-label { margin-bottom: 0.5rem; }

/* ---- Footer ---- */
.site-footer {
    padding: 4rem 0 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-tagline { color: var(--accent); font-family: var(--font-heading); font-weight: 600; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.95rem; margin-bottom: 0.5rem; }

.footer-links h4,
.footer-cta h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-cta p { margin-bottom: 1rem; font-size: 0.95rem; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ---- WhatsApp float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ---- Chatbot ---- */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform var(--transition);
}

.chatbot-toggle:hover { transform: scale(1.03); }

.chatbot-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 480px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-panel.open { display: flex; }

.chatbot-header {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.chatbot-header h3 { margin: 0; font-size: 1.1rem; }
.chatbot-header p { margin: 0.25rem 0 0; font-size: 0.85rem; }

.chatbot-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.chatbot-close:hover { color: var(--text); }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--gradient-accent);
    color: #f9fafb;
    font-weight: 500;
}

.chat-msg.user p {
    color: #f9fafb;
}

.chat-msg.bot a,
.chat-msg.user a {
    color: var(--accent-hover);
    text-decoration: underline;
}

.chatbot-input-wrap {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chatbot-input-wrap input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.chatbot-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
}

.chatbot-input-wrap button {
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.chatbot-input-wrap button:hover { background: var(--accent-hover); }

/* ---- Page header (inner pages) ---- */
.page-hero {
    padding: 8rem 0 3rem;
    background: var(--gradient-hero);
    text-align: center;
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { margin: 0; font-size: 1.1rem; }

/* ---- Blog ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.8;
}

.blog-card-content { padding: 1.5rem; flex: 1; }
.blog-card-content h3 { color: var(--text); margin-bottom: 0.5rem; font-size: 1.2rem; }
.blog-card-content p { margin: 0; font-size: 0.95rem; }
.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ---- Tech stack ---- */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---- Post content (blog) ---- */
.post-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
.post-content h3:first-of-type { margin-top: 0; }
.post-content p { margin-bottom: 1rem; }
.post-content a { color: var(--accent); text-decoration: none; }
.post-content a:hover { text-decoration: underline; }

/* ---- Utilities ---- */
.main-content { padding-top: 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
