/* Create: css/style.css */
/* Enhanced styles for DH Innovations website */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2'),
         url('../fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2'),
         url('../fonts/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Heebo';
    src: url('../fonts/Heebo-Regular.woff2') format('woff2'),
         url('../fonts/Heebo-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

:root {
    --primary-color: #06BBCC;
    --secondary-color: #FFC107;
    --dark-color: #181D38;
    --light-color: #F8F9FA;
    --white-color: #FFFFFF;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Heebo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Heebo', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Loading Spinner */
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
    opacity: 1;
    visibility: visible;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
}

#spinner:not(.show) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Navbar Styles */
.navbar {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 1051;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: #181D38 !important;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

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

.navbar.show {
    display: block;
}

/* Logo Styles */
.navbar-logo {
    height: 90px;         /* Adjust as needed */
    max-height: 120px;    /* Prevents it from getting too large */
    width: auto;
    transition: height 0.2s;
}

@media (max-width: 991.98px) {
    .navbar-logo {
        height: 60px;     /* Smaller on mobile */
    }
}

/* Carousel Styles - Enhanced */
.header-carousel {
    position: relative;
}

.header-carousel .owl-carousel-item {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-carousel .owl-carousel-item .container {
    position: relative;
    z-index: 2;
}

/* Owl Carousel Navigation */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 3;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(255, 255, 255, .2);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
    border: none;
    cursor: pointer;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary-color);
}

/* Owl Carousel Dots */
.header-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.header-carousel .owl-dot {
    margin: 0 5px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: .5s;
    cursor: pointer;
}

.header-carousel .owl-dot.active,
.header-carousel .owl-dot:hover {
    background: var(--primary-color);
}

/* Service Styles */
.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary-color);
}

.service-item:hover * {
    color: var(--white-color) !important;
}

/* About Section */
.about-img img {
    position: relative;
    z-index: 2;
}

/* AI Demo Styles */
.ai-demo-chat {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.demo-message {
    margin-bottom: 15px;
    animation: fadeInUp 0.3s ease-out;
}

.demo-message.user-message {
    text-align: right;
}

.demo-message.ai-message {
    text-align: left;
}

.ai-demo-chat::-webkit-scrollbar {
    width: 6px;
}

.ai-demo-chat::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.ai-demo-chat::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Category Styles */
.category .nav-item .nav-link {
    background: #FFFFFF;
    transition: .5s;
}

.category .nav-item .nav-link.active,
.category .nav-item .nav-link:hover {
    background: var(--primary-color);
}

.category .nav-item .nav-link.active h4,
.category .nav-item .nav-link:hover h4 {
    color: #FFFFFF !important;
}

/* Course Styles */
.course-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: .5s;
}

.course-item:hover {
    margin-top: -7px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.course-item img {
    transition: .5s;
}

.course-item:hover img {
    transform: scale(1.1);
}

/* Team Styles */
.team-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: .5s;
}

.team-item:hover {
    margin-top: -7px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

/* Testimonial Styles */
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary-color);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary-color);
}

/* Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
    padding: 40px 0 20px;
}

.footer-link {
    color: #bfc6e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    border: none;
    background: var(--primary-color);
    color: #FFFFFF;
    border-radius: 10px;
    transition: .5s;
}

.back-to-top:hover {
    background: var(--dark-color);
    color: #FFFFFF;
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary-color);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary-color);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}

/* Button Styles */
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar .navbar-brand h1 {
        /* Remove the gradient text effect that's causing issues */
        color: var(--primary-color) !important;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    .service-item {
        height: auto;
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .ai-demo-chat {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .header-carousel .owl-carousel-item {
        height: 60vh;
    }
}

/* Custom Utilities */
.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 { color: var(--dark-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }
.text-light { color: var(--light-color) !important; }
.bg-light { background-color: var(--light-color) !important; }

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    #spinner {
        display: none !important;
    }
}

.chat-container {
    height: 600px;
    border: 2px solid #06BBCC;
    border-radius: 10px;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #06BBCC, #0ea5e9);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.chat-messages {
    height: 480px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    animation: fadeInUp 0.3s ease;
}

.user-message {
    background: #06BBCC;
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-message {
    background: white;
    border: 1px solid #e0e0e0;
    margin-right: auto;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.action-buttons {
    background: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.quick-action-btn {
    margin: 5px;
    font-size: 0.9rem;
}

.compliance-card {
    background: #2c3e50;
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.compliance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: 2px solid #06BBCC;
    outline-offset: 2px;
    color: white;
    background: #34495e;
}

.compliance-card:active {
    transform: translateY(0);
    background: #2c3e50;
}

.compliance-card h6,
.compliance-card small {
    color: inherit;
    margin: 0;
    pointer-events: none;
    display: block;
}

.compliance-card h6 {
    margin-bottom: 5px;
}