/* ============================================================
   MalwareCare - Main Stylesheet
   Version: 1.0 | Author: MalwareCare Dev Team
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    --primary: #0B1F33;
    --secondary: #007BFF;
    --accent: #00FF99;
    --accent-glow: rgba(0, 255, 153, 0.2);
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --text: #1A2332;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 24px rgba(11, 31, 51, 0.08);
    --shadow-hover: 0 12px 40px rgba(11, 31, 51, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 80px;
}

/* ── Dark Mode ────────────────────────────────────────────── */
[data-theme="dark"] {
    --primary: #0F2A45;
    --secondary: #3B9EFF;
    --accent: #00FF99;
    --bg: #080E18;
    --bg-alt: #0D1929;
    --text: #E2EBF6;
    --text-muted: #94A3B8;
    --border: #1E3148;
    --card-bg: #0D1929;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* ── Base Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ────────────────────────────────────────────── */
::selection { background: var(--accent); color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.navbar {
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: var(--transition);
    z-index: 1000;
}

[data-theme="dark"] .navbar {
    background: rgba(8, 14, 24, 0.95);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-brand img {
    height: 42px;
    width: auto;
}

.navbar-brand span {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

[data-theme="dark"] .navbar-brand span { color: #fff; }

.navbar-brand span em {
    color: var(--accent);
    font-style: normal;
}

.navbar-nav .nav-link {
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(0, 123, 255, 0.08);
}

/* Services Dropdown */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    background: var(--card-bg);
    padding: 0.75rem;
    min-width: 240px;
    animation: dropIn 0.2s ease;
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-alt);
    border-color: var(--border);
}

.dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.dropdown-item i { color: var(--secondary); font-size: 0.875rem; min-width: 16px; }
.dropdown-item:hover { background: rgba(0,123,255,0.1); color: var(--secondary); }

.btn-nav-contact {
    background: linear-gradient(135deg, var(--secondary), #0056d6);
    color: #fff !important;
    border-radius: 8px;
    padding: 0.4rem 1.25rem !important;
    font-weight: 600 !important;
    border: none;
}
.btn-nav-contact:hover { 
    background: linear-gradient(135deg, var(--accent), #00cc7a) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* Dark mode toggle */
.dark-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}
.dark-toggle:hover { background: var(--bg-alt); color: var(--secondary); }

/* Search form */
.nav-search-form { position: relative; }
.nav-search-form input {
    width: 200px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.8rem;
    padding: 0.35rem 2rem 0.35rem 1rem;
    transition: var(--transition);
}
.nav-search-form input:focus {
    outline: none;
    border-color: var(--secondary);
    width: 240px;
}
.nav-search-form button {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    background: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,153,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,153,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridPulse 8s ease-in-out infinite;
}

.hero-bg-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(0,123,255,0.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-bg-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,255,153,0.1) 0%, transparent 70%);
    bottom: -50px; left: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,255,153,0.1);
    border: 1px solid rgba(0,255,153,0.3);
    color: var(--accent);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 480px;
}

.hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat .number {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stat .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

/* Hero visual */
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-shield {
    width: 480px;
    height: 480px;
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.65rem 1.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #0056d6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,123,255,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0056d6, var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,123,255,0.4);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,255,153,0.2);
}
.btn-accent:hover {
    background: #00e68a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,255,153,0.35);
    color: var(--primary);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-lg { padding: 0.85rem 2.25rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; border-radius: 6px; }

/* ══════════════════════════════════════════════════════════
   SECTION STYLES
══════════════════════════════════════════════════════════ */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    background: rgba(0,123,255,0.08);
    border: 1px solid rgba(0,123,255,0.2);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.accent-underline {
    position: relative;
    display: inline-block;
}
.accent-underline::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.mc-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.mc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.mc-card:hover::before { opacity: 1; }

.card-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,255,153,0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.mc-card:hover .card-icon {
    background: linear-gradient(135deg, var(--secondary), #00cc7a);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Service card */
.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1.25rem;
    transition: var(--transition);
}
.service-card .card-link:hover { gap: 0.75rem; color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   STATS COUNTER
══════════════════════════════════════════════════════════ */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0D2640 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,255,153,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,255,153,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.stat-item { text-align: center; position: relative; z-index: 1; }

.stat-item .stat-number {
    font-family: var(--font-main);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   PROCESS / TIMELINE
══════════════════════════════════════════════════════════ */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.process-step:hover { border-color: var(--secondary); transform: translateX(8px); }

.step-number {
    min-width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-dot {
    position: absolute;
    left: -2rem;
    width: 20px; height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    top: 4px;
}
.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    height: 100%;
}
.testimonial-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.testimonial-author img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-title { font-size: 0.8rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   BLOG CARDS
══════════════════════════════════════════════════════════ */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}
.blog-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.blog-card:hover .blog-card-img img { transform: scale(1.08); }

.blog-card-category {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ══════════════════════════════════════════════════════════
   TEAM CARDS
══════════════════════════════════════════════════════════ */
.team-card {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}
.team-card img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.team-card:hover img { border-color: var(--accent); transform: scale(1.05); }
.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role { font-size: 0.83rem; color: var(--secondary); font-weight: 500; margin-bottom: 0.75rem; }
.team-social { display: flex; justify-content: center; gap: 0.5rem; }
.team-social a {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.team-social a:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* ══════════════════════════════════════════════════════════
   INDUSTRIES SECTION
══════════════════════════════════════════════════════════ */
.industry-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    margin: 0.35rem;
    cursor: default;
}
.industry-pill i { color: var(--secondary); }
.industry-pill:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-2px);
}
.industry-pill:hover i { color: #fff; }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.mc-form .form-control,
.mc-form .form-select {
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}
.mc-form .form-control:focus,
.mc-form .form-select:focus {
    background: var(--card-bg);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    color: var(--text);
}
.mc-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* Contact form */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
}

[data-theme="dark"] .footer { background: #050C17; }

.footer h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}
.footer a:hover { color: var(--accent); padding-left: 4px; }

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 0;
}

.footer-bottom {
    padding: 1.25rem 0;
    background: rgba(0,0,0,0.2);
}

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.newsletter-form-footer { display: flex; gap: 0.5rem; }
.newsletter-form-footer input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
}
.newsletter-form-footer input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form-footer input:focus { outline: none; border-color: var(--accent); }
.newsletter-form-footer button {
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form-footer button:hover { background: #00e68a; }

/* ══════════════════════════════════════════════════════════
   FLOATING BUTTONS
══════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--secondary), #0056d6);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(0,123,255,0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    border: none;
    z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,123,255,0.4); }

.whatsapp-btn {
    position: fixed;
    bottom: 5rem; right: 1.5rem;
    width: 44px; height: 44px;
    background: #25D366;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}
.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   COOKIE CONSENT
══════════════════════════════════════════════════════════ */
.cookie-consent {
    position: fixed;
    bottom: 1.5rem; left: 1.5rem;
    max-width: 380px;
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    display: none;
}
.cookie-consent.show { display: block; animation: slideInUp 0.4s ease; }
.cookie-title { font-weight: 700; color: #fff; margin-bottom: 0.5rem; font-size: 0.95rem; }
.cookie-text { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.cookie-btns { display: flex; gap: 0.75rem; }
.cookie-accept {
    flex: 1;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}
.cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Newsletter popup */
.newsletter-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    display: none;
}
.newsletter-popup.show { display: flex; animation: fadeIn 0.3s ease; }
.newsletter-popup-inner {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    position: relative;
}
.newsletter-popup-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.2);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO BANNERS
══════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0D2640 100%);
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,255,153,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,255,153,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.75rem); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb-item a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.breadcrumb-item.active { color: var(--accent); font-size: 0.875rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

/* ══════════════════════════════════════════════════════════
   BLOG DETAIL
══════════════════════════════════════════════════════════ */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.blog-content pre {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
}
.blog-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 1rem 1.5rem;
    background: rgba(0,123,255,0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Tags */
.tag-pill {
    display: inline-block;
    background: rgba(0,123,255,0.08);
    border: 1px solid rgba(0,123,255,0.2);
    color: var(--secondary);
    border-radius: 50px;
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition);
}
.tag-pill:hover { background: var(--secondary); color: #fff; }

/* ══════════════════════════════════════════════════════════
   BADGES & CHIPS
══════════════════════════════════════════════════════════ */
.badge-accent {
    background: rgba(0,255,153,0.15);
    color: var(--accent);
    border: 1px solid rgba(0,255,153,0.3);
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}
@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(600px); }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════════════ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.admin-sidebar {
    width: 260px;
    background: var(--primary);
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.admin-sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-logo span {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.admin-sidebar-logo span em { color: var(--accent); font-style: normal; }

.sidebar-nav { padding: 1rem 0; }
.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
    padding: 0.5rem 1.25rem 0.25rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-link i { font-size: 1rem; min-width: 18px; }
.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 64px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-content { padding: 2rem; flex: 1; }

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.admin-page-subtitle { font-size: 0.875rem; color: var(--text-muted); }

/* Stats cards */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.stat-card-value {
    font-family: var(--font-main);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.75rem 0 0.25rem;
}
.stat-card-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* Admin table */
.admin-table {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.admin-table .table { margin: 0; }
.admin-table .table th {
    background: var(--bg-alt);
    border-color: var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.9rem 1rem;
}
.admin-table .table td {
    border-color: var(--border);
    vertical-align: middle;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
}
[data-theme="dark"] .admin-table .table { color: var(--text); }
[data-theme="dark"] .admin-table .table td,
[data-theme="dark"] .admin-table .table th { border-color: var(--border); }

/* Admin form card */
.admin-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.text-accent { color: var(--accent) !important; }
.text-secondary-mc { color: var(--secondary) !important; }
.bg-primary-mc { background: var(--primary); }
.gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.border-accent { border-color: var(--accent) !important; }

/* Divider */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), transparent);
    margin: 3rem 0;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-alt) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Page loader */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
#page-loader.fade-out { opacity: 0; pointer-events: none; }

.loader-ring {
    width: 60px; height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .hero-visual { margin-top: 3rem; }
}

@media (max-width: 767.98px) {
    section { padding: 56px 0; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .hero-stat .number { font-size: 1.5rem; }
    .stat-item .stat-number { font-size: 2.25rem; }
    .admin-content { padding: 1.25rem; }
    .contact-card { padding: 1.5rem; }
    .navbar-brand span { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
}
