*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f7fa;
    color:#333;
}

/* Navbar */
.navbar{
    display:flex;
    flex-wrap: wrap;
    justify-content:space-between;
    align-items:center;
    padding:5px 5%;
    /* background:white; */
    background-color: #0d6efd;;
    /* box-shadow: 0 2px 10px rgb(229, 240, 255); */
    position:fixed;
    width:90%;
    margin: 15px 5% 15px 5%;
    border-radius: 8px;
    height: 70px;
    z-index:1000;
}

.nav-right{
    width: 50%;
    display: flex;
    gap: 20px;
    /* margin-right: 0; */
    justify-content: center;
    color: #f5f5f5;
    margin: auto;
}
.nav-left{
    width: 50%;
    display: flex;
}

.navbar h2{
    color:#f5f5f5;
}

.navbar ul{
    list-style:none;
    display:flex;
    gap:30px;
}

.navbar a{
    text-decoration:none;
    color: #ffe200;
    font-weight:500;
    transition:0.3s;
    /* text-decoration: underline; */
}
.based-link{
    border: 2px solid #ffe200;
    padding: 0px 8px 0 8px;
    border-radius: 8px;
}
section.contact p a{
    text-decoration: none;
    color: #ffe200;
}

.navbar a:hover{
    color:#ff4800;
}

/* Hero Section */
.hero{
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:0 10%;
    background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
    url('assets/logo/hero.png');
    background-size:cover;
    background-position:center;
    color:white;
}

.hero h1{
    font-size:48px;
    margin-bottom:20px;
}

.hero p{
    font-size:18px;
    margin-bottom:30px;
    max-width:700px;
    margin: 25px auto 36px auto;
    text-align: center;
}

.btn{
    padding:12px 30px;
    background:#0d6efd;
    color:white;
    border:none;
    border-radius:30px;
    cursor:pointer;
    font-size:16px;
    transition:0.3s;
    text-decoration:none;
}

.btn:hover{
    background:#ff4800;
}

/* Section */
.section{
    /* padding:80px 10%; */
    padding:80px 5% 0 5%;
    text-align:center;
}

.section h2{
    font-size:36px;
    margin-bottom:20px;
}

.section p{
    max-width:700px;
    margin:auto;
    color:#666;
}
.card-text{
    padding: 25px 0 25px 0;
    border-bottom: solid 1px #333;
    border-top: solid 1px #333;
    transition: border-width 0.3s ease-in-out; /* Smooth transition */
}

.card-text:hover {
  border-left-width: 8px; /* Target width on hover */
}

.background-style{
    width: 100%;
    height: 100vh;
    background: #00000042;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -10;
    position: fixed;
    clip-path: polygon(0 0, 0 100%, 100% 0);
}

/* Cards */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{
    background:rgba(255, 255, 255, 0.857);
    padding:30px;
    border-radius:15px;
    /* box-shadow:0 10px 30px rgba(0,0,0,0.05); */
    transition:0.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card i{
    font-size:40px;
    color:#0d6efd;
    /* margin-bottom:20px; */
    padding-bottom: 25px;
}

/* Contact */
.contact{
    /* background:#0d6efd; */
    background: #111;
    color:white;
    padding:20px 5%;
    margin-top: 80px;
}

.contact h2{
    margin-bottom:20px;
    text-align: center;
}

.contact p{
    margin:10px 0;
    text-align: center;
}

/* Footer */
.footer{
    text-align:center;
    padding:20px;
    background:#111;
    color:#aaa;
}



/* --- Products Cards Extension --- */
.product-card {
    /* background: white; */
    padding: 15px 0 0 0;
    border-radius: 12px;
    /* box-shadow: 0 8px 24px rgba(0,0,0,0.04); */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(13, 110, 253, 0.05);
}

.product-card:hover {
    transform: translateY(-6px);
    /* box-shadow: 0 16px 32px rgba(13, 110, 253, 0.08); */
}

.product-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #eaeef5;
    margin-bottom: 15px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

/* Elegant Text Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-badge {
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card h3 {
    font-size: 1.15rem;
    color: #333;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: left;
}

/* --- Compact Modal Architecture --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-active {
    opacity: 1;
    pointer-events: auto;
}

/* Prevents taking up whole widescreen displays */
.modal-wrapper {
    background: white;
    width: 90%;
    max-width: 680px; 
    border-radius: 12px;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.modal-active .modal-wrapper {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 1rem;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #ff4800;
}

.modal-body {
display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    width: 100%;
    height: 500px; /* Fixed height forces a wide cinematic display layout aspect ratio */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; /* Crops smoothly across borders to fill frame perfectly */
    transition: background-image 0.15s ease-in-out;
}

.modal-image-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modalImg {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.modal-caption {
    margin-top: 15px;
    /* font-size: 0.95rem; */
    /* font-weight: 500; */
    color: #ffffff;
    text-align: center;
}

/* Navigation Controls inside modal */
.nav-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: #0d6efd;
    color: white;
}

.prev-arrow { margin-right: 15px; }
.next-arrow { margin-left: 15px; }

/* Responsive tweaks for narrow mobile layout sizing */
@media (max-width: 576px) {
    .modal-body {
        padding: 10px;
    }
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .prev-arrow { margin-right: 8px; }
    .next-arrow { margin-left: 8px; }
    #modalImg {
        max-height: 280px;
    }
}





/* style for scroll bar on dashboard boxes ------------------------------- */
* {
    scrollbar-width: thin;
    scrollbar-color: #c8cacd #ffffff;
}

.stats-grid, .table-wrapper-for-show-item {
    /* scrollbar-width: thin; */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* scrollbar-color: #0d6efd #ffffff; */
}

.stats-grid::-webkit-scrollbar, 
.table-wrapper-for-show-item::-webkit-scrollbar
{
    height: 8px; /* Slightly taller for rounded tips */
    display: none;
}

.stats-grid::-webkit-scrollbar-track, 
.table-wrapper-for-show-item::-webkit-scrollbar-track
{
    background: #f1f1f1;
    border-radius: 100px;
}

.stats-grid::-webkit-scrollbar-thumb, 
.table-wrapper-for-show-item::-webkit-scrollbar-thumb
{
    background: #888;
    border-radius: 100px;
}

/* Even more pronounced rounded tips */
.stats-grid.rounded-tips::-webkit-scrollbar,
.table-wrapper-for-show-item.rounded-tips::-webkit-scrollbar
{
    height: 6px;
}

.stats-grid.rounded-tips::-webkit-scrollbar-thumb, 
.table-wrapper-for-show-item.rounded-tips::-webkit-scrollbar-thumb
{
    background: #888;
    border-radius: 100px; 
    min-height: 30px; 
}

/* Color gradient with rounded tips */
.stats-grid.gradient-tips::-webkit-scrollbar, 
.table-wrapper-for-show-item.gradient-tips::-webkit-scrollbar
{
    height: 8px;
}

.stats-grid.gradient-tips::-webkit-scrollbar-thumb, 
.table-wrapper-for-show-item.gradient-tips::-webkit-scrollbar-thumb
{
    background: linear-gradient(90deg, #667eea, #f5576c);
    border-radius: 100px;
    border: 2px solid white; 
}



/* Responsive */
@media(max-width:768px){
    .hero h1, h1{
        font-size:35px;
    }
    .hero p, p{
        font-size: 14px;
    }

    .nav-left{
        width: 100%;
        justify-content: center;
        font-size: 15px;
        margin-bottom: 5px;
    }
    .nav-right{
        width: 100%;
        font-size: 13px;
        justify-content: center;
    }

}



