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

:root {
    --primary-color: #dc2626; /* Modern Red */
    --primary-hover: #b91c1c;
    --primary-light: #fef2f2;
    --secondary-color: #0f172a; /* Slate 900 */
    --accent-color: #f8fafc; /* Slate 50 */
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.3;
}
.text-primary-custom, .text-primary { color: var(--primary-color) !important; }
.text-secondary-custom, .text-secondary { color: var(--secondary-color) !important; }
.bg-primary-custom, .bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary-custom, .bg-secondary { background-color: var(--secondary-color) !important; }

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.btn-primary-custom, .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ef4444);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.39);
}
.btn-primary-custom:hover, .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.23);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.btn-outline-custom:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.navbar-custom.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}
.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    font-size: 15px;
    margin: 0 12px;
    position: relative;
    padding-bottom: 5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: #0f172a;
}
.hero-swiper, .hero-swiper .swiper-slide {
    height: 100%;
}
.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.5) 50%, rgba(15,23,42,0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding-top: 80px; /* offset for navbar */
}
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #f8fafc;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 650px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    letter-spacing: -0.5px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

/* Cards (Products & Services) */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.product-img {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img img {
    transform: scale(1.08);
}
.product-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .product-img::after {
    opacity: 1;
}
.product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category {
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
    letter-spacing: 1px;
}
.product-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary-color);
    line-height: 1.4;
}
.product-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.product-title a:hover {
    color: var(--primary-color);
}
.product-card .btn {
    margin-top: auto;
}

/* Features List in About */
.feature-icon-box {
    background: var(--primary-light);
    color: var(--primary-color);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}
.feature-item:hover .feature-icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05) rotate(5deg);
}
.feature-item h6 {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
}
.wa-float:hover {
    transform: scale(1.1) translateY(-4px);
    color: #FFF;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 80px 0 30px;
}
.footer h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 600;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--white);
    transform: translateX(6px);
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 14px;
}

/* Utilities */
.bg-light-custom { background-color: var(--accent-color); }
.spacer { padding: 100px 0; }
.rounded-shadow {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .spacer {
        padding: 60px 0;
    }
}

/* ===================================
   PREMIUM ANIMATION SYSTEM
   =================================== */

/* --- Keyframes --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-12px); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(3deg); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50%      { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
}
@keyframes pulseSoft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.85; }
}
@keyframes slideInBottom {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to   { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes borderDraw {
    0%   { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes waPulse {
    0%   { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
    50%  { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.15); }
    100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
}
@keyframes typeWriter {
    from { width: 0; }
    to   { width: 100%; }
}
@keyframes blink {
    0%, 100% { border-color: transparent; }
    50%      { border-color: var(--primary-color); }
}

/* --- Smooth Page Load --- */
main {
    animation: fadeInUp 0.6s ease-out;
}

/* --- Hover Lift Utility --- */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}
.hover-lift:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-xl) !important;
}

/* --- Gradient Animated Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #ef4444, var(--primary-hover), var(--primary-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* --- Shimmer Loading / Accent --- */
.shimmer-line {
    background: linear-gradient(90deg, transparent 30%, rgba(220,38,38,0.08) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 2.5s ease infinite;
}

/* --- Floating Decorative Shapes (used in hero / about) --- */
.floating-shape {
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}
.floating-shape-slow {
    animation: floatSlow 8s ease-in-out infinite;
    pointer-events: none;
}

/* --- Hero Title Entrance --- */
.hero-title {
    animation: fadeInUp 0.9s ease-out 0.2s both;
}
.hero-subtitle {
    animation: fadeInUp 0.9s ease-out 0.45s both;
}
.hero-content .btn {
    animation: fadeInUp 0.9s ease-out 0.65s both;
}

/* --- Navbar Animations --- */
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.navbar-custom.sticky {
    animation: fadeInDown 0.4s ease-out;
}

/* --- Product Cards Stagger Animation --- */
.product-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
}
.product-card:hover .product-img img {
    transform: scale(1.08);
}

/* Product card badge hover */
.product-card:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* --- Feature Icon Animation --- */
.feature-icon-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-item:hover .feature-icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* --- Section Title Animated Underline --- */
.section-title h2::after {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}
.section-title.aos-animate h2::after,
.section-title h2::after {
    width: 60px;
}

/* --- Card Vision/Mission Hover --- */
.card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}
.card:hover {
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.1);
}

/* --- WhatsApp Floating Button Pulse --- */
.wa-float {
    animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
    animation: none;
    transform: scale(1.15) translateY(-4px);
}

/* --- Footer Links Slide Animation --- */
.footer-links a {
    position: relative;
    padding-left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}
.footer-links a:hover::before {
    width: 100%;
}
.footer-links a:hover {
    color: var(--white);
    transform: translateX(6px);
}

/* --- Breadcrumb Link Hover --- */
.breadcrumb-item a:hover {
    color: #fff !important;
}

/* --- Button Ripple Effect --- */
.btn-primary-custom, .btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary-custom::after, .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn-primary-custom:active::after, .btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* --- Swiper Custom Styling --- */
.swiper-button-next, .swiper-button-prev {
    transition: all 0.3s ease;
    opacity: 0;
}
.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    opacity: 1;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(0.8) !important;
}
.swiper-pagination-bullet {
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    width: 24px !important;
    border-radius: 4px !important;
    background: var(--primary-color) !important;
}

/* --- Page Header Animated Gradient --- */
.py-5.position-relative.overflow-hidden {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* --- Sidebar Category Hover --- */
.list-group-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.list-group-item:not(.active):hover {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
    transform: translateX(4px);
}

/* --- Map Container iframes --- */
.map-container iframe, section iframe {
    transition: filter 0.3s ease;
}
.map-container:hover iframe {
    filter: brightness(1.05);
}

/* --- Image Accent Box Animation --- */
.bg-primary-custom.rounded-4[style*="position: absolute"] {
    transition: all 0.4s ease;
}

/* --- Smooth Scrolling for the whole page --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* --- Focus States (Accessibility) --- */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- Responsive Animation Adjustments --- */
@media (max-width: 768px) {
    .hero-title {
        animation-delay: 0.1s;
    }
    .hero-subtitle {
        animation-delay: 0.25s;
    }
    .hero-content .btn {
        animation-delay: 0.4s;
    }
    /* Disable heavy float animations on mobile for performance */
    .floating-shape, .floating-shape-slow {
        animation: none;
    }
}

/* --- Print-friendly (disable animations) --- */
@media print {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Prefers Reduced Motion (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
