/* Import all CSS chunks */
@import 'base.css';
@import 'typography.css';
@import 'layout.css';
@import 'components.css';
@import 'utilities.css';
@import 'animations.css';
@import 'interactions.css';
@import 'search.css';

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}

/* Selection Style */
::selection {
    background: rgba(255, 255, 255, 0.5);
    color: #000000;
}

/* Focus States */
:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Better Text Rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
}

/* Print Styles */
@media print {

    .nav,
    .footer,
    .contact-buttons {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        text-decoration: underline !important;
    }
}

/* Any additional specific styles */
@media (max-width: 768px) {

    /* Mobile styles */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (prefers-color-scheme: dark) {
    /* Dark mode styles */
}

/* Additional Global Styles */
body {
    cursor: default;
}

/* Custom Cursor for Links and Buttons */
a,
button {
    cursor: pointer;
}

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 80px auto;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-wrapper svg {
    color: rgba(255, 255, 255, 0.5);
}

.search-input {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-shortcut {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}