/* =============================================
   MMIT Informatička rješenja - Main Stylesheet
   ============================================= */

:root {
    --primary: #1e3a5f;
    --primary-dark: #142940;
    --primary-light: #2a5080;
    --accent: #2980b9;
    --accent-hover: #1a6a9a;
    --orange: #e67e22;
    --text: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; }

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

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

/* ---- Top Bar ---- */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    padding: 6px 0;
}
.topbar span { display: inline-flex; align-items: center; }
.topbar i { color: var(--accent); }
.topbar-link { color: rgba(255,255,255,0.75); font-size: 0.82rem; }
.topbar-link:hover { color: #fff; }

/* ---- Navbar ---- */
#mainNav {
    background: var(--primary) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 12px 0;
    transition: padding 0.3s;
}
#mainNav.scrolled { padding: 8px 0; }

.brand-logo { line-height: 1.1; }
.brand-mm { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; color: #fff; }
.brand-it { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.brand-sub { font-size: 0.65rem; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; }

.nav-link { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.3px; padding: 8px 14px !important; }
.nav-link.active { color: var(--accent) !important; }
.nav-link:hover { color: #fff !important; }

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-sm);
    padding: 8px 0;
}
.dropdown-item { font-size: 0.9rem; padding: 8px 18px; }
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); }

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0 120px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title .highlight { color: var(--accent); }
.hero-text { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 500px; }

.min-vh-75 { min-height: 75vh; }

.btn-primary-custom {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(41,128,185,0.4);
}
.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41,128,185,0.5);
}
.btn-outline-custom {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

.hero-graphic { position: relative; }
.hero-icon-wrap {
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: rgba(255,255,255,0.15);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

/* ---- Section Styles ---- */
.section-padding { padding: 80px 0; }
.section-badge {
    display: inline-block;
    background: rgba(41,128,185,0.1);
    color: var(--accent);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); margin: 8px 0 12px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }
.section-header .section-sub { max-width: 600px; }

/* ---- Stats ---- */
.stats-section { background: var(--white); }
.stat-card {
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* ---- Service Cards ---- */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(41,128,185,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 18px;
}
.service-card h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.service-link { color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.service-link:hover { color: var(--accent-hover); }

/* ---- Why Us ---- */
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon { color: var(--accent); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.why-item strong { display: block; color: var(--primary); font-size: 0.95rem; margin-bottom: 2px; }

/* ---- Info Box (Company Table) ---- */
.info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}
.company-table { width: 100%; }
.company-table td { padding: 7px 12px 7px 0; font-size: 0.9rem; vertical-align: top; }
.company-table td:first-child { color: var(--text-muted); font-weight: 500; white-space: nowrap; width: 130px; }
.company-table td:last-child { color: var(--text); }
.company-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

/* ---- News Cards ---- */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-date { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.news-title { color: var(--primary); font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.news-excerpt { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; flex: 1; }
.news-more { color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.news-more:hover { color: var(--accent-hover); }

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
}
.cta-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; position: relative; }
.cta-sub { color: rgba(255,255,255,0.75); font-size: 1.05rem; position: relative; }

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.page-hero .breadcrumb { background: transparent; padding: 0; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.4); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ---- About ---- */
.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.about-icon-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.about-icon-card:hover { transform: translateY(-4px); }
.about-icon-card h5 { color: var(--primary); font-size: 0.95rem; margin-bottom: 4px; }

/* ---- Services Detail ---- */
.service-detail { padding: 60px 0; }
.service-detail-icon-wrap {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 1;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255,255,255,0.15);
}
.service-divider { border-color: var(--border); margin: 0; }
.service-feature-list { list-style: none; padding: 0; margin-top: 20px; }
.service-feature-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.95rem; }
.service-feature-list i { color: var(--accent); flex-shrink: 0; }

/* ---- Reference ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.reference-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}
.reference-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.reference-img { height: 220px; overflow: hidden; position: relative; cursor: pointer; }
.reference-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.reference-card:hover .reference-img img { transform: scale(1.05); }
.reference-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,58,95,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.reference-card:hover .reference-overlay { opacity: 1; }
.reference-img-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}
.reference-body { padding: 20px; }
.reference-cat {
    display: inline-block;
    background: rgba(41,128,185,0.1);
    color: var(--accent);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.reference-title { color: var(--primary); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.reference-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 8px; }
.reference-date { color: var(--text-muted); font-size: 0.8rem; }

/* ---- Contact ---- */
.contact-info-list { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-icon {
    width: 46px;
    height: 46px;
    background: rgba(41,128,185,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-info-item strong { display: block; color: var(--primary); font-size: 0.9rem; margin-bottom: 3px; }
.contact-info-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.contact-info-item a { color: var(--text-muted); }
.contact-info-item a:hover { color: var(--accent); }

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.contact-form-wrap h4 { color: var(--primary); }
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
    outline: none;
}
.form-label { font-weight: 500; font-size: 0.9rem; color: var(--primary); margin-bottom: 6px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---- EU Box ---- */
.eu-box {
    background: #f0f7ff;
    border: 1px solid #c3ddf5;
    border-left: 4px solid #003399;
    border-radius: var(--radius);
    padding: 28px;
}
.eu-box h4 { color: var(--primary); margin-bottom: 8px; }

/* ---- Article ---- */
.article-wrap { }
.article-meta { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.article-title { color: var(--primary); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 24px; }
.article-img img { width: 100%; border-radius: var(--radius); }
.article-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.article-content h2, .article-content h3, .article-content h4 { color: var(--primary); margin-top: 28px; }
.article-content img { border-radius: var(--radius-sm); max-width: 100%; }
.article-content ul, .article-content ol { padding-left: 24px; }
.article-content p { margin-bottom: 16px; }

.article-nav { border-top: 1px solid var(--border); padding-top: 24px; }
.article-nav-link { display: block; }
.article-nav-link .nav-label { display: block; color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-bottom: 3px; }
.article-nav-link .nav-title { display: block; color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.article-nav-link:hover .nav-title { color: var(--accent); }

/* ---- Footer ---- */
.footer { background: var(--primary-dark); }
.footer-top { padding: 60px 0 40px; }
.footer-brand .brand-mm { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-brand .brand-it { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.footer-heading { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.footer-contact i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom p, .footer-bottom span { color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.footer-policy-link { color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.footer-policy-link:hover { color: rgba(255,255,255,0.7); }

/* ---- Pagination ---- */
.pagination .page-link { color: var(--primary); border-radius: var(--radius-sm) !important; margin: 0 2px; border: 1.5px solid var(--border); }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); }
.pagination .page-link:hover { background: var(--bg-light); color: var(--primary); }

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */
.admin-body { background: #f1f5f9; }

.admin-sidebar {
    background: var(--primary-dark);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.admin-sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-brand .brand-mm { font-size: 1.4rem; }
.admin-sidebar-brand .brand-it { font-size: 1.4rem; }
.admin-sidebar-brand small { color: rgba(255,255,255,0.4); font-size: 0.7rem; display: block; margin-top: 2px; }

.admin-nav { padding: 16px 0; flex: 1; }
.admin-nav-label { color: rgba(255,255,255,0.3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 12px 20px 6px; font-weight: 600; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-nav-link i { width: 18px; text-align: center; font-size: 0.95rem; }
.admin-nav-link:hover, .admin-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: var(--accent);
}

.admin-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--white);
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar h6 { color: var(--primary); font-weight: 700; margin: 0; font-size: 1rem; }
.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.admin-user-badge .avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-main { padding: 28px; flex: 1; }

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    overflow: hidden;
}
.admin-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}
.admin-card-header h5 { margin: 0; color: var(--primary); font-size: 1rem; }
.admin-card-body { padding: 24px; }

.stat-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 4px solid var(--accent);
}
.stat-widget-icon {
    width: 52px;
    height: 52px;
    background: rgba(41,128,185,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}
.stat-widget-num { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-widget-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

.admin-table { font-size: 0.9rem; }
.admin-table th { background: var(--bg-light); color: var(--primary); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border) !important; }
.admin-table td { vertical-align: middle; }
.admin-table img { width: 50px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }

.badge-published { background: #d1fae5; color: #065f46; font-size: 0.75rem; padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.badge-hidden { background: #fee2e2; color: #991b1b; font-size: 0.75rem; padding: 3px 10px; border-radius: 50px; font-weight: 600; }

/* Admin Login */
.admin-login-wrap {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.admin-login-box {
    background: var(--white);
    border-radius: 16px;
    padding: 44px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Image preview in admin */
.img-preview-wrap {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.img-preview-wrap:hover { border-color: var(--accent); }
.img-preview-wrap img { max-height: 160px; border-radius: var(--radius-sm); }
.img-preview-wrap .placeholder-text { color: var(--text-muted); font-size: 0.88rem; }

/* Rich text editor */
.ql-editor { min-height: 300px; font-size: 1rem; font-family: 'Roboto', sans-serif; }
.ql-toolbar { border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important; }
.ql-container { border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-260px); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .service-detail-icon-wrap { max-width: 200px; }
    .about-image-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .section-padding { padding: 50px 0; }
    .hero { min-height: auto; }
    .hero-content { padding: 60px 0 80px; }
    .contact-form-wrap { padding: 24px; }
    .admin-card-body { padding: 16px; }
    .admin-main { padding: 16px; }
    .about-image-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .stat-card { padding: 20px 15px; }
    .stat-number { font-size: 2rem; }
}

/* =============================================
   LANDING PAGE – lp- prefix
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---- Hero ---- */
.lp-hero {
    position: relative;
    min-height: 100vh;
    background: #070d1a;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.lp-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    pointer-events: none;
}

.lp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(41,128,185,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41,128,185,0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 90% at 38% 55%,
        rgba(7,13,26,0) 0%,
        rgba(7,13,26,0.35) 55%,
        rgba(7,13,26,0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

.lp-hero-content {
    position: relative;
    z-index: 2;
    padding: 130px 0 145px;
}

/* Badge */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(41,128,185,0.1);
    border: 1px solid rgba(41,128,185,0.28);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 26px;
    letter-spacing: 0.4px;
    animation: lp-up 0.9s ease both;
}

.lp-badge-dot {
    width: 8px; height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00d4ff, 0 0 16px rgba(0,212,255,0.4);
    animation: lp-pdot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes lp-pdot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.7; }
}

/* Title */
.lp-title {
    font-family: 'Syne', 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
    animation: lp-up 0.9s ease 0.12s both;
}

.lp-title-accent {
    background: linear-gradient(90deg, #2980b9 0%, #00d4ff 60%, #2980b9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lp-shine 4s linear infinite;
    position: relative;
}

.lp-title-accent::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2980b9, #00d4ff, transparent);
    border-radius: 2px;
}

@keyframes lp-shine {
    to { background-position: 200% center; }
}

/* Subtitle */
.lp-subtitle {
    font-size: 1.07rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 34px;
    animation: lp-up 0.9s ease 0.24s both;
}

/* Buttons */
.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: lp-up 0.9s ease 0.36s both;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2980b9, #1a6a9a);
    color: #fff;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(41,128,185,0.5);
    box-shadow: 0 4px 22px rgba(41,128,185,0.38), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: all 0.28s;
    text-decoration: none;
}
.lp-btn-primary:hover {
    background: linear-gradient(135deg, #3291cc, #2980b9);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(41,128,185,0.52), 0 0 0 1px rgba(0,212,255,0.35);
}

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.78);
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.14);
    transition: all 0.28s;
    backdrop-filter: blur(6px);
    text-decoration: none;
}
.lp-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.28);
}

/* Mini stats strip */
.lp-hero-stats-mini {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.09);
    animation: lp-up 0.9s ease 0.5s both;
}

.lp-hs-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-hs-num {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 1.55rem;
    font-weight: 500;
    color: #00d4ff;
    line-height: 1;
    text-shadow: 0 0 18px rgba(0,212,255,0.35);
}

.lp-hs-lbl {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.lp-hs-div {
    width: 1px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Orbit visual */
.lp-hero-visual {
    position: relative;
    width: 390px;
    height: 390px;
}

.lp-center-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 86px; height: 86px;
    background: linear-gradient(145deg, #1e3a5f, #2980b9);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #fff;
    z-index: 10;
    box-shadow:
        0 0 28px rgba(41,128,185,0.55),
        0 0 70px rgba(41,128,185,0.2),
        0 0 120px rgba(0,212,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.lp-orbit-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(41,128,185,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.lp-orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(41,128,185,0.22);
}

.lp-orbit-1 {
    width: 168px; height: 168px;
    margin: -84px 0 0 -84px;
    animation: lp-rotate-cw 8s linear infinite;
    border-color: rgba(41,128,185,0.38);
}
.lp-orbit-2 {
    width: 270px; height: 270px;
    margin: -135px 0 0 -135px;
    animation: lp-rotate-ccw 15s linear infinite;
    border-color: rgba(41,128,185,0.22);
    border-style: dashed;
}
.lp-orbit-3 {
    width: 374px; height: 374px;
    margin: -187px 0 0 -187px;
    animation: lp-rotate-cw 24s linear infinite;
    border-color: rgba(41,128,185,0.12);
}

@keyframes lp-rotate-cw {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes lp-rotate-ccw {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(-360deg); }
}

.lp-orbit-dot {
    position: absolute;
    top: -19px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 38px;
    background: rgba(7,13,26,0.92);
    border: 1px solid rgba(41,128,185,0.55);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #2980b9;
    box-shadow: 0 0 14px rgba(41,128,185,0.28), inset 0 0 10px rgba(41,128,185,0.06);
    z-index: 5;
}

.lp-orbit-1 .lp-orbit-dot { animation: lp-ccw-keep 8s linear infinite; }
.lp-orbit-2 .lp-orbit-dot { animation: lp-cw-keep  15s linear infinite; }
.lp-orbit-3 .lp-orbit-dot { animation: lp-ccw-keep 24s linear infinite; }

@keyframes lp-ccw-keep {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(-360deg); }
}
@keyframes lp-cw-keep {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

/* Wave */
.lp-hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
    z-index: 3;
}
.lp-hero-wave svg { display: block; width: 100%; }

/* ---- Services enhancements ---- */
.lp-services .service-card {
    overflow: hidden;
    position: relative;
}

.lp-services .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #2980b9, #00d4ff, transparent);
    transition: left 0.55s ease;
}
.lp-services .service-card:hover::before { left: 110%; }

.lp-services .service-card:hover .service-icon {
    background: linear-gradient(135deg, #2980b9, #1a6a9a);
    border-color: transparent;
    box-shadow: 0 0 22px rgba(41,128,185,0.4);
}
.lp-services .service-card:hover .service-icon i {
    color: #fff;
}

/* ---- Terminal widget ---- */
.lp-terminal {
    background: #070d1a;
    border: 1px solid rgba(41,128,185,0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 24px 64px rgba(0,0,0,0.35),
        0 0 0 1px rgba(41,128,185,0.08),
        inset 0 0 60px rgba(41,128,185,0.02);
}

.lp-terminal-bar {
    background: #0d1829;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(41,128,185,0.14);
}

.lp-td {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.lp-td-red    { background: #ff5f57; }
.lp-td-yellow { background: #febc2e; }
.lp-td-green  { background: #28c840; }

.lp-terminal-title {
    flex: 1;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.3);
}

.lp-terminal-body {
    padding: 26px 28px 24px;
}

.lp-tl {
    display: flex;
    gap: 10px;
    margin-bottom: 13px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    transition-delay: calc(var(--ti, 1) * 0.07s);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    flex-wrap: wrap;
}

.lp-terminal.in-view .lp-tl {
    opacity: 1;
    transform: translateX(0);
}

.lp-tp { color: #2980b9; flex-shrink: 0; }
.lp-tk { color: rgba(255,255,255,0.32); white-space: pre; flex-shrink: 0; }
.lp-tv { color: #00d4ff; word-break: break-all; }
.lp-tv a { color: #00d4ff; text-decoration: none; }
.lp-tv a:hover { color: #fff; text-decoration: underline; }
.lp-tv-green { color: #28c840 !important; }

.lp-cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: #2980b9;
    border-radius: 1px;
    margin-left: 2px;
    vertical-align: middle;
    animation: lp-blink 1.1s step-end infinite;
}

@keyframes lp-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- CTA ---- */
.lp-cta {
    background: #070d1a;
    padding: 110px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.lp-cta-glow {
    position: absolute;
    top: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    pointer-events: none;
}
.lp-cta-glow-l {
    left: -160px;
    background: radial-gradient(circle, rgba(41,128,185,0.08) 0%, transparent 70%);
}
.lp-cta-glow-r {
    right: -160px;
    background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
}

.lp-cta-badge {
    display: inline-block;
    background: rgba(41,128,185,0.12);
    border: 1px solid rgba(41,128,185,0.25);
    color: rgba(255,255,255,0.65);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
    position: relative;
}

.lp-cta-title {
    font-family: 'Syne', 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    position: relative;
    letter-spacing: -0.5px;
}

.lp-cta-sub {
    color: rgba(255,255,255,0.5);
    font-size: 1.05rem;
    margin-bottom: 0;
    position: relative;
}

/* ---- Scroll reveal ---- */
.lp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--rd, 0s);
}

.lp-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Hero entrance animations ---- */
@keyframes lp-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- LP Responsive ---- */
@media (max-width: 1199px) {
    .lp-orbit-3 { display: none; }
    .lp-hero-visual { width: 320px; height: 320px; }
    .lp-orbit-2 { width: 250px; height: 250px; margin: -125px 0 0 -125px; }
}

@media (max-width: 991px) {
    .lp-hero-content { padding: 90px 0 110px; }
    .lp-title { font-size: 3rem; letter-spacing: -0.5px; }
}

@media (max-width: 767px) {
    .lp-hero-content { padding: 80px 0 95px; }
    .lp-hero-stats-mini { gap: 18px; }
    .lp-hs-num { font-size: 1.3rem; }
    .lp-cta { padding: 70px 0; }
}

@media (max-width: 575px) {
    .lp-title { font-size: 2.5rem; }
    .lp-hero-stats-mini { flex-wrap: wrap; gap: 14px 20px; }
    .lp-hs-div { display: none; }
    .lp-actions { flex-direction: column; }
    .lp-btn-primary, .lp-btn-ghost { justify-content: center; }
}
