/* ===================================================================
   AndrewCyberTech — Custom Styles
   =================================================================== */

/* ---------- CSS Variables / Theme ---------- */
:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --secondary: #0a1628;
    --accent: #00ff88;
    --dark-bg: #0b1120;
    --card-bg: #111c32;
    --card-border: #1a2a48;
    --text-light: #c8d6e5;
    --text-white: #f0f4f8;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    --gradient-dark: linear-gradient(180deg, #0b1120 0%, #162040 100%);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --transition: all 0.3s ease;
}

/* ---------- Global ---------- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

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

::selection { background: var(--primary); color: var(--secondary); }

/* ---------- Navbar ---------- */
.navbar-cyber {
    background: rgba(11, 17, 32, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.8rem 0;
    transition: var(--transition);
}
.navbar-cyber.scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.navbar-cyber .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.navbar-cyber .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}
.navbar-cyber .nav-link:hover,
.navbar-cyber .nav-link.active {
    color: var(--primary) !important;
}
.navbar-cyber .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}
.navbar-cyber .nav-link:hover::after,
.navbar-cyber .nav-link.active::after {
    width: 70%;
}

/* ---------- Hero ---------- */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,255,136,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
}
.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn-cyber {
    background: var(--gradient-primary);
    color: var(--secondary) !important;
    border: none;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}
.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.35);
    color: var(--secondary) !important;
}
.btn-cyber-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-cyber-outline:hover {
    background: var(--primary);
    color: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.25);
}
.btn-whatsapp {
    background: #25d366;
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    color: #fff !important;
}

/* ---------- Sections ---------- */
.section-padding { padding: 5rem 0; }
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ---------- Cards ---------- */
.cyber-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}
.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.cyber-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: var(--primary);
}
.cyber-card h5 {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
}
.cyber-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- Stats ---------- */
.stats-section {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Certification Badges ---------- */
.cert-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin: 0.3rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ---------- Team ---------- */
.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.team-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.2rem;
    color: var(--secondary);
    font-weight: 800;
}

/* ---------- Contact Form ---------- */
.form-cyber .form-control,
.form-cyber .form-select {
    background: var(--secondary);
    border: 1px solid var(--card-border);
    color: var(--text-white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}
.form-cyber .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    background: var(--secondary);
    color: var(--text-white);
}
.form-cyber .form-control::placeholder {
    color: #5a6a80;
}
.form-cyber label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* ---------- Blog News Cards ---------- */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.news-card .news-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}
.news-card .news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}
.news-card .news-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}
.news-card .news-date {
    font-size: 0.8rem;
    color: #5a6a80;
}

/* ---------- Footer ---------- */
.footer-cyber {
    background: var(--secondary);
    border-top: 1px solid var(--card-border);
    padding: 3rem 0 1.5rem;
}
.footer-cyber h6 {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}
.footer-cyber p, .footer-cyber li, .footer-cyber a {
    color: var(--text-light);
    font-size: 0.9rem;
}
.footer-cyber a:hover { color: var(--primary); }
.footer-cyber ul { list-style: none; padding: 0; }
.footer-cyber ul li { margin-bottom: 0.5rem; }
.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* ---------- Chatbot Widget ---------- */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: var(--transition);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}
.chatbot-toggle .badge-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 520px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 1049;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}
.chatbot-window.open { display: flex; }
.chatbot-header {
    background: var(--secondary);
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chatbot-header h6 {
    margin: 0;
    color: var(--text-white);
    font-weight: 700;
}
.chatbot-header .status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 350px;
}
.chat-msg {
    margin-bottom: 0.8rem;
    display: flex;
}
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
    max-width: 85%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
    background: var(--secondary);
    color: var(--text-light);
    border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
    background: var(--primary);
    color: var(--secondary);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.chatbot-input {
    padding: 0.8rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 0.5rem;
}
.chatbot-input input {
    flex: 1;
    background: var(--secondary);
    border: 1px solid var(--card-border);
    color: var(--text-white);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.chatbot-input input:focus {
    border-color: var(--primary);
}
.chatbot-input button {
    background: var(--gradient-primary);
    border: none;
    color: var(--secondary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}
.chatbot-input button:hover { opacity: 0.9; }

/* Chat scrollbar */
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }

/* ---------- Admin ---------- */
.admin-sidebar {
    background: var(--secondary);
    min-height: 100vh;
    border-right: 1px solid var(--card-border);
    padding-top: 1rem;
}
.admin-sidebar .nav-link {
    color: var(--text-light);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    margin: 0.2rem 0.5rem;
    transition: var(--transition);
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}
.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}
.admin-stat-card:hover { border-color: var(--primary); }
.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 5rem 0 4rem; }
    .section-title { font-size: 1.8rem; }
    .chatbot-window {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 90px;
    }
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* ---------- Typing indicator ---------- */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.7rem 1rem;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* ---------- Subscribe CTA ---------- */
.subscribe-section {
    background: linear-gradient(135deg, #0a1628 0%, #162040 50%, #0a1628 100%);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

/* ---------- Page headers ---------- */
.page-header {
    background: var(--gradient-dark);
    padding: 6rem 0 3rem;
    border-bottom: 1px solid var(--card-border);
}
.page-header h1 {
    font-weight: 800;
    color: var(--text-white);
}
.page-header .breadcrumb-item a { color: var(--primary); }
.page-header .breadcrumb-item.active { color: var(--text-light); }

/* ---------- Misc ---------- */
.table-cyber {
    color: var(--text-light);
}
.table-cyber thead th {
    border-bottom: 2px solid var(--card-border);
    color: var(--text-white);
    font-weight: 600;
}
.table-cyber td {
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle;
}
.badge-unread {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-escalated {
    background: rgba(255, 99, 71, 0.15);
    color: #ff6347;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Grid pattern overlay */
.grid-pattern {
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
