/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY – Combined Latin + Devanagari Font Stack ===== */
body {
    font-family: 'Outfit', 'Noto Sans Devanagari', 'Hind', 'Mukta', 'Baloo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f5ff;
    overflow-x: hidden;
    font-display: swap;
}

/* ===== SNOWFLAKE ===== */
.snowflake {
    position: fixed;
    color: #fff;
    user-select: none;
    pointer-events: none;
    z-index: 9999;
    opacity: .8;
    animation: fall linear infinite;
    text-shadow: 0 0 10px rgba(255,255,255,.5);
    will-change: transform;
}
@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0); opacity: .8; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: .2; }
}
.snowflake-sm { font-size: .6rem; }
.snowflake-md { font-size: 1rem; }
.snowflake-lg { font-size: 1.5rem; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255,255,255,.95);
    box-shadow: 0 2px 30px rgba(79,70,229,.08);
    padding: 12px 0;
    transition: all .3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}
.navbar.scrolled {
    box-shadow: 0 4px 40px rgba(0,0,0,.08);
}
.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg,#4F46E5,#8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.5px;
}
.navbar-brand i {
    -webkit-text-fill-color: #4F46E5;
}
.navbar .nav-link {
    font-weight: 500;
    color: #1a1a4e !important;
    padding: 8px 18px;
    border-radius: 10px;
    transition: all .3s ease;
    position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: linear-gradient(135deg,rgba(79,70,229,.08),rgba(139,92,246,.05));
    color: #4F46E5 !important;
    transform: translateY(-2px);
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg,#4F46E5,#8B5CF6);
    transition: all .3s ease;
    transform: translateX(-50%);
}
.navbar .nav-link:hover::after {
    width: 60%;
}
.btn-login {
    border-radius: 12px;
    padding: 8px 24px;
    font-weight: 600;
    transition: all .3s ease;
    border: 2px solid transparent;
}
.btn-login-outline {
    border-color: #4F46E5;
    color: #4F46E5;
    background: transparent;
}
.btn-login-outline:hover {
    background: #4F46E5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,70,229,.3);
}
.btn-login-primary {
    background: linear-gradient(135deg,#4F46E5,#8B5CF6);
    color: #fff;
    border: none;
}
.btn-login-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,70,229,.3);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg,#1a1a4e 0,#2d1b69 30%,#4F46E5 60%,#06B6D4 100%);
    padding: 100px 0 80px;
    margin-top: 76px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%,rgba(79,70,229,.3) 0,transparent 50%),
                radial-gradient(circle at 80% 20%,rgba(6,182,212,.2) 0,transparent 40%),
                radial-gradient(circle at 50% 80%,rgba(139,92,246,.2) 0,transparent 40%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { opacity: .5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,.3);
    border-radius: 50%;
    animation: float 15s infinite;
    will-change: transform;
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 20s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 15s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 19s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3s; animation-duration: 11s; }
@keyframes float {
    0%,100% { transform: translateY(0) scale(1); opacity: .3; }
    50% { transform: translateY(-100px) scale(2); opacity: .8; }
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255,255,255,.15);
    border-radius: 30px;
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.1);
    animation: fadeInUp .6s ease;
}
.hero-badge i {
    margin-right: 8px;
    color: #FACC15;
}
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp .8s ease;
}
.hero-title .highlight {
    background: linear-gradient(135deg,#FACC15,#F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,.8);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}
.hero-buttons {
    animation: fadeInUp 1.2s ease;
}
.hero-buttons .btn {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all .3s ease;
    margin-right: 12px;
    margin-bottom: 10px;
}
.hero-buttons .btn-primary {
    background: linear-gradient(135deg,#FACC15,#F59E0B);
    border: none;
    color: #1a1a4e;
}
.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(250,204,21,.4);
}
.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
}
.hero-buttons .btn-outline-light:hover {
    background: #fff;
    color: #4F46E5;
    transform: translateY(-3px);
    border-color: #fff;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    animation: fadeInUp 1.4s ease;
}
.hero-stats .stat-item {
    color: #fff;
}
.hero-stats .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
}
.hero-stats .stat-label {
    font-size: .85rem;
    opacity: .7;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-poster {
    position: relative;
    animation: fadeInUp 1s ease;
}
.hero-poster .poster-image {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.1);
}
.hero-poster .floating-badge {
    position: absolute;
    background: rgba(255,255,255,.95);
    padding: 12px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatBadge 3s ease-in-out infinite;
}
.hero-poster .floating-badge-1 {
    top: -20px;
    right: -20px;
}
.hero-poster .floating-badge-2 {
    bottom: -10px;
    left: -20px;
    animation-delay: 1.5s;
}
.hero-poster .floating-badge i {
    font-size: 1.5rem;
    color: #4F46E5;
}
.hero-poster .floating-badge span {
    font-weight: 600;
    color: #1a1a4e;
    font-size: .9rem;
}
@keyframes floatBadge {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0;
    background: #f0f5ff;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-weight: 800;
    color: #1a1a4e;
    font-size: 2.5rem;
}
.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}
.section-header .divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg,#4F46E5,#8B5CF6);
    margin: 16px auto;
    border-radius: 4px;
}
.service-card {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: all .5s cubic-bezier(.4,0,.2,1);
    height: 100%;
    box-shadow: 0 4px 20px rgba(79,70,229,.04);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(79,70,229,.12);
}
.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg,rgba(79,70,229,.08),rgba(139,92,246,.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: #4F46E5;
    transition: all .5s ease;
}
.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg,#4F46E5,#8B5CF6);
    color: #fff;
    box-shadow: 0 8px 25px rgba(79,70,229,.3);
}
.service-card h5 {
    font-weight: 700;
    color: #1a1a4e;
    margin-bottom: 8px;
}
.service-card p {
    color: #64748b;
    font-size: .9rem;
    margin-bottom: 16px;
}
.service-card .btn-link {
    color: #4F46E5;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}
.service-card .btn-link:hover {
    transform: translateX(4px);
    color: #7c3aed;
}

/* ===== PRODUCTS & BLOG – FIXED THUMBNAIL & CARD SIZE ===== */
.products-section,
.blog-section {
    padding: 80px 0;
}
.products-section {
    background: #fff;
}
.blog-section {
    background: #f0f5ff;
}

/* ----- PRODUCT CARD ----- */
.product-card {
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 20px;
    overflow: hidden;
    transition: all .5s cubic-bezier(.4,0,.2,1);
    height: 100%;
    box-shadow: 0 4px 20px rgba(79,70,229,.04);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(79,70,229,.12);
}
.product-card .product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #f0f5ff;
}
.product-card .product-image-placeholder {
    height: 200px;
    width: 100%;
    background: linear-gradient(135deg,rgba(79,70,229,.05),rgba(139,92,246,.03));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #94a3b8;
}
.product-card .card-body {
    padding: 20px;
}
.product-card .product-title {
    font-weight: 700;
    color: #1a1a4e;
}
.product-card .product-price {
    font-weight: 800;
    color: #4F46E5;
    font-size: 1.3rem;
}
.product-card .product-type {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ----- BLOG CARD – FIXED HEIGHT & FIXED THUMBNAIL (classes match blog.php) ----- */
.blog-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all .5s cubic-bezier(.4,0,.2,1);
    height: 420px;                /* 🔒 FIXED CARD HEIGHT */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(79,70,229,.04);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(79,70,229,.12);
}

/* ---- FIXED THUMBNAIL WRAPPER ---- */
.blog-card .thumbnail-wrapper {
    width: 100%;
    height: 200px;               /* 🔒 FIXED THUMBNAIL HEIGHT */
    flex-shrink: 0;
    background: #f0f5ff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card .thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* 🔒 क्रॉप करके भरे, कोई स्ट्रेच नहीं */
    display: block;
    min-height: 100%;
    min-width: 100%;
}
.blog-card .thumbnail-wrapper .placeholder-icon {
    font-size: 3rem;
    color: #94a3b8;
}

/* ---- CARD BODY – remaining space with flex (no overflow hidden) ---- */
.blog-card .card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0; /* allow flex children to shrink */
}

/* ---- CATEGORY ---- */
.blog-card .category {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    color: #4F46E5;
}

/* ---- TITLE – 2 lines max ---- */
.blog-card .title {
    font-weight: 700;
    color: #1a1a4e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.2rem;
    margin: 8px 0 6px;
    line-height: 1.4;
    flex-shrink: 0;
}
.blog-card .title a {
    color: #1a1a4e;
    text-decoration: none;
}
.blog-card .title a:hover {
    color: #4F46E5;
}

/* ---- EXCERPT – 3 lines max (flex: 1 so it takes space, but clamped) ---- */
.blog-card .excerpt {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    min-height: 0; /* allow shrinking */
}

/* ---- TAGS – wrap, shrink ---- */
.blog-card .tags {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
}
.blog-card .tags .badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    background: #f0f4ff;
    color: #4F46E5;
    border-radius: 20px;
    font-weight: 500;
}
.blog-card .tags .badge:hover {
    background: #4F46E5;
    color: #fff;
}

/* ---- FOOTER – always at bottom with margin-top: auto ---- */
.blog-card .card-footer-actions {
    margin-top: auto;            /* push to bottom */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
}
.blog-card .card-footer-actions small {
    color: #94a3b8;
    font-size: 0.75rem;
}
.blog-card .card-footer-actions .btn-outline-primary {
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 0.8rem;
    border-color: #4F46E5;
    color: #4F46E5;
    transition: all 0.2s;
}
.blog-card .card-footer-actions .btn-outline-primary:hover {
    background: #4F46E5;
    color: #fff;
    border-color: #4F46E5;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg,#1a1a4e,#4F46E5);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%,rgba(139,92,246,.3) 0,transparent 50%),
                radial-gradient(circle at 80% 50%,rgba(6,182,212,.2) 0,transparent 40%);
}
.cta-section .cta-content {
    position: relative;
    z-index: 1;
}
.cta-section h2 {
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
}
.cta-section p {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
}
.btn-cta {
    padding: 14px 40px;
    border-radius: 12px;
    font-weight: 700;
    transition: all .3s ease;
    background: linear-gradient(135deg,#FACC15,#F59E0B);
    border: none;
    color: #1a1a4e;
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(250,204,21,.4);
}

/* ===== FOOTER ===== */
.footer {
    background: #0b2b4f;
    color: #adb5bd;
    padding: 60px 0 20px;
    margin-top: 40px;
    position: relative;
    bottom: 0;
    width: 100%;
}
.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color .3s ease;
}
.footer a:hover {
    color: #fff;
}
.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    text-align: center;
    line-height: 40px;
    transition: all .3s ease;
    margin-right: 10px;
}
.footer .social-links a:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 40px;
    padding-top: 20px;
    font-size: .9rem;
}
.developer-credit {
    color: #FACC15;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-poster .poster-image { max-width: 100%; }
    .hero-stats { gap: 20px; }
    .hero-stats .stat-number { font-size: 1.8rem; }
}
@media(max-width: 768px) {
    .hero-section { padding: 80px 0 60px; margin-top: 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { flex-wrap: wrap; gap: 15px; }
    .hero-poster .floating-badge { display: none; }
    .section-header h2 { font-size: 2rem; }
    .navbar-brand { font-size: 1.4rem; }
    .navbar { padding: 8px 0; }
}
@media(max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .hero-buttons .btn { padding: 10px 20px; font-size: .85rem; }
    .service-card { padding: 24px 16px; }
    .service-card .icon-wrapper { width: 56px; height: 56px; font-size: 1.5rem; }
    .footer { padding: 40px 0 15px; }
    /* blog card responsive – height auto on small screens */
    .blog-card {
        height: auto;
        min-height: 380px;
    }
    .blog-card .thumbnail-wrapper {
        height: 180px;
    }
}