/* ── Phase 1–3 UI enhancements ── */

.nav-btn-admin { display: none !important; }

.nav-links a.nav-link-item {
    position: relative;
    font-weight: 500;
    padding: 6px 0;
}
.nav-links a.nav-link-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}
.nav-links a.nav-link-item.active::after,
.nav-links a.nav-link-item:hover::after { width: 100%; }
.nav-links a.nav-link-item.active { color: var(--primary); font-weight: 700; }

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hero .btn-outline {
    border-color: rgba(255,255,255,0.85);
    color: #fff;
    background: transparent;
}
.hero .btn-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.admin-hero-bg-preview {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid #45475a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}
.form-group .form-control { margin-bottom: 0; }
.btn .btn-spinner { margin-left: 8px; }
.btn.is-loading .btn-text { opacity: 0.85; }

#stats-section .stat-number { font-variant-numeric: tabular-nums; }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.show { display: block; opacity: 1; }
.menu-toggle { z-index: 1001; transition: transform 0.2s; }
.menu-toggle.is-open { transform: rotate(90deg); }

@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        background: var(--bg-card);
        padding: 90px 24px 24px;
        gap: 18px;
        border-left: 1px solid var(--border);
        box-shadow: -12px 0 40px rgba(0,0,0,0.15);
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-links.show-mobile { transform: translateX(0); }
    .nav-links .lang-switcher { margin-top: 8px; }
}

.portfolio-card {
    cursor: pointer;
}
.portfolio-card .portfolio-view-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateY(4px);
    transition: 0.25s ease;
}
.portfolio-card:hover .portfolio-view-hint { opacity: 1; transform: translateY(0); }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; animation: fadeIn 0.25s ease; }
.modal-content {
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    animation: slideUp 0.3s ease;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 2;
}
.portfolio-modal-img { width: 100%; height: 280px; object-fit: cover; border-radius: 16px 16px 0 0; }
.portfolio-modal-body { padding: 28px; }
.portfolio-modal-body h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 12px; }
.portfolio-modal-body p { color: var(--text-muted); line-height: 1.7; }

.site-footer { background: var(--accent); color: #94a3b8; padding: 60px 0 0; width: 100%; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-social { margin-top: 16px; }
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    font-family: 'Outfit', sans-serif;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}
.footer-logo-link { justify-content: flex-start; margin-bottom: 0; }

.testimonial-carousel { position: relative; max-width: 800px; margin: 0 auto; }
.testimonial-track-wrap { overflow: hidden; border-radius: 16px; }
.testimonial-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-slide {
    min-width: 100%;
    padding: 4px;
}
.testimonial-slide .testimonial-card { margin: 0; }
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    transition: 0.2s;
}
.carousel-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: 0.2s;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.15); }

.reveal-card,
.service-card,
.why-card,
.stat-item {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}
.service-card:hover,
.portfolio-card:hover,
.stat-item:hover {
    box-shadow: 0 20px 40px -12px rgba(220, 38, 38, 0.18);
}
.btn:active { transform: scale(0.98); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-text-wrap { text-align: center; align-items: center; }
    .footer-logo-link { justify-content: center; }
    .footer-social { justify-content: center; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-cta-group .btn { width: 100%; max-width: 280px; text-align: center; }
}
