﻿:root {
    /* Primary Colors */
    --codexa-primary: #0d6efd;
    --codexa-secondary: #6c757d;
    --codexa-success: #198754;
    --codexa-danger: #dc3545;
    --codexa-warning: #ffc107;
    --codexa-info: #0dcaf0;
    --codexa-light: #f8f9fa;
    --codexa-dark: #212529;

    /* Typography */
    --codexa-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --codexa-heading-font: inherit;

    /* Spacing */
    --codexa-spacing: 1rem;

    /* Transitions */
    --codexa-transition: all 0.3s ease-in-out;
}

/* Global Styles */
body {
    font-family: var(--codexa-font-family);
    line-height: 1.6;
    color: var(--codexa-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--codexa-heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: #5a54f6;
    transition: var(--codexa-transition);
}

a:hover {
    color: #5a54f6;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.transition {
    transition: var(--codexa-transition);
}

.hover-shadow {
    transition: box-shadow 0.3s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.hover-zoom {
    transition: transform 0.3s ease-in-out;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

.top-bar {
    font-size: 0.875rem;
}

.top-bar a {
    color: inherit;
    text-decoration: none;
}

.top-bar a:hover {
    opacity: 0.8;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    padding: 1.5rem 1rem;
    font-weight: 700;
    transition: var(--codexa-transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #5D56F1 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--codexa-transition);
}

.dropdown-item:hover {
    background-color: var(--codexa-light);
    color: var(--codexa-primary);
}

/* Footer Styles */
.site-footer {
    margin-top: auto;
}

.footer-widgets {
    background-color: #1a1a1a;
}

.footer-widgets .widget-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-widgets a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-widgets a:hover {
    color: #fff;
}

.footer-bottom {
    background-color: #111;
}

.footer-menu {
    margin: 0;
    padding: 0;
}

.footer-menu .list-inline-item {
    margin-right: 1rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

/* Back to Top Button */
#back-to-top {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--codexa-transition);
}

#back-to-top.d-none {
    opacity: 0;
    visibility: hidden;
}

#back-to-top:not(.d-none) {
    opacity: 1;
    visibility: visible;
}


/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    #back-to-top,
    .cta-section {
        display: none;
    }
}
