/* ========================================
   APSIVON SYSTEMS ENGINEERING - MAIN CSS
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --light-red: #FFCDD2;
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-dark: #0f3460;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --text-green: #239515;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Archivo Narrow', sans-serif;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--primary-dark);
    padding: 8px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left a,
.top-bar-right a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    white-space: nowrap;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
    color: var(--primary-red);
}

.top-bar-left a i,
.top-bar-right a i {
    margin-right: 5px;
    color: var(--primary-red);
}

.top-bar-left .separator {
    color: rgba(255, 255, 255, 0.3);
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

/* ========================================
   MAIN NAVBAR
   ======================================== */
.main-navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 1050;
    transition: var(--transition);
}

.main-navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.main-navbar.scrolled .logo-img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary-red);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 3px solid var(--primary-red);
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-red);
    color: var(--primary-red);
    padding-left: 25px;
}

.btn-consultation {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-consultation:hover {
    background: var(--dark-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--accent-dark) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary-red);
    display: block;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 35px;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.hero-features .feature-item i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--dark-red);
    border-color: var(--dark-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-dashboard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    position: relative;
}

.dashboard-stat {
    text-align: center;
    padding: 15px;
}

.dashboard-stat .stat-icon {
    font-size: 30px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.dashboard-stat .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
}

.dashboard-stat .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.section-padding {
    padding: 80px 0;
}

.section-label {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.section-label::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-title-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 15px auto 0;
}

.about-text p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.btn-know-more {
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
}

.btn-know-more:hover {
    background: transparent;
    color: var(--primary-red);
}

/* Stats Cards */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-red);
}

.stat-card .stat-icon {
    font-size: 40px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.stat-card .stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    background: var(--light-bg);
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 25px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-red);
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card .service-icon {
    width: 65px;
    height: 65px;
    background: var(--light-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-red);
}

.service-card .service-icon i {
    font-size: 28px;
    color: var(--primary-red);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card .learn-more {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card .learn-more:hover {
    gap: 10px;
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.why-choose-section {
    background: var(--white);
}

.why-card {
    text-align: center;
    padding: 25px 15px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-card .why-icon {
    width: 80px;
    height: 80px;
    background: var(--light-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--primary-red);
}

.why-card .why-icon i {
    font-size: 32px;
    color: var(--primary-red);
    transition: var(--transition);
}

.why-card:hover .why-icon i {
    color: var(--white);
}

.why-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   INDUSTRIES & TESTIMONIALS
   ======================================== */
.industries-testimonials {
    background: var(--light-bg);
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.industry-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.industry-item i {
    font-size: 24px;
    color: var(--primary-red);
    width: 40px;
    height: 40px;
    background: var(--light-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.industry-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 40px;
    color: var(--light-red);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    font-style: normal;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners-section {
    padding: 60px 0;
    background: var(--white);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    height: 80px;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 50px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-section > .container > .row > .col-lg-6 > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    background: transparent;
    color: var(--white);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact-item i {
    color: var(--primary-red);
    font-size: 14px;
    width: 20px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.footer-contact-item a:hover {
    color: var(--primary-red);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

/* ========================================
   BOTTOM FOOTER
   ======================================== */
.bottom-footer {
    background: #111;
    padding: 20px 30px;
}

.footer-logo {
    height: 40px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 5px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav a:last-child {
    border-right: none;
}

.footer-nav a:hover {
    color: var(--primary-red);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin: 0;
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
}

.float-btn span {
    position: absolute;
    right: 65px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.float-btn:hover span {
    opacity: 1;
    visibility: visible;
}

.live-chat-btn {
    background: var(--primary-red);
}

.live-chat-btn:hover {
    background: var(--dark-red);
    color: var(--white);
    transform: scale(1.1);
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1);
}

/* ========================================
   CHATBOT
   ======================================== */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1060;
    display: none;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-container.active {
    display: block;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chatbot-header {
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

.chatbot-body {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message.bot p {
    background: var(--light-bg);
    padding: 10px 15px;
    border-radius: 0 12px 12px 12px;
    font-size: 14px;
    max-width: 80%;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.user p {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 12px 0 12px 12px;
    font-size: 14px;
    max-width: 80%;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.chatbot-input input:focus {
    border-color: var(--primary-red);
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-red);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background: var(--dark-red);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1040;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
}

/* ========================================
   PAGE HEADER (INNER PAGES)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.page-header .breadcrumb-item.active {
    color: var(--primary-red);
    font-size: 14px;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-detail-section {
    padding: 80px 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

.about-image-wrapper .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-red);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
}

.experience-badge .years {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge span {
    font-size: 14px;
}

.mission-vision-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.mv-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    height: 100%;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.mv-card:hover {
    border-bottom-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mv-card i {
    font-size: 50px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.mv-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Team Section */
.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card .team-img {
    height: 280px;
    overflow: hidden;
}

.team-card .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-card .team-info {
    padding: 20px;
}

.team-card .team-info h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card .team-info p {
    font-size: 14px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.team-card .team-social a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-gray);
    margin: 0 3px;
    transition: var(--transition);
}

.team-card .team-social a:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ========================================
   SERVICES PAGE
   ======================================== */
.service-detail-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.service-detail-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-detail-card .service-img {
    height: 250px;
    overflow: hidden;
}

.service-detail-card .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-detail-card:hover .service-img img {
    transform: scale(1.05);
}

.service-detail-card .service-content {
    padding: 30px;
}

.service-detail-card .service-content h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-detail-card .service-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-detail-card .service-features {
    list-style: none;
    padding: 0;
}

.service-detail-card .service-features li {
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.service-detail-card .service-features li i {
    color: var(--primary-red);
    margin-right: 10px;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-info-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-info-card i {
    font-size: 40px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.contact-info-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-info-card a:hover {
    color: var(--primary-red);
}

.contact-form {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.contact-form .form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.btn-submit {
    background: var(--primary-red);
    color: var(--white);
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* ========================================
   BLOG PAGE
   ======================================== */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card .blog-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-card .blog-img .blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.blog-card .blog-meta span {
    font-size: 12px;
    color: var(--text-light);
}

.blog-card .blog-meta span i {
    margin-right: 5px;
    color: var(--primary-red);
}

.blog-card .blog-content h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card .blog-content h5 a {
    color: var(--text-dark);
}

.blog-card .blog-content h5 a:hover {
    color: var(--primary-red);
}

.blog-card .blog-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-card .read-more {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card .read-more:hover {
    gap: 10px;
}

/* ========================================
   PROJECTS PAGE
   ======================================== */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    margin-bottom: 30px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px 20px 20px;
    transform: translateY(60px);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-card .project-overlay h5 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card .project-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 10px;
}

.project-card .project-overlay .badge {
    background: var(--primary-red);
    font-size: 11px;
    padding: 5px 10px;
    margin-right: 5px;
}

/* Project Filter */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.project-filters .filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.project-filters .filter-btn:hover,
.project-filters .filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

/* ========================================
   UPLOAD PAGE STYLES
   ======================================== */
.upload-section {
    padding: 80px 0;
}

.upload-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.upload-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
}

.upload-card h4 i {
    color: var(--primary-red);
    margin-right: 10px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-red);
    background: rgba(211, 47, 47, 0.02);
}

.upload-area i {
    font-size: 50px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.upload-area p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.upload-area span {
    font-size: 12px;
    color: var(--text-light);
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    margin-top: 15px;
}

.preview-container img {
    max-height: 100px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.alert-upload {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 991px) {
    .top-bar {
        display: none;
    }
    
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 12px;
        box-shadow: var(--shadow-hover);
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .btn-consultation {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .cta-section .col-lg-3 {
        margin-top: 30px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stat-card .stat-number {
        font-size: 32px;
    }
    
    .floating-buttons {
        right: 10px;
        bottom: 80px;
    }
    
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
    }
    
    .bottom-footer .row > div {
        text-align: center !important;
        margin-bottom: 10px;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-red);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Swiper custom styles */
.testimonial-swiper .swiper-pagination-bullet {
    background: var(--primary-red);
}

.partners-swiper .swiper-button-next,
.partners-swiper .swiper-button-prev {
    color: var(--primary-red);
    width: 40px;
    height: 40px;
}

.partners-swiper .swiper-button-next::after,
.partners-swiper .swiper-button-prev::after {
    font-size: 18px;
}
