/* 
   PrintBala Premium UI System v2.0 
   "Modern, Bold, & Glassmorphic"
*/

/* --- 1. FONTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* 🎨 Brand Core */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-dark: #4338CA;
    /* Indigo 700 */
    --primary-light: #818CF8;
    /* Indigo 400 */
    --secondary: #EC4899;
    /* Pink 500 */
    --accent: #06B6D4;
    /* Cyan 500 */

    /* 🌑 Dark Mode / Text */
    --dark-bg: #0F172A;
    /* Slate 900 */
    --dark-surface: #1E293B;
    /* Slate 800 */
    --text-main: #0F172A;
    --text-body: #475569;
    /* Slate 600 */
    --text-light: #94A3B8;
    /* Slate 400 */

    /* 🌫️ Glass & Surface */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --surface-light: #FFFFFF;
    --surface-off: #F8FAFC;
    /* Slate 50 */

    /* 💡 Effects */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: var(--surface-off) !important;
    color: var(--text-body) !important;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main);
    font-weight: 700 !important;
    letter-spacing: -0.03em;
}

/* --- 2. COMPONENTS --- */

/* ✨ Magic Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 🧼 Glass Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem 0 !important;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
    /* Optimizing logo size */
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600 !important;
    color: var(--text-main) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.08);
    /* Subtle pill background */
}

/* 🚀 Premium Buttons */
.btn {
    border-radius: var(--radius-pill) !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.4) !important;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-light {
    background: white !important;
    color: var(--text-main) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-light:hover {
    transform: translateY(-2px);
    background: #f8fafc !important;
    box-shadow: var(--shadow-md) !important;
}

/* --- 3. SECTIONS --- */

/* 🦸 Hero Section - "The Showstopper" */
.hero-header {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 20%);
    padding-top: 10rem !important;
    /* Space for fixed navbar */
    padding-bottom: 6rem !important;
    overflow: visible !important;
    /* Allow floating elements */
}

/* Hide the old rotation background if it clashes */
.rotate-img,
.rotate-sty-2 {
    display: none !important;
}

/* Create our own modern background shape */
.hero-header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-header p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* 🃏 Modern Cards (Services, Features) */
.service-item,
.feature-item,
.price-item,
.testimonial-item .testimonial-inner {
    background: var(--surface-light) !important;
    border-radius: var(--radius-lg) !important;
    padding: 2.5rem !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    /* Bouncy Effect */
    position: relative;
    overflow: hidden;
}

.service-item::after,
.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-item:hover,
.feature-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg) !important;
}

.service-item:hover::after,
.feature-item:hover::after {
    transform: scaleX(1);
}

.service-icon,
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(79, 70, 229, 0.1) !important;
    color: var(--primary) !important;
    border-radius: var(--radius-md) !important;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: var(--primary) !important;
    color: white !important;
    transform: rotateY(180deg);
}

/* 👣 Footer */
.footer {
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h4 {
    color: white !important;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--text-light) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white !important;
    transform: translateX(5px);
}

.copyright {
    background-color: var(--dark-surface) !important;
    padding: 1.5rem 0 !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 🖼️ Images & Media */
.img-fluid {
    border-radius: var(--radius-md);
}

/* Round images in about section, etc */
.about-img img,
.team-item img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* --- 4. UTILITIES --- */
.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Glass Card Helper */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }

    .hero-header {
        padding-top: 8rem !important;
        text-align: center;
    }

    .hero-header h1 {
        font-size: 2.5rem;
    }
}

/* Alias for glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Product Images in Services */
.product-img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-item:hover .product-img {
    transform: scale(1.1) rotate(3deg);
}

/* Ensure icons/images centered in service-icon */
.service-icon img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}