/* ==========================================================================
   SM DESIGN & PRINTING (smdesignbd.com) — OFFICIAL DESIGN SYSTEM & STYLES
   ==========================================================================
   Description: Production CSS stylesheet for international printing enterprise.
   Aesthetics: Rich dark mode, cyan-blue glassmorphism, fluid typography.
   ========================================================================== */

/* ── Fonts & Custom Variables ────────────────────────────────────────── */
:root {
    --color-bg-main: #0c0c0e;
    --color-bg-card: #17171b;
    --color-accent-blue: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-navy: #1a3a6b;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Core Smooth Behavior ────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--color-bg-main);
    color: #e5e7eb;
}

/* ── SM DESIGN Heading Text — matches logo's cyan-to-purple metallic style ── */
.sm-design-text {
    /* Cyan-blue to purple gradient matching logo lettering */
    background: linear-gradient(135deg, #00cfff 0%, #3b82f6 35%, #7c3aed 65%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Metallic glow drop-shadow matching logo neon effect */
    filter: drop-shadow(0 0 18px rgba(0, 207, 255, 0.55)) drop-shadow(0 0 35px rgba(124, 58, 237, 0.35));
    animation: smDesignShimmer 4s ease-in-out infinite;
}

/* Subtle shimmer sweep animation */
@keyframes smDesignShimmer {
    0%, 100% { filter: drop-shadow(0 0 16px rgba(0, 207, 255, 0.55)) drop-shadow(0 0 30px rgba(124, 58, 237, 0.35)); }
    50%       { filter: drop-shadow(0 0 28px rgba(0, 207, 255, 0.85)) drop-shadow(0 0 50px rgba(124, 58, 237, 0.55)); }
}

/* ── Custom Sleek Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0c0c0e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #1a3a6b);
    border-radius: 10px;
    border: 2px solid #0c0c0e;
}

/* ── Dynamic Logo Styling ────────────────────────────────────────────── */
.site-logo {
    max-height: 72px;
    height: 60px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.site-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 22px rgba(59, 130, 246, 0.8));
}

/* ── Navbar Glassmorphism ────────────────────────────────────────────── */
.navbar-solid {
    background: rgba(12, 12, 14, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-slide-up-delay { animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.animate-slide-up-delay-2 { animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }
.animate-slide-in { animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* ── Scroll Reveal System ────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Service Card Hover Effects & Watermark System ───────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #1a3a6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 20;
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-watermark {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.service-watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.12;
    filter: grayscale(100%) contrast(120%);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.service-card:hover .service-watermark img {
    opacity: 0.25;
    filter: grayscale(15%) contrast(110%);
    transform: scale(1.08);
}

.service-watermark-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(26, 58, 107, 0.25) 0%, transparent 65%),
                linear-gradient(180deg, rgba(23, 23, 27, 0.70) 0%, rgba(23, 23, 27, 0.88) 60%, rgba(12, 12, 14, 0.96) 100%);
    transition: background 0.4s ease;
}

.service-card:hover .service-watermark-overlay {
    background: radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.35) 0%, transparent 65%),
                linear-gradient(180deg, rgba(23, 23, 27, 0.52) 0%, rgba(23, 23, 27, 0.74) 60%, rgba(12, 12, 14, 0.92) 100%);
}

/* ── Form Inputs & Select Focus ──────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6 !important;
}

/* ── Modal Dialog Overlay ────────────────────────────────────────────── */
#serviceModal {
    transition: opacity 0.3s ease;
}
#serviceModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* ── Responsive Adjustments ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .site-logo {
        max-height: 38px;
    }
}

/* ── Featured Print Samples (Portfolio) Design System ────────────────── */
.portfolio-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(59, 130, 246, 0.25);
}

.portfolio-card img {
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

/* Active filter button */
.portfolio-filter-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: rgba(96, 165, 250, 0.6) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

/* Modal styling */
#portfolioModal, #serviceModal {
    transition: opacity 0.3s ease;
}

