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

:root {
    --primary-color: #E31E24; /* Red from logo */
    --secondary-color: #F26522; /* Orange from logo */
    --dark-color: #000000; /* Black from logo */
    --light-color: #ffffff; /* White */
    --gray-bg: #f8f9fa;
    --primary-gradient: linear-gradient(135deg, #E31E24 0%, #F26522 100%);
    --dark-gradient: linear-gradient(135deg, #000000 0%, #222222 100%);
}

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(227, 30, 36, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-top: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.text-dark-corporate { color: var(--dark-color) !important; }
.bg-dark-corporate { background-color: var(--dark-color) !important; }

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
    background: linear-gradient(135deg, #F26522 0%, #E31E24 100%);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.section-padding { padding: 80px 0; }
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color);
}
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 5px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-carousel-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
}
.hero-carousel-section .carousel-item {
    height: 100vh;
    min-height: 600px;
}
.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.z-index-2 { z-index: 2; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}
.custom-indicators {
    z-index: 3;
}
.custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: none;
}
.custom-indicators button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary-color);
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(227, 30, 36, 0.1);
}
.product-card .img-wrapper {
    position: relative;
    overflow: hidden;
}
.product-card .img-wrapper img {
    transition: transform 0.5s;
}
.product-card:hover .img-wrapper img {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--dark-color);
    padding: 80px 0 20px;
    color: rgba(255,255,255,0.7);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}
.social-links a:hover {
    background: var(--primary-color);
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* FAB Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    text-decoration: none;
}
.fab-btn:hover {
    transform: scale(1.1);
    color: white;
}
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--primary-color); }

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-carousel-section { min-height: 500px; height: 80vh; }
    .hero-carousel-section .carousel-item { min-height: 500px; height: 80vh; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; }
    .hero-carousel-section { min-height: 400px; height: 70vh; }
    .hero-carousel-section .carousel-item { min-height: 400px; height: 70vh; }
    .carousel-content { padding: 0 15px; }
    
    .section-title { font-size: 1.8rem; }
    .display-4 { font-size: 2.2rem; }
    
    .fab-container { bottom: 20px; right: 20px; }
    .fab-btn { width: 50px; height: 50px; font-size: 20px; }
    
    .footer { padding: 60px 0 20px; text-align: center; }
    .social-links { justify-content: center; margin-bottom: 30px; }
    .footer-links { text-align: center; margin-bottom: 30px; }
}

.tracking-wider { letter-spacing: 0.1em; }

/* Advanced Micro-Animations */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(227, 30, 36, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.card, .service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}
.card:hover, .service-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05) !important;
}

.card-img-top, .img-fluid.rounded-4, .carousel-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover .card-img-top {
    transform: scale(1.08);
}
.position-relative:hover > .img-fluid.rounded-4 {
    transform: scale(1.03);
}

/* Ensure overflow hidden for image zoom effect */
.overflow-hidden {
    overflow: hidden;
}

/* Floating Action Button Pulse */
@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(227, 30, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}
.fab-call {
    animation: fab-pulse 2s infinite;
}
