:root {
    --primary-color: #b01e23;
    /* MHG Crimson */
    --purple-color: #8e24aa;
    /* MHG Purple from logo */
    --secondary-color: #1a1a1a;
    --accent-color: #f7b731;
    --text-color: #2d3436;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-color) 100%);
    --metallic-bg: radial-gradient(circle at 50% 50%, #ffffff 0%, #e5e5e5 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Header */
.navbar {
    background: repeating-radial-gradient(circle at 150px 50%, rgba(0, 0, 0, 0.04) 0px, rgba(0, 0, 0, 0.04) 1px, transparent 1px, transparent 4px), radial-gradient(circle at 150px 50%, #e0e0e0 0%, #c6c6c6 100%);
    background-blend-mode: multiply;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    border-bottom: 0;
    /*1px solid rgba(0, 0, 0, 0.2);*/
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.navbar-logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(176, 30, 35, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(142, 36, 170, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.service-card {
    padding: 30px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-bottom: 5px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--primary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-detail-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.service-detail-list li::before {
    content: '\F272';
    /* Bootstrap Icon check-circle */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-detail-list li::before {
    content: '\F272';
    /* Bootstrap Icon check-circle */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Modal Styling */
.modal-content {
    overflow: hidden;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(176, 30, 35, 0.1);
}

.modal .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Floating Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(176, 30, 35, 0.4);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
}

.chat-header {
    background: var(--primary-color);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f0f2f5;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding-right: 10px;
}

/* Portfolio Section */
.portfolio-category-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-category-card .card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.portfolio-category-card .list-group-item {
    border-left: none;
    border-right: none;
    padding: 1.25rem;
    transition: var(--transition);
}

.portfolio-category-card .list-group-item:hover {
    background: var(--light-bg);
}

.portfolio-category-card .accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    background-color: var(--white);
    color: var(--secondary-color);
}

.portfolio-category-card .accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary-color);
    box-shadow: none;
}

.portfolio-category-card .accordion-item {
    border-left: none;
    border-right: none;
}

.footer-logo {
    height: 100px;
    width: auto;
    filter: brightness(1.1);
}

/* Utilities */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(176, 30, 35, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(176, 30, 35, 0.4);
    background: linear-gradient(135deg, #8e181c 0%, #7b1fa2 100%);
}

.text-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.bg-secondary {
    background: var(--secondary-color) !important;
}

.pointer {
    cursor: pointer;
}

/* Metallic Accents */
.section-padding:nth-child(even) {
    background: var(--metallic-bg) !important;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 45px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .portfolio-category-card .card-header h4 {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 25px;
    }

    .service-card i {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2rem;
    }

    .navbar-logo {
        height: 40px;
    }
}