/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #27ae60;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
}

html {
    scroll-behavior: smooth;
}

.lang-en, .lang-sq {
    display: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    height: 60px;
    background: linear-gradient(90deg, #1a2535 0%, #2c3e50 100%);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.22);
    border-bottom: 2px solid var(--secondary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}

.logo-text:hover { opacity: 0.85; }

.logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: white;
}

.logo-name em {
    color: var(--secondary-color);
    font-style: normal;
}

.logo-sub {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

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

nav a {
    color: rgba(255,255,255,0.82);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.25s ease;
}

nav a:hover {
    color: white;
}

nav a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    gap: 3px;
    margin-left: 1.2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.65);
    padding: 3px 9px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

/* Main content */
main {
    margin-top: 60px;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    padding: 70px 2rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-logo-wrap {
    margin-bottom: 2rem;
}

.hero-logo {
    height: 180px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    background: white;
    padding: 10px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 50px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    display: inline-flex;
    width: auto !important;
    max-width: 320px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #27ae60 0%, #1f9a4d 100%);
    color: white;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    font-size: 0.92rem;
    box-shadow: 0 8px 18px rgba(39, 174, 96, 0.14);
}

.hero-btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
}

.btn-icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}

.btn:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #23a64a 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(39, 174, 96, 0.28);
}

/* Sections */
.section-padding {
    padding: 80px 2rem;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Certification section */
.certification {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.certification::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.certification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cert-header {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.certification h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.cert-subtitle {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.85;
    max-width: 700px;
    margin: 0 auto;
}

.cert-subtitle strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cert-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 174, 96, 0.1);
    position: relative;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 15px 15px 0 0;
}

.cert-icon {
    font-size: 2.4rem;
    margin-bottom: 15px;
    display: block;
    color: var(--secondary-color);
}

.cert-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cert-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Agencies section - grid moderne */
.agencies-section {
    background: var(--light-bg);
    padding: 80px 5%;
    text-align: center;
}

.agencies-section > h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.agencies-subtitle {
    color: #444;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    line-height: 1.85;
}

.agencies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    max-width: 1150px;
    margin: 0 auto;
}

.agency-card {
    background: white;
    border-radius: 14px;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.agency-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(39,174,96,0.15);
    border-color: rgba(39,174,96,0.3);
}

.agency-logo {
    height: 64px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.agency-card h3 {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.agency-card p {
    font-size: 0.78rem;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* Security section */
.security-section {
    background: linear-gradient(135deg, #1a2535 0%, #2c3e50 50%, #183a28 100%);
    color: white;
}

.security-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.security-title {
    text-align: center;
    margin-bottom: 3rem;
}

.security-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.security-title p {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.security-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.security-item:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(39,174,96,0.45);
    transform: translateY(-4px);
}

.sec-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--secondary-color);
}

.security-item h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.security-item p {
    font-size: 0.85rem;
    opacity: 0.78;
    line-height: 1.65;
}

/* Contact form */
footer#contact {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
    font-family: inherit;
}

.char-count {
    display: block;
    text-align: right;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.form-submit .btn:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Login styles */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Contact success message */
.contact-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.contact-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-size: 2rem;
    margin-bottom: 1.2rem;
}
.contact-success h4 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 0 0 0.75rem;
}
.contact-success p {
    color: #555;
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Alert messages */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer minimal (pages auth/dashboard) */
.footer-minimal {
    text-align: center;
    padding: 1.2rem;
    font-size: 0.82rem;
    color: #999;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Language management */
.lang-en, .lang-sq {
    display: none;
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive design */
@media (max-width: 1024px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .certification h2 { font-size: 1.8rem; }
}

@media (max-width: 900px) {
    .agencies-grid { grid-template-columns: repeat(3, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Hamburger active */
    .nav-toggle { display: flex; }

    nav {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #1a2535 0%, #2c3e50 100%);
        border-top: 2px solid var(--secondary-color);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.25s ease;
        z-index: 999;
        pointer-events: none;
        overflow-y: auto;
        max-height: calc(100vh - 56px);
    }

    nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    nav ul li { width: 100%; }

    nav ul li a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding-bottom: 0.9rem;
    }

    nav ul li a::after { display: none; }
}

/* ══════════════════════════════════════
   Admin — Product database table
══════════════════════════════════════ */
.product-db {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    max-height: 440px;
    overflow-y: auto;
}
.prod-cat-group {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}
.prod-cat-label {
    background: #2c3e50;
    color: #fff;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: 0.02em;
}
.prod-row-item {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}
.prod-row-item:last-child {
    border-bottom: none;
}
.prod-row-item.selected {
    background: rgba(39, 174, 96, 0.07);
}
.prod-row-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.83rem;
    color: #444;
    font-weight: 400;
    margin: 0;
}
.prod-row-label:hover {
    background: #f5faf6;
}
.prod-row-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #27ae60;
}
.prod-row-activity {
    font-size: 0.83rem;
    color: #444;
    line-height: 1.3;
}
.prod-row-item.selected .prod-row-label {
    color: #27ae60;
}
.prod-row-item.selected .prod-row-activity {
    color: #27ae60;
    font-weight: 600;
}

    nav ul li:last-child a { border-bottom: none; }

    .lang-switcher {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 0.85rem 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .lang-btn {
        padding: 8px 18px;
        font-size: 0.82rem;
        min-height: 36px;
    }

    /* Layout */
    header {
        padding: 0 1rem;
        height: 56px;
    }

    main {
        margin-top: 56px;
    }

    /* Hero */
    .hero {
        padding: 50px 1rem;
    }

    .hero-logo {
        height: 130px;
        max-width: 240px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Sections */
    .section-padding {
        padding: 40px 1rem;
    }

    .agencies-section {
        padding: 40px 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .cert-card {
        padding: 30px 20px;
    }

    .cert-icon {
        font-size: 2.8rem;
    }

    .cert-card h3 {
        font-size: 1.1rem;
    }

    .cert-subtitle {
        font-size: 1rem;
    }

    .security-title h2 {
        font-size: 1.8rem;
    }

    /* Forms */
    .contact-form {
        margin: 20px 0;
        padding: 20px;
    }

    .contact-form h3 {
        font-size: 1.4rem;
    }

    .login-form {
        padding: 1.8rem 1.5rem;
    }

    .login-container {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .agencies-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    header { height: 52px; }
    main { margin-top: 52px; }
    nav { top: 52px; max-height: calc(100vh - 52px); }

    .logo-name { font-size: 1rem; }
    .logo-sub { font-size: 0.6rem; }

    .hero {
        padding: 36px 1rem;
        min-height: auto;
    }
    .hero-logo { height: 100px; max-width: 190px; }
    .hero h2 { font-size: 1.45rem; }
    .hero p { font-size: 0.9rem; }

    .certification h2,
    .security-title h2,
    .agencies-section > h2 { font-size: 1.4rem; }

    .contact-form { padding: 16px; margin: 10px 0; }
    .form-group input,
    .form-group textarea { padding: 12px 14px; font-size: 0.95rem; }
    .form-submit .btn { padding: 12px 24px; font-size: 0.95rem; width: 100%; }

    .login-form { padding: 1.4rem 1rem; }
    .agencies-grid { grid-template-columns: 1fr; }
}