/* =========================================
   MKM PROMOTIONS - BRAND COLORS & STYLING
   Professional Design System
   ========================================= */

/* ===================== CSS Variables ===================== */
:root {
    /* MKM Logo Colors */
    --primary: #e50108;
    --primary-dark: #b30106;
    --primary-light: #ff4d4f;
    --secondary: #6baa04;
    --secondary-dark: #4a7a03;
    --secondary-light: #8fd41a;
    --dark: #120001;
    --dark-light: #2a1011;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Complementary */
    --light-red: #ffeaea;
    --light-green: #f0f9e8;
    --accent-gold: #d4a506;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e50108 0%, #120001 100%);
    --gradient-secondary: linear-gradient(135deg, #6baa04 0%, #4a7a03 100%);
    --gradient-dark: linear-gradient(135deg, #120001 0%, #2a1011 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(18, 0, 1, 0.05);
    --shadow-md: 0 4px 6px rgba(18, 0, 1, 0.1);
    --shadow-lg: 0 10px 25px rgba(18, 0, 1, 0.15);
    --shadow-xl: 0 20px 50px rgba(18, 0, 1, 0.2);
    --shadow-primary: 0 10px 40px rgba(229, 1, 8, 0.3);
    --shadow-secondary: 0 10px 40px rgba(107, 170, 4, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===================== Professional Animations ===================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    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.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(229, 1, 8, 0.5); }
    50% { box-shadow: 0 0 20px rgba(229, 1, 8, 0.8), 0 0 30px rgba(229, 1, 8, 0.4); }
}

/* ===================== Animation Classes ===================== */
.animate {
    opacity: 0;
    transition: all 0.8s var(--ease-smooth);
}

.animate.visible {
    opacity: 1;
}

.animate.fade-up {
    transform: translateY(60px);
}

.animate.fade-up.visible {
    transform: translateY(0);
}

.animate.fade-down {
    transform: translateY(-60px);
}

.animate.fade-down.visible {
    transform: translateY(0);
}

.animate.fade-left {
    transform: translateX(60px);
}

.animate.fade-left.visible {
    transform: translateX(0);
}

.animate.fade-right {
    transform: translateX(-60px);
}

.animate.fade-right.visible {
    transform: translateX(0);
}

.animate.scale-in {
    transform: scale(0.8);
}

.animate.scale-in.visible {
    transform: scale(1);
}

/* Animation Delays */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }
.delay-600 { transition-delay: 0.6s !important; }

/* ===================== Text Gradient ===================== */
.text-gradient {
    background: linear-gradient(135deg, #e50108 0%, #6baa04 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ===================== Buttons ===================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 1, 8, 0.4) !important;
}

.btn-outline {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.btn-outline:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* ===================== Header & Navigation ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    border-bottom-color: rgba(229, 1, 8, 0.1);
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: calc(100% - 36px);
}

.nav-link:hover {
    background: var(--light-red);
}

/* Mobile Toggle */
.mobile-toggle span {
    background: var(--primary) !important;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== Page Header ===================== */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    background: var(--gradient-primary) !important;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===================== Sections ===================== */
.section-tag {
    display: inline-block;
    color: var(--primary) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--gradient-secondary);
    transform: translateY(-50%);
}

.text-center .section-tag::before {
    display: none;
}

.text-center .section-tag {
    padding-left: 0;
}

.light-bg {
    background: var(--gray-100) !important;
}

/* ===================== Service Cards ===================== */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary) !important;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary) !important;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 25px;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.service-link:hover {
    color: var(--primary-dark) !important;
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-link i {
    transition: transform var(--transition-normal);
}

/* Service Detail Cards */
.service-detail-icon {
    background: var(--gradient-secondary) !important;
}

.service-features i {
    color: var(--secondary) !important;
}

/* ===================== Stats Section ===================== */
.stats-section {
    background: var(--gradient-dark);
    position: relative;
}

.stat-icon {
    background: var(--gradient-primary) !important;
}

.stat-number {
    color: var(--primary) !important;
}

/* ===================== Process Cards ===================== */
.process-number {
    color: var(--primary) !important;
}

.process-icon {
    background: var(--gradient-secondary) !important;
}

.process-card {
    transition: all var(--transition-normal);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ===================== Team Cards ===================== */
.team-social a:hover {
    background: var(--primary) !important;
}

.team-role {
    color: var(--secondary) !important;
}

.team-card {
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ===================== CTA Section ===================== */
.cta-section {
    background: var(--gradient-secondary) !important;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
}

.cta-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    animation: float 3s ease-in-out infinite;
}

/* ===================== Footer ===================== */
.footer {
    background: var(--dark) !important;
}

.footer-social a:hover {
    background: var(--secondary) !important;
    transform: translateY(-3px);
}

.footer-links h4::after,
.footer-contact h4::after {
    background: var(--secondary) !important;
}

.footer-links a:hover {
    color: var(--secondary-light) !important;
    padding-left: 5px;
}

.footer-bottom a {
    color: var(--secondary) !important;
}

/* ===================== Preloader ===================== */
.preloader {
    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, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary) !important;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* ===================== Scroll to Top ===================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary) !important;
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-primary);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gradient-secondary) !important;
    transform: translateY(-5px);
}

/* ===================== Mission Cards ===================== */
.mission-icon {
    background: var(--gradient-primary) !important;
}

.mission-list i {
    color: var(--secondary) !important;
}

.mission-card {
    transition: all var(--transition-normal);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================== Value Cards ===================== */
.value-icon,
.value-icon-large {
    background: var(--gradient-secondary) !important;
    color: var(--white) !important;
}

.value-card:hover,
.value-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary) !important;
}

/* ===================== Gallery Items ===================== */
.gallery-item::before {
    background: linear-gradient(135deg, rgba(229, 1, 8, 0.9), rgba(18, 0, 1, 0.9)) !important;
}

.gallery-item {
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* ===================== Testimonials ===================== */
.testimonial-quote i {
    color: var(--primary) !important;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary) !important;
}

/* ===================== Form Elements ===================== */
.form-control:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(107, 170, 4, 0.15) !important;
}

.form-section-title i {
    color: var(--primary) !important;
}

.required {
    color: var(--primary) !important;
}

/* ===================== Highlight Numbers ===================== */
.highlight-number,
.featured-number,
.mini-number {
    color: var(--primary) !important;
}

/* ===================== Slider Styles ===================== */
.slider-dot.active {
    background: var(--primary) !important;
}

.slider-progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
}

.hero-slider .slide-bg::after {
    background: linear-gradient(135deg, rgba(18, 0, 1, 0.75), rgba(229, 1, 8, 0.25)) !important;
}

.hero-badge {
    background: rgba(229, 1, 8, 0.15) !important;
    border: 1px solid rgba(229, 1, 8, 0.3) !important;
    color: var(--white) !important;
}

/* ===================== Industry Cards ===================== */
.industry-icon {
    background: var(--gradient-secondary) !important;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary) !important;
}

/* ===================== Position Cards ===================== */
.position-icon {
    background: var(--gradient-primary) !important;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary) !important;
}

.position-type {
    background: rgba(107, 170, 4, 0.1) !important;
    color: var(--secondary) !important;
}

/* ===================== Sidebar ===================== */
.sidebar-icon {
    background: var(--gradient-primary) !important;
}

.benefits-list i {
    color: var(--secondary) !important;
}

.contact-card {
    background: var(--gradient-dark) !important;
}

.contact-card h4,
.contact-card p {
    color: var(--white) !important;
}

.sidebar-link:hover {
    color: var(--secondary) !important;
}

/* ===================== About Features ===================== */
.feature-icon i {
    color: var(--secondary) !important;
}

/* Story Accent */
.story-accent {
    background: var(--gradient-secondary) !important;
}

/* About Badge */
.about-badge {
    background: var(--gradient-primary) !important;
}

/* Culture Icons */
.culture-icon {
    background: var(--gradient-secondary) !important;
}

.culture-card:hover {
    border-color: var(--primary) !important;
}

/* Community Cards */
.community-card:hover {
    border-color: var(--primary) !important;
}

/* Author Avatar */
.author-avatar {
    background: var(--gradient-primary) !important;
}

/* File Upload */
.file-upload-wrapper:hover {
    border-color: var(--secondary) !important;
}

.file-upload-info i {
    color: var(--secondary) !important;
}

/* Checkbox */
.checkbox-label input:checked + .checkmark {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

/* ===================== Responsive Design ===================== */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        text-align: center;
        border-radius: 10px;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 130px 0 60px;
    }
}

@media (max-width: 480px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
