
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #E30613;
    --secondary-color: #000000;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }

/* Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 10px 0;
}
.navbar-brand img { max-height: 75px; object-fit: contain; transition: 0.3s ease; }
.nav-link { 
    font-weight: 500; color: var(--text-dark) !important; 
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color); border: 1px solid var(--primary-color);
    color: #fff; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; transition: 0.3s;
}
.btn-primary:hover { background-color: #c20410; border-color: #c20410; color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(227,6,19,0.3); }
.btn-outline-dark {
    border: 2px solid var(--secondary-color); color: var(--secondary-color);
    background: transparent; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; transition: 0.3s;
}
.btn-outline-dark:hover { background-color: var(--secondary-color); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Hero Section */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 80px;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f0f0 100%);
}
.hero-content { z-index: 2; position: relative; }
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; opacity: 0.8; }

/* Service Cards - Enhanced Animations */
.category-title { border-left: 4px solid var(--primary-color); padding-left: 15px; margin-bottom: 25px; color: var(--secondary-color); font-weight: 700; }

.service-card {
    background: #fff; 
    border: 1px solid #eaeaea; 
    border-radius: 12px; 
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth bouncy effect */
    height: 100%; 
    position: relative; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    text-align: left;
    cursor: pointer; /* Pointer indicates clickability */
    z-index: 1;
}

/* Pseudo-element for glow outline effect on hover */
.service-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px; border: 2px solid transparent; transition: all 0.4s ease; z-index: -1;
}

/* Hover State - Move up, scale slightly, add glow */
.service-card:hover { 
    transform: translateY(-10px) scale(1.03); 
    box-shadow: 0 15px 35px rgba(227, 6, 19, 0.12); 
    border-color: transparent;
}
.service-card:hover::after {
    border-color: var(--primary-color);
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    opacity: 0.4;
}

/* Click/Active State - Compress down */
.service-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.2);
}

.service-icon { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 20px; 
    display: inline-block; 
    transition: transform 0.4s ease;
}

/* Animate icon on card hover */
.service-card:hover .service-icon {
    transform: scale(1.2) rotate(8deg);
}

/* Stats & Process */
.stat-box { background: #fff; border: 1px solid #eaeaea; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s ease, border-color 0.3s ease; }
.stat-box:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.process-step { text-align: center; position: relative; padding: 20px; transition: transform 0.3s; }
.process-step:hover { transform: translateY(-5px); }
.process-icon {
    width: 80px; height: 80px; background: #fff; border: 2px solid var(--primary-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary-color); margin: 0 auto 20px auto; box-shadow: 0 5px 15px rgba(227, 6, 19, 0.15); transition: 0.3s;
}
.process-step:hover .process-icon { background: var(--primary-color); color: #fff; transform: scale(1.1); }

/* Floating Buttons */
.float-btn { position: fixed; bottom: 20px; z-index: 99; border-radius: 50px; padding: 12px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); color: white !important; transition: 0.3s; }
.float-btn:hover { transform: scale(1.1); }
.whatsapp-btn { right: 20px; background-color: #25d366; } .top-btn { left: 20px; background-color: #333; display: none; }

/* Loader */
#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 9999; display: flex; justify-content: center; align-items: center; }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(227, 6, 19, 0.2); border-top: 3px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Footer */
footer { background-color: #111111; color: #dddddd; padding: 60px 0 20px; border-top: 5px solid var(--primary-color); }
footer h5 { color: #ffffff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem;}
footer a { color: #cccccc; text-decoration: none; transition: 0.3s; display: inline-block;} 
footer a:hover { color: var(--primary-color); transform: translateX(5px); }
footer .text-muted { color: #bbbbbb !important; }
footer p { color: #bbbbbb; }

.section-title { text-transform: uppercase; font-weight: 700; margin-bottom: 50px; text-align: center; letter-spacing: 2px; color: var(--secondary-color); } 
.section-title span { color: var(--primary-color); }

/* Carousel & Gallery Images */
.carousel-inner img { width: 100%; height: 600px; object-fit: contain; background: #000; border-radius: 8px;}
.gallery-img { width: 100%; height: auto; border-radius: 8px; cursor: pointer; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gallery-img:hover { transform: scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* ==========================================
   RESPONSIVE OPTIMIZATIONS (Mobile, Tab, Laptop)
   ========================================== */

/* Large Laptops/Desktops (1200px and up) */
@media (max-width: 1399px) {
    .carousel-inner img { height: 500px; }
}

/* Tablets & Small Laptops (991px and below) */
@media (max-width: 991px) {
    .hero { min-height: 80vh; padding-top: 100px; text-align: center; }
    .hero h1 { font-size: 3.5rem; }
    .carousel-inner img { height: 400px; object-fit: cover; }
    .navbar-brand img { max-height: 60px; }
    .stat-box { padding: 20px 10px; }
    .service-card { padding: 25px 20px; }
}

/* Mobile Phones (768px and below) */
@media (max-width: 768px) {
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 2.5rem; letter-spacing: 0px; }
    .hero p.lead { font-size: 1rem; px-3; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    .carousel-inner img { height: 280px; object-fit: cover; }
    .service-card { padding: 20px 15px; }
    .service-card h4 { font-size: 1.2rem; }
    .service-icon { font-size: 2rem; margin-bottom: 10px; }
    footer { padding: 40px 0 20px; text-align: center; }
    footer h5 { margin-top: 20px; margin-bottom: 15px; }
    footer ul.list-unstyled { align-items: center; }
    .whatsapp-btn { right: 15px; bottom: 15px; padding: 10px 15px;}
    .top-btn { left: 15px; bottom: 15px; padding: 10px 15px;}
}

/* Small Mobile Phones (576px and below) */
@media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .navbar-brand img { max-height: 50px; }
    .carousel-inner img { height: 220px; }
    .btn-lg { padding: 10px 20px; font-size: 1rem; }
    .stat-box h2 { font-size: 1.8rem; }
    .stat-box p { font-size: 0.75rem; }
}
